add transaction to update event

This commit is contained in:
Philipp Kühn
2019-01-01 17:51:57 +01:00
parent 8197b0d3bb
commit f8b1bd5df7

View File

@@ -255,14 +255,15 @@ export default class Editor {
return return
} }
this.emitUpdate() this.emitUpdate(transaction)
} }
emitUpdate() { emitUpdate(transaction) {
this.options.onUpdate({ this.options.onUpdate({
getHTML: this.getHTML.bind(this), getHTML: this.getHTML.bind(this),
getJSON: this.getJSON.bind(this), getJSON: this.getJSON.bind(this),
state: this.state, state: this.state,
transaction,
}) })
} }