Skip to content

Commit

Permalink
fix(core): make setEditable trigger onUpdate function (#2935)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch authored Aug 22, 2022
1 parent 791c89d commit de1253a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}

/**
Expand Down

0 comments on commit de1253a

Please sign in to comment.