diff --git a/packages/tiptap/src/components/editor.js b/packages/tiptap/src/components/editor.js index 4846af633..3f136eba2 100644 --- a/packages/tiptap/src/components/editor.js +++ b/packages/tiptap/src/components/editor.js @@ -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() {