mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:41:41 +00:00
editor: arreglar otra vez la selección en un documento vacio
This commit is contained in:
parent
db0a32a930
commit
cd091d2e30
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue