jodit 4.14.3 → 4.14.5
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/CHANGELOG.md +16 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +15 -15
- package/es2015/jodit.js +245 -254
- package/es2015/jodit.min.js +15 -15
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +2 -2
- package/es2015/plugins/debug/debug.min.js +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +50 -50
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.fat.min.js +15 -15
- package/es2018/jodit.min.js +15 -15
- package/es2018/plugins/debug/debug.min.js +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +17 -17
- package/es2021/jodit.js +245 -254
- package/es2021/jodit.min.js +17 -17
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +2 -2
- package/es2021/plugins/debug/debug.min.js +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +50 -50
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +16 -16
- package/es2021.en/jodit.js +84 -72
- package/es2021.en/jodit.min.js +16 -16
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +2 -2
- package/es2021.en/plugins/debug/debug.min.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +236 -255
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +2 -2
- package/es5/plugins/debug/debug.min.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +50 -50
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +32 -57
- package/es5/polyfills.min.js +2 -2
- package/esm/core/constants.js +1 -1
- package/esm/core/dom/dom.js +2 -2
- package/esm/core/global.js +1 -1
- package/esm/core/helpers/checker/has-browser-color-picker.js +1 -1
- package/esm/core/helpers/html/apply-styles.js +1 -1
- package/esm/core/helpers/string/fuzzy-search-index.js +1 -1
- package/esm/core/helpers/utils/set.js +2 -2
- package/esm/core/storage/async-storage.js +1 -3
- package/esm/core/ui/popup/popup.js +1 -1
- package/esm/modules/image-editor/image-editor.js +1 -1
- package/esm/modules/table/table.js +2 -2
- package/esm/modules/widget/file-selector/file-selector.js +0 -1
- package/esm/plugins/ai-assistant/langs/en.js +1 -1
- package/esm/plugins/ai-assistant/langs/es.js +1 -1
- package/esm/plugins/backspace/cases/check-remove-char.js +0 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.js +0 -1
- package/esm/plugins/color/config.js +1 -1
- package/esm/plugins/copy-format/langs/ar.js +1 -1
- package/esm/plugins/copy-format/langs/cs_cz.js +1 -1
- package/esm/plugins/copy-format/langs/de.js +1 -1
- package/esm/plugins/copy-format/langs/es.js +1 -1
- package/esm/plugins/copy-format/langs/fa.js +1 -1
- package/esm/plugins/copy-format/langs/fi.js +1 -1
- package/esm/plugins/copy-format/langs/fr.js +1 -1
- package/esm/plugins/copy-format/langs/he.js +1 -1
- package/esm/plugins/copy-format/langs/hu.js +1 -1
- package/esm/plugins/copy-format/langs/id.js +1 -1
- package/esm/plugins/copy-format/langs/it.js +1 -1
- package/esm/plugins/copy-format/langs/ja.js +1 -1
- package/esm/plugins/copy-format/langs/ko.js +1 -1
- package/esm/plugins/copy-format/langs/mn.js +1 -1
- package/esm/plugins/copy-format/langs/nl.js +1 -1
- package/esm/plugins/copy-format/langs/pl.js +1 -1
- package/esm/plugins/copy-format/langs/pt_br.js +1 -1
- package/esm/plugins/copy-format/langs/ru.js +1 -1
- package/esm/plugins/copy-format/langs/tr.js +1 -1
- package/esm/plugins/copy-format/langs/zh_cn.js +1 -1
- package/esm/plugins/copy-format/langs/zh_tw.js +1 -1
- package/esm/plugins/line-height/langs/ar.js +1 -1
- package/esm/plugins/line-height/langs/cs_cz.js +1 -1
- package/esm/plugins/line-height/langs/de.js +1 -1
- package/esm/plugins/line-height/langs/es.js +1 -1
- package/esm/plugins/line-height/langs/fa.js +1 -1
- package/esm/plugins/line-height/langs/fi.js +1 -1
- package/esm/plugins/line-height/langs/fr.js +1 -1
- package/esm/plugins/line-height/langs/he.js +1 -1
- package/esm/plugins/line-height/langs/hu.js +1 -1
- package/esm/plugins/line-height/langs/id.js +1 -1
- package/esm/plugins/line-height/langs/it.js +1 -1
- package/esm/plugins/line-height/langs/ja.js +1 -1
- package/esm/plugins/line-height/langs/ko.js +1 -1
- package/esm/plugins/line-height/langs/mn.js +1 -1
- package/esm/plugins/line-height/langs/nl.js +1 -1
- package/esm/plugins/line-height/langs/pl.js +1 -1
- package/esm/plugins/line-height/langs/pt_br.js +1 -1
- package/esm/plugins/line-height/langs/ru.js +1 -1
- package/esm/plugins/line-height/langs/sk.js +1 -1
- package/esm/plugins/line-height/langs/tr.js +1 -1
- package/esm/plugins/line-height/langs/ua.js +1 -1
- package/esm/plugins/line-height/langs/zh_cn.js +1 -1
- package/esm/plugins/line-height/langs/zh_tw.js +1 -1
- package/esm/plugins/resize-cells/resize-cells.js +2 -2
- package/esm/plugins/resizer/resizer.js +1 -1
- package/esm/plugins/search/helpers/sentence-finder.js +1 -1
- package/esm/plugins/source/source.js +1 -1
- package/esm/plugins/speech-recognize/langs/ar.js +1 -1
- package/esm/plugins/speech-recognize/langs/cs_cz.js +1 -1
- package/esm/plugins/speech-recognize/langs/de.js +1 -1
- package/esm/plugins/speech-recognize/langs/es.js +1 -1
- package/esm/plugins/speech-recognize/langs/fa.js +1 -1
- package/esm/plugins/speech-recognize/langs/fi.js +1 -1
- package/esm/plugins/speech-recognize/langs/fr.js +1 -1
- package/esm/plugins/speech-recognize/langs/he.js +1 -1
- package/esm/plugins/speech-recognize/langs/hu.js +1 -1
- package/esm/plugins/speech-recognize/langs/id.js +1 -1
- package/esm/plugins/speech-recognize/langs/it.js +1 -1
- package/esm/plugins/speech-recognize/langs/ja.js +1 -1
- package/esm/plugins/speech-recognize/langs/ko.js +1 -1
- package/esm/plugins/speech-recognize/langs/mn.js +1 -1
- package/esm/plugins/speech-recognize/langs/nl.js +1 -1
- package/esm/plugins/speech-recognize/langs/no.js +1 -1
- package/esm/plugins/speech-recognize/langs/pl.js +1 -1
- package/esm/plugins/speech-recognize/langs/pt_br.js +1 -1
- package/esm/plugins/speech-recognize/langs/ru.js +1 -1
- package/esm/plugins/speech-recognize/langs/sk.js +1 -1
- package/esm/plugins/speech-recognize/langs/tr.js +1 -1
- package/esm/plugins/speech-recognize/langs/ua.js +1 -1
- package/esm/plugins/speech-recognize/langs/zh_cn.js +1 -1
- package/esm/plugins/speech-recognize/langs/zh_tw.js +1 -1
- package/esm/plugins/spellcheck/langs/ar.js +1 -1
- package/esm/plugins/spellcheck/langs/cs_cz.js +1 -1
- package/esm/plugins/spellcheck/langs/de.js +1 -1
- package/esm/plugins/spellcheck/langs/es.js +1 -1
- package/esm/plugins/spellcheck/langs/fa.js +1 -1
- package/esm/plugins/spellcheck/langs/fi.js +1 -1
- package/esm/plugins/spellcheck/langs/fr.js +1 -1
- package/esm/plugins/spellcheck/langs/he.js +1 -1
- package/esm/plugins/spellcheck/langs/hu.js +1 -1
- package/esm/plugins/spellcheck/langs/id.js +1 -1
- package/esm/plugins/spellcheck/langs/it.js +1 -1
- package/esm/plugins/spellcheck/langs/ja.js +1 -1
- package/esm/plugins/spellcheck/langs/ko.js +1 -1
- package/esm/plugins/spellcheck/langs/mn.js +1 -1
- package/esm/plugins/spellcheck/langs/nl.js +1 -1
- package/esm/plugins/spellcheck/langs/no.js +1 -1
- package/esm/plugins/spellcheck/langs/pl.js +1 -1
- package/esm/plugins/spellcheck/langs/pt_br.js +1 -1
- package/esm/plugins/spellcheck/langs/ru.js +1 -1
- package/esm/plugins/spellcheck/langs/sk.js +1 -1
- package/esm/plugins/spellcheck/langs/tr.js +1 -1
- package/esm/plugins/spellcheck/langs/ua.js +1 -1
- package/esm/plugins/spellcheck/langs/zh_cn.js +1 -1
- package/esm/plugins/spellcheck/langs/zh_tw.js +1 -1
- package/esm/plugins/symbols/langs/ar.js +1 -1
- package/esm/plugins/symbols/langs/cs_cz.js +1 -1
- package/esm/plugins/symbols/langs/de.js +1 -1
- package/esm/plugins/symbols/langs/es.js +1 -1
- package/esm/plugins/symbols/langs/fa.js +1 -1
- package/esm/plugins/symbols/langs/fi.js +1 -1
- package/esm/plugins/symbols/langs/fr.js +1 -1
- package/esm/plugins/symbols/langs/he.js +1 -1
- package/esm/plugins/symbols/langs/hu.js +1 -1
- package/esm/plugins/symbols/langs/id.js +1 -1
- package/esm/plugins/symbols/langs/it.js +1 -1
- package/esm/plugins/symbols/langs/ja.js +1 -1
- package/esm/plugins/symbols/langs/ko.js +1 -1
- package/esm/plugins/symbols/langs/mn.js +1 -1
- package/esm/plugins/symbols/langs/nl.js +1 -1
- package/esm/plugins/symbols/langs/pl.js +1 -1
- package/esm/plugins/symbols/langs/pt_br.js +1 -1
- package/esm/plugins/symbols/langs/ru.js +1 -1
- package/esm/plugins/symbols/langs/tr.js +1 -1
- package/esm/plugins/symbols/langs/ua.js +1 -1
- package/esm/plugins/symbols/langs/zh_cn.js +1 -1
- package/esm/plugins/symbols/langs/zh_tw.js +1 -1
- package/esm/plugins/table/config.js +1 -1
- package/package.json +4 -1
package/es2021.en/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.14.
|
|
4
|
+
* Version: v4.14.5
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1779,7 +1779,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1779
1779
|
* ```
|
|
1780
1780
|
* @packageDocumentation
|
|
1781
1781
|
* @module constants
|
|
1782
|
-
*/ const APP_VERSION = "4.14.
|
|
1782
|
+
*/ const APP_VERSION = "4.14.5";
|
|
1783
1783
|
// prettier-ignore
|
|
1784
1784
|
const ES = "es2021";
|
|
1785
1785
|
const IS_ES_MODERN = true;
|
|
@@ -3075,7 +3075,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${jodit_core_constants__W
|
|
|
3075
3075
|
const first = current;
|
|
3076
3076
|
let last = current;
|
|
3077
3077
|
editor.s.save();
|
|
3078
|
-
let needFindNext
|
|
3078
|
+
let needFindNext;
|
|
3079
3079
|
do {
|
|
3080
3080
|
needFindNext = false;
|
|
3081
3081
|
tmp = last.nextSibling;
|
|
@@ -3110,7 +3110,7 @@ const TEMP_ELEMENT_REG_EXP = new RegExp(`<([a-z]+)[^>]+${jodit_core_constants__W
|
|
|
3110
3110
|
let first = current;
|
|
3111
3111
|
let last = current;
|
|
3112
3112
|
editor.s.save();
|
|
3113
|
-
let needFindNext
|
|
3113
|
+
let needFindNext;
|
|
3114
3114
|
do {
|
|
3115
3115
|
needFindNext = false;
|
|
3116
3116
|
tmp = first.previousSibling;
|
|
@@ -4778,7 +4778,7 @@ const boxes = new WeakMap();
|
|
|
4778
4778
|
const name = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString)(classFunc) ? classFunc : classFunc ? (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_6__.getClassName)(classFunc.prototype) : 'jodit-utils';
|
|
4779
4779
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
4780
4780
|
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
4781
|
-
let body
|
|
4781
|
+
let body;
|
|
4782
4782
|
if (!data[key]) {
|
|
4783
4783
|
let c = view.c;
|
|
4784
4784
|
body = getPopupViewRoot(view.o, view.container, jodit.od.body);
|
|
@@ -5025,7 +5025,7 @@ const boxes = new WeakMap();
|
|
|
5025
5025
|
/**
|
|
5026
5026
|
* Check if browser has a color picker (a new HTML5 attribute for input tag)
|
|
5027
5027
|
*/ function hasBrowserColorPicker() {
|
|
5028
|
-
let supportsColor
|
|
5028
|
+
let supportsColor;
|
|
5029
5029
|
try {
|
|
5030
5030
|
const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
|
|
5031
5031
|
a.type = 'color';
|
|
@@ -5859,7 +5859,7 @@ function normalizeCSS(s) {
|
|
|
5859
5859
|
const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
5860
5860
|
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(iframe, 'display', 'none');
|
|
5861
5861
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.append(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body, iframe);
|
|
5862
|
-
let convertedString = '', collection
|
|
5862
|
+
let convertedString = '', collection;
|
|
5863
5863
|
try {
|
|
5864
5864
|
const iframeDoc = iframe.contentDocument || (iframe.contentWindow ? iframe.contentWindow.document : null);
|
|
5865
5865
|
if (iframeDoc) {
|
|
@@ -7195,7 +7195,7 @@ function size(subject) {
|
|
|
7195
7195
|
* Finds the position of the substring in the string, if any, and returns the length of the found subsequence.
|
|
7196
7196
|
* Unlike `indexOf` ignores INVISIBLE_SPACE and may fail at `maxDistance` characters
|
|
7197
7197
|
*/ function fuzzySearchIndex(needle, haystack, offset = 0, maxDistance = 1) {
|
|
7198
|
-
let i = 0, j
|
|
7198
|
+
let i = 0, j, startIndex = -1, len = 0, errorDistance = 0;
|
|
7199
7199
|
for(j = offset; i < needle.length && j < haystack.length;){
|
|
7200
7200
|
if (needle[i].toLowerCase() === haystack[j].toLowerCase()) {
|
|
7201
7201
|
i++;
|
|
@@ -9420,9 +9420,9 @@ const $$temp = ()=>{
|
|
|
9420
9420
|
if (parts.some(_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_4__.isUnsafeProtoKey)) {
|
|
9421
9421
|
return;
|
|
9422
9422
|
}
|
|
9423
|
-
let result = obj
|
|
9423
|
+
let result = obj;
|
|
9424
9424
|
for(let i = 0; i < parts.length - 1; i += 1){
|
|
9425
|
-
key = parts[i];
|
|
9425
|
+
const key = parts[i];
|
|
9426
9426
|
if (!(0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(result[key]) && !(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(result[key])) {
|
|
9427
9427
|
result[key] = (0,jodit_core_helpers_checker_is_numeric__WEBPACK_IMPORTED_MODULE_1__.isNumeric)(parts[i + 1]) ? [] : {};
|
|
9428
9428
|
}
|
|
@@ -13467,7 +13467,6 @@ class AsyncStorage {
|
|
|
13467
13467
|
}
|
|
13468
13468
|
static makeStorage(persistentOrStrategy = false, suffix, options) {
|
|
13469
13469
|
let provider = undefined;
|
|
13470
|
-
let storage = null;
|
|
13471
13470
|
// An explicit `defaultProvider` overrides the strategy-based selection
|
|
13472
13471
|
// below and decides which provider backs the storage.
|
|
13473
13472
|
const defaultProvider = options?.defaultProvider;
|
|
@@ -13492,8 +13491,7 @@ class AsyncStorage {
|
|
|
13492
13491
|
if (!provider) {
|
|
13493
13492
|
provider = new _engines_memory_storage_provider__WEBPACK_IMPORTED_MODULE_4__.MemoryStorageProvider();
|
|
13494
13493
|
}
|
|
13495
|
-
|
|
13496
|
-
return storage;
|
|
13494
|
+
return new AsyncStorage(Promise.resolve(provider), suffix);
|
|
13497
13495
|
}
|
|
13498
13496
|
constructor(provider, suffix){
|
|
13499
13497
|
;(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "provider", void 0);
|
|
@@ -16689,7 +16687,7 @@ class Popup extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_10__.UIGr
|
|
|
16689
16687
|
};
|
|
16690
16688
|
};
|
|
16691
16689
|
const getMatchStrategy = (inBox)=>{
|
|
16692
|
-
let strategy
|
|
16690
|
+
let strategy;
|
|
16693
16691
|
if (Popup.boxInView(getPointByStrategy(defaultStrategy), inBox)) {
|
|
16694
16692
|
strategy = defaultStrategy;
|
|
16695
16693
|
} else {
|
|
@@ -22632,7 +22630,7 @@ class ImageEditor extends jodit_core_component__WEBPACK_IMPORTED_MODULE_2__.View
|
|
|
22632
22630
|
h: 0
|
|
22633
22631
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "calcCropBox", ()=>{
|
|
22634
22632
|
const node = this.crop_box.parentNode, w = node.offsetWidth * 0.8, h = node.offsetHeight * 0.8;
|
|
22635
|
-
let wn
|
|
22633
|
+
let wn, hn;
|
|
22636
22634
|
const { naturalWidth: nw, naturalHeight: nh } = this;
|
|
22637
22635
|
if (w > nw && h > nh) {
|
|
22638
22636
|
wn = nw;
|
|
@@ -23831,8 +23829,8 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_2__.ViewCompon
|
|
|
23831
23829
|
}
|
|
23832
23830
|
}
|
|
23833
23831
|
static __removeExtraRowspans(box, marked) {
|
|
23834
|
-
let i
|
|
23835
|
-
let j
|
|
23832
|
+
let i;
|
|
23833
|
+
let j;
|
|
23836
23834
|
for(i = 0; i < box.length; i += 1){
|
|
23837
23835
|
let min = 1000000;
|
|
23838
23836
|
let not = false;
|
|
@@ -25965,7 +25963,6 @@ jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', (_palette_svg__WE
|
|
|
25965
25963
|
button
|
|
25966
25964
|
])
|
|
25967
25965
|
]);
|
|
25968
|
-
currentImage = null;
|
|
25969
25966
|
if (elm && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isText(elm) && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isComment(elm) && (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, 'img') || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.$$)('img', elm).length)) {
|
|
25970
25967
|
currentImage = elm.tagName === 'IMG' ? elm : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.$$)('img', elm)[0];
|
|
25971
25968
|
val(form.container, 'url', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(currentImage, 'src'));
|
|
@@ -26747,13 +26744,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls['ai-assistan
|
|
|
26747
26744
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
26748
26745
|
|
|
26749
26746
|
"use strict";
|
|
26747
|
+
var _en_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;
|
|
26750
26748
|
__webpack_require__.r(__webpack_exports__);
|
|
26751
26749
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26752
|
-
/* harmony export */ en: function() { return /* reexport
|
|
26750
|
+
/* harmony export */ en: function() { return /* reexport fake namespace object from non-harmony */ _en_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (_en_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(_en_js__WEBPACK_IMPORTED_MODULE_0__, 2)); },
|
|
26753
26751
|
/* harmony export */ es: function() { return /* reexport module object */ _es_js__WEBPACK_IMPORTED_MODULE_1__; }
|
|
26754
26752
|
/* harmony export */ });
|
|
26755
26753
|
/* harmony import */ var _en_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17918);
|
|
26756
|
-
/* harmony import */ var _en_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_en_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
26757
26754
|
/* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41324);
|
|
26758
26755
|
/* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_es_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
26759
26756
|
/*!
|
|
@@ -27329,7 +27326,6 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
27329
27326
|
}
|
|
27330
27327
|
if (removeNeighbor) {
|
|
27331
27328
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(removeNeighbor);
|
|
27332
|
-
removeNeighbor = null;
|
|
27333
27329
|
}
|
|
27334
27330
|
if (charRemoved) {
|
|
27335
27331
|
removeEmptyForParent(fakeNode, 'a');
|
|
@@ -28929,7 +28925,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28929
28925
|
*/ function replaceOldTags(jodit, nodeElm, hadEffect) {
|
|
28930
28926
|
const newNodeElm = replaceIfMatched(jodit, nodeElm, jodit.o.cleanHTML.replaceOldTags);
|
|
28931
28927
|
if (nodeElm !== newNodeElm) {
|
|
28932
|
-
nodeElm = newNodeElm;
|
|
28933
28928
|
return true;
|
|
28934
28929
|
}
|
|
28935
28930
|
return hadEffect;
|
|
@@ -29587,7 +29582,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.brush = {
|
|
|
29587
29582
|
button.state.activated = false;
|
|
29588
29583
|
},
|
|
29589
29584
|
popup: (editor, current, close, button)=>{
|
|
29590
|
-
let colorHEX = '', bg_color = '', tabs
|
|
29585
|
+
let colorHEX = '', bg_color = '', tabs, currentElement = null;
|
|
29591
29586
|
if (current && current !== editor.editor && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isNode(current)) {
|
|
29592
29587
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isElement(current) && editor.s.isCollapsed() && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current, new Set([
|
|
29593
29588
|
'br',
|
|
@@ -38066,11 +38061,11 @@ const key = 'table_processor_observer-resize';
|
|
|
38066
38061
|
this.startX = event.clientX;
|
|
38067
38062
|
this.j.lock(key);
|
|
38068
38063
|
this.resizeHandler.classList.add('jodit-table-resizer_moved');
|
|
38069
|
-
let box
|
|
38064
|
+
let box;
|
|
38070
38065
|
this.minX = 0;
|
|
38071
38066
|
this.maxX = 1000000;
|
|
38072
38067
|
if (this.wholeTable != null) {
|
|
38073
|
-
tableBox = this.workTable.parentNode.getBoundingClientRect();
|
|
38068
|
+
const tableBox = this.workTable.parentNode.getBoundingClientRect();
|
|
38074
38069
|
this.minX = tableBox.left;
|
|
38075
38070
|
this.maxX = this.minX + tableBox.width;
|
|
38076
38071
|
} else {
|
|
@@ -38606,7 +38601,7 @@ const keyBInd = '__jodit-resizer_binded';
|
|
|
38606
38601
|
diff_y = this.pointerY - this.startY;
|
|
38607
38602
|
}
|
|
38608
38603
|
const className = this.handle.className;
|
|
38609
|
-
let new_w
|
|
38604
|
+
let new_w, new_h;
|
|
38610
38605
|
const uar = this.j.o.resizer.useAspectRatio;
|
|
38611
38606
|
if (!this.isAltMode && (uar === true || uar && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isTag(this.element, uar))) {
|
|
38612
38607
|
if (diff_x) {
|
|
@@ -39170,7 +39165,7 @@ class SentenceFinder {
|
|
|
39170
39165
|
}
|
|
39171
39166
|
ranges(needle, position = 0) {
|
|
39172
39167
|
const results = [];
|
|
39173
|
-
let index = position, len
|
|
39168
|
+
let index = position, len, startQueueIndex = 0;
|
|
39174
39169
|
// Find all ranges in substring
|
|
39175
39170
|
do {
|
|
39176
39171
|
[index, len] = this.searchIndex(needle, this.value, index);
|
|
@@ -41319,7 +41314,7 @@ class SourceEditor {
|
|
|
41319
41314
|
return;
|
|
41320
41315
|
}
|
|
41321
41316
|
let value = this.getMirrorValue();
|
|
41322
|
-
let selectionStart
|
|
41317
|
+
let selectionStart, selectionEnd;
|
|
41323
41318
|
try {
|
|
41324
41319
|
value = value.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim, this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim, this.tempMarkerEnd);
|
|
41325
41320
|
if (!this.j.o.editHTMLDocumentMode && this.j.o.beautifyHTML) {
|
|
@@ -42831,7 +42826,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.table = {
|
|
|
42831
42826
|
return;
|
|
42832
42827
|
}
|
|
42833
42828
|
const index = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_3__.attr)(e.target, '-index') || '0', 10), row = Math.floor(index / default_cols_count), col = index % default_cols_count;
|
|
42834
|
-
let nextIndex
|
|
42829
|
+
let nextIndex;
|
|
42835
42830
|
switch(e.key){
|
|
42836
42831
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT:
|
|
42837
42832
|
nextIndex = col > 0 ? index - 1 : index;
|
|
@@ -44555,7 +44550,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
|
44555
44550
|
/******/ var priority = deferred[i][2];
|
|
44556
44551
|
/******/ var fulfilled = true;
|
|
44557
44552
|
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
44558
|
-
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {
|
|
44553
|
+
/******/ if (((priority & 1) === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {
|
|
44559
44554
|
/******/ chunkIds.splice(j--, 1);
|
|
44560
44555
|
/******/ } else {
|
|
44561
44556
|
/******/ fulfilled = false;
|
|
@@ -44573,59 +44568,76 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
|
44573
44568
|
/******/ }();
|
|
44574
44569
|
/******/
|
|
44575
44570
|
/******/ /* webpack/runtime/compat get default export */
|
|
44571
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
44572
|
+
/******/ __webpack_require__.n = function(module) {
|
|
44573
|
+
/******/ var getter = module && module.__esModule ?
|
|
44574
|
+
/******/ function() { return module['default']; } :
|
|
44575
|
+
/******/ function() { return module; };
|
|
44576
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
44577
|
+
/******/ return getter;
|
|
44578
|
+
/******/ };
|
|
44579
|
+
/******/
|
|
44580
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
44576
44581
|
/******/ !function() {
|
|
44577
|
-
/******/
|
|
44578
|
-
/******/
|
|
44579
|
-
/******/
|
|
44580
|
-
/******/
|
|
44581
|
-
/******/
|
|
44582
|
-
/******/
|
|
44583
|
-
/******/
|
|
44582
|
+
/******/ var getProto = Object.getPrototypeOf;
|
|
44583
|
+
/******/ var leafPrototypes;
|
|
44584
|
+
/******/ // create a fake namespace object
|
|
44585
|
+
/******/ // mode & 1: value is a module id, require it
|
|
44586
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
44587
|
+
/******/ // mode & 4: return value when already ns object
|
|
44588
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
44589
|
+
/******/ // mode & 8|1: behave like require
|
|
44590
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
44591
|
+
/******/ if(mode & 1) value = this(value);
|
|
44592
|
+
/******/ if(mode & 8) return value;
|
|
44593
|
+
/******/ if(typeof value === 'object' && value) {
|
|
44594
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
44595
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
44596
|
+
/******/ }
|
|
44597
|
+
/******/ var ns = Object.create(null);
|
|
44598
|
+
/******/ __webpack_require__.r(ns);
|
|
44599
|
+
/******/ var def = {};
|
|
44600
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
44601
|
+
/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
44602
|
+
/******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
|
|
44603
|
+
/******/ }
|
|
44604
|
+
/******/ def['default'] = function() { return value; };
|
|
44605
|
+
/******/ __webpack_require__.d(ns, def);
|
|
44606
|
+
/******/ return ns;
|
|
44584
44607
|
/******/ };
|
|
44585
44608
|
/******/ }();
|
|
44586
44609
|
/******/
|
|
44587
44610
|
/******/ /* webpack/runtime/define property getters */
|
|
44588
|
-
/******/
|
|
44589
|
-
/******/
|
|
44590
|
-
/******/
|
|
44591
|
-
/******/
|
|
44592
|
-
/******/
|
|
44593
|
-
/******/
|
|
44594
|
-
/******/
|
|
44595
|
-
/******/
|
|
44596
|
-
/******/
|
|
44597
|
-
/******/
|
|
44598
|
-
/******/
|
|
44599
|
-
/******/
|
|
44600
|
-
/******/
|
|
44601
|
-
/******/
|
|
44602
|
-
/******/ } else if(binding === 0) { i++; }
|
|
44603
|
-
/******/ }
|
|
44604
|
-
/******/ } else {
|
|
44605
|
-
/******/ for(var key in definition) {
|
|
44606
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
44607
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
44608
|
-
/******/ }
|
|
44611
|
+
/******/ // define getter/value functions for harmony exports
|
|
44612
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
44613
|
+
/******/ if(Array.isArray(definition)) {
|
|
44614
|
+
/******/ var i = 0;
|
|
44615
|
+
/******/ while(i < definition.length) {
|
|
44616
|
+
/******/ var key = definition[i++];
|
|
44617
|
+
/******/ var binding = definition[i++];
|
|
44618
|
+
/******/ var descriptor = binding === 0 ? { enumerable: true, value: definition[i++] } : { enumerable: true, get: binding };
|
|
44619
|
+
/******/ if(!__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, descriptor);
|
|
44620
|
+
/******/ }
|
|
44621
|
+
/******/ } else {
|
|
44622
|
+
/******/ for(var key in definition) {
|
|
44623
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
44624
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
44609
44625
|
/******/ }
|
|
44610
44626
|
/******/ }
|
|
44611
|
-
/******/ }
|
|
44612
|
-
/******/ }
|
|
44627
|
+
/******/ }
|
|
44628
|
+
/******/ };
|
|
44613
44629
|
/******/
|
|
44614
44630
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
44615
|
-
/******/
|
|
44616
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
44617
|
-
/******/ }();
|
|
44631
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
44618
44632
|
/******/
|
|
44619
44633
|
/******/ /* webpack/runtime/make namespace object */
|
|
44620
|
-
/******/
|
|
44621
|
-
/******/
|
|
44622
|
-
/******/
|
|
44623
|
-
/******/
|
|
44624
|
-
/******/
|
|
44625
|
-
/******/
|
|
44626
|
-
/******/
|
|
44627
|
-
/******/ };
|
|
44628
|
-
/******/ }();
|
|
44634
|
+
/******/ // define __esModule on exports
|
|
44635
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
44636
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
44637
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
44638
|
+
/******/ }
|
|
44639
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44640
|
+
/******/ };
|
|
44629
44641
|
/******/
|
|
44630
44642
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
44631
44643
|
/******/ !function() {
|