@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.js
CHANGED
@@ -27238,7 +27238,7 @@ class DocEditor {
|
|
27238
27238
|
}
|
27239
27239
|
getCursorRect() {
|
27240
27240
|
try {
|
27241
|
-
if (!this.
|
27241
|
+
if (!this.documentEvent.startHitInfo) {
|
27242
27242
|
return { x: 0, y: 0, width: 0, height: 0 };
|
27243
27243
|
}
|
27244
27244
|
const { startControl, startOffset } = this.selectionState;
|
@@ -27266,6 +27266,7 @@ class DocEditor {
|
|
27266
27266
|
this.editInput.style.left = pos ? pos.x + 'px' : '-2px';
|
27267
27267
|
this.editInput.style.top = pos ? pos.y + 'px' : '-2px';
|
27268
27268
|
this.editInput.readOnly = true;
|
27269
|
+
this.editInput.style.width = "0";
|
27269
27270
|
//this.editInput.style.display = 'none';
|
27270
27271
|
!reset && this.editInput.focus();
|
27271
27272
|
}
|
@@ -27277,6 +27278,7 @@ class DocEditor {
|
|
27277
27278
|
this.editInput.style.left = position.x + 'px';
|
27278
27279
|
this.editInput.style.top = position.y + 'px';
|
27279
27280
|
this.editInput.style.height = position.height + 'px';
|
27281
|
+
this.editInput.style.width = "1px";
|
27280
27282
|
this.editInput.readOnly = false;
|
27281
27283
|
this.setCursorVisibility(true);
|
27282
27284
|
//this.setCursorInputStatus();
|
@@ -28269,6 +28271,9 @@ class DocEditor {
|
|
28269
28271
|
}
|
28270
28272
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28271
28273
|
}
|
28274
|
+
version() {
|
28275
|
+
return "2.0.33";
|
28276
|
+
}
|
28272
28277
|
}
|
28273
28278
|
|
28274
28279
|
/**
|