5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-24 12:16:08 +00:00

editor: elegir el elemento correcto al seleccionar

This commit is contained in:
void 2021-02-02 20:30:19 +00:00
parent cd091d2e30
commit 8f4566f06c

View file

@ -275,7 +275,7 @@ const cleanContent = (contentEl) => {
contentEl.insertBefore(el, child.nextSibling)
el.appendChild(child)
sel.selectAllChildren(contentEl)
sel.selectAllChildren(el)
sel.collapseToEnd()
}
}