5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 15:36:22 +00:00

editor: arreglar otra vez la selección en un documento vacio

This commit is contained in:
void 2021-02-02 20:13:50 +00:00
parent db0a32a930
commit cd091d2e30

View file

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