jodit 4.2.27 → 4.2.33
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/.nvmrc +1 -1
- package/CHANGELOG.md +110 -5
- package/es2015/jodit.css +11 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +354 -243
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +25 -18
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.css +11 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +347 -236
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +25 -18
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +11 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +347 -236
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +25 -18
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +11 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +322 -230
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +25 -18
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/164.fat.min.js +10 -0
- package/es5/164.js +4939 -0
- package/es5/164.min.js +10 -0
- package/es5/5.fat.min.js +10 -0
- package/es5/5.js +76 -0
- package/es5/5.min.js +10 -0
- package/es5/jodit.css +12 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +777 -5685
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +26 -19
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/esm/config.js +3 -7
- package/esm/core/async/async.js +2 -1
- package/esm/core/constants.d.ts +2 -0
- package/esm/core/constants.js +10 -6
- package/esm/core/decorators/watch/watch.js +0 -1
- package/esm/core/dom/dom.js +2 -2
- package/esm/core/event-emitter/event-emitter.js +3 -3
- package/esm/core/global.js +13 -3
- package/esm/core/helpers/array/to-array.d.ts +1 -6
- package/esm/core/helpers/array/to-array.js +1 -1
- package/esm/core/helpers/async/set-timeout.d.ts +0 -3
- package/esm/core/helpers/async/set-timeout.js +3 -2
- package/esm/core/helpers/checker/has-browser-color-picker.d.ts +0 -3
- package/esm/core/helpers/checker/has-browser-color-picker.js +2 -1
- package/esm/core/helpers/checker/is-url.d.ts +0 -3
- package/esm/core/helpers/checker/is-url.js +2 -1
- package/esm/core/helpers/html/apply-styles.js +3 -3
- package/esm/core/helpers/html/clean-from-word.js +2 -1
- package/esm/core/helpers/html/htmlspecialchars.d.ts +0 -3
- package/esm/core/helpers/html/htmlspecialchars.js +2 -1
- package/esm/core/helpers/normalize/normalize-size.d.ts +1 -1
- package/esm/core/helpers/size/get-scroll-parent.js +3 -2
- package/esm/core/helpers/utils/complete-url.js +2 -1
- package/esm/core/helpers/utils/convert-media-url-to-video-embed.js +2 -1
- package/esm/core/helpers/utils/default-language.js +3 -2
- package/esm/core/helpers/utils/reset.js +3 -3
- package/esm/core/request/ajax.js +2 -1
- package/esm/core/selection/selection.js +1 -0
- package/esm/core/selection/style/api/has-same-style.js +15 -10
- package/esm/core/selection/style/api/toggle-attributes.js +2 -1
- package/esm/core/selection/style/commit-style.d.ts +1 -1
- package/esm/core/ui/form/inputs/file/file.d.ts +1 -0
- package/esm/core/ui/form/inputs/file/file.js +1 -0
- package/esm/core/ui/form/validators/input.d.ts +3 -3
- package/esm/core/ui/form/validators/select.d.ts +1 -1
- package/esm/jodit.js +3 -0
- package/esm/modules/file-browser/config.js +9 -1
- package/esm/modules/file-browser/data-provider.js +0 -1
- package/esm/modules/file-browser/file-browser.js +0 -1
- package/esm/modules/table/table.js +0 -1
- package/esm/modules/toolbar/button/button.d.ts +1 -1
- package/esm/plugins/backspace/cases/check-remove-char.js +1 -0
- package/esm/plugins/clean-html/config.d.ts +3 -3
- package/esm/plugins/iframe/config.d.ts +15 -3
- package/esm/plugins/iframe/config.js +1 -0
- package/esm/plugins/iframe/iframe.js +3 -0
- package/esm/plugins/indent/helpers.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/a.d.ts +2 -2
- package/esm/plugins/inline-popup/config/items/cells.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/img.d.ts +1 -1
- package/esm/plugins/search/config.js +2 -2
- package/esm/plugins/search/helpers/highlight-text-ranges.d.ts +2 -1
- package/esm/plugins/search/helpers/highlight-text-ranges.js +15 -4
- package/esm/plugins/search/search.d.ts +2 -2
- package/esm/plugins/search/search.js +8 -7
- package/esm/plugins/search/ui/search.js +3 -3
- package/esm/plugins/source/editor/engines/ace.d.ts +0 -1
- package/esm/plugins/speech-recognize/config.js +1 -1
- package/esm/plugins/speech-recognize/helpers/api.d.ts +1 -1
- package/esm/plugins/speech-recognize/helpers/api.js +5 -2
- package/esm/plugins/speech-recognize/helpers/sound.js +6 -4
- package/esm/plugins/stat/config.d.ts +1 -0
- package/esm/plugins/stat/config.js +1 -0
- package/esm/plugins/stat/stat.js +14 -3
- package/esm/plugins/symbols/langs/index.d.ts +2 -1
- package/esm/plugins/symbols/langs/index.js +2 -1
- package/esm/plugins/symbols/langs/ua.d.ts +1 -0
- package/esm/plugins/symbols/langs/ua.js +9 -0
- package/esm/polyfills.d.ts +10 -0
- package/esm/polyfills.js +54 -0
- package/esm/tsconfig.json +1 -1
- package/package.json +1 -1
- package/types/core/constants.d.ts +2 -0
- package/types/core/helpers/array/to-array.d.ts +1 -6
- package/types/core/helpers/async/set-timeout.d.ts +0 -3
- package/types/core/helpers/checker/has-browser-color-picker.d.ts +0 -3
- package/types/core/helpers/checker/is-url.d.ts +0 -3
- package/types/core/helpers/html/htmlspecialchars.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-size.d.ts +1 -1
- package/types/core/selection/style/commit-style.d.ts +1 -1
- package/types/core/ui/form/inputs/file/file.d.ts +1 -0
- package/types/core/ui/form/validators/input.d.ts +3 -3
- package/types/core/ui/form/validators/select.d.ts +1 -1
- package/types/modules/toolbar/button/button.d.ts +1 -1
- package/types/plugins/clean-html/config.d.ts +3 -3
- package/types/plugins/iframe/config.d.ts +15 -3
- package/types/plugins/indent/helpers.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/a.d.ts +2 -2
- package/types/plugins/inline-popup/config/items/cells.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/img.d.ts +1 -1
- package/types/plugins/search/helpers/highlight-text-ranges.d.ts +2 -1
- package/types/plugins/search/search.d.ts +2 -2
- package/types/plugins/source/editor/engines/ace.d.ts +0 -1
- package/types/plugins/speech-recognize/helpers/api.d.ts +1 -1
- package/types/plugins/stat/config.d.ts +1 -0
- package/types/plugins/symbols/langs/index.d.ts +2 -1
- package/types/plugins/symbols/langs/ua.d.ts +1 -0
- package/types/polyfills.d.ts +10 -0
- package/types/tsconfig.json +1 -1
package/es2018/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.2.
|
|
4
|
+
* Version: v4.2.33
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -247,16 +247,12 @@ class Config {
|
|
|
247
247
|
showPlaceholder: false
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
this.ownerDocument =
|
|
251
|
-
? document
|
|
252
|
-
: null);
|
|
250
|
+
this.ownerDocument = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
|
|
253
251
|
/**
|
|
254
252
|
* Allows you to specify the window in which the editor will be created. Default - window
|
|
255
253
|
* This is necessary if you are creating the editor inside an iframe but the code is running in the parent window
|
|
256
254
|
*/
|
|
257
|
-
this.ownerWindow =
|
|
258
|
-
? window
|
|
259
|
-
: null);
|
|
255
|
+
this.ownerWindow = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow;
|
|
260
256
|
/**
|
|
261
257
|
* Shadow root if Jodit was created in it
|
|
262
258
|
*
|
|
@@ -1030,16 +1026,16 @@ Config.prototype.controls = {};
|
|
|
1030
1026
|
/* harmony export */ j: function() { return /* binding */ Async; }
|
|
1031
1027
|
/* harmony export */ });
|
|
1032
1028
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
1033
|
-
/* harmony import */ var
|
|
1029
|
+
/* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89044);
|
|
1034
1030
|
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(99951);
|
|
1035
1031
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(69052);
|
|
1036
|
-
/* harmony import */ var
|
|
1032
|
+
/* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2461);
|
|
1037
1033
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(25376);
|
|
1038
1034
|
/* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92039);
|
|
1039
1035
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(98253);
|
|
1040
|
-
/* harmony import */ var
|
|
1041
|
-
/* harmony import */ var
|
|
1042
|
-
/* harmony import */ var
|
|
1036
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35642);
|
|
1037
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
1038
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
1043
1039
|
/* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21567);
|
|
1044
1040
|
/*!
|
|
1045
1041
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -1089,17 +1085,18 @@ class Async {
|
|
|
1089
1085
|
return 0;
|
|
1090
1086
|
}
|
|
1091
1087
|
let options = {};
|
|
1092
|
-
if ((0,
|
|
1088
|
+
if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(timeout)) {
|
|
1093
1089
|
timeout = 0;
|
|
1094
1090
|
}
|
|
1095
|
-
if (!(0,
|
|
1091
|
+
if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__/* .isNumber */ .E)(timeout)) {
|
|
1096
1092
|
options = timeout;
|
|
1097
1093
|
timeout = options.timeout || 0;
|
|
1098
1094
|
}
|
|
1099
1095
|
if (options.label) {
|
|
1100
1096
|
this.clearLabel(options.label);
|
|
1101
1097
|
}
|
|
1102
|
-
const timer = (0,
|
|
1098
|
+
const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .setTimeout */ .w)(callback, timeout, ...args);
|
|
1099
|
+
const key = options.label || timer;
|
|
1103
1100
|
this.timers.set(key, timer);
|
|
1104
1101
|
this.__callbacks.set(key, callback);
|
|
1105
1102
|
return timer;
|
|
@@ -1115,7 +1112,7 @@ class Async {
|
|
|
1115
1112
|
}
|
|
1116
1113
|
clearLabel(label) {
|
|
1117
1114
|
if (label && this.timers.has(label)) {
|
|
1118
|
-
(0,
|
|
1115
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(label));
|
|
1119
1116
|
this.timers.delete(label);
|
|
1120
1117
|
this.__callbacks.delete(label);
|
|
1121
1118
|
}
|
|
@@ -1124,7 +1121,7 @@ class Async {
|
|
|
1124
1121
|
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .K)(timerOrLabel)) {
|
|
1125
1122
|
return this.clearLabel(timerOrLabel);
|
|
1126
1123
|
}
|
|
1127
|
-
(0,
|
|
1124
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timerOrLabel);
|
|
1128
1125
|
this.timers.delete(timerOrLabel);
|
|
1129
1126
|
this.__callbacks.delete(timerOrLabel);
|
|
1130
1127
|
}
|
|
@@ -1166,7 +1163,7 @@ class Async {
|
|
|
1166
1163
|
if (!timer && firstCallImmediately) {
|
|
1167
1164
|
callFn(...args);
|
|
1168
1165
|
}
|
|
1169
|
-
(0,
|
|
1166
|
+
(0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timer);
|
|
1170
1167
|
timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .T)(timeout) ? timeout() : timeout);
|
|
1171
1168
|
this.timers.set(fn, timer);
|
|
1172
1169
|
}
|
|
@@ -1320,7 +1317,7 @@ class Async {
|
|
|
1320
1317
|
clear() {
|
|
1321
1318
|
this.requestsIdle.forEach(key => this.cancelIdleCallback(key));
|
|
1322
1319
|
this.requestsRaf.forEach(key => this.cancelAnimationFrame(key));
|
|
1323
|
-
this.timers.forEach(key => (0,
|
|
1320
|
+
this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(key)));
|
|
1324
1321
|
this.timers.clear();
|
|
1325
1322
|
this.promisesRejections.forEach(reject => reject());
|
|
1326
1323
|
this.promisesRejections.clear();
|
|
@@ -1729,6 +1726,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1729
1726
|
/* harmony export */ TEXT_PLAIN: function() { return /* binding */ TEXT_PLAIN; },
|
|
1730
1727
|
/* harmony export */ TEXT_RTF: function() { return /* binding */ TEXT_RTF; },
|
|
1731
1728
|
/* harmony export */ TOKENS: function() { return /* binding */ TOKENS; },
|
|
1729
|
+
/* harmony export */ globalDocument: function() { return /* binding */ globalDocument; },
|
|
1730
|
+
/* harmony export */ globalWindow: function() { return /* binding */ globalWindow; },
|
|
1732
1731
|
/* harmony export */ lang: function() { return /* binding */ lang; }
|
|
1733
1732
|
/* harmony export */ });
|
|
1734
1733
|
/*!
|
|
@@ -1736,7 +1735,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1736
1735
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1737
1736
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1738
1737
|
*/
|
|
1739
|
-
const APP_VERSION = "4.2.
|
|
1738
|
+
const APP_VERSION = "4.2.33";
|
|
1740
1739
|
// prettier-ignore
|
|
1741
1740
|
const ES = "es2018";
|
|
1742
1741
|
const IS_ES_MODERN = true;
|
|
@@ -1755,6 +1754,10 @@ const INVISIBLE_SPACE_REG_EXP_START = () => /^[\uFEFF]+/g;
|
|
|
1755
1754
|
const SPACE_REG_EXP = () => /[\s\n\t\r\uFEFF\u200b]+/g;
|
|
1756
1755
|
const SPACE_REG_EXP_START = () => /^[\s\n\t\r\uFEFF\u200b]+/g;
|
|
1757
1756
|
const SPACE_REG_EXP_END = () => /[\s\n\t\r\uFEFF\u200b]+$/g;
|
|
1757
|
+
const globalWindow = typeof window !== 'undefined' ? window : undefined;
|
|
1758
|
+
const globalDocument = typeof document !== 'undefined'
|
|
1759
|
+
? document
|
|
1760
|
+
: undefined;
|
|
1758
1761
|
const IS_BLOCK = /^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i;
|
|
1759
1762
|
const IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
|
|
1760
1763
|
const LIST_TAGS = new Set(['ul', 'ol']);
|
|
@@ -1879,8 +1882,8 @@ const INSERT_AS_TEXT = 'insert_as_text';
|
|
|
1879
1882
|
*/
|
|
1880
1883
|
const INSERT_ONLY_TEXT = 'insert_only_text';
|
|
1881
1884
|
const SAFE_COUNT_CHANGE_CALL = 10;
|
|
1882
|
-
const IS_MAC = typeof
|
|
1883
|
-
/Mac|iPod|iPhone|iPad/.test(
|
|
1885
|
+
const IS_MAC = typeof globalWindow !== 'undefined' &&
|
|
1886
|
+
/Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
|
|
1884
1887
|
const KEY_ALIASES = {
|
|
1885
1888
|
add: '+',
|
|
1886
1889
|
break: 'pause',
|
|
@@ -1908,7 +1911,7 @@ const BASE_PATH = (() => {
|
|
|
1908
1911
|
if (typeof document === 'undefined') {
|
|
1909
1912
|
return '';
|
|
1910
1913
|
}
|
|
1911
|
-
const script =
|
|
1914
|
+
const script = globalDocument.currentScript, removeScriptName = (s) => {
|
|
1912
1915
|
const parts = s.split('/');
|
|
1913
1916
|
if (/\.js/.test(parts[parts.length - 1])) {
|
|
1914
1917
|
return parts.slice(0, parts.length - 1).join('/') + '/';
|
|
@@ -1918,11 +1921,11 @@ const BASE_PATH = (() => {
|
|
|
1918
1921
|
if (script) {
|
|
1919
1922
|
return removeScriptName(script.src);
|
|
1920
1923
|
}
|
|
1921
|
-
const scripts =
|
|
1924
|
+
const scripts = globalDocument.querySelectorAll('script[src]');
|
|
1922
1925
|
if (scripts && scripts.length) {
|
|
1923
1926
|
return removeScriptName(scripts[scripts.length - 1].src);
|
|
1924
1927
|
}
|
|
1925
|
-
return
|
|
1928
|
+
return globalWindow.location.href;
|
|
1926
1929
|
})();
|
|
1927
1930
|
const TEMP_ATTR = 'data-jodit-temp';
|
|
1928
1931
|
const lang = {};
|
|
@@ -2670,7 +2673,6 @@ function watch(observeFields, opts) {
|
|
|
2670
2673
|
const [objectPath, eventName] = field.split(':');
|
|
2671
2674
|
let ctx = context;
|
|
2672
2675
|
if (objectPath.length) {
|
|
2673
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
2674
2676
|
ctx = component.get(objectPath);
|
|
2675
2677
|
}
|
|
2676
2678
|
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__/* .isFunction */ .T)(ctx)) {
|
|
@@ -3335,7 +3337,7 @@ class Dom {
|
|
|
3335
3337
|
* Move all content to another element
|
|
3336
3338
|
*/
|
|
3337
3339
|
static moveContent(from, to, inStart = false, filter = () => true) {
|
|
3338
|
-
const fragment = (from.ownerDocument ||
|
|
3340
|
+
const fragment = (from.ownerDocument || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument).createDocumentFragment();
|
|
3339
3341
|
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(from.childNodes)
|
|
3340
3342
|
.filter(elm => {
|
|
3341
3343
|
if (filter(elm)) {
|
|
@@ -3796,7 +3798,7 @@ class EventEmitter {
|
|
|
3796
3798
|
passive: true,
|
|
3797
3799
|
capture: (_a = options === null || options === void 0 ? void 0 : options.capture) !== null && _a !== void 0 ? _a : false
|
|
3798
3800
|
}
|
|
3799
|
-
: (_b = options === null || options === void 0 ? void 0 : options.capture) !== null && _b !== void 0 ? _b : false;
|
|
3801
|
+
: ((_b = options === null || options === void 0 ? void 0 : options.capture) !== null && _b !== void 0 ? _b : false);
|
|
3800
3802
|
syntheticCallback.options = eOpts;
|
|
3801
3803
|
subject.addEventListener(event, syntheticCallback, eOpts);
|
|
3802
3804
|
this.__memoryDOMSubjectToHandler(subject, syntheticCallback);
|
|
@@ -4028,7 +4030,7 @@ class EventEmitter {
|
|
|
4028
4030
|
this.__domEventsMap = new Map();
|
|
4029
4031
|
this.__mutedEvents = new Set();
|
|
4030
4032
|
this.__key = '__JoditEventEmitterNamespaces';
|
|
4031
|
-
this.__doc =
|
|
4033
|
+
this.__doc = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
|
|
4032
4034
|
this.__prepareEvent = (e) => {
|
|
4033
4035
|
if (e.cancelBubble) {
|
|
4034
4036
|
return;
|
|
@@ -4525,9 +4527,19 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
|
|
|
4525
4527
|
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
|
|
4526
4528
|
if (!data[key]) {
|
|
4527
4529
|
let c = view.c;
|
|
4528
|
-
let body
|
|
4529
|
-
|
|
4530
|
-
|
|
4530
|
+
let body;
|
|
4531
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot) {
|
|
4532
|
+
body = jodit.o.shadowRoot;
|
|
4533
|
+
}
|
|
4534
|
+
else {
|
|
4535
|
+
body = jodit.od.body;
|
|
4536
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit)) {
|
|
4537
|
+
const dialog = _dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.closest(jodit.container, 'dialog', jodit.od.body);
|
|
4538
|
+
if (dialog) {
|
|
4539
|
+
body = dialog;
|
|
4540
|
+
}
|
|
4541
|
+
}
|
|
4542
|
+
}
|
|
4531
4543
|
if (createInsideEditor &&
|
|
4532
4544
|
(0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) &&
|
|
4533
4545
|
jodit.od !== jodit.ed) {
|
|
@@ -4682,7 +4694,7 @@ const toArray = function toArray(...args) {
|
|
|
4682
4694
|
var _a;
|
|
4683
4695
|
const func = (0,jodit_core_helpers_checker_is_native_function__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from)
|
|
4684
4696
|
? Array.from
|
|
4685
|
-
: (_a = (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from')) !== null && _a !== void 0 ? _a : Array.from;
|
|
4697
|
+
: ((_a = (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from')) !== null && _a !== void 0 ? _a : Array.from);
|
|
4686
4698
|
return func.apply(Array, args);
|
|
4687
4699
|
};
|
|
4688
4700
|
|
|
@@ -4719,6 +4731,7 @@ const toArray = function toArray(...args) {
|
|
|
4719
4731
|
/* harmony export */ D: function() { return /* binding */ clearTimeout; },
|
|
4720
4732
|
/* harmony export */ w: function() { return /* binding */ setTimeout; }
|
|
4721
4733
|
/* harmony export */ });
|
|
4734
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
4722
4735
|
/*!
|
|
4723
4736
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4724
4737
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4727,6 +4740,7 @@ const toArray = function toArray(...args) {
|
|
|
4727
4740
|
/**
|
|
4728
4741
|
* @module helpers/async
|
|
4729
4742
|
*/
|
|
4743
|
+
|
|
4730
4744
|
/**
|
|
4731
4745
|
* Create async callback if set timeout value - else call function immediately
|
|
4732
4746
|
*/
|
|
@@ -4735,7 +4749,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
4735
4749
|
callback.call(null, ...args);
|
|
4736
4750
|
}
|
|
4737
4751
|
else {
|
|
4738
|
-
return
|
|
4752
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.setTimeout(callback, timeout, ...args);
|
|
4739
4753
|
}
|
|
4740
4754
|
return 0;
|
|
4741
4755
|
}
|
|
@@ -4743,7 +4757,7 @@ function setTimeout(callback, timeout, ...args) {
|
|
|
4743
4757
|
* Clear timeout
|
|
4744
4758
|
*/
|
|
4745
4759
|
function clearTimeout(timer) {
|
|
4746
|
-
|
|
4760
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.clearTimeout(timer);
|
|
4747
4761
|
}
|
|
4748
4762
|
|
|
4749
4763
|
|
|
@@ -4756,6 +4770,7 @@ function clearTimeout(timer) {
|
|
|
4756
4770
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4757
4771
|
/* harmony export */ k: function() { return /* binding */ hasBrowserColorPicker; }
|
|
4758
4772
|
/* harmony export */ });
|
|
4773
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
4759
4774
|
/*!
|
|
4760
4775
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4761
4776
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4764,13 +4779,14 @@ function clearTimeout(timer) {
|
|
|
4764
4779
|
/**
|
|
4765
4780
|
* @module helpers/checker
|
|
4766
4781
|
*/
|
|
4782
|
+
|
|
4767
4783
|
/**
|
|
4768
4784
|
* Check if browser has a color picker (a new HTML5 attribute for input tag)
|
|
4769
4785
|
*/
|
|
4770
4786
|
function hasBrowserColorPicker() {
|
|
4771
4787
|
let supportsColor = true;
|
|
4772
4788
|
try {
|
|
4773
|
-
const a =
|
|
4789
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
|
|
4774
4790
|
a.type = 'color';
|
|
4775
4791
|
a.value = '!';
|
|
4776
4792
|
supportsColor = a.type === 'color' && a.value !== '!';
|
|
@@ -5420,6 +5436,7 @@ function isStringArray(value) {
|
|
|
5420
5436
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5421
5437
|
/* harmony export */ m: function() { return /* binding */ isURL; }
|
|
5422
5438
|
/* harmony export */ });
|
|
5439
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
5423
5440
|
/*!
|
|
5424
5441
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5425
5442
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5428,6 +5445,7 @@ function isStringArray(value) {
|
|
|
5428
5445
|
/**
|
|
5429
5446
|
* @module helpers/checker
|
|
5430
5447
|
*/
|
|
5448
|
+
|
|
5431
5449
|
/**
|
|
5432
5450
|
* Check if a string is an url
|
|
5433
5451
|
*/
|
|
@@ -5444,7 +5462,7 @@ function isURL(str) {
|
|
|
5444
5462
|
return false;
|
|
5445
5463
|
}
|
|
5446
5464
|
}
|
|
5447
|
-
const a =
|
|
5465
|
+
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
|
|
5448
5466
|
a.href = str;
|
|
5449
5467
|
return Boolean(a.hostname);
|
|
5450
5468
|
}
|
|
@@ -5679,9 +5697,9 @@ function applyStyles(html) {
|
|
|
5679
5697
|
}
|
|
5680
5698
|
html = html.substring(html.indexOf('<html '), html.length);
|
|
5681
5699
|
html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
|
|
5682
|
-
const iframe =
|
|
5700
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
5683
5701
|
iframe.style.display = 'none';
|
|
5684
|
-
|
|
5702
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
5685
5703
|
let convertedString = '', collection = [];
|
|
5686
5704
|
try {
|
|
5687
5705
|
const iframeDoc = iframe.contentDocument ||
|
|
@@ -5752,9 +5770,10 @@ function applyStyles(html) {
|
|
|
5752
5770
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5753
5771
|
/* harmony export */ w: function() { return /* binding */ cleanFromWord; }
|
|
5754
5772
|
/* harmony export */ });
|
|
5755
|
-
/* harmony import */ var
|
|
5756
|
-
/* harmony import */ var
|
|
5757
|
-
/* harmony import */ var
|
|
5773
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
5774
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
|
|
5775
|
+
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42448);
|
|
5776
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(59101);
|
|
5758
5777
|
/*!
|
|
5759
5778
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5760
5779
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5766,6 +5785,7 @@ function applyStyles(html) {
|
|
|
5766
5785
|
|
|
5767
5786
|
|
|
5768
5787
|
|
|
5788
|
+
|
|
5769
5789
|
/**
|
|
5770
5790
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
5771
5791
|
* content that matches the look and feel of the site.
|
|
@@ -5777,11 +5797,11 @@ function cleanFromWord(html) {
|
|
|
5777
5797
|
}
|
|
5778
5798
|
let convertedString = '';
|
|
5779
5799
|
try {
|
|
5780
|
-
const div =
|
|
5800
|
+
const div = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
5781
5801
|
div.innerHTML = html;
|
|
5782
5802
|
const marks = [];
|
|
5783
5803
|
if (div.firstChild) {
|
|
5784
|
-
|
|
5804
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.each(div, node => {
|
|
5785
5805
|
if (!node) {
|
|
5786
5806
|
return;
|
|
5787
5807
|
}
|
|
@@ -5796,10 +5816,10 @@ function cleanFromWord(html) {
|
|
|
5796
5816
|
case 'W:SDT':
|
|
5797
5817
|
case 'W:SDTPR':
|
|
5798
5818
|
case 'FONT':
|
|
5799
|
-
|
|
5819
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(node);
|
|
5800
5820
|
break;
|
|
5801
5821
|
default:
|
|
5802
|
-
(0,
|
|
5822
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(node.attributes).forEach((attr) => {
|
|
5803
5823
|
if ([
|
|
5804
5824
|
'src',
|
|
5805
5825
|
'href',
|
|
@@ -5818,14 +5838,14 @@ function cleanFromWord(html) {
|
|
|
5818
5838
|
}
|
|
5819
5839
|
});
|
|
5820
5840
|
}
|
|
5821
|
-
|
|
5841
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove.apply(null, marks);
|
|
5822
5842
|
convertedString = div.innerHTML;
|
|
5823
5843
|
}
|
|
5824
5844
|
catch (e) { }
|
|
5825
5845
|
if (convertedString) {
|
|
5826
5846
|
html = convertedString;
|
|
5827
5847
|
}
|
|
5828
|
-
html = html.split(/(\n)/).filter(
|
|
5848
|
+
html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq).join('\n');
|
|
5829
5849
|
return html
|
|
5830
5850
|
.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
|
|
5831
5851
|
.replace(/<!--[^>]*>/g, '');
|
|
@@ -5841,6 +5861,7 @@ function cleanFromWord(html) {
|
|
|
5841
5861
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5842
5862
|
/* harmony export */ G: function() { return /* binding */ htmlspecialchars; }
|
|
5843
5863
|
/* harmony export */ });
|
|
5864
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
5844
5865
|
/*!
|
|
5845
5866
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
5846
5867
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -5849,11 +5870,12 @@ function cleanFromWord(html) {
|
|
|
5849
5870
|
/**
|
|
5850
5871
|
* @module helpers/html
|
|
5851
5872
|
*/
|
|
5873
|
+
|
|
5852
5874
|
/**
|
|
5853
5875
|
* Convert special characters to HTML entities
|
|
5854
5876
|
*/
|
|
5855
5877
|
function htmlspecialchars(html) {
|
|
5856
|
-
const tmp =
|
|
5878
|
+
const tmp = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
5857
5879
|
tmp.textContent = html;
|
|
5858
5880
|
return tmp.innerHTML;
|
|
5859
5881
|
}
|
|
@@ -6574,8 +6596,9 @@ const getContentWidth = (element, win) => {
|
|
|
6574
6596
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6575
6597
|
/* harmony export */ m: function() { return /* binding */ getScrollParent; }
|
|
6576
6598
|
/* harmony export */ });
|
|
6577
|
-
/* harmony import */ var
|
|
6578
|
-
/* harmony import */ var
|
|
6599
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
6600
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
|
|
6601
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97369);
|
|
6579
6602
|
/*!
|
|
6580
6603
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6581
6604
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6583,19 +6606,20 @@ const getContentWidth = (element, win) => {
|
|
|
6583
6606
|
*/
|
|
6584
6607
|
|
|
6585
6608
|
|
|
6609
|
+
|
|
6586
6610
|
function getScrollParent(node) {
|
|
6587
6611
|
if (!node) {
|
|
6588
6612
|
return null;
|
|
6589
6613
|
}
|
|
6590
|
-
const isElement =
|
|
6591
|
-
const overflowY = isElement && (0,
|
|
6614
|
+
const isElement = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(node);
|
|
6615
|
+
const overflowY = isElement && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__.css)(node, 'overflowY');
|
|
6592
6616
|
const isScrollable = isElement && overflowY !== 'visible' && overflowY !== 'hidden';
|
|
6593
6617
|
if (isScrollable && node.scrollHeight >= node.clientHeight) {
|
|
6594
6618
|
return node;
|
|
6595
6619
|
}
|
|
6596
6620
|
return (getScrollParent(node.parentNode) ||
|
|
6597
|
-
|
|
6598
|
-
|
|
6621
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.scrollingElement ||
|
|
6622
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body);
|
|
6599
6623
|
}
|
|
6600
6624
|
|
|
6601
6625
|
|
|
@@ -7520,16 +7544,18 @@ const buildQuery = (data, prefix) => {
|
|
|
7520
7544
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7521
7545
|
/* harmony export */ X: function() { return /* binding */ completeUrl; }
|
|
7522
7546
|
/* harmony export */ });
|
|
7547
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
7523
7548
|
/*!
|
|
7524
7549
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7525
7550
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
7526
7551
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
7527
7552
|
*/
|
|
7553
|
+
|
|
7528
7554
|
/**
|
|
7529
7555
|
* @module helpers/utils
|
|
7530
7556
|
*/
|
|
7531
7557
|
const completeUrl = (url) => {
|
|
7532
|
-
if (
|
|
7558
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
|
|
7533
7559
|
url = 'https:' + url;
|
|
7534
7560
|
}
|
|
7535
7561
|
return url;
|
|
@@ -7646,8 +7672,9 @@ function ConfigFlatten(obj) {
|
|
|
7646
7672
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7647
7673
|
/* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
|
|
7648
7674
|
/* harmony export */ });
|
|
7649
|
-
/* harmony import */ var
|
|
7650
|
-
/* harmony import */ var
|
|
7675
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
7676
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6939);
|
|
7677
|
+
/* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70807);
|
|
7651
7678
|
/*!
|
|
7652
7679
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7653
7680
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7658,14 +7685,15 @@ function ConfigFlatten(obj) {
|
|
|
7658
7685
|
*/
|
|
7659
7686
|
|
|
7660
7687
|
|
|
7688
|
+
|
|
7661
7689
|
/**
|
|
7662
7690
|
* Javascript url pattern converter replace youtube/vimeo url in embed code.
|
|
7663
7691
|
*/
|
|
7664
7692
|
const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
7665
|
-
if (!(0,
|
|
7693
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
|
|
7666
7694
|
return url;
|
|
7667
7695
|
}
|
|
7668
|
-
const parser =
|
|
7696
|
+
const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
|
|
7669
7697
|
parser.href = url;
|
|
7670
7698
|
if (!width) {
|
|
7671
7699
|
width = 400;
|
|
@@ -7691,7 +7719,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
|
|
|
7691
7719
|
case 'youtu.be':
|
|
7692
7720
|
case 'www.youtu.be': {
|
|
7693
7721
|
const query = parser.search
|
|
7694
|
-
? (0,
|
|
7722
|
+
? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
|
|
7695
7723
|
: { v: parser.pathname.substr(1) };
|
|
7696
7724
|
return query.v
|
|
7697
7725
|
? '<iframe width="' +
|
|
@@ -7885,7 +7913,8 @@ const dataBind = (elm, key, value) => {
|
|
|
7885
7913
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7886
7914
|
/* harmony export */ e: function() { return /* binding */ defaultLanguage; }
|
|
7887
7915
|
/* harmony export */ });
|
|
7888
|
-
/* harmony import */ var
|
|
7916
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
7917
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98253);
|
|
7889
7918
|
/*!
|
|
7890
7919
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7891
7920
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7895,15 +7924,16 @@ const dataBind = (elm, key, value) => {
|
|
|
7895
7924
|
* @module helpers/utils
|
|
7896
7925
|
*/
|
|
7897
7926
|
|
|
7927
|
+
|
|
7898
7928
|
/**
|
|
7899
7929
|
* Try define user language
|
|
7900
7930
|
*/
|
|
7901
7931
|
const defaultLanguage = (language, defaultLanguage = 'en') => {
|
|
7902
|
-
if (language !== 'auto' && (0,
|
|
7932
|
+
if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
|
|
7903
7933
|
return language;
|
|
7904
7934
|
}
|
|
7905
|
-
if (
|
|
7906
|
-
return
|
|
7935
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang) {
|
|
7936
|
+
return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang;
|
|
7907
7937
|
}
|
|
7908
7938
|
if (navigator.language) {
|
|
7909
7939
|
return navigator.language.substring(0, 2);
|
|
@@ -8657,10 +8687,10 @@ const map = {};
|
|
|
8657
8687
|
function reset(key) {
|
|
8658
8688
|
var _a, _b;
|
|
8659
8689
|
if (!(key in map)) {
|
|
8660
|
-
const iframe =
|
|
8690
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
8661
8691
|
try {
|
|
8662
8692
|
iframe.src = 'about:blank';
|
|
8663
|
-
|
|
8693
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
|
|
8664
8694
|
if (!iframe.contentWindow) {
|
|
8665
8695
|
return null;
|
|
8666
8696
|
}
|
|
@@ -9589,14 +9619,15 @@ Plugin.requires = [];
|
|
|
9589
9619
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9590
9620
|
/* harmony export */ d: function() { return /* binding */ Ajax; }
|
|
9591
9621
|
/* harmony export */ });
|
|
9592
|
-
/* harmony import */ var
|
|
9622
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
|
|
9593
9623
|
/* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64890);
|
|
9594
|
-
/* harmony import */ var
|
|
9595
|
-
/* harmony import */ var
|
|
9596
|
-
/* harmony import */ var
|
|
9597
|
-
/* harmony import */ var
|
|
9598
|
-
/* harmony import */ var
|
|
9599
|
-
/* harmony import */ var
|
|
9624
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
|
|
9625
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26318);
|
|
9626
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
|
|
9627
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50156);
|
|
9628
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
|
|
9629
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27337);
|
|
9630
|
+
/* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91672);
|
|
9600
9631
|
/*!
|
|
9601
9632
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9602
9633
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9610,33 +9641,34 @@ Plugin.requires = [];
|
|
|
9610
9641
|
|
|
9611
9642
|
|
|
9612
9643
|
|
|
9644
|
+
|
|
9613
9645
|
class Ajax {
|
|
9614
9646
|
className() {
|
|
9615
9647
|
return 'Ajax';
|
|
9616
9648
|
}
|
|
9617
|
-
constructor(options, defaultAjaxOptions =
|
|
9649
|
+
constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
|
|
9618
9650
|
this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
|
|
9619
9651
|
this.__isFulfilled = false;
|
|
9620
9652
|
this.__activated = false;
|
|
9621
9653
|
this.__isDestructed = false;
|
|
9622
|
-
this.options = (0,
|
|
9654
|
+
this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
|
|
9623
9655
|
this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
|
|
9624
9656
|
}
|
|
9625
9657
|
__buildParams(obj, prefix) {
|
|
9626
|
-
if ((0,
|
|
9658
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
|
|
9627
9659
|
this.options.contentType &&
|
|
9628
9660
|
this.options.contentType.includes('application/json')) {
|
|
9629
9661
|
return JSON.stringify(obj);
|
|
9630
9662
|
}
|
|
9631
|
-
if ((0,
|
|
9663
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
|
|
9632
9664
|
return this.o.queryBuild.call(this, obj, prefix);
|
|
9633
9665
|
}
|
|
9634
|
-
if ((0,
|
|
9635
|
-
obj instanceof
|
|
9636
|
-
(typeof obj === 'object' && obj != null && (0,
|
|
9666
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(obj) ||
|
|
9667
|
+
obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.globalWindow.FormData ||
|
|
9668
|
+
(typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(obj.append))) {
|
|
9637
9669
|
return obj;
|
|
9638
9670
|
}
|
|
9639
|
-
return (0,
|
|
9671
|
+
return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
|
|
9640
9672
|
}
|
|
9641
9673
|
get o() {
|
|
9642
9674
|
return this.options;
|
|
@@ -9660,16 +9692,16 @@ class Ajax {
|
|
|
9660
9692
|
var _a;
|
|
9661
9693
|
const onReject = () => {
|
|
9662
9694
|
this.__isFulfilled = true;
|
|
9663
|
-
reject(
|
|
9695
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
|
|
9664
9696
|
};
|
|
9665
9697
|
const onResolve = () => {
|
|
9666
9698
|
this.__isFulfilled = true;
|
|
9667
|
-
resolve(new
|
|
9699
|
+
resolve(new _response__WEBPACK_IMPORTED_MODULE_6__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
|
|
9668
9700
|
};
|
|
9669
9701
|
xhr.onload = onResolve;
|
|
9670
9702
|
xhr.onabort = () => {
|
|
9671
9703
|
this.__isFulfilled = true;
|
|
9672
|
-
reject(
|
|
9704
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
|
|
9673
9705
|
};
|
|
9674
9706
|
xhr.onerror = onReject;
|
|
9675
9707
|
xhr.ontimeout = onReject;
|
|
@@ -9693,7 +9725,7 @@ class Ajax {
|
|
|
9693
9725
|
}
|
|
9694
9726
|
else if (xhr.statusText) {
|
|
9695
9727
|
this.__isFulfilled = true;
|
|
9696
|
-
reject(
|
|
9728
|
+
reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
|
|
9697
9729
|
}
|
|
9698
9730
|
}
|
|
9699
9731
|
};
|
|
@@ -9704,7 +9736,7 @@ class Ajax {
|
|
|
9704
9736
|
xhr.setRequestHeader('Content-type', o.contentType);
|
|
9705
9737
|
}
|
|
9706
9738
|
let { headers } = o;
|
|
9707
|
-
if ((0,
|
|
9739
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
|
|
9708
9740
|
headers = await headers.call(this);
|
|
9709
9741
|
}
|
|
9710
9742
|
if (headers && xhr.setRequestHeader) {
|
|
@@ -9720,22 +9752,22 @@ class Ajax {
|
|
|
9720
9752
|
}
|
|
9721
9753
|
prepareRequest() {
|
|
9722
9754
|
if (!this.o.url) {
|
|
9723
|
-
throw
|
|
9755
|
+
throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
|
|
9724
9756
|
}
|
|
9725
9757
|
let url = this.o.url;
|
|
9726
9758
|
const data = this.o.data;
|
|
9727
9759
|
const method = (this.o.method || 'get').toLowerCase();
|
|
9728
|
-
if (method === 'get' && data && (0,
|
|
9760
|
+
if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
|
|
9729
9761
|
const qIndex = url.indexOf('?');
|
|
9730
9762
|
if (qIndex !== -1) {
|
|
9731
|
-
const urlData = (0,
|
|
9763
|
+
const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
|
|
9732
9764
|
url =
|
|
9733
9765
|
url.substring(0, qIndex) +
|
|
9734
9766
|
'?' +
|
|
9735
|
-
(0,
|
|
9767
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)({ ...urlData, ...data });
|
|
9736
9768
|
}
|
|
9737
9769
|
else {
|
|
9738
|
-
url += '?' + (0,
|
|
9770
|
+
url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
|
|
9739
9771
|
}
|
|
9740
9772
|
}
|
|
9741
9773
|
const request = {
|
|
@@ -9759,8 +9791,8 @@ class Ajax {
|
|
|
9759
9791
|
}
|
|
9760
9792
|
}
|
|
9761
9793
|
Ajax.log = [];
|
|
9762
|
-
(0,
|
|
9763
|
-
|
|
9794
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
9795
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
|
|
9764
9796
|
], Ajax.prototype, "destruct", null);
|
|
9765
9797
|
|
|
9766
9798
|
|
|
@@ -10649,6 +10681,7 @@ class Selection {
|
|
|
10649
10681
|
/**
|
|
10650
10682
|
* Call callback for all selection node
|
|
10651
10683
|
*/
|
|
10684
|
+
// eslint-disable-next-line complexity
|
|
10652
10685
|
eachSelection(callback) {
|
|
10653
10686
|
var _a;
|
|
10654
10687
|
const sel = this.sel;
|
|
@@ -11433,12 +11466,13 @@ function getSuitParent(style, node, root) {
|
|
|
11433
11466
|
/* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
|
|
11434
11467
|
/* harmony export */ g: function() { return /* binding */ hasSameStyle; }
|
|
11435
11468
|
/* harmony export */ });
|
|
11436
|
-
/* harmony import */ var
|
|
11437
|
-
/* harmony import */ var
|
|
11438
|
-
/* harmony import */ var
|
|
11439
|
-
/* harmony import */ var
|
|
11440
|
-
/* harmony import */ var
|
|
11441
|
-
/* harmony import */ var
|
|
11469
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
11470
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
|
|
11471
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35642);
|
|
11472
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(59678);
|
|
11473
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
11474
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
11475
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38322);
|
|
11442
11476
|
/*!
|
|
11443
11477
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
11444
11478
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -11449,48 +11483,53 @@ function getSuitParent(style, node, root) {
|
|
|
11449
11483
|
|
|
11450
11484
|
|
|
11451
11485
|
|
|
11486
|
+
|
|
11452
11487
|
/**
|
|
11453
11488
|
* Element has the same styles as in the commit
|
|
11454
11489
|
* @private
|
|
11455
11490
|
*/
|
|
11456
11491
|
function hasSameStyle(elm, rules) {
|
|
11457
|
-
return Boolean(!
|
|
11458
|
-
|
|
11492
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
11493
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
11459
11494
|
Object.keys(rules).every(property => {
|
|
11460
|
-
const value = (0,
|
|
11495
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
11461
11496
|
if (value === '' &&
|
|
11462
11497
|
(rules[property] === '' || rules[property] == null)) {
|
|
11463
11498
|
return true;
|
|
11464
11499
|
}
|
|
11465
|
-
return (!(0,
|
|
11500
|
+
return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
|
|
11466
11501
|
value !== '' &&
|
|
11467
|
-
!(0,
|
|
11468
|
-
(0,
|
|
11502
|
+
!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(rules[property]) &&
|
|
11503
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__/* .normalizeCssValue */ .iy)(property, rules[property])
|
|
11469
11504
|
.toString()
|
|
11470
11505
|
.toLowerCase() === value.toString().toLowerCase());
|
|
11471
11506
|
}));
|
|
11472
11507
|
}
|
|
11473
|
-
|
|
11474
|
-
elm
|
|
11475
|
-
|
|
11476
|
-
void 0;
|
|
11477
|
-
void 0;
|
|
11508
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
11509
|
+
const elm = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
11510
|
+
elm.style.color = 'red';
|
|
11511
|
+
void 0;
|
|
11512
|
+
void 0;
|
|
11513
|
+
void 0;
|
|
11514
|
+
}
|
|
11478
11515
|
/**
|
|
11479
11516
|
* Element has the similar styles keys
|
|
11480
11517
|
*/
|
|
11481
11518
|
function hasSameStyleKeys(elm, rules) {
|
|
11482
|
-
return Boolean(!
|
|
11483
|
-
|
|
11519
|
+
return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
|
|
11520
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
|
|
11484
11521
|
Object.keys(rules).every(property => {
|
|
11485
|
-
const value = (0,
|
|
11522
|
+
const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
|
|
11486
11523
|
return value !== '';
|
|
11487
11524
|
}));
|
|
11488
11525
|
}
|
|
11489
|
-
|
|
11490
|
-
elm2
|
|
11491
|
-
|
|
11492
|
-
void 0;
|
|
11493
|
-
void 0;
|
|
11526
|
+
if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
11527
|
+
const elm2 = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
|
|
11528
|
+
elm2.style.color = 'red';
|
|
11529
|
+
void 0;
|
|
11530
|
+
void 0;
|
|
11531
|
+
void 0;
|
|
11532
|
+
}
|
|
11494
11533
|
|
|
11495
11534
|
|
|
11496
11535
|
/***/ }),
|
|
@@ -11873,16 +11912,17 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
11873
11912
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11874
11913
|
/* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
|
|
11875
11914
|
/* harmony export */ });
|
|
11876
|
-
/* harmony import */ var
|
|
11877
|
-
/* harmony import */ var
|
|
11878
|
-
/* harmony import */ var
|
|
11879
|
-
/* harmony import */ var
|
|
11880
|
-
/* harmony import */ var
|
|
11881
|
-
/* harmony import */ var
|
|
11882
|
-
/* harmony import */ var
|
|
11883
|
-
/* harmony import */ var
|
|
11884
|
-
/* harmony import */ var
|
|
11885
|
-
/* harmony import */ var
|
|
11915
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
11916
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
|
|
11917
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56298);
|
|
11918
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9823);
|
|
11919
|
+
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59678);
|
|
11920
|
+
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95350);
|
|
11921
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(449);
|
|
11922
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97369);
|
|
11923
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38322);
|
|
11924
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(72197);
|
|
11925
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(12043);
|
|
11886
11926
|
/*!
|
|
11887
11927
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
11888
11928
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -11898,6 +11938,7 @@ function wrapList(commitStyle, wrapper, jodit) {
|
|
|
11898
11938
|
|
|
11899
11939
|
|
|
11900
11940
|
|
|
11941
|
+
|
|
11901
11942
|
const tak = 'toggleAttributes';
|
|
11902
11943
|
/**
|
|
11903
11944
|
* Toggles attributes
|
|
@@ -11909,7 +11950,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
11909
11950
|
}
|
|
11910
11951
|
!dry && commitStyle.setApplied(elm, tak);
|
|
11911
11952
|
const { attributes } = commitStyle.options;
|
|
11912
|
-
if (attributes && (0,
|
|
11953
|
+
if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
|
|
11913
11954
|
Object.keys(attributes).forEach((key) => {
|
|
11914
11955
|
const value = attributes[key];
|
|
11915
11956
|
switch (key) {
|
|
@@ -11931,24 +11972,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
|
|
|
11931
11972
|
function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
11932
11973
|
void 0;
|
|
11933
11974
|
Object.keys(style).forEach((rule) => {
|
|
11934
|
-
const inlineValue = elm.style.getPropertyValue((0,
|
|
11975
|
+
const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__/* .kebabCase */ .k)(rule));
|
|
11935
11976
|
const newValue = style[rule];
|
|
11936
11977
|
if (inlineValue === '' && newValue == null) {
|
|
11937
11978
|
return;
|
|
11938
11979
|
}
|
|
11939
11980
|
if (getNativeCSSValue(jodit, elm, rule) ===
|
|
11940
|
-
(0,
|
|
11981
|
+
(0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
|
|
11941
11982
|
if (!inlineValue) {
|
|
11942
11983
|
return;
|
|
11943
11984
|
}
|
|
11944
|
-
!dry && (0,
|
|
11945
|
-
mode =
|
|
11985
|
+
!dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, null);
|
|
11986
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
11946
11987
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
11947
11988
|
return;
|
|
11948
11989
|
}
|
|
11949
|
-
mode =
|
|
11990
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
11950
11991
|
if (!dry) {
|
|
11951
|
-
(0,
|
|
11992
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
|
|
11952
11993
|
mode = removeExtraStyleAttribute(commitStyle, elm, mode);
|
|
11953
11994
|
}
|
|
11954
11995
|
});
|
|
@@ -11956,19 +11997,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
|
|
|
11956
11997
|
}
|
|
11957
11998
|
function toggleClass(jodit, value, elm, mode, dry) {
|
|
11958
11999
|
void 0;
|
|
11959
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
12000
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
11960
12001
|
if (elm.classList.contains(value.toString())) {
|
|
11961
|
-
mode =
|
|
12002
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
11962
12003
|
if (!dry) {
|
|
11963
12004
|
elm.classList.remove(value);
|
|
11964
12005
|
if (elm.classList.length === 0) {
|
|
11965
|
-
(0,
|
|
12006
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
|
|
11966
12007
|
hook(mode, elm, 'class', null);
|
|
11967
12008
|
}
|
|
11968
12009
|
}
|
|
11969
12010
|
}
|
|
11970
12011
|
else {
|
|
11971
|
-
mode =
|
|
12012
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
11972
12013
|
if (!dry) {
|
|
11973
12014
|
elm.classList.add(value);
|
|
11974
12015
|
hook(mode, elm, 'class', value);
|
|
@@ -11978,16 +12019,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
|
|
|
11978
12019
|
}
|
|
11979
12020
|
function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
11980
12021
|
void 0;
|
|
11981
|
-
const hook = jodit.e.fire.bind(jodit.e, `${
|
|
11982
|
-
if ((0,
|
|
11983
|
-
!dry && (0,
|
|
11984
|
-
mode =
|
|
12022
|
+
const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
|
|
12023
|
+
if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key) === value) {
|
|
12024
|
+
!dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, null);
|
|
12025
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
|
|
11985
12026
|
!dry && hook(mode, elm, key, value);
|
|
11986
12027
|
return mode;
|
|
11987
12028
|
}
|
|
11988
|
-
mode =
|
|
12029
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
|
|
11989
12030
|
if (!dry) {
|
|
11990
|
-
(0,
|
|
12031
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
|
|
11991
12032
|
hook(mode, elm, key, value);
|
|
11992
12033
|
}
|
|
11993
12034
|
return mode;
|
|
@@ -11997,11 +12038,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
|
11997
12038
|
* and if it is default, it removes the element itself
|
|
11998
12039
|
*/
|
|
11999
12040
|
function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
12000
|
-
if (!(0,
|
|
12001
|
-
(0,
|
|
12041
|
+
if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style')) {
|
|
12042
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style', null);
|
|
12002
12043
|
if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
|
|
12003
|
-
|
|
12004
|
-
mode =
|
|
12044
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(elm);
|
|
12045
|
+
mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNWRAP */ .OJ;
|
|
12005
12046
|
}
|
|
12006
12047
|
}
|
|
12007
12048
|
return mode;
|
|
@@ -12011,12 +12052,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
|
|
|
12011
12052
|
*/
|
|
12012
12053
|
function getShadowRoot(jodit) {
|
|
12013
12054
|
var _a;
|
|
12014
|
-
if ((0,
|
|
12015
|
-
return (0,
|
|
12055
|
+
if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
|
|
12056
|
+
return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
|
|
12016
12057
|
}
|
|
12017
|
-
const container = (0,
|
|
12018
|
-
const iframe =
|
|
12019
|
-
(0,
|
|
12058
|
+
const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(jodit);
|
|
12059
|
+
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
12060
|
+
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(iframe, {
|
|
12020
12061
|
width: 0,
|
|
12021
12062
|
height: 0,
|
|
12022
12063
|
position: 'absolute',
|
|
@@ -12026,7 +12067,7 @@ function getShadowRoot(jodit) {
|
|
|
12026
12067
|
container.appendChild(iframe);
|
|
12027
12068
|
const doc = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document;
|
|
12028
12069
|
const shadowRoot = !doc ? jodit.od.body : doc.body;
|
|
12029
|
-
(0,
|
|
12070
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
|
|
12030
12071
|
return shadowRoot;
|
|
12031
12072
|
}
|
|
12032
12073
|
/**
|
|
@@ -12037,8 +12078,8 @@ function getNativeCSSValue(jodit, elm, key) {
|
|
|
12037
12078
|
newElm.style.cssText = elm.style.cssText;
|
|
12038
12079
|
const root = getShadowRoot(jodit);
|
|
12039
12080
|
root.appendChild(newElm);
|
|
12040
|
-
const result = (0,
|
|
12041
|
-
|
|
12081
|
+
const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(newElm, key);
|
|
12082
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(newElm);
|
|
12042
12083
|
return result;
|
|
12043
12084
|
}
|
|
12044
12085
|
|
|
@@ -14074,6 +14115,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
|
|
|
14074
14115
|
}
|
|
14075
14116
|
createContainer(options) {
|
|
14076
14117
|
this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
|
|
14118
|
+
tooltip: options.tooltip,
|
|
14077
14119
|
icon: {
|
|
14078
14120
|
name: 'plus'
|
|
14079
14121
|
}
|
|
@@ -14513,8 +14555,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14513
14555
|
/* harmony export */ required: function() { return /* binding */ required; },
|
|
14514
14556
|
/* harmony export */ url: function() { return /* binding */ url; }
|
|
14515
14557
|
/* harmony export */ });
|
|
14516
|
-
/* harmony import */ var
|
|
14517
|
-
/* harmony import */ var
|
|
14558
|
+
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6939);
|
|
14559
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59101);
|
|
14518
14560
|
/*!
|
|
14519
14561
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
14520
14562
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -14526,7 +14568,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14526
14568
|
* Input is required
|
|
14527
14569
|
*/
|
|
14528
14570
|
const required = function (input) {
|
|
14529
|
-
if (!(0,
|
|
14571
|
+
if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
|
|
14530
14572
|
input.error = 'Please fill out this field';
|
|
14531
14573
|
return false;
|
|
14532
14574
|
}
|
|
@@ -14536,7 +14578,7 @@ const required = function (input) {
|
|
|
14536
14578
|
* Input value should be valid URL
|
|
14537
14579
|
*/
|
|
14538
14580
|
const url = function (input) {
|
|
14539
|
-
if (!(0,
|
|
14581
|
+
if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__/* .isURL */ .m)((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value))) {
|
|
14540
14582
|
input.error = 'Please enter a web address';
|
|
14541
14583
|
return false;
|
|
14542
14584
|
}
|
|
@@ -17096,6 +17138,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
17096
17138
|
}
|
|
17097
17139
|
}
|
|
17098
17140
|
catch (e) {
|
|
17141
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
17142
|
+
throw e;
|
|
17143
|
+
}
|
|
17099
17144
|
this.destruct();
|
|
17100
17145
|
throw e;
|
|
17101
17146
|
}
|
|
@@ -19089,10 +19134,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
|
|
|
19089
19134
|
jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
|
|
19090
19135
|
upload: {
|
|
19091
19136
|
icon: 'plus',
|
|
19137
|
+
tooltip: 'Upload file',
|
|
19092
19138
|
isInput: true,
|
|
19093
19139
|
isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
|
|
19094
|
-
getContent: (filebrowser) => {
|
|
19140
|
+
getContent: (filebrowser, btnInt) => {
|
|
19095
19141
|
const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
|
|
19142
|
+
tooltip: btnInt.control.tooltip,
|
|
19096
19143
|
onlyImages: filebrowser.state.onlyImages
|
|
19097
19144
|
});
|
|
19098
19145
|
filebrowser.e.fire('bindUploader.filebrowser', btn.container);
|
|
@@ -19101,6 +19148,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19101
19148
|
},
|
|
19102
19149
|
remove: {
|
|
19103
19150
|
icon: 'bin',
|
|
19151
|
+
tooltip: 'Remove file',
|
|
19104
19152
|
isDisabled: (browser) => {
|
|
19105
19153
|
return (!browser.state.activeElements.length ||
|
|
19106
19154
|
!browser.dataProvider.canI('FileRemove'));
|
|
@@ -19110,11 +19158,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19110
19158
|
}
|
|
19111
19159
|
},
|
|
19112
19160
|
update: {
|
|
19161
|
+
tooltip: 'Update file list',
|
|
19113
19162
|
exec: (editor) => {
|
|
19114
19163
|
editor.e.fire('update.filebrowser');
|
|
19115
19164
|
}
|
|
19116
19165
|
},
|
|
19117
19166
|
select: {
|
|
19167
|
+
tooltip: 'Select file',
|
|
19118
19168
|
icon: 'check',
|
|
19119
19169
|
isDisabled: (browser) => !browser.state.activeElements.length,
|
|
19120
19170
|
exec: (editor) => {
|
|
@@ -19122,6 +19172,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19122
19172
|
}
|
|
19123
19173
|
},
|
|
19124
19174
|
edit: {
|
|
19175
|
+
tooltip: 'Edit image',
|
|
19125
19176
|
icon: 'pencil',
|
|
19126
19177
|
isDisabled: (browser) => {
|
|
19127
19178
|
const selected = browser.state.activeElements;
|
|
@@ -19135,6 +19186,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19135
19186
|
}
|
|
19136
19187
|
},
|
|
19137
19188
|
tiles: {
|
|
19189
|
+
tooltip: 'Tiles view',
|
|
19138
19190
|
icon: 'th',
|
|
19139
19191
|
isActive: (filebrowser) => filebrowser.state.view === 'tiles',
|
|
19140
19192
|
exec: (filebrowser) => {
|
|
@@ -19142,6 +19194,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
|
|
|
19142
19194
|
}
|
|
19143
19195
|
},
|
|
19144
19196
|
list: {
|
|
19197
|
+
tooltip: 'List view',
|
|
19145
19198
|
icon: 'th-list',
|
|
19146
19199
|
isActive: (filebrowser) => filebrowser.state.view === 'list',
|
|
19147
19200
|
exec: (filebrowser) => {
|
|
@@ -19558,7 +19611,6 @@ let DataProvider = class DataProvider {
|
|
|
19558
19611
|
data: {}
|
|
19559
19612
|
};
|
|
19560
19613
|
}
|
|
19561
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
19562
19614
|
const query = this.o[type];
|
|
19563
19615
|
if (query.data === undefined) {
|
|
19564
19616
|
query.data = {
|
|
@@ -19804,7 +19856,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
|
|
|
19804
19856
|
get dataProvider() {
|
|
19805
19857
|
return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
|
|
19806
19858
|
}
|
|
19807
|
-
// eslint-disable-next-line no-unused-vars
|
|
19808
19859
|
onSelect(callback) {
|
|
19809
19860
|
return () => {
|
|
19810
19861
|
if (this.state.activeElements.length) {
|
|
@@ -22326,7 +22377,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
|
|
|
22326
22377
|
const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
|
|
22327
22378
|
selector && selectors.push(selector);
|
|
22328
22379
|
});
|
|
22329
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
22330
22380
|
style.innerHTML = selectors.length
|
|
22331
22381
|
? selectors.join(',') +
|
|
22332
22382
|
`{${this.jodit.options.table.selectionCellStyle}}`
|
|
@@ -26142,6 +26192,7 @@ function checkNotCollapsed(jodit) {
|
|
|
26142
26192
|
* ```
|
|
26143
26193
|
* @private
|
|
26144
26194
|
*/
|
|
26195
|
+
// eslint-disable-next-line complexity
|
|
26145
26196
|
function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
26146
26197
|
var _a, _b;
|
|
26147
26198
|
const step = backspace ? -1 : 1;
|
|
@@ -30953,6 +31004,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
|
|
|
30953
31004
|
'-ms-user-select: none' +
|
|
30954
31005
|
'}';
|
|
30955
31006
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
|
|
31007
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
|
|
30956
31008
|
|
|
30957
31009
|
|
|
30958
31010
|
/***/ }),
|
|
@@ -31029,6 +31081,9 @@ function iframe(editor) {
|
|
|
31029
31081
|
iframe.setAttribute('allowtransparency', 'true');
|
|
31030
31082
|
iframe.setAttribute('tabindex', opt.tabIndex.toString());
|
|
31031
31083
|
iframe.setAttribute('frameborder', '0');
|
|
31084
|
+
if (opt.iframeSandbox != null) {
|
|
31085
|
+
iframe.setAttribute('sandbox', opt.iframeSandbox);
|
|
31086
|
+
}
|
|
31032
31087
|
editor.workplace.appendChild(iframe);
|
|
31033
31088
|
editor.iframe = iframe;
|
|
31034
31089
|
const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
|
|
@@ -36807,13 +36862,13 @@ function generateCriticalCSS(jodit) {
|
|
|
36807
36862
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
36808
36863
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71842);
|
|
36809
36864
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56298);
|
|
36810
|
-
/* harmony import */ var
|
|
36811
|
-
/* harmony import */ var
|
|
36812
|
-
/* harmony import */ var
|
|
36813
|
-
/* harmony import */ var
|
|
36814
|
-
/* harmony import */ var
|
|
36815
|
-
/* harmony import */ var
|
|
36816
|
-
/* harmony import */ var
|
|
36865
|
+
/* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17527);
|
|
36866
|
+
/* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98434);
|
|
36867
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(931);
|
|
36868
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
|
|
36869
|
+
/* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11131);
|
|
36870
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59827);
|
|
36871
|
+
/* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
36817
36872
|
/*!
|
|
36818
36873
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
36819
36874
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -36828,8 +36883,8 @@ function generateCriticalCSS(jodit) {
|
|
|
36828
36883
|
|
|
36829
36884
|
|
|
36830
36885
|
|
|
36831
|
-
|
|
36832
|
-
|
|
36886
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
36887
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.print = {
|
|
36833
36888
|
exec: (editor) => {
|
|
36834
36889
|
const iframe = editor.create.element('iframe');
|
|
36835
36890
|
Object.assign(iframe.style, {
|
|
@@ -36840,7 +36895,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
36840
36895
|
height: 0,
|
|
36841
36896
|
border: 0
|
|
36842
36897
|
});
|
|
36843
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor,
|
|
36898
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T).appendChild(iframe);
|
|
36844
36899
|
const afterFinishPrint = () => {
|
|
36845
36900
|
editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
|
|
36846
36901
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
|
|
@@ -36856,12 +36911,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
|
|
|
36856
36911
|
}
|
|
36857
36912
|
else {
|
|
36858
36913
|
myWindow.document.write('<!doctype html><html lang="' +
|
|
36859
|
-
(0,
|
|
36914
|
+
(0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
|
|
36860
36915
|
'"><head><title></title></head><style>' +
|
|
36861
|
-
(0,
|
|
36916
|
+
(0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
|
|
36862
36917
|
'</style><body></body></html>');
|
|
36863
36918
|
myWindow.document.close();
|
|
36864
|
-
(0,
|
|
36919
|
+
(0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
|
|
36865
36920
|
}
|
|
36866
36921
|
const style = myWindow.document.createElement('style');
|
|
36867
36922
|
style.innerHTML = `@media print {
|
|
@@ -37937,10 +37992,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
37937
37992
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
37938
37993
|
|
|
37939
37994
|
"use strict";
|
|
37940
|
-
/* harmony import */ var
|
|
37941
|
-
/* harmony import */ var
|
|
37942
|
-
/* harmony import */ var
|
|
37943
|
-
/* harmony import */ var
|
|
37995
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
37996
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
|
|
37997
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
|
|
37998
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21917);
|
|
37999
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
37944
38000
|
/*!
|
|
37945
38001
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37946
38002
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37950,14 +38006,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
|
|
|
37950
38006
|
|
|
37951
38007
|
|
|
37952
38008
|
|
|
37953
|
-
|
|
37954
|
-
|
|
38009
|
+
|
|
38010
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
|
|
38011
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
|
|
37955
38012
|
lazyIdleTimeout: 0,
|
|
37956
|
-
|
|
37957
|
-
useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
|
|
38013
|
+
useCustomHighlightAPI: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined'
|
|
37958
38014
|
};
|
|
37959
|
-
|
|
37960
|
-
|
|
38015
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_3___default()));
|
|
38016
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
|
|
37961
38017
|
tooltip: 'Find',
|
|
37962
38018
|
icon: 'search',
|
|
37963
38019
|
exec(jodit, _, { control }) {
|
|
@@ -37998,8 +38054,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
37998
38054
|
/* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
|
|
37999
38055
|
/* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
|
|
38000
38056
|
/* harmony export */ });
|
|
38001
|
-
/* harmony
|
|
38002
|
-
/* harmony import */ var
|
|
38057
|
+
/* unused harmony export clearNativeSelection */
|
|
38058
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
|
|
38059
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
|
|
38060
|
+
/* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58720);
|
|
38003
38061
|
/*!
|
|
38004
38062
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38005
38063
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38007,6 +38065,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
|
|
|
38007
38065
|
*/
|
|
38008
38066
|
|
|
38009
38067
|
|
|
38068
|
+
|
|
38010
38069
|
/**
|
|
38011
38070
|
* @private
|
|
38012
38071
|
*/
|
|
@@ -38025,15 +38084,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38025
38084
|
const span = ci.element('span', {
|
|
38026
38085
|
[TMP_ATTR]: true
|
|
38027
38086
|
});
|
|
38028
|
-
|
|
38087
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
|
|
38029
38088
|
normalizeRanges(rng, restRanges, ci);
|
|
38030
38089
|
let next = rng.startContainer;
|
|
38031
38090
|
do {
|
|
38032
38091
|
if (!next) {
|
|
38033
38092
|
break;
|
|
38034
38093
|
}
|
|
38035
|
-
if (
|
|
38036
|
-
|
|
38094
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
|
|
38095
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
|
|
38037
38096
|
}
|
|
38038
38097
|
if (next === rng.endContainer) {
|
|
38039
38098
|
break;
|
|
@@ -38052,13 +38111,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
|
|
|
38052
38111
|
* @private
|
|
38053
38112
|
*/
|
|
38054
38113
|
function getSelectionWrappers(root) {
|
|
38055
|
-
return (0,
|
|
38114
|
+
return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
|
|
38056
38115
|
}
|
|
38057
38116
|
/**
|
|
38058
38117
|
* @private
|
|
38059
38118
|
*/
|
|
38060
|
-
function clearSelectionWrappers(
|
|
38061
|
-
getSelectionWrappers(
|
|
38119
|
+
function clearSelectionWrappers(jodit) {
|
|
38120
|
+
getSelectionWrappers(jodit.editor).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
|
|
38121
|
+
clearNativeSelection(jodit);
|
|
38062
38122
|
}
|
|
38063
38123
|
/**
|
|
38064
38124
|
* @private
|
|
@@ -38070,19 +38130,19 @@ function clearSelectionWrappersFromHTML(root) {
|
|
|
38070
38130
|
* @private
|
|
38071
38131
|
*/
|
|
38072
38132
|
function isSelectionWrapper(node) {
|
|
38073
|
-
return
|
|
38133
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
|
|
38074
38134
|
}
|
|
38075
38135
|
function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
38076
38136
|
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38077
38137
|
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38078
|
-
|
|
38138
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
38139
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
38079
38140
|
const ranges = [rng, ...restRanges].map(rng => {
|
|
38080
38141
|
const range = jodit.selection.createRange();
|
|
38081
38142
|
range.setStart(rng.startContainer, rng.startOffset);
|
|
38082
38143
|
range.setEnd(rng.endContainer, rng.endOffset);
|
|
38083
38144
|
return range;
|
|
38084
38145
|
});
|
|
38085
|
-
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38086
38146
|
const searchHighlight = new Highlight(...ranges);
|
|
38087
38147
|
// @ts-ignore
|
|
38088
38148
|
CSS.highlights.clear();
|
|
@@ -38093,13 +38153,22 @@ function checkNativeSelectionMethod(jodit, rng, restRanges) {
|
|
|
38093
38153
|
}
|
|
38094
38154
|
return false;
|
|
38095
38155
|
}
|
|
38156
|
+
function clearNativeSelection(jodit) {
|
|
38157
|
+
if (jodit.o.search.useCustomHighlightAPI &&
|
|
38158
|
+
// @ts-ignore Because Highlight is not defined in the types TS 5.3.3
|
|
38159
|
+
jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
|
|
38160
|
+
typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
|
|
38161
|
+
// @ts-ignore
|
|
38162
|
+
CSS.highlights.clear();
|
|
38163
|
+
}
|
|
38164
|
+
}
|
|
38096
38165
|
function normalizeRanges(rng, restRanges, ci) {
|
|
38097
38166
|
const startText = rng.startContainer.nodeValue;
|
|
38098
38167
|
let diff = 0;
|
|
38099
38168
|
if (rng.startOffset !== 0) {
|
|
38100
38169
|
const text = ci.text(startText.substring(0, rng.startOffset));
|
|
38101
38170
|
rng.startContainer.nodeValue = startText.substring(rng.startOffset);
|
|
38102
|
-
|
|
38171
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
|
|
38103
38172
|
if (rng.startContainer === rng.endContainer) {
|
|
38104
38173
|
diff = rng.startOffset;
|
|
38105
38174
|
rng.endOffset -= diff;
|
|
@@ -38110,7 +38179,7 @@ function normalizeRanges(rng, restRanges, ci) {
|
|
|
38110
38179
|
if (rng.endOffset !== endText.length) {
|
|
38111
38180
|
const text = ci.text(endText.substring(rng.endOffset));
|
|
38112
38181
|
rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
|
|
38113
|
-
|
|
38182
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
|
|
38114
38183
|
for (const range of restRanges) {
|
|
38115
38184
|
if (range.startContainer === rng.endContainer) {
|
|
38116
38185
|
range.startContainer = text;
|
|
@@ -38267,11 +38336,11 @@ class SentenceFinder {
|
|
|
38267
38336
|
*
|
|
38268
38337
|
* @example
|
|
38269
38338
|
* ```typescript
|
|
38270
|
-
*
|
|
38339
|
+
* const jodit = Jodit.make('#editor', {
|
|
38271
38340
|
* useSearch: false
|
|
38272
38341
|
* });
|
|
38273
38342
|
* // or
|
|
38274
|
-
*
|
|
38343
|
+
* const jodit = Jodit.make('#editor', {
|
|
38275
38344
|
* disablePlugins: 'search'
|
|
38276
38345
|
* });
|
|
38277
38346
|
* ```
|
|
@@ -38350,7 +38419,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
38350
38419
|
rng.deleteContents();
|
|
38351
38420
|
const textNode = this.j.createInside.text(this.ui.replace);
|
|
38352
38421
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeInsertNode(rng, textNode);
|
|
38353
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j
|
|
38422
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
|
|
38354
38423
|
this.j.s.setCursorAfter(textNode);
|
|
38355
38424
|
this.tryScrollToElement(textNode);
|
|
38356
38425
|
this.cache = {};
|
|
@@ -38378,7 +38447,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
38378
38447
|
!(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .getSelectionWrappers */ .zy)(this.j.editor).length) {
|
|
38379
38448
|
(_a = this.drawPromise) === null || _a === void 0 ? void 0 : _a.rejectCallback();
|
|
38380
38449
|
this.j.async.cancelAnimationFrame(this.wrapFrameRequest);
|
|
38381
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j
|
|
38450
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
|
|
38382
38451
|
this.drawPromise = this.__drawSelectionRanges(bounds);
|
|
38383
38452
|
}
|
|
38384
38453
|
this.previousQuery = query;
|
|
@@ -38495,14 +38564,15 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
38495
38564
|
this.ui.close();
|
|
38496
38565
|
})
|
|
38497
38566
|
.on(this.ui, 'afterClose', () => {
|
|
38498
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor
|
|
38567
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
|
|
38499
38568
|
this.ui.currentIndex = 0;
|
|
38500
38569
|
this.ui.count = 0;
|
|
38501
38570
|
this.cache = {};
|
|
38571
|
+
editor.focus();
|
|
38502
38572
|
})
|
|
38503
38573
|
.on('click', () => {
|
|
38504
38574
|
this.ui.currentIndex = 0;
|
|
38505
|
-
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor
|
|
38575
|
+
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
|
|
38506
38576
|
})
|
|
38507
38577
|
.on('change.search', () => {
|
|
38508
38578
|
this.cache = {};
|
|
@@ -38513,7 +38583,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
|
|
|
38513
38583
|
this.ui.selInfo = null;
|
|
38514
38584
|
}
|
|
38515
38585
|
if (this.ui.isOpened) {
|
|
38516
|
-
this.updateCounters();
|
|
38586
|
+
void this.updateCounters();
|
|
38517
38587
|
}
|
|
38518
38588
|
}, editor.defaultTimeout))
|
|
38519
38589
|
.on('searchNext.search searchPrevious.search', () => {
|
|
@@ -38693,7 +38763,7 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
|
|
|
38693
38763
|
return false;
|
|
38694
38764
|
})
|
|
38695
38765
|
.on(next, 'pointerdown', () => {
|
|
38696
|
-
jodit.e.fire('searchNext');
|
|
38766
|
+
void jodit.e.fire('searchNext');
|
|
38697
38767
|
return false;
|
|
38698
38768
|
})
|
|
38699
38769
|
.on(prev, 'pointerdown', () => {
|
|
@@ -38703,12 +38773,12 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
|
|
|
38703
38773
|
.on(this.queryInput, 'input', () => {
|
|
38704
38774
|
this.setMod('empty-query', !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(this.queryInput.value).length);
|
|
38705
38775
|
})
|
|
38706
|
-
.on(this.queryInput, 'keydown', this.j.async.debounce((e) => {
|
|
38776
|
+
.on(this.queryInput, 'keydown', this.j.async.debounce(async (e) => {
|
|
38707
38777
|
switch (e.key) {
|
|
38708
38778
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER:
|
|
38709
38779
|
e.preventDefault();
|
|
38710
38780
|
e.stopImmediatePropagation();
|
|
38711
|
-
if (jodit.e.fire('searchNext')) {
|
|
38781
|
+
if (await jodit.e.fire('searchNext')) {
|
|
38712
38782
|
this.close();
|
|
38713
38783
|
}
|
|
38714
38784
|
break;
|
|
@@ -41007,6 +41077,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
|
|
|
41007
41077
|
|
|
41008
41078
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
|
|
41009
41079
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
|
|
41080
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
|
|
41010
41081
|
jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
|
|
41011
41082
|
|
|
41012
41083
|
|
|
@@ -41053,9 +41124,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
|
|
|
41053
41124
|
this.calc = this.j.async.throttle(() => {
|
|
41054
41125
|
const text = this.j.text;
|
|
41055
41126
|
if (this.j.o.showCharsCounter && this.charCounter) {
|
|
41056
|
-
|
|
41057
|
-
|
|
41058
|
-
|
|
41127
|
+
let chars;
|
|
41128
|
+
if (this.j.o.countHTMLChars) {
|
|
41129
|
+
chars = this.j.value;
|
|
41130
|
+
}
|
|
41131
|
+
else {
|
|
41132
|
+
if (this.j.o.countTextSpaces) {
|
|
41133
|
+
chars = text
|
|
41134
|
+
.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), '')
|
|
41135
|
+
.replace(/[\r\n]/g, '');
|
|
41136
|
+
}
|
|
41137
|
+
else {
|
|
41138
|
+
chars = text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
41139
|
+
}
|
|
41140
|
+
}
|
|
41059
41141
|
this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
|
|
41060
41142
|
}
|
|
41061
41143
|
if (this.j.o.showWordsCounter && this.wordCounter) {
|
|
@@ -41689,8 +41771,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41689
41771
|
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
41690
41772
|
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
41691
41773
|
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
41692
|
-
/* harmony export */
|
|
41693
|
-
/* harmony export */
|
|
41774
|
+
/* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_19__; },
|
|
41775
|
+
/* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__; },
|
|
41776
|
+
/* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__; }
|
|
41694
41777
|
/* harmony export */ });
|
|
41695
41778
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37605);
|
|
41696
41779
|
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -41730,10 +41813,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41730
41813
|
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
41731
41814
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(98376);
|
|
41732
41815
|
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
41733
|
-
/* harmony import */ var
|
|
41734
|
-
/* harmony import */ var
|
|
41735
|
-
/* harmony import */ var
|
|
41736
|
-
/* harmony import */ var
|
|
41816
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(28776);
|
|
41817
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
41818
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(47238);
|
|
41819
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
41820
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(72386);
|
|
41821
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
41737
41822
|
/*!
|
|
41738
41823
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41739
41824
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41761,6 +41846,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41761
41846
|
|
|
41762
41847
|
|
|
41763
41848
|
|
|
41849
|
+
|
|
41764
41850
|
|
|
41765
41851
|
|
|
41766
41852
|
/***/ }),
|
|
@@ -41916,6 +42002,23 @@ module.exports = {
|
|
|
41916
42002
|
};
|
|
41917
42003
|
|
|
41918
42004
|
|
|
42005
|
+
/***/ }),
|
|
42006
|
+
|
|
42007
|
+
/***/ 28776:
|
|
42008
|
+
/***/ (function(module) {
|
|
42009
|
+
|
|
42010
|
+
"use strict";
|
|
42011
|
+
|
|
42012
|
+
/*!
|
|
42013
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42014
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
42015
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
42016
|
+
*/
|
|
42017
|
+
module.exports = {
|
|
42018
|
+
symbols: 'символ'
|
|
42019
|
+
};
|
|
42020
|
+
|
|
42021
|
+
|
|
41919
42022
|
/***/ }),
|
|
41920
42023
|
|
|
41921
42024
|
/***/ 47238:
|
|
@@ -43990,7 +44093,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
43990
44093
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
43991
44094
|
PERFORMANCE OF THIS SOFTWARE.
|
|
43992
44095
|
***************************************************************************** */
|
|
43993
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
44096
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
43994
44097
|
|
|
43995
44098
|
var extendStatics = function(d, b) {
|
|
43996
44099
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -44101,8 +44204,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
44101
44204
|
}
|
|
44102
44205
|
|
|
44103
44206
|
function __generator(thisArg, body) {
|
|
44104
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
44105
|
-
return g =
|
|
44207
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
44208
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
44106
44209
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
44107
44210
|
function step(op) {
|
|
44108
44211
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -44206,8 +44309,9 @@ function __await(v) {
|
|
|
44206
44309
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
44207
44310
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
44208
44311
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
44209
|
-
return i =
|
|
44210
|
-
function
|
|
44312
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
44313
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
44314
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
44211
44315
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
44212
44316
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
44213
44317
|
function fulfill(value) { resume("next", value); }
|
|
@@ -44273,16 +44377,18 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
44273
44377
|
function __addDisposableResource(env, value, async) {
|
|
44274
44378
|
if (value !== null && value !== void 0) {
|
|
44275
44379
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
44276
|
-
var dispose;
|
|
44380
|
+
var dispose, inner;
|
|
44277
44381
|
if (async) {
|
|
44278
|
-
|
|
44279
|
-
|
|
44382
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
44383
|
+
dispose = value[Symbol.asyncDispose];
|
|
44280
44384
|
}
|
|
44281
44385
|
if (dispose === void 0) {
|
|
44282
|
-
|
|
44283
|
-
|
|
44386
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
44387
|
+
dispose = value[Symbol.dispose];
|
|
44388
|
+
if (async) inner = dispose;
|
|
44284
44389
|
}
|
|
44285
44390
|
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
44391
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
44286
44392
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
44287
44393
|
}
|
|
44288
44394
|
else if (async) {
|
|
@@ -44301,17 +44407,22 @@ function __disposeResources(env) {
|
|
|
44301
44407
|
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
44302
44408
|
env.hasError = true;
|
|
44303
44409
|
}
|
|
44410
|
+
var r, s = 0;
|
|
44304
44411
|
function next() {
|
|
44305
|
-
while (env.stack.
|
|
44306
|
-
var rec = env.stack.pop();
|
|
44412
|
+
while (r = env.stack.pop()) {
|
|
44307
44413
|
try {
|
|
44308
|
-
|
|
44309
|
-
if (
|
|
44414
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
44415
|
+
if (r.dispose) {
|
|
44416
|
+
var result = r.dispose.call(r.value);
|
|
44417
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
44418
|
+
}
|
|
44419
|
+
else s |= 1;
|
|
44310
44420
|
}
|
|
44311
44421
|
catch (e) {
|
|
44312
|
-
|
|
44422
|
+
fail(e);
|
|
44313
44423
|
}
|
|
44314
44424
|
}
|
|
44425
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
44315
44426
|
if (env.hasError) throw env.error;
|
|
44316
44427
|
}
|
|
44317
44428
|
return next();
|