fix(core): make setEditable trigger onUpdate function (#2935)

This commit is contained in:
Dominik
2022-08-22 14:24:21 +02:00
committed by GitHub
parent 791c89d943
commit de1253a8b0

View File

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