jodit 4.5.4 → 4.5.8
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 +33 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +20 -12
- package/es2015/jodit.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +16 -6
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- 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 +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 +2 -2
- package/es2021/jodit.js +16 -6
- package/es2021/jodit.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +16 -6
- package/es2021.en/jodit.min.js +2 -2
- 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/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/975.fat.min.js +1 -1
- package/es5/975.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +26 -21
- 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/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/append-script.d.ts +1 -4
- package/esm/core/helpers/utils/append-script.js +2 -2
- package/esm/jodit.d.ts +3 -0
- package/esm/jodit.js +4 -1
- package/esm/plugins/paste/paste.js +6 -1
- package/package.json +1 -1
- package/types/core/helpers/utils/append-script.d.ts +1 -4
- package/types/jodit.d.ts +3 -0
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.5.
|
|
4
|
+
* Version: v4.5.8
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1743,7 +1743,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1743
1743
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1744
1744
|
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1745
1745
|
*/
|
|
1746
|
-
const APP_VERSION = "4.5.
|
|
1746
|
+
const APP_VERSION = "4.5.8";
|
|
1747
1747
|
// prettier-ignore
|
|
1748
1748
|
const ES = "es2021";
|
|
1749
1749
|
const IS_ES_MODERN = true;
|
|
@@ -7422,6 +7422,7 @@ function alignElement(command, box) {
|
|
|
7422
7422
|
|
|
7423
7423
|
"use strict";
|
|
7424
7424
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7425
|
+
/* harmony export */ EW: function() { return /* binding */ alreadyLoadedList; },
|
|
7425
7426
|
/* harmony export */ Qt: function() { return /* binding */ loadNext; },
|
|
7426
7427
|
/* harmony export */ S5: function() { return /* binding */ appendStyleAsync; },
|
|
7427
7428
|
/* harmony export */ w4: function() { return /* binding */ appendScriptAsync; },
|
|
@@ -7438,7 +7439,7 @@ function alignElement(command, box) {
|
|
|
7438
7439
|
|
|
7439
7440
|
const alreadyLoadedList = new Map();
|
|
7440
7441
|
const cacheLoaders = (loader) => {
|
|
7441
|
-
return
|
|
7442
|
+
return (jodit, url) => {
|
|
7442
7443
|
if (alreadyLoadedList.has(url)) {
|
|
7443
7444
|
return alreadyLoadedList.get(url);
|
|
7444
7445
|
}
|
|
@@ -8450,6 +8451,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8450
8451
|
/* harmony export */ OptionsError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.ZW; },
|
|
8451
8452
|
/* harmony export */ abort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.h2; },
|
|
8452
8453
|
/* harmony export */ alignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.Op; },
|
|
8454
|
+
/* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.EW; },
|
|
8453
8455
|
/* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.w4; },
|
|
8454
8456
|
/* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.S5; },
|
|
8455
8457
|
/* harmony export */ attr: function() { return /* reexport safe */ _attr__WEBPACK_IMPORTED_MODULE_3__.C; },
|
|
@@ -8502,7 +8504,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8502
8504
|
/* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
8503
8505
|
/* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
8504
8506
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
8505
|
-
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _assert__WEBPACK_IMPORTED_MODULE_2__) if(["default","alignElement","clearAlign","hAlignElement","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _assert__WEBPACK_IMPORTED_MODULE_2__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
|
|
8507
|
+
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _assert__WEBPACK_IMPORTED_MODULE_2__) if(["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _assert__WEBPACK_IMPORTED_MODULE_2__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)
|
|
8506
8508
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
8507
8509
|
/* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26150);
|
|
8508
8510
|
/* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65717);
|
|
@@ -16499,9 +16501,12 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
|
|
|
16499
16501
|
this.hookStatus('ready', () => resolve(this));
|
|
16500
16502
|
});
|
|
16501
16503
|
}
|
|
16504
|
+
/**
|
|
16505
|
+
* @deprecated I don't know why I wrote itp
|
|
16506
|
+
*/
|
|
16502
16507
|
static get ready() {
|
|
16503
16508
|
return new Promise(resolve => {
|
|
16504
|
-
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .eventEmitter */ .RR.on('
|
|
16509
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .eventEmitter */ .RR.on('joditready', resolve);
|
|
16505
16510
|
});
|
|
16506
16511
|
}
|
|
16507
16512
|
/**
|
|
@@ -35739,7 +35744,12 @@ class paste extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plu
|
|
|
35739
35744
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT:
|
|
35740
35745
|
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.htmlspecialchars)(html);
|
|
35741
35746
|
break;
|
|
35742
|
-
default:
|
|
35747
|
+
default: {
|
|
35748
|
+
const newHTML = this.j.e.fire('onCustomPasteHTMLOption', action, html, e);
|
|
35749
|
+
if (typeof newHTML === 'string') {
|
|
35750
|
+
html = newHTML;
|
|
35751
|
+
}
|
|
35752
|
+
}
|
|
35743
35753
|
}
|
|
35744
35754
|
}
|
|
35745
35755
|
(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .pasteInsertHtml */ .sX)(e, this.j, html);
|