@hailin-zheng/editor-core 2.0.34 → 2.0.35

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
@@ -27244,7 +27244,7 @@ class DocEditor {
27244
27244
  getCursorRect() {
27245
27245
  try {
27246
27246
  const { startControl, startOffset } = this.selectionState;
27247
- if (!this.documentEvent.startHitInfo || (startControl && !startControl.parent)) {
27247
+ if (!this.documentEvent.startHitInfo || !startControl || (startControl && !startControl.parent)) {
27248
27248
  return { x: 0, y: 0, width: 0, height: 0 };
27249
27249
  }
27250
27250
  const { startRegion, hitDocIndex } = this.documentEvent.startHitInfo;
@@ -28277,7 +28277,7 @@ class DocEditor {
28277
28277
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
28278
28278
  }
28279
28279
  version() {
28280
- return "2.0.34";
28280
+ return "2.0.35";
28281
28281
  }
28282
28282
  }
28283
28283