perf[Tinymce]:update editor's content when bound value changes

This commit is contained in:
CYF 2021-03-14 00:34:56 +08:00
parent 33a93a12b4
commit 79c5b4bd35
1 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,9 @@ export default {
editor.on('NodeChange Change KeyUp SetContent', () => {
this.hasChange = true
this.$emit('input', editor.getContent())
setTimeout(() => {
this.hasChange = false
})
})
},
setup(editor) {