fix(core): make setEditable trigger all 'update' listeners (#3140)
This commit is contained in:
@@ -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 })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user