jodit-pro-react 5.5.63 → 5.5.64
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.
|
@@ -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.
|
|
196
|
+
APP_VERSION = "4.13.5";
|
|
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]
|
|
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
|
-
|
|
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) {
|