perf[Tinymce]: add SetContent listener
This commit is contained in:
parent
31b7fa6f55
commit
7cacd5a4ac
|
@ -87,7 +87,7 @@ export default {
|
||||||
editor.setContent(_this.value)
|
editor.setContent(_this.value)
|
||||||
}
|
}
|
||||||
_this.hasInit = true
|
_this.hasInit = true
|
||||||
editor.on('NodeChange Change KeyUp', () => {
|
editor.on('NodeChange Change KeyUp SetContent', () => {
|
||||||
this.hasChange = true
|
this.hasChange = true
|
||||||
this.$emit('input', editor.getContent({ format: 'raw' }))
|
this.$emit('input', editor.getContent({ format: 'raw' }))
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue