This commit is contained in:
街角小林
2024-05-31 15:57:09 +08:00
parent 0760500ceb
commit 67fec82c72

View File

@@ -313,6 +313,8 @@ class RichText {
getEditText() {
let html = this.quill.container.firstChild.innerHTML
// 去除ql-cursor节点
// https://github.com/wanglin2/mind-map/commit/138cc4b3e824671143f0bf70e5c46796f48520d0
// https://github.com/wanglin2/mind-map/commit/0760500cebe8ec4e8ad84ab63f877b8b2a193aa1
// html = removeHtmlNodeByClass(html, '.ql-cursor')
// 去除最后的空行
return html.replace(/<p><br><\/p>$/, '')