@hailin-zheng/editor-core 2.0.31 → 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 +8 -4
- package/index-cjs.js.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5032,7 +5032,6 @@ class SelectionState {
|
|
5032
5032
|
this.clear();
|
5033
5033
|
}
|
5034
5034
|
clear() {
|
5035
|
-
this.startHitInfo = null;
|
5036
5035
|
this.rangeDirty = true;
|
5037
5036
|
this.range = null;
|
5038
5037
|
this.startOffset = -1;
|
@@ -27239,7 +27238,7 @@ class DocEditor {
|
|
27239
27238
|
}
|
27240
27239
|
getCursorRect() {
|
27241
27240
|
try {
|
27242
|
-
if (!this.
|
27241
|
+
if (!this.documentEvent.startHitInfo) {
|
27243
27242
|
return { x: 0, y: 0, width: 0, height: 0 };
|
27244
27243
|
}
|
27245
27244
|
const { startControl, startOffset } = this.selectionState;
|
@@ -27258,7 +27257,7 @@ class DocEditor {
|
|
27258
27257
|
*/
|
27259
27258
|
setCursorVisibility(visibility) {
|
27260
27259
|
if (visibility) {
|
27261
|
-
this.editInput.style.removeProperty('display');
|
27260
|
+
//this.editInput.style.removeProperty('display');
|
27262
27261
|
this.editInput.focus();
|
27263
27262
|
}
|
27264
27263
|
}
|
@@ -27267,7 +27266,8 @@ class DocEditor {
|
|
27267
27266
|
this.editInput.style.left = pos ? pos.x + 'px' : '-2px';
|
27268
27267
|
this.editInput.style.top = pos ? pos.y + 'px' : '-2px';
|
27269
27268
|
this.editInput.readOnly = true;
|
27270
|
-
this.editInput.style.
|
27269
|
+
this.editInput.style.width = "0";
|
27270
|
+
//this.editInput.style.display = 'none';
|
27271
27271
|
!reset && this.editInput.focus();
|
27272
27272
|
}
|
27273
27273
|
/**
|
@@ -27278,6 +27278,7 @@ class DocEditor {
|
|
27278
27278
|
this.editInput.style.left = position.x + 'px';
|
27279
27279
|
this.editInput.style.top = position.y + 'px';
|
27280
27280
|
this.editInput.style.height = position.height + 'px';
|
27281
|
+
this.editInput.style.width = "1px";
|
27281
27282
|
this.editInput.readOnly = false;
|
27282
27283
|
this.setCursorVisibility(true);
|
27283
27284
|
//this.setCursorInputStatus();
|
@@ -28270,6 +28271,9 @@ class DocEditor {
|
|
28270
28271
|
}
|
28271
28272
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28272
28273
|
}
|
28274
|
+
version() {
|
28275
|
+
return "2.0.33";
|
28276
|
+
}
|
28273
28277
|
}
|
28274
28278
|
|
28275
28279
|
/**
|