@hailin-zheng/editor-core 1.1.9 → 1.1.10

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.js CHANGED
@@ -19014,6 +19014,8 @@ class SurfaceView extends NodeItems {
19014
19014
  }
19015
19015
  hiddenInput() {
19016
19016
  this.input.style.display = 'none';
19017
+ this.input.style.left = '0';
19018
+ this.input.style.top = '0';
19017
19019
  }
19018
19020
  endInput() {
19019
19021
  }
@@ -20461,6 +20463,10 @@ class CanvasTextEditor extends AbsolutePanel {
20461
20463
  * 文档点击事件
20462
20464
  */
20463
20465
  docClickHandle(evt) {
20466
+ const appCtx = getCurrentActiveAppContext();
20467
+ if (appCtx) {
20468
+ appCtx.root.hiddenInput();
20469
+ }
20464
20470
  this.setCursor();
20465
20471
  this.updateSelection();
20466
20472
  this.onClickEvent.next(evt);
@@ -21178,7 +21184,8 @@ class CanvasTextEditor extends AbsolutePanel {
21178
21184
  /**
21179
21185
  * 注册编辑器格式读取器
21180
21186
  */
21181
- registerReaderFactory(handler) { }
21187
+ registerReaderFactory(handler) {
21188
+ }
21182
21189
  }
21183
21190
 
21184
21191
  /**