add transaction to update event
This commit is contained in:
@@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user