Commit 8b985ff5 by Яков

try fix

parent 3e5a0a97
{
"name": "react-ag-qeditor",
"version": "1.0.64",
"version": "1.0.65",
"description": "WYSIWYG html editor",
"author": "atma",
"license": "MIT",
......
......@@ -459,25 +459,26 @@ const QEditor = ({
const editor = useEditor({
extensions: [
StarterKit,
// Underline,
Underline,
// Image,
// ImageResize,
ImageResize,
// CustomImage,
// Link.configure({
// autolink: true,
// linkOnPaste: true,
// defaultProtocol: 'https',
// protocols: ['http', 'https'],
// validate: (href)=> console.log(href),
// }),
// Video,
// Iframe,
// Table.configure({
// resizable: true,
// allowTableNodeSelection: true
// }),
// TableRow,
// TableHeader,
Link.configure({
autolink: true,
linkOnPaste: true,
defaultProtocol: 'https',
protocols: ['http', 'https'],
validate: (href)=> console.log(href),
}),
Video,
Iframe,
Table.configure({
resizable: true,
allowTableNodeSelection: true
}),
TableRow,
TableHeader,
TableCell,
// TableCell.extend({
// renderHTML({ HTMLAttributes }) {
// const attrs = mergeAttributes(this.options.HTMLAttributes, HTMLAttributes);
......@@ -489,33 +490,33 @@ const QEditor = ({
// 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
// }),
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()),
......@@ -550,6 +551,7 @@ const QEditor = ({
)
}
const getUploader = ({accept = '*', ...o}) => {
let url = uploadOptions.url
let multiple = true
......
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