diff --git a/app/assets/javascripts/02-editor.js b/app/assets/javascripts/02-editor.js index 79d09f96..2227c60b 100644 --- a/app/assets/javascripts/02-editor.js +++ b/app/assets/javascripts/02-editor.js @@ -282,6 +282,8 @@ function cleanContent (contentEl) { const el = document.createElement("p") contentEl.insertBefore(el, child.nextSibling) el.appendChild(child) + + sel.collapse(el, el.textContent.length) } } }