@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-cjs.js +2 -2
- package/index-cjs.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -27274,7 +27274,7 @@ class DocEditor {
|
|
27274
27274
|
getCursorRect() {
|
27275
27275
|
try {
|
27276
27276
|
const { startControl, startOffset } = this.selectionState;
|
27277
|
-
if (!this.documentEvent.startHitInfo || (startControl && !startControl.parent)) {
|
27277
|
+
if (!this.documentEvent.startHitInfo || !startControl || (startControl && !startControl.parent)) {
|
27278
27278
|
return { x: 0, y: 0, width: 0, height: 0 };
|
27279
27279
|
}
|
27280
27280
|
const { startRegion, hitDocIndex } = this.documentEvent.startHitInfo;
|
@@ -28307,7 +28307,7 @@ class DocEditor {
|
|
28307
28307
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28308
28308
|
}
|
28309
28309
|
version() {
|
28310
|
-
return "2.0.
|
28310
|
+
return "2.0.35";
|
28311
28311
|
}
|
28312
28312
|
}
|
28313
28313
|
|