Fix:修复代码错误,注册了富文本插件后进入文本编辑时不应在原有文本编辑类中保存节点实例
This commit is contained in:
parent
f1622e1a15
commit
6479841dee
@ -207,7 +207,6 @@ export default class TextEdit {
|
|||||||
}
|
}
|
||||||
if (!isShow) return
|
if (!isShow) return
|
||||||
}
|
}
|
||||||
this.currentNode = node
|
|
||||||
const { offsetLeft, offsetTop } = checkNodeOuter(this.mindMap, node)
|
const { offsetLeft, offsetTop } = checkNodeOuter(this.mindMap, node)
|
||||||
this.mindMap.view.translateXY(offsetLeft, offsetTop)
|
this.mindMap.view.translateXY(offsetLeft, offsetTop)
|
||||||
const g = node._textData.node
|
const g = node._textData.node
|
||||||
@ -231,6 +230,7 @@ export default class TextEdit {
|
|||||||
this.mindMap.richText.showEditText(params)
|
this.mindMap.richText.showEditText(params)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.currentNode = node
|
||||||
this.showEditTextBox(params)
|
this.showEditTextBox(params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user