perf[Tinymce]: add SetContent listener

This commit is contained in:
Pan 2018-03-07 09:57:45 +08:00
parent 31b7fa6f55
commit 7cacd5a4ac

View file

@ -87,7 +87,7 @@ export default {
editor.setContent(_this.value)
}
_this.hasInit = true
editor.on('NodeChange Change KeyUp', () => {
editor.on('NodeChange Change KeyUp SetContent', () => {
this.hasChange = true
this.$emit('input', editor.getContent({ format: 'raw' }))
})