Skip to content

Commit

Permalink
Fix:修复插入格式报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglin2 committed Dec 25, 2023
1 parent d19fd7e commit 69a97d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple-mind-map/src/plugins/Formula.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Formula {
// 给指定的节点插入指定公式
insertFormulaToNode(node, formula) {
let richTextPlugin = this.mindMap.richText
richTextPlugin.showEditText(node)
richTextPlugin.showEditText({ node })
richTextPlugin.quill.insertEmbed(
richTextPlugin.quill.getLength() - 1,
'formula',
Expand Down

0 comments on commit 69a97d4

Please sign in to comment.