Skip to content

Commit

Permalink
fix: 修復 summernote-comment-popover 新增、刪除摘要未能觸發 onchange
Browse files Browse the repository at this point in the history
Signed-off-by: wyttime04 <vanessa80332@gmail.com>
  • Loading branch information
wyttime04 committed Mar 29, 2024
1 parent 1602256 commit 4d8c490
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/plugin/custom/summernote-comment-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@
contents: `<i class="note-icon">${deletePopoverIcon}</i>`,
tooltip: lang.commentPopover.removePopover,
click: function () {
self.wrapCommand(self.removePopover())
context.invoke("beforeCommand");
self.removePopover()
context.invoke("afterCommand");
// console.log(context.invoke('editor.getLastRange'))
}
}).render()
Expand Down Expand Up @@ -227,7 +229,9 @@
}
if (!invalidFlag) {
ui.hideDialog(self.$dialog)
self.wrapCommand(self.addPopover(title, content, imgurl))
context.invoke("beforeCommand");
self.addPopover(title, content, imgurl)
context.invoke("afterCommand");
// console.log(context.invoke('editor.getLastRange'))
}
})
Expand Down

0 comments on commit 4d8c490

Please sign in to comment.