From 4851fc5e9b6daccc15a1839e471db489401eca0c Mon Sep 17 00:00:00 2001 From: Rhys-T <108157737+Rhys-T@users.noreply.github.com> Date: Thu, 1 Sep 2022 07:55:19 -0400 Subject: [PATCH] fix(core): make setEditable trigger all 'update' listeners (#3140) --- packages/core/src/Editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index 2aef4ed2..eba70401 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -169,7 +169,7 @@ export class Editor extends EventEmitter { */ public setEditable(editable: boolean): void { this.setOptions({ editable }) - this.options.onUpdate({ editor: this, transaction: this.state.tr }) + this.emit('update', { editor: this, transaction: this.state.tr }) } /**