@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.js CHANGED
@@ -27709,7 +27709,7 @@ class DocEditor {
27709
27709
  docDblClickHandle(evt) {
27710
27710
  //1.如果在数据元中双击,则默认选中数据元内部的所有内容
27711
27711
  const currDataEle = this.getCurrentDataElement();
27712
- if (currDataEle && currDataEle instanceof DataElementInlineGroup && currDataEle.length > 2) {
27712
+ if (currDataEle && currDataEle instanceof DataElementInlineGroup && currDataEle.length > 2 && this.selectionState.startControl instanceof TextGroupElement) {
27713
27713
  const range = new SelectionRange();
27714
27714
  range.setStart(currDataEle.startDecorate, 1);
27715
27715
  range.setEnd(currDataEle.endDecorate, 0);
@@ -28709,7 +28709,7 @@ class DocEditor {
28709
28709
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
28710
28710
  }
28711
28711
  version() {
28712
- return "2.1.7";
28712
+ return "2.1.8";
28713
28713
  }
28714
28714
  }
28715
28715