@ones-editor/editor 2.2.19 → 2.2.20

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
@@ -74584,7 +74584,12 @@ ${content}
74584
74584
  }
74585
74585
  const images = getImages(files);
74586
74586
  if (images.length > 0) {
74587
- if (!docs["text/office-html"]) {
74587
+ const officeHtml = docs["text/office-html"];
74588
+ let useOfficeHtml = !!officeHtml;
74589
+ if (officeHtml && officeHtml.blocks.root.length === 1 && officeHtml.blocks.root[0].embedType === "image") {
74590
+ useOfficeHtml = false;
74591
+ }
74592
+ if (!useOfficeHtml) {
74588
74593
  await this.handleInsertImages(editor, images);
74589
74594
  return true;
74590
74595
  }
@@ -88491,7 +88496,7 @@ ${data2.flowchartText}
88491
88496
  }
88492
88497
  }
88493
88498
  });
88494
- editor.version = "2.2.19";
88499
+ editor.version = "2.2.20";
88495
88500
  return editor;
88496
88501
  }
88497
88502
  function isDoc(doc2) {
@@ -88586,7 +88591,7 @@ ${data2.flowchartText}
88586
88591
  });
88587
88592
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88588
88593
  OnesEditorToolbar.register(editor);
88589
- editor.version = "2.2.19";
88594
+ editor.version = "2.2.20";
88590
88595
  return editor;
88591
88596
  }
88592
88597
  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.2.19",
3
+ "version": "2.2.20",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",