Commit 9d1d7ba1 by Яков

try fix

parent 0670cea2
{ {
"name": "react-ag-qeditor", "name": "react-ag-qeditor",
"version": "1.0.68", "version": "1.0.69",
"description": "WYSIWYG html editor", "description": "WYSIWYG html editor",
"author": "atma", "author": "atma",
"license": "MIT", "license": "MIT",
......
...@@ -459,17 +459,17 @@ const QEditor = ({ ...@@ -459,17 +459,17 @@ const QEditor = ({
const editor = useEditor({ const editor = useEditor({
extensions: [ extensions: [
StarterKit, StarterKit,
Underline, // Underline,
ImageResize, // ImageResize,
Link.configure({ // Link.configure({
autolink: true, // autolink: true,
linkOnPaste: true, // linkOnPaste: true,
defaultProtocol: 'https', // defaultProtocol: 'https',
protocols: ['http', 'https'], // protocols: ['http', 'https'],
validate: (href)=> console.log(href), // validate: (href)=> console.log(href),
}), // }),
Video, // Video,
Iframe, // Iframe,
// Table.configure({ // Table.configure({
// resizable: true, // resizable: true,
// allowTableNodeSelection: true // allowTableNodeSelection: true
...@@ -487,12 +487,12 @@ const QEditor = ({ ...@@ -487,12 +487,12 @@ const QEditor = ({
// return ['td', attrs, 0]; // return ['td', attrs, 0];
// } // }
// }), // }),
BubbleMenu, // BubbleMenu,
TextAlign.configure({ // TextAlign.configure({
defaultAlignment: 'left', // defaultAlignment: 'left',
types: ['heading', 'paragraph'], // types: ['heading', 'paragraph'],
alignments: ['left', 'center', 'right', 'justify'] // alignments: ['left', 'center', 'right', 'justify']
}), // }),
TextStyle, TextStyle,
Color.configure({ Color.configure({
types: ['textStyle'] types: ['textStyle']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment