@ones-editor/editor 2.8.37-beta.14 → 2.8.37-beta.16

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
@@ -64144,7 +64144,13 @@ $$${mathData.mathjaxText}$$
64144
64144
  const failedLoad = !!block.querySelector(".images > .image-container.error, .images > .image-container.empty ");
64145
64145
  const width = calImageBlockStyleWidth(editor, blockData, parentContainer, failedLoad);
64146
64146
  const height = calBlockHeight(editor, blockData, parentContainer, failedLoad);
64147
- if (height.startsWith("0")) {
64147
+ if (width.startsWith("0") && height.startsWith("0")) {
64148
+ const image = block.querySelector("img");
64149
+ if (image) {
64150
+ image.onload = () => {
64151
+ updateImageBlockSize(editor, blockData, blockElement, parentContainerElement);
64152
+ };
64153
+ }
64148
64154
  return;
64149
64155
  }
64150
64156
  const content = getBlockContent(block);
@@ -94882,7 +94888,7 @@ ${JSON.stringify(error2, null, 2)}`);
94882
94888
  }
94883
94889
  }
94884
94890
  });
94885
- editor.version = "2.8.37-beta.14";
94891
+ editor.version = "2.8.37-beta.16";
94886
94892
  return editor;
94887
94893
  }
94888
94894
  function isDoc(doc2) {
@@ -95015,7 +95021,7 @@ ${JSON.stringify(error2, null, 2)}`);
95015
95021
  OnesEditorDropTarget.register(editor);
95016
95022
  OnesEditorTocProvider.register(editor);
95017
95023
  OnesEditorExclusiveBlock.register(editor);
95018
- editor.version = "2.8.37-beta.14";
95024
+ editor.version = "2.8.37-beta.16";
95019
95025
  return editor;
95020
95026
  }
95021
95027
  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.8.37-beta.14",
3
+ "version": "2.8.37-beta.16",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {