1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-30 11:19:52 +08:00

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

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) {