Skip to content

Commit 7cacd5a

Browse files
committed
perf[Tinymce]: add SetContent listener
1 parent 31b7fa6 commit 7cacd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Tinymce/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default {
8787
editor.setContent(_this.value)
8888
}
8989
_this.hasInit = true
90-
editor.on('NodeChange Change KeyUp', () => {
90+
editor.on('NodeChange Change KeyUp SetContent', () => {
9191
this.hasChange = true
9292
this.$emit('input', editor.getContent({ format: 'raw' }))
9393
})

0 commit comments

Comments
 (0)