Fix:修复代码错误,注册了富文本插件后进入文本编辑时不应在原有文本编辑类中保存节点实例

This commit is contained in:
街角小林 2024-12-23 18:02:52 +08:00
parent f1622e1a15
commit 6479841dee

View File

@ -207,7 +207,6 @@ export default class TextEdit {
}
if (!isShow) return
}
this.currentNode = node
const { offsetLeft, offsetTop } = checkNodeOuter(this.mindMap, node)
this.mindMap.view.translateXY(offsetLeft, offsetTop)
const g = node._textData.node
@ -231,6 +230,7 @@ export default class TextEdit {
this.mindMap.richText.showEditText(params)
return
}
this.currentNode = node
this.showEditTextBox(params)
}