@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 CHANGED
@@ -5062,7 +5062,6 @@ class SelectionState {
5062
5062
  this.clear();
5063
5063
  }
5064
5064
  clear() {
5065
- this.startHitInfo = null;
5066
5065
  this.rangeDirty = true;
5067
5066
  this.range = null;
5068
5067
  this.startOffset = -1;
@@ -27269,7 +27268,7 @@ class DocEditor {
27269
27268
  }
27270
27269
  getCursorRect() {
27271
27270
  try {
27272
- if (!this.selectionState.startHitInfo) {
27271
+ if (!this.selectionState.editable) {
27273
27272
  return { x: 0, y: 0, width: 0, height: 0 };
27274
27273
  }
27275
27274
  const { startControl, startOffset } = this.selectionState;
@@ -27288,7 +27287,7 @@ class DocEditor {
27288
27287
  */
27289
27288
  setCursorVisibility(visibility) {
27290
27289
  if (visibility) {
27291
- this.editInput.style.removeProperty('display');
27290
+ //this.editInput.style.removeProperty('display');
27292
27291
  this.editInput.focus();
27293
27292
  }
27294
27293
  }
@@ -27297,7 +27296,7 @@ class DocEditor {
27297
27296
  this.editInput.style.left = pos ? pos.x + 'px' : '-2px';
27298
27297
  this.editInput.style.top = pos ? pos.y + 'px' : '-2px';
27299
27298
  this.editInput.readOnly = true;
27300
- this.editInput.style.display = 'none';
27299
+ //this.editInput.style.display = 'none';
27301
27300
  !reset && this.editInput.focus();
27302
27301
  }
27303
27302
  /**