@ones-editor/editor 2.9.8-beta.31 → 2.9.8-beta.32

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
@@ -91925,7 +91925,7 @@ ${data2.plantumlText}
91925
91925
  }
91926
91926
  const href = link2.getAttribute("link") || link2.getAttribute("href");
91927
91927
  if (href) {
91928
- if (editor2.readonly || event.ctrlKey || event.metaKey) {
91928
+ if (editor2.readonly || event.ctrlKey || event.metaKey || !getParentBlock(link2)) {
91929
91929
  window.open(href, "_blank");
91930
91930
  }
91931
91931
  }
@@ -95493,7 +95493,7 @@ ${JSON.stringify(error2, null, 2)}`);
95493
95493
  }
95494
95494
  const href = link2.getAttribute("link") || link2.getAttribute("href");
95495
95495
  if (href) {
95496
- if (editor2.readonly || event.ctrlKey || event.metaKey) {
95496
+ if (editor2.readonly || event.ctrlKey || event.metaKey || !getParentBlock(link2)) {
95497
95497
  window.open(href, "_blank");
95498
95498
  }
95499
95499
  }
@@ -95524,7 +95524,7 @@ ${JSON.stringify(error2, null, 2)}`);
95524
95524
  }
95525
95525
  }
95526
95526
  });
95527
- editor.version = "2.9.8-beta.31";
95527
+ editor.version = "2.9.8-beta.32";
95528
95528
  return editor;
95529
95529
  }
95530
95530
  function isDoc(doc2) {
@@ -95647,7 +95647,7 @@ ${JSON.stringify(error2, null, 2)}`);
95647
95647
  }
95648
95648
  const href = link2.getAttribute("link") || link2.getAttribute("href");
95649
95649
  if (href) {
95650
- if (editor2.readonly || event.ctrlKey || event.metaKey) {
95650
+ if (editor2.readonly || event.ctrlKey || event.metaKey || !getParentBlock(link2)) {
95651
95651
  window.open(href, "_blank");
95652
95652
  }
95653
95653
  }
@@ -95656,7 +95656,7 @@ ${JSON.stringify(error2, null, 2)}`);
95656
95656
  OnesEditorDropTarget.register(editor);
95657
95657
  OnesEditorTocProvider.register(editor);
95658
95658
  OnesEditorExclusiveBlock.register(editor);
95659
- editor.version = "2.9.8-beta.31";
95659
+ editor.version = "2.9.8-beta.32";
95660
95660
  return editor;
95661
95661
  }
95662
95662
  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.31",
3
+ "version": "2.9.8-beta.32",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {