@ones-editor/editor 2.9.8-beta.3 → 2.9.8-beta.4

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/dist/index.js CHANGED
@@ -26352,9 +26352,10 @@ var __publicField = (obj, key, value) => {
26352
26352
  const y2 = rect.bottom > windowHeight ? windowHeight : rect.bottom;
26353
26353
  const centerX = (x1 + x2) / 2;
26354
26354
  const centerY = (y1 + y2) / 2;
26355
- const x = 0 - rect.left + centerX;
26356
- const y = 0 - rect.top + centerY + container.scrollTop;
26357
26355
  const input2 = editor.input.inputElement;
26356
+ const inputHeight = input2.getBoundingClientRect().height;
26357
+ const x = 0 - rect.left + centerX;
26358
+ const y = 0 - rect.top + centerY + container.scrollTop - inputHeight / 2;
26358
26359
  input2.style.left = `${x / scale}px`;
26359
26360
  input2.style.top = `${y / scale}px`;
26360
26361
  }
@@ -95007,7 +95008,7 @@ ${JSON.stringify(error2, null, 2)}`);
95007
95008
  }
95008
95009
  }
95009
95010
  });
95010
- editor.version = "2.9.8-beta.3";
95011
+ editor.version = "2.9.8-beta.4";
95011
95012
  return editor;
95012
95013
  }
95013
95014
  function isDoc(doc2) {
@@ -95139,7 +95140,7 @@ ${JSON.stringify(error2, null, 2)}`);
95139
95140
  OnesEditorDropTarget.register(editor);
95140
95141
  OnesEditorTocProvider.register(editor);
95141
95142
  OnesEditorExclusiveBlock.register(editor);
95142
- editor.version = "2.9.8-beta.3";
95143
+ editor.version = "2.9.8-beta.4";
95143
95144
  return editor;
95144
95145
  }
95145
95146
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.9.8-beta.3",
3
+ "version": "2.9.8-beta.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {