Fix formatting in contenteditable

This commit is contained in:
Jonathan Staab 2023-06-07 18:47:46 -07:00
parent bc7f671c0f
commit 5b235c1f41

View File

@ -60,7 +60,7 @@
content += "\n"
}
if (child.tagName === "DIV" && child.children[0]?.tagName === "BR") {
if (child.tagName === "DIV" && !child.querySelector("br")) {
content += "\n"
}