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