@hailin-zheng/editor-core 2.1.7 → 2.1.8

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
@@ -27738,7 +27738,7 @@ class DocEditor {
27738
27738
  docDblClickHandle(evt) {
27739
27739
  //1.如果在数据元中双击,则默认选中数据元内部的所有内容
27740
27740
  const currDataEle = this.getCurrentDataElement();
27741
- if (currDataEle && currDataEle instanceof DataElementInlineGroup && currDataEle.length > 2) {
27741
+ if (currDataEle && currDataEle instanceof DataElementInlineGroup && currDataEle.length > 2 && this.selectionState.startControl instanceof TextGroupElement) {
27742
27742
  const range = new SelectionRange();
27743
27743
  range.setStart(currDataEle.startDecorate, 1);
27744
27744
  range.setEnd(currDataEle.endDecorate, 0);
@@ -28738,7 +28738,7 @@ class DocEditor {
28738
28738
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
28739
28739
  }
28740
28740
  version() {
28741
- return "2.1.7";
28741
+ return "2.1.8";
28742
28742
  }
28743
28743
  }
28744
28744