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) { dispatchTransaction(transaction) {
this.state = this.state.apply(transaction)
this.view.updateState(this.state)
this.updateMenuActions()
if (!transaction.docChanged) { if (!transaction.docChanged) {
return return
} }
this.state = this.state.apply(transaction)
this.view.updateState(this.state)
this.$emit('update', { this.$emit('update', {
getHTML: this.getHTML, getHTML: this.getHTML,
getJSON: this.getJSON, getJSON: this.getJSON,
state: this.state, state: this.state,
}) })
this.updateMenuActions()
}, },
getHTML() { getHTML() {