diff --git a/src/components/editor/Editor.tsx b/src/components/editor/Editor.tsx index dc12de5..2c07844 100644 --- a/src/components/editor/Editor.tsx +++ b/src/components/editor/Editor.tsx @@ -146,12 +146,10 @@ const Editor = ({ content }: { content: JSONContent[] | null }) => { editorProps: { handlePaste(view, event) { const html = event.clipboardData?.getData('text/html'); - console.log('html', html); if (html) { const parser = new DOMParser(); const doc = parser.parseFromString(html, 'text/html'); const body = doc.body; - console.log('body', body); body.innerHTML = body.innerHTML.replace(/\uFEFF/g, '').trim(); body.querySelectorAll('span[data-input-buffer]').forEach((span) => { @@ -204,7 +202,6 @@ const Editor = ({ content }: { content: JSONContent[] | null }) => { }); useEffect(() => { - console.log('content', editor?.getHTML()); if (content && editor?.commands) { editor?.commands.setContent(content); } @@ -230,7 +227,7 @@ const Editor = ({ content }: { content: JSONContent[] | null }) => { return; } } - + if ( editor.getHTML() === '

'