jodit-pro-react 5.5.58 → 5.5.59
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.12.
|
|
196
|
+
APP_VERSION = "4.12.43";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -20128,6 +20128,13 @@ function getHash(tags) {
|
|
|
20128
20128
|
return false;
|
|
20129
20129
|
}
|
|
20130
20130
|
|
|
20131
|
+
// node_modules/jodit/esm/plugins/clean-html/helpers/is-allowed-media-embed.js
|
|
20132
|
+
var YOUTUBE_EMBED = /^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i;
|
|
20133
|
+
var VIMEO_EMBED = /^(https?:)?\/\/player\.vimeo\.com\/video\//i;
|
|
20134
|
+
function isAllowedMediaEmbed(src) {
|
|
20135
|
+
return YOUTUBE_EMBED.test(src) || VIMEO_EMBED.test(src);
|
|
20136
|
+
}
|
|
20137
|
+
|
|
20131
20138
|
// node_modules/jodit/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js
|
|
20132
20139
|
init_constants();
|
|
20133
20140
|
init_dom();
|
|
@@ -20396,6 +20403,9 @@ function sandboxIframesInContent(jodit, nodeElm, hadEffect) {
|
|
|
20396
20403
|
return hadEffect;
|
|
20397
20404
|
}
|
|
20398
20405
|
const elm = nodeElm;
|
|
20406
|
+
if (isAllowedMediaEmbed(attr(elm, "src") || "")) {
|
|
20407
|
+
return hadEffect;
|
|
20408
|
+
}
|
|
20399
20409
|
if (!elm.hasAttribute("sandbox")) {
|
|
20400
20410
|
attr(elm, "sandbox", "");
|
|
20401
20411
|
return true;
|
|
@@ -20484,6 +20494,7 @@ function filterStyleProperties(style, allowed) {
|
|
|
20484
20494
|
init_constants();
|
|
20485
20495
|
init_dom();
|
|
20486
20496
|
init_trim();
|
|
20497
|
+
init_attr();
|
|
20487
20498
|
function tryRemoveNode(jodit, nodeElm, hadEffect, allowTags, denyTags, currentSelectionNode) {
|
|
20488
20499
|
if (isRemovableNode(jodit, nodeElm, currentSelectionNode, allowTags, denyTags)) {
|
|
20489
20500
|
Dom.safeRemove(nodeElm);
|
|
@@ -20496,7 +20507,8 @@ function isRemovableNode(jodit, node, current, allow, deny) {
|
|
|
20496
20507
|
if (allow && !allow[node.nodeName]) {
|
|
20497
20508
|
return true;
|
|
20498
20509
|
}
|
|
20499
|
-
|
|
20510
|
+
const isTrustedEmbed = node.nodeName === "IFRAME" && isAllowedMediaEmbed(attr(node, "src") || "");
|
|
20511
|
+
if (!allow && deny && deny[node.nodeName] && !isTrustedEmbed) {
|
|
20500
20512
|
return true;
|
|
20501
20513
|
}
|
|
20502
20514
|
}
|
|
@@ -53288,6 +53300,7 @@ jodit/esm/plugins/bold/bold.js:
|
|
|
53288
53300
|
jodit/esm/plugins/class-span/class-span.js:
|
|
53289
53301
|
jodit/esm/plugins/clean-html/config.js:
|
|
53290
53302
|
jodit/esm/plugins/clean-html/helpers/get-hash.js:
|
|
53303
|
+
jodit/esm/plugins/clean-html/helpers/is-allowed-media-embed.js:
|
|
53291
53304
|
jodit/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js:
|
|
53292
53305
|
jodit/esm/plugins/clean-html/helpers/remove-format/remove-format-for-selection.js:
|
|
53293
53306
|
jodit/esm/plugins/clean-html/helpers/visitor/filters/allow-attributes.js:
|