Skip to content

Commit

Permalink
Provide an EditorView.EDIT_CONTEXT switch that turns off use of EditC…
Browse files Browse the repository at this point in the history
…ontext
  • Loading branch information
marijnh committed Apr 21, 2024
1 parent 571426b commit d1d926f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domobserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class DOMObserver {
this.flush()
})

if (window.EditContext) {
if (window.EditContext && (view.constructor as any).EDIT_CONTEXT !== false) {
this.editContext = new EditContextManager(view)
view.contentDOM.editContext = this.editContext.editContext
}
Expand Down

0 comments on commit d1d926f

Please sign in to comment.