diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js b/addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js index 0a5b5bb5cf5..239acce5349 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/commands/commands.js @@ -165,7 +165,7 @@ export const editorCommands = { const containerFirstChild = document.createElement('fake-element-fc'); const containerLastChild = document.createElement('fake-element-lc'); - if (content instanceof Node) { + if (content instanceof editor.document.defaultView.Node) { container.replaceChildren(content); } else { container.textContent = content;