@hailin-zheng/editor-core 2.0.32 → 2.0.33
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 +6 -1
- package/index-cjs.js.map +1 -1
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +1 -0
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -27268,7 +27268,7 @@ class DocEditor {
|
|
27268
27268
|
}
|
27269
27269
|
getCursorRect() {
|
27270
27270
|
try {
|
27271
|
-
if (!this.
|
27271
|
+
if (!this.documentEvent.startHitInfo) {
|
27272
27272
|
return { x: 0, y: 0, width: 0, height: 0 };
|
27273
27273
|
}
|
27274
27274
|
const { startControl, startOffset } = this.selectionState;
|
@@ -27296,6 +27296,7 @@ class DocEditor {
|
|
27296
27296
|
this.editInput.style.left = pos ? pos.x + 'px' : '-2px';
|
27297
27297
|
this.editInput.style.top = pos ? pos.y + 'px' : '-2px';
|
27298
27298
|
this.editInput.readOnly = true;
|
27299
|
+
this.editInput.style.width = "0";
|
27299
27300
|
//this.editInput.style.display = 'none';
|
27300
27301
|
!reset && this.editInput.focus();
|
27301
27302
|
}
|
@@ -27307,6 +27308,7 @@ class DocEditor {
|
|
27307
27308
|
this.editInput.style.left = position.x + 'px';
|
27308
27309
|
this.editInput.style.top = position.y + 'px';
|
27309
27310
|
this.editInput.style.height = position.height + 'px';
|
27311
|
+
this.editInput.style.width = "1px";
|
27310
27312
|
this.editInput.readOnly = false;
|
27311
27313
|
this.setCursorVisibility(true);
|
27312
27314
|
//this.setCursorInputStatus();
|
@@ -28299,6 +28301,9 @@ class DocEditor {
|
|
28299
28301
|
}
|
28300
28302
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28301
28303
|
}
|
28304
|
+
version() {
|
28305
|
+
return "2.0.33";
|
28306
|
+
}
|
28302
28307
|
}
|
28303
28308
|
|
28304
28309
|
/**
|