mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 23:06:21 +00:00
Merge branch 'rails' into editor-en-webpack
This commit is contained in:
commit
252482f3f9
1 changed files with 2 additions and 0 deletions
|
@ -271,6 +271,8 @@ const cleanContent = (contentEl) => {
|
|||
const el = document.createElement("p")
|
||||
contentEl.insertBefore(el, child.nextSibling)
|
||||
el.appendChild(child)
|
||||
|
||||
sel.collapse(el, el.textContent.length)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue