fix(core): make setEditable trigger all 'update' listeners (#3140)

This commit is contained in:
Rhys-T
2022-09-01 07:55:19 -04:00
committed by GitHub
parent c6c5fa623a
commit 4851fc5e9b

View File

@@ -169,7 +169,7 @@ export class Editor extends EventEmitter<EditorEvents> {
*/ */
public setEditable(editable: boolean): void { public setEditable(editable: boolean): void {
this.setOptions({ editable }) this.setOptions({ editable })
this.options.onUpdate({ editor: this, transaction: this.state.tr }) this.emit('update', { editor: this, transaction: this.state.tr })
} }
/** /**