@hailin-zheng/editor-core 2.0.25 → 2.0.26
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 -3
- package/index-cjs.js.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +1 -1
- package/med_editor/framework/document-print-offscreen.d.ts +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -27199,7 +27199,7 @@ class DocEditor {
|
|
27199
27199
|
if (!this.canSetCursor() || !this.documentEvent.startHitInfo) {
|
27200
27200
|
this.selectionState.editable = false;
|
27201
27201
|
this.docCtx.selectionState.cursorPos = null;
|
27202
|
-
this.hiddenInput();
|
27202
|
+
this.hiddenInput(false);
|
27203
27203
|
return false;
|
27204
27204
|
}
|
27205
27205
|
const cursorRect = this.getCursorRect();
|
@@ -27231,12 +27231,12 @@ class DocEditor {
|
|
27231
27231
|
this.editInput.focus();
|
27232
27232
|
}
|
27233
27233
|
}
|
27234
|
-
hiddenInput() {
|
27234
|
+
hiddenInput(reset = true) {
|
27235
27235
|
//this.input.style.display = 'none';
|
27236
27236
|
this.editInput.style.left = '-2px';
|
27237
27237
|
this.editInput.style.top = '-2px';
|
27238
27238
|
this.editInput.readOnly = true;
|
27239
|
-
this.editInput.focus();
|
27239
|
+
!reset && this.editInput.focus();
|
27240
27240
|
}
|
27241
27241
|
/**
|
27242
27242
|
* 设置光标位置
|