@hailin-zheng/editor-core 2.0.31 → 2.0.32
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 +3 -4
- package/index-cjs.js.map +1 -1
- package/index.js +3 -4
- package/index.js.map +1 -1
- 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.selectionState.
|
27241
|
+
if (!this.selectionState.editable) {
|
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,7 @@ 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.display = 'none';
|
27269
|
+
//this.editInput.style.display = 'none';
|
27271
27270
|
!reset && this.editInput.focus();
|
27272
27271
|
}
|
27273
27272
|
/**
|