Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaroldi committed Dec 3, 2024
1 parent 87a13e9 commit cb829f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export class EditorAdapter extends Editor implements ILegacyEditor {
insertContent(content: string, option?: InsertOption) {
if (content) {
const doc = this.getDocument();
const body = this.getCore().domCreator.htmlToDOM(content).body;
const body = this.getCore().domCreator.htmlToDOM(content)?.body;

let allNodes = body?.childNodes ? toArray(body.childNodes) : [];

Expand Down

0 comments on commit cb829f2

Please sign in to comment.