fix update event

This commit is contained in:
Philipp Kühn 2018-09-03 23:35:42 +02:00
parent 09870e1f45
commit 56b318ea38

View File

@ -204,18 +204,19 @@ export default {
},
dispatchTransaction(transaction) {
this.state = this.state.apply(transaction)
this.view.updateState(this.state)
this.updateMenuActions()
if (!transaction.docChanged) {
return
}
this.state = this.state.apply(transaction)
this.view.updateState(this.state)
this.$emit('update', {
getHTML: this.getHTML,
getJSON: this.getJSON,
state: this.state,
})
this.updateMenuActions()
},
getHTML() {