jodit-pro-react 5.5.63 → 5.5.65

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-G4TUESYO.mjs";
3
+ } from "./chunk-YGPPQT4E.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.13.3";
196
+ APP_VERSION = "4.13.6";
197
197
  ES = "es2020";
198
198
  IS_ES_MODERN = true;
199
199
  IS_ES_NEXT = true;
@@ -4447,7 +4447,7 @@ function safeHTML(box, options2) {
4447
4447
  }
4448
4448
  const foreign = box.querySelectorAll("math *, svg *");
4449
4449
  for (let i54 = 0; i54 < foreign.length; i54++) {
4450
- if (foreign[i54].isConnected && isSmuggledForeignHtml(foreign[i54])) {
4450
+ if (box.contains(foreign[i54]) && isSmuggledForeignHtml(foreign[i54])) {
4451
4451
  Dom.safeRemove(foreign[i54]);
4452
4452
  }
4453
4453
  }
@@ -4517,7 +4517,8 @@ function sanitizeHTMLElement(elm, { safeJavaScriptLink, removeOnError } = {
4517
4517
  const tagName = elm.nodeName.toLowerCase();
4518
4518
  const href = elm.getAttribute("href");
4519
4519
  if (safeJavaScriptLink && href && isDangerousUrl(href, tagName)) {
4520
- attr(elm, "href", location.protocol + "//" + href);
4520
+ const protocol = typeof location !== "undefined" ? location.protocol : "http:";
4521
+ attr(elm, "href", protocol + "//" + href);
4521
4522
  effected = true;
4522
4523
  }
4523
4524
  if (safeJavaScriptLink) {
@@ -15968,7 +15969,8 @@ var ToolbarButton = class ToolbarButton2 extends UIButton {
15968
15969
  button2.classList.remove(cn);
15969
15970
  button2.classList.add(cn + "__button");
15970
15971
  Object.defineProperty(button2, "component", {
15971
- value: this
15972
+ value: this,
15973
+ configurable: true
15972
15974
  });
15973
15975
  container.appendChild(button2);
15974
15976
  const trigger = this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${cn}__trigger">${Icon.get("chevron")}</span>`);
@@ -20648,11 +20650,12 @@ function tryRemoveNode(jodit, nodeElm, hadEffect, allowTags, denyTags, currentSe
20648
20650
  }
20649
20651
  function isRemovableNode(jodit, node, current, allow, deny) {
20650
20652
  if (!Dom.isText(node)) {
20651
- if (allow && !allow[node.nodeName]) {
20653
+ const name = node.nodeName.toUpperCase();
20654
+ if (allow && !allow[name]) {
20652
20655
  return true;
20653
20656
  }
20654
- const isTrustedEmbed = node.nodeName === "IFRAME" && isAllowedMediaEmbed(attr(node, "src") || "");
20655
- if (!allow && deny && deny[node.nodeName] && !isTrustedEmbed) {
20657
+ const isTrustedEmbed = name === "IFRAME" && isAllowedMediaEmbed(attr(node, "src") || "");
20658
+ if (!allow && deny && deny[name] && !isTrustedEmbed) {
20656
20659
  return true;
20657
20660
  }
20658
20661
  }
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-G4TUESYO.mjs";
5
+ } from "./chunk-YGPPQT4E.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;