Fix:修复在刚创建的节点中选中文本时富文本工具栏不出现的问题

This commit is contained in:
wanglin2 2025-04-20 10:29:15 +08:00
parent 0c4fadb211
commit abb332fd46

View File

@ -491,7 +491,10 @@ class RichText {
}) })
this.quill.on('selection-change', range => { this.quill.on('selection-change', range => {
// 刚创建的节点全选不需要显示操作条 // 刚创建的节点全选不需要显示操作条
if (this.isInserting) return if (this.isInserting) {
this.isInserting = false
return
}
this.lastRange = this.range this.lastRange = this.range
this.range = null this.range = null
if (range) { if (range) {