From 8f4566f06ca3a65973a0aaa1822a0c90601bdcec Mon Sep 17 00:00:00 2001 From: void Date: Tue, 2 Feb 2021 20:30:19 +0000 Subject: [PATCH] editor: elegir el elemento correcto al seleccionar --- app/javascript/editor/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } }