Commit 3e5a0a97 by Яков

try fix

parent 7ac36580
{
"name": "react-ag-qeditor",
"version": "1.0.63",
"version": "1.0.64",
"description": "WYSIWYG html editor",
"author": "atma",
"license": "MIT",
......
......@@ -459,9 +459,9 @@ const QEditor = ({
const editor = useEditor({
extensions: [
StarterKit,
Underline,
// Underline,
// Image,
ImageResize,
// ImageResize,
// CustomImage,
// Link.configure({
// autolink: true,
......@@ -470,52 +470,52 @@ const QEditor = ({
// protocols: ['http', 'https'],
// validate: (href)=> console.log(href),
// }),
Video,
Iframe,
Table.configure({
resizable: true,
allowTableNodeSelection: true
}),
TableRow,
TableHeader,
TableCell.extend({
renderHTML({ HTMLAttributes }) {
const attrs = mergeAttributes(this.options.HTMLAttributes, HTMLAttributes);
if (attrs.colwidth) {
attrs.style = `width: ${attrs.colwidth}px`;
}
return ['td', attrs, 0];
}
}),
BubbleMenu,
TextAlign.configure({
defaultAlignment: 'left',
types: ['heading', 'paragraph'],
alignments: ['left', 'center', 'right', 'justify']
}),
TextStyle,
Color.configure({
types: ['textStyle']
}),
Highlight.configure({
multicolor: true
}),
// Video,
// Iframe,
// Table.configure({
// resizable: true,
// allowTableNodeSelection: true
// }),
// TableRow,
// TableHeader,
// TableCell.extend({
// renderHTML({ HTMLAttributes }) {
// const attrs = mergeAttributes(this.options.HTMLAttributes, HTMLAttributes);
//
// if (attrs.colwidth) {
// attrs.style = `width: ${attrs.colwidth}px`;
// }
//
// return ['td', attrs, 0];
// }
// }),
// BubbleMenu,
// TextAlign.configure({
// defaultAlignment: 'left',
// types: ['heading', 'paragraph'],
// alignments: ['left', 'center', 'right', 'justify']
// }),
// TextStyle,
// Color.configure({
// types: ['textStyle']
// }),
// Highlight.configure({
// multicolor: true
// }),
// CustomLink.configure({
// linkOnPaste: false,
// openOnClick: false
// }),
Focus.configure({
className: 'atma-editor-focused',
mode: 'all'
}),
DragAndDrop.configure({
linkUpload: uploadOptions.url
}),
Audio,
Superscript,
Subscript,
// Focus.configure({
// className: 'atma-editor-focused',
// mode: 'all'
// }),
// DragAndDrop.configure({
// linkUpload: uploadOptions.url
// }),
// Audio,
// Superscript,
// Subscript,
],
content: value,
onUpdate: ({editor}) => onChange(editor.getHTML()),
......
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