mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 07:06:22 +00:00
editor: elegir el elemento correcto al seleccionar
This commit is contained in:
parent
cd091d2e30
commit
8f4566f06c
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ const cleanContent = (contentEl) => {
|
||||||
contentEl.insertBefore(el, child.nextSibling)
|
contentEl.insertBefore(el, child.nextSibling)
|
||||||
el.appendChild(child)
|
el.appendChild(child)
|
||||||
|
|
||||||
sel.selectAllChildren(contentEl)
|
sel.selectAllChildren(el)
|
||||||
sel.collapseToEnd()
|
sel.collapseToEnd()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue