From f8b1bd5df74c5e50c954723eff63a1eec615c924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 1 Jan 2019 17:51:57 +0100 Subject: [PATCH] add transaction to update event --- packages/tiptap/src/Editor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/tiptap/src/Editor.js b/packages/tiptap/src/Editor.js index 4fa0d296..52eb2308 100644 --- a/packages/tiptap/src/Editor.js +++ b/packages/tiptap/src/Editor.js @@ -255,14 +255,15 @@ export default class Editor { return } - this.emitUpdate() + this.emitUpdate(transaction) } - emitUpdate() { + emitUpdate(transaction) { this.options.onUpdate({ getHTML: this.getHTML.bind(this), getJSON: this.getJSON.bind(this), state: this.state, + transaction, }) }