Fix:修复节点富文本编辑时,文本选中范围为null时没有触发rich_text_selection_change事件的问题
This commit is contained in:
parent
9db988e3ec
commit
5bea2606f6
@ -260,8 +260,7 @@ class RichText {
|
|||||||
this.textEditNode.innerHTML = this.cacheEditingText || html
|
this.textEditNode.innerHTML = this.cacheEditingText || html
|
||||||
} else {
|
} else {
|
||||||
// 已经是富文本
|
// 已经是富文本
|
||||||
this.textEditNode.innerHTML =
|
this.textEditNode.innerHTML = this.cacheEditingText || nodeText
|
||||||
this.cacheEditingText || nodeText
|
|
||||||
}
|
}
|
||||||
this.initQuillEditor()
|
this.initQuillEditor()
|
||||||
document.querySelector('.ql-editor').style.minHeight = originHeight + 'px'
|
document.querySelector('.ql-editor').style.minHeight = originHeight + 'px'
|
||||||
@ -377,6 +376,8 @@ class RichText {
|
|||||||
rectInfo,
|
rectInfo,
|
||||||
formatInfo
|
formatInfo
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
this.mindMap.emit('rich_text_selection_change', false, null, null)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.quill.on('text-change', () => {
|
this.quill.on('text-change', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user