@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.js
CHANGED
@@ -27169,7 +27169,7 @@ class DocEditor {
|
|
27169
27169
|
if (!this.canSetCursor() || !this.documentEvent.startHitInfo) {
|
27170
27170
|
this.selectionState.editable = false;
|
27171
27171
|
this.docCtx.selectionState.cursorPos = null;
|
27172
|
-
this.hiddenInput();
|
27172
|
+
this.hiddenInput(false);
|
27173
27173
|
return false;
|
27174
27174
|
}
|
27175
27175
|
const cursorRect = this.getCursorRect();
|
@@ -27201,12 +27201,12 @@ class DocEditor {
|
|
27201
27201
|
this.editInput.focus();
|
27202
27202
|
}
|
27203
27203
|
}
|
27204
|
-
hiddenInput() {
|
27204
|
+
hiddenInput(reset = true) {
|
27205
27205
|
//this.input.style.display = 'none';
|
27206
27206
|
this.editInput.style.left = '-2px';
|
27207
27207
|
this.editInput.style.top = '-2px';
|
27208
27208
|
this.editInput.readOnly = true;
|
27209
|
-
this.editInput.focus();
|
27209
|
+
!reset && this.editInput.focus();
|
27210
27210
|
}
|
27211
27211
|
/**
|
27212
27212
|
* 设置光标位置
|