@codemirror/view 6.26.4-edit-context → 6.26.4-edit-context.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -6592,7 +6592,7 @@ class DOMObserver {
6592
6592
  else
6593
6593
  this.flush();
6594
6594
  });
6595
- if (window.EditContext) {
6595
+ if (window.EditContext && view.constructor.EDIT_CONTEXT !== false) {
6596
6596
  this.editContext = new EditContextManager(view);
6597
6597
  view.contentDOM.editContext = this.editContext.editContext;
6598
6598
  }
package/dist/index.js CHANGED
@@ -6587,7 +6587,7 @@ class DOMObserver {
6587
6587
  else
6588
6588
  this.flush();
6589
6589
  });
6590
- if (window.EditContext) {
6590
+ if (window.EditContext && view.constructor.EDIT_CONTEXT !== false) {
6591
6591
  this.editContext = new EditContextManager(view);
6592
6592
  view.contentDOM.editContext = this.editContext.editContext;
6593
6593
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.26.4-edit-context",
3
+ "version": "6.26.4-edit-context.1",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",