@hailin-zheng/editor-core 2.0.52 → 2.0.54

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/index-cjs.js CHANGED
@@ -28175,7 +28175,7 @@ class DocEditor {
28175
28175
  const editor = this;
28176
28176
  return {
28177
28177
  render() {
28178
- if (editor.viewOptions.docMode === exports.DocMode.View) {
28178
+ if (editor.viewOptions.docMode === exports.DocMode.View || !editor.selectionState.editable || editor.documentEvent.ismousedown) {
28179
28179
  return null;
28180
28180
  }
28181
28181
  const dataEle = editor.getCurrentDataElement();
@@ -28318,7 +28318,7 @@ class DocEditor {
28318
28318
  });
28319
28319
  return {
28320
28320
  render() {
28321
- if (editor.viewOptions.docMode === exports.DocMode.View) {
28321
+ if (editor.viewOptions.docMode === exports.DocMode.View || !editor.selectionState.editable || editor.documentEvent.ismousedown) {
28322
28322
  return null;
28323
28323
  }
28324
28324
  const dataEle = editor.getCurrentDataElement();
@@ -28392,7 +28392,7 @@ class DocEditor {
28392
28392
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
28393
28393
  }
28394
28394
  version() {
28395
- return "2.0.52";
28395
+ return "2.0.54";
28396
28396
  }
28397
28397
  }
28398
28398