fix(core): make setEditable trigger onUpdate function (#2935)
This commit is contained in:
@@ -169,6 +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 })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user