feat: add transaction to all events if possible, see #1461

This commit is contained in:
Philipp Kühn
2021-08-13 14:00:50 +02:00
parent d9abb0c736
commit 7f6ed0b1c0
2 changed files with 7 additions and 4 deletions

View File

@@ -322,6 +322,7 @@ export class Editor extends EventEmitter {
if (selectionHasChanged) {
this.emit('selectionUpdate', {
editor: this,
transaction,
})
}
@@ -332,6 +333,7 @@ export class Editor extends EventEmitter {
this.emit('focus', {
editor: this,
event: focus.event,
transaction,
})
}
@@ -339,6 +341,7 @@ export class Editor extends EventEmitter {
this.emit('blur', {
editor: this,
event: blur.event,
transaction,
})
}