@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-cjs.js CHANGED
@@ -19043,6 +19043,8 @@ class SurfaceView extends NodeItems {
19043
19043
  }
19044
19044
  hiddenInput() {
19045
19045
  this.input.style.display = 'none';
19046
+ this.input.style.left = '0';
19047
+ this.input.style.top = '0';
19046
19048
  }
19047
19049
  endInput() {
19048
19050
  }
@@ -20490,6 +20492,10 @@ class CanvasTextEditor extends AbsolutePanel {
20490
20492
  * 文档点击事件
20491
20493
  */
20492
20494
  docClickHandle(evt) {
20495
+ const appCtx = getCurrentActiveAppContext();
20496
+ if (appCtx) {
20497
+ appCtx.root.hiddenInput();
20498
+ }
20493
20499
  this.setCursor();
20494
20500
  this.updateSelection();
20495
20501
  this.onClickEvent.next(evt);
@@ -21207,7 +21213,8 @@ class CanvasTextEditor extends AbsolutePanel {
21207
21213
  /**
21208
21214
  * 注册编辑器格式读取器
21209
21215
  */
21210
- registerReaderFactory(handler) { }
21216
+ registerReaderFactory(handler) {
21217
+ }
21211
21218
  }
21212
21219
 
21213
21220
  /**