@ones-editor/editor 2.2.21 → 2.2.22

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
@@ -74624,19 +74624,7 @@ ${content}
74624
74624
  const containerId = getContainerId(container);
74625
74625
  for (let i = 0; i < images.length; i++) {
74626
74626
  const image = images[i];
74627
- const block = await insertEmptyEmbedBlock(editor, "image", containerId, insertIndex + i, { file: image });
74628
- if (block) {
74629
- const commandData = {
74630
- block,
74631
- image
74632
- };
74633
- const item = {
74634
- id: "replace-image",
74635
- name: "Replace image",
74636
- data: commandData
74637
- };
74638
- executeEmbedBlockCommand(editor, block, "image", item);
74639
- }
74627
+ await insertEmptyEmbedBlock(editor, "image", containerId, insertIndex + i, { file: image });
74640
74628
  }
74641
74629
  }
74642
74630
  }
@@ -88495,7 +88483,7 @@ ${data2.flowchartText}
88495
88483
  }
88496
88484
  }
88497
88485
  });
88498
- editor.version = "2.2.21";
88486
+ editor.version = "2.2.22";
88499
88487
  return editor;
88500
88488
  }
88501
88489
  function isDoc(doc2) {
@@ -88590,7 +88578,7 @@ ${data2.flowchartText}
88590
88578
  });
88591
88579
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88592
88580
  OnesEditorToolbar.register(editor);
88593
- editor.version = "2.2.21";
88581
+ editor.version = "2.2.22";
88594
88582
  return editor;
88595
88583
  }
88596
88584
  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.21",
3
+ "version": "2.2.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",