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

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,9 +64144,6 @@ $$${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")) {
64148
- return;
64149
- }
64150
64147
  const content = getBlockContent(block);
64151
64148
  if (width === "auto") {
64152
64149
  content.style.width = width;
@@ -64158,7 +64155,11 @@ $$${mathData.mathjaxText}$$
64158
64155
  if (!container) {
64159
64156
  return;
64160
64157
  }
64161
- container.style.height = height || "none";
64158
+ if (height.startsWith("0")) {
64159
+ container.style.height = "none";
64160
+ } else {
64161
+ container.style.height = height || "none";
64162
+ }
64162
64163
  }
64163
64164
  function getContentTypeFromHeaders$2(headers) {
64164
64165
  let type;
@@ -94882,7 +94883,7 @@ ${JSON.stringify(error2, null, 2)}`);
94882
94883
  }
94883
94884
  }
94884
94885
  });
94885
- editor.version = "2.8.37-beta.14";
94886
+ editor.version = "2.8.37-beta.15";
94886
94887
  return editor;
94887
94888
  }
94888
94889
  function isDoc(doc2) {
@@ -95015,7 +95016,7 @@ ${JSON.stringify(error2, null, 2)}`);
95015
95016
  OnesEditorDropTarget.register(editor);
95016
95017
  OnesEditorTocProvider.register(editor);
95017
95018
  OnesEditorExclusiveBlock.register(editor);
95018
- editor.version = "2.8.37-beta.14";
95019
+ editor.version = "2.8.37-beta.15";
95019
95020
  return editor;
95020
95021
  }
95021
95022
  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.15",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {