jodit-pro-react 5.5.25 → 5.5.26

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JoditEditor_default
3
- } from "./chunk-K455EACZ.mjs";
3
+ } from "./chunk-A6NRBJVA.mjs";
4
4
  export {
5
5
  JoditEditor_default as default
6
6
  };
@@ -193,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
193
193
  var init_constants = __esm({
194
194
  "node_modules/jodit/esm/core/constants.js"() {
195
195
  "use strict";
196
- APP_VERSION = "4.12.5";
196
+ APP_VERSION = "4.12.7";
197
197
  ES = "es2020";
198
198
  IS_ES_MODERN = true;
199
199
  IS_ES_NEXT = true;
@@ -15180,8 +15180,16 @@ var Table = class _Table extends ViewComponent {
15180
15180
  }
15181
15181
  const nextRow = Dom.next(cell.parentNode, (elm) => Dom.isTag(elm, "tr"), table2);
15182
15182
  if (nextRow) {
15183
- if (box[rowIndex + 1][nextCell]) {
15184
- nextRow.insertBefore(cell, box[rowIndex + 1][nextCell]);
15183
+ let referenceCell = null;
15184
+ for (let nextColumn = nextCell; nextColumn < box[rowIndex + 1].length; nextColumn += 1) {
15185
+ const candidate = box[rowIndex + 1][nextColumn];
15186
+ if (candidate && candidate.parentNode === nextRow) {
15187
+ referenceCell = candidate;
15188
+ break;
15189
+ }
15190
+ }
15191
+ if (referenceCell) {
15192
+ nextRow.insertBefore(cell, referenceCell);
15185
15193
  } else {
15186
15194
  nextRow.appendChild(cell);
15187
15195
  }
@@ -23876,13 +23884,14 @@ init_config();
23876
23884
 
23877
23885
  // node_modules/jodit/esm/plugins/inline-popup/config/items/a.js
23878
23886
  init_attr();
23887
+ var isSafeHref = (href) => /^(https?:|mailto:|tel:)/i.test(href.trim()) && !/^(javascript:|data:|vbscript:)/i.test(href.trim());
23879
23888
  var a_default = [
23880
23889
  {
23881
23890
  name: "eye",
23882
23891
  tooltip: "Open link",
23883
23892
  exec: (editor, current) => {
23884
23893
  const href = attr(current, "href");
23885
- if (current && href) {
23894
+ if (current && href && isSafeHref(href)) {
23886
23895
  editor.ow.open(href);
23887
23896
  }
23888
23897
  }
@@ -33042,6 +33051,9 @@ function addClassNames(className, elm) {
33042
33051
  // node_modules/jodit/esm/plugins/speech-recognize/helpers/exec-spell-command.js
33043
33052
  function execSpellCommand(jodit, commandSentence) {
33044
33053
  const [command, value] = commandSentence.split("::");
33054
+ if (command.toLowerCase() === "open" && value && /^(javascript:|data:|vbscript:)/i.test(value.trim())) {
33055
+ return;
33056
+ }
33045
33057
  jodit.execCommand(command, null, value);
33046
33058
  }
33047
33059
 
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-K455EACZ.mjs";
5
+ } from "./chunk-A6NRBJVA.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;