diff --git a/packages/tiptap/src/Editor.js b/packages/tiptap/src/Editor.js index bdf39ec41..6a07c9baf 100644 --- a/packages/tiptap/src/Editor.js +++ b/packages/tiptap/src/Editor.js @@ -274,7 +274,7 @@ export default class Editor extends Emitter { if (typeof content === 'string') { const htmlString = `
${content}
` const parser = new window.DOMParser() - const element = parser.parseFromString(htmlString, 'text/html').body + const element = parser.parseFromString(htmlString, 'text/html').body.firstElementChild return DOMParser.fromSchema(this.schema).parse(element, parseOptions) }