fix: move all child nodes within EditorContent

This commit is contained in:
Philipp Kühn
2021-05-18 23:41:54 +02:00
parent f829b45bf0
commit 0f299d228e
3 changed files with 6 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ export class PureEditorContent extends React.Component<EditorContentProps, Edito
const element = this.editorContentRef.current
element.appendChild(editor.options.element.firstChild)
element.append(...editor.options.element.childNodes)
editor.setOptions({
element,
@@ -89,7 +89,7 @@ export class PureEditorContent extends React.Component<EditorContentProps, Edito
const newElement = document.createElement('div')
newElement.appendChild(editor.options.element.firstChild)
newElement.append(...editor.options.element.childNodes)
editor.setOptions({
element: newElement,