update
This commit is contained in:
parent
0760500ceb
commit
67fec82c72
@ -313,6 +313,8 @@ class RichText {
|
|||||||
getEditText() {
|
getEditText() {
|
||||||
let html = this.quill.container.firstChild.innerHTML
|
let html = this.quill.container.firstChild.innerHTML
|
||||||
// 去除ql-cursor节点
|
// 去除ql-cursor节点
|
||||||
|
// https://github.com/wanglin2/mind-map/commit/138cc4b3e824671143f0bf70e5c46796f48520d0
|
||||||
|
// https://github.com/wanglin2/mind-map/commit/0760500cebe8ec4e8ad84ab63f877b8b2a193aa1
|
||||||
// html = removeHtmlNodeByClass(html, '.ql-cursor')
|
// html = removeHtmlNodeByClass(html, '.ql-cursor')
|
||||||
// 去除最后的空行
|
// 去除最后的空行
|
||||||
return html.replace(/<p><br><\/p>$/, '')
|
return html.replace(/<p><br><\/p>$/, '')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user