Commit 9d1d7ba1 by Яков

try fix

parent 0670cea2
{
"name": "react-ag-qeditor",
"version": "1.0.68",
"version": "1.0.69",
"description": "WYSIWYG html editor",
"author": "atma",
"license": "MIT",
......
......@@ -459,17 +459,17 @@ const QEditor = ({
const editor = useEditor({
extensions: [
StarterKit,
Underline,
ImageResize,
Link.configure({
autolink: true,
linkOnPaste: true,
defaultProtocol: 'https',
protocols: ['http', 'https'],
validate: (href)=> console.log(href),
}),
Video,
Iframe,
// Underline,
// ImageResize,
// Link.configure({
// autolink: true,
// linkOnPaste: true,
// defaultProtocol: 'https',
// protocols: ['http', 'https'],
// validate: (href)=> console.log(href),
// }),
// Video,
// Iframe,
// Table.configure({
// resizable: true,
// allowTableNodeSelection: true
......@@ -487,12 +487,12 @@ const QEditor = ({
// return ['td', attrs, 0];
// }
// }),
BubbleMenu,
TextAlign.configure({
defaultAlignment: 'left',
types: ['heading', 'paragraph'],
alignments: ['left', 'center', 'right', 'justify']
}),
// BubbleMenu,
// TextAlign.configure({
// defaultAlignment: 'left',
// types: ['heading', 'paragraph'],
// alignments: ['left', 'center', 'right', 'justify']
// }),
TextStyle,
Color.configure({
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