jodit 4.14.4 → 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 +9 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +9 -9
- package/es2015/jodit.js +22 -27
- package/es2015/jodit.min.js +9 -9
- package/es2015/plugins/debug/debug.css +1 -1
- 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 +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +9 -9
- package/es2018/jodit.min.js +9 -9
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +10 -10
- package/es2021/jodit.js +22 -27
- package/es2021/jodit.min.js +10 -10
- package/es2021/plugins/debug/debug.css +1 -1
- 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 +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +10 -10
- package/es2021.en/jodit.js +22 -27
- package/es2021.en/jodit.min.js +10 -10
- package/es2021.en/plugins/debug/debug.css +1 -1
- 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 +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +22 -27
- 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 +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 +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- 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/es5/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
|
*/
|
|
@@ -2107,7 +2107,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2107
2107
|
* @packageDocumentation
|
|
2108
2108
|
* @module constants
|
|
2109
2109
|
*/
|
|
2110
|
-
var APP_VERSION = "4.14.
|
|
2110
|
+
var APP_VERSION = "4.14.5";
|
|
2111
2111
|
// prettier-ignore
|
|
2112
2112
|
var ES = "es5";
|
|
2113
2113
|
var IS_ES_MODERN = false;
|
|
@@ -3482,7 +3482,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(jodit_core_constan
|
|
|
3482
3482
|
var first = current;
|
|
3483
3483
|
var last = current;
|
|
3484
3484
|
editor.s.save();
|
|
3485
|
-
var needFindNext
|
|
3485
|
+
var needFindNext;
|
|
3486
3486
|
do {
|
|
3487
3487
|
needFindNext = false;
|
|
3488
3488
|
tmp = last.nextSibling;
|
|
@@ -3523,7 +3523,7 @@ var TEMP_ELEMENT_REG_EXP = new RegExp("<([a-z]+)[^>]+".concat(jodit_core_constan
|
|
|
3523
3523
|
var first = current;
|
|
3524
3524
|
var last = current;
|
|
3525
3525
|
editor.s.save();
|
|
3526
|
-
var needFindNext
|
|
3526
|
+
var needFindNext;
|
|
3527
3527
|
do {
|
|
3528
3528
|
needFindNext = false;
|
|
3529
3529
|
tmp = first.previousSibling;
|
|
@@ -5698,7 +5698,7 @@ var boxes = new WeakMap();
|
|
|
5698
5698
|
var 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';
|
|
5699
5699
|
var data = boxes.get(jodit) || {}, key = name + tag;
|
|
5700
5700
|
var view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
5701
|
-
var body
|
|
5701
|
+
var body;
|
|
5702
5702
|
if (!data[key]) {
|
|
5703
5703
|
var c = view.c;
|
|
5704
5704
|
body = getPopupViewRoot(view.o, view.container, jodit.od.body);
|
|
@@ -5956,7 +5956,7 @@ var boxes = new WeakMap();
|
|
|
5956
5956
|
/**
|
|
5957
5957
|
* Check if browser has a color picker (a new HTML5 attribute for input tag)
|
|
5958
5958
|
*/ function hasBrowserColorPicker() {
|
|
5959
|
-
var supportsColor
|
|
5959
|
+
var supportsColor;
|
|
5960
5960
|
try {
|
|
5961
5961
|
var a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
|
|
5962
5962
|
a.type = 'color';
|
|
@@ -6801,7 +6801,7 @@ function normalizeCSS(s) {
|
|
|
6801
6801
|
var iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
|
|
6802
6802
|
(0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(iframe, 'display', 'none');
|
|
6803
6803
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.append(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body, iframe);
|
|
6804
|
-
var convertedString = '', collection
|
|
6804
|
+
var convertedString = '', collection;
|
|
6805
6805
|
try {
|
|
6806
6806
|
var iframeDoc = iframe.contentDocument || (iframe.contentWindow ? iframe.contentWindow.document : null);
|
|
6807
6807
|
if (iframeDoc) {
|
|
@@ -8210,7 +8210,7 @@ function size(subject) {
|
|
|
8210
8210
|
* Unlike `indexOf` ignores INVISIBLE_SPACE and may fail at `maxDistance` characters
|
|
8211
8211
|
*/ function fuzzySearchIndex(needle, haystack) {
|
|
8212
8212
|
var offset = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, maxDistance = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
|
|
8213
|
-
var i = 0, j
|
|
8213
|
+
var i = 0, j, startIndex = -1, len = 0, errorDistance = 0;
|
|
8214
8214
|
for(j = offset; i < needle.length && j < haystack.length;){
|
|
8215
8215
|
if (needle[i].toLowerCase() === haystack[j].toLowerCase()) {
|
|
8216
8216
|
i++;
|
|
@@ -10497,9 +10497,9 @@ var $$temp = function $$temp() {
|
|
|
10497
10497
|
if (parts.some(_is_unsafe_proto_key__WEBPACK_IMPORTED_MODULE_4__.isUnsafeProtoKey)) {
|
|
10498
10498
|
return;
|
|
10499
10499
|
}
|
|
10500
|
-
var result = obj
|
|
10500
|
+
var result = obj;
|
|
10501
10501
|
for(var i = 0; i < parts.length - 1; i += 1){
|
|
10502
|
-
key = parts[i];
|
|
10502
|
+
var key = parts[i];
|
|
10503
10503
|
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])) {
|
|
10504
10504
|
result[key] = (0,jodit_core_helpers_checker_is_numeric__WEBPACK_IMPORTED_MODULE_1__.isNumeric)(parts[i + 1]) ? [] : {};
|
|
10505
10505
|
}
|
|
@@ -15604,7 +15604,6 @@ var AsyncStorage = /*#__PURE__*/ function() {
|
|
|
15604
15604
|
value: function makeStorage() {
|
|
15605
15605
|
var persistentOrStrategy = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false, suffix = arguments.length > 1 ? arguments[1] : void 0, options = arguments.length > 2 ? arguments[2] : void 0;
|
|
15606
15606
|
var provider = undefined;
|
|
15607
|
-
var storage = null;
|
|
15608
15607
|
// An explicit `defaultProvider` overrides the strategy-based selection
|
|
15609
15608
|
// below and decides which provider backs the storage.
|
|
15610
15609
|
var defaultProvider = options === null || options === void 0 ? void 0 : options.defaultProvider;
|
|
@@ -15631,8 +15630,7 @@ var AsyncStorage = /*#__PURE__*/ function() {
|
|
|
15631
15630
|
if (!provider) {
|
|
15632
15631
|
provider = new _engines_memory_storage_provider__WEBPACK_IMPORTED_MODULE_8__.MemoryStorageProvider();
|
|
15633
15632
|
}
|
|
15634
|
-
|
|
15635
|
-
return storage;
|
|
15633
|
+
return new AsyncStorage(Promise.resolve(provider), suffix);
|
|
15636
15634
|
}
|
|
15637
15635
|
}
|
|
15638
15636
|
]);
|
|
@@ -20255,7 +20253,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
|
|
|
20255
20253
|
};
|
|
20256
20254
|
};
|
|
20257
20255
|
var getMatchStrategy = function getMatchStrategy(inBox) {
|
|
20258
|
-
var strategy
|
|
20256
|
+
var strategy;
|
|
20259
20257
|
if (Popup.boxInView(getPointByStrategy(defaultStrategy), inBox)) {
|
|
20260
20258
|
strategy = defaultStrategy;
|
|
20261
20259
|
} else {
|
|
@@ -27292,7 +27290,7 @@ var ImageEditor = /*#__PURE__*/ function(ViewComponent) {
|
|
|
27292
27290
|
h: 0
|
|
27293
27291
|
}), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "calcCropBox", function() {
|
|
27294
27292
|
var node = _this.crop_box.parentNode, w = node.offsetWidth * 0.8, h = node.offsetHeight * 0.8;
|
|
27295
|
-
var wn
|
|
27293
|
+
var wn, hn;
|
|
27296
27294
|
var nw = _this.naturalWidth, nh = _this.naturalHeight;
|
|
27297
27295
|
if (w > nw && h > nh) {
|
|
27298
27296
|
wn = nw;
|
|
@@ -28971,8 +28969,8 @@ var Table = /*#__PURE__*/ function(ViewComponent) {
|
|
|
28971
28969
|
{
|
|
28972
28970
|
key: "__removeExtraRowspans",
|
|
28973
28971
|
value: function __removeExtraRowspans(box, marked) {
|
|
28974
|
-
var i
|
|
28975
|
-
var j
|
|
28972
|
+
var i;
|
|
28973
|
+
var j;
|
|
28976
28974
|
for(i = 0; i < box.length; i += 1){
|
|
28977
28975
|
var min = 1000000;
|
|
28978
28976
|
var not = false;
|
|
@@ -31503,7 +31501,6 @@ jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', (_palette_svg__WE
|
|
|
31503
31501
|
button
|
|
31504
31502
|
])
|
|
31505
31503
|
]);
|
|
31506
|
-
currentImage = null;
|
|
31507
31504
|
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)) {
|
|
31508
31505
|
currentImage = elm.tagName === 'IMG' ? elm : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.$$)('img', elm)[0];
|
|
31509
31506
|
val(form.container, 'url', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.attr)(currentImage, 'src'));
|
|
@@ -33122,7 +33119,6 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
|
|
|
33122
33119
|
}
|
|
33123
33120
|
if (removeNeighbor) {
|
|
33124
33121
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(removeNeighbor);
|
|
33125
|
-
removeNeighbor = null;
|
|
33126
33122
|
}
|
|
33127
33123
|
if (charRemoved) {
|
|
33128
33124
|
removeEmptyForParent(fakeNode, 'a');
|
|
@@ -34811,7 +34807,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34811
34807
|
*/ function replaceOldTags(jodit, nodeElm, hadEffect) {
|
|
34812
34808
|
var newNodeElm = replaceIfMatched(jodit, nodeElm, jodit.o.cleanHTML.replaceOldTags);
|
|
34813
34809
|
if (nodeElm !== newNodeElm) {
|
|
34814
|
-
nodeElm = newNodeElm;
|
|
34815
34810
|
return true;
|
|
34816
34811
|
}
|
|
34817
34812
|
return hadEffect;
|
|
@@ -35549,7 +35544,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.brush = {
|
|
|
35549
35544
|
button.state.activated = false;
|
|
35550
35545
|
},
|
|
35551
35546
|
popup: function popup(editor, current, close, button) {
|
|
35552
|
-
var colorHEX = '', bg_color = '', tabs
|
|
35547
|
+
var colorHEX = '', bg_color = '', tabs, currentElement = null;
|
|
35553
35548
|
if (current && current !== editor.editor && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isNode(current)) {
|
|
35554
35549
|
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([
|
|
35555
35550
|
'br',
|
|
@@ -46142,11 +46137,11 @@ var key = 'table_processor_observer-resize';
|
|
|
46142
46137
|
this.startX = event.clientX;
|
|
46143
46138
|
this.j.lock(key);
|
|
46144
46139
|
this.resizeHandler.classList.add('jodit-table-resizer_moved');
|
|
46145
|
-
var box
|
|
46140
|
+
var box;
|
|
46146
46141
|
this.minX = 0;
|
|
46147
46142
|
this.maxX = 1000000;
|
|
46148
46143
|
if (this.wholeTable != null) {
|
|
46149
|
-
tableBox = this.workTable.parentNode.getBoundingClientRect();
|
|
46144
|
+
var tableBox = this.workTable.parentNode.getBoundingClientRect();
|
|
46150
46145
|
this.minX = tableBox.left;
|
|
46151
46146
|
this.maxX = this.minX + tableBox.width;
|
|
46152
46147
|
} else {
|
|
@@ -46821,7 +46816,7 @@ var keyBInd = '__jodit-resizer_binded';
|
|
|
46821
46816
|
diff_y = this.pointerY - this.startY;
|
|
46822
46817
|
}
|
|
46823
46818
|
var className = this.handle.className;
|
|
46824
|
-
var new_w
|
|
46819
|
+
var new_w, new_h;
|
|
46825
46820
|
var uar = this.j.o.resizer.useAspectRatio;
|
|
46826
46821
|
if (!this.isAltMode && (uar === true || uar && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(this.element, uar))) {
|
|
46827
46822
|
if (diff_x) {
|
|
@@ -47430,7 +47425,7 @@ var SentenceFinder = /*#__PURE__*/ function() {
|
|
|
47430
47425
|
value: function ranges(needle) {
|
|
47431
47426
|
var position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
47432
47427
|
var results = [];
|
|
47433
|
-
var index = position, len
|
|
47428
|
+
var index = position, len, startQueueIndex = 0;
|
|
47434
47429
|
// Find all ranges in substring
|
|
47435
47430
|
do {
|
|
47436
47431
|
var ref;
|
|
@@ -50321,7 +50316,7 @@ var SourceEditor = /*#__PURE__*/ function() {
|
|
|
50321
50316
|
return;
|
|
50322
50317
|
}
|
|
50323
50318
|
var value = this.getMirrorValue();
|
|
50324
|
-
var selectionStart
|
|
50319
|
+
var selectionStart, selectionEnd;
|
|
50325
50320
|
try {
|
|
50326
50321
|
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);
|
|
50327
50322
|
if (!this.j.o.editHTMLDocumentMode && this.j.o.beautifyHTML) {
|
|
@@ -52753,7 +52748,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.controls.table = {
|
|
|
52753
52748
|
return;
|
|
52754
52749
|
}
|
|
52755
52750
|
var index = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(e.target, '-index') || '0', 10), row = Math.floor(index / default_cols_count), col = index % default_cols_count;
|
|
52756
|
-
var nextIndex
|
|
52751
|
+
var nextIndex;
|
|
52757
52752
|
switch(e.key){
|
|
52758
52753
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_LEFT:
|
|
52759
52754
|
nextIndex = col > 0 ? index - 1 : index;
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.14.
|
|
11
|
+
* Version: v4.14.5
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|