diff --git a/app/javascript/editor/editor.js b/app/javascript/editor/editor.js index 75749623..d44cdb50 100644 --- a/app/javascript/editor/editor.js +++ b/app/javascript/editor/editor.js @@ -275,7 +275,7 @@ const cleanContent = (contentEl) => { contentEl.insertBefore(el, child.nextSibling) el.appendChild(child) - sel.selectAllChildren(contentEl) + sel.selectAllChildren(el) sel.collapseToEnd() } }