jodit 4.5.5 → 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.
Files changed (63) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +2 -2
  3. package/es2015/jodit.js +14 -11
  4. package/es2015/jodit.min.js +2 -2
  5. package/es2015/plugins/debug/debug.css +1 -1
  6. package/es2015/plugins/debug/debug.js +1 -1
  7. package/es2015/plugins/debug/debug.min.js +1 -1
  8. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  11. package/es2018/jodit.css +1 -1
  12. package/es2018/jodit.fat.min.js +2 -2
  13. package/es2018/jodit.js +10 -5
  14. package/es2018/jodit.min.js +2 -2
  15. package/es2018/plugins/debug/debug.css +1 -1
  16. package/es2018/plugins/debug/debug.js +1 -1
  17. package/es2018/plugins/debug/debug.min.js +1 -1
  18. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  21. package/es2021/jodit.css +1 -1
  22. package/es2021/jodit.fat.min.js +2 -2
  23. package/es2021/jodit.js +10 -5
  24. package/es2021/jodit.min.js +2 -2
  25. package/es2021/plugins/debug/debug.css +1 -1
  26. package/es2021/plugins/debug/debug.js +1 -1
  27. package/es2021/plugins/debug/debug.min.js +1 -1
  28. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  31. package/es2021.en/jodit.css +1 -1
  32. package/es2021.en/jodit.fat.min.js +2 -2
  33. package/es2021.en/jodit.js +10 -5
  34. package/es2021.en/jodit.min.js +2 -2
  35. package/es2021.en/plugins/debug/debug.css +1 -1
  36. package/es2021.en/plugins/debug/debug.js +1 -1
  37. package/es2021.en/plugins/debug/debug.min.js +1 -1
  38. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  39. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  40. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  41. package/es5/5.fat.min.js +1 -1
  42. package/es5/5.min.js +1 -1
  43. package/es5/975.fat.min.js +1 -1
  44. package/es5/975.min.js +1 -1
  45. package/es5/jodit.css +2 -2
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +20 -20
  48. package/es5/jodit.min.css +2 -2
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/esm/core/constants.js +1 -1
  57. package/esm/core/helpers/utils/append-script.d.ts +1 -4
  58. package/esm/core/helpers/utils/append-script.js +2 -2
  59. package/esm/jodit.d.ts +3 -0
  60. package/esm/jodit.js +4 -1
  61. package/package.json +1 -1
  62. package/types/core/helpers/utils/append-script.d.ts +1 -4
  63. package/types/jodit.d.ts +3 -0
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.5.5
4
+ * Version: v4.5.8
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1849,7 +1849,7 @@ __webpack_require__.r(__webpack_exports__);
1849
1849
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1850
1850
  */
1851
1851
 
1852
- var APP_VERSION = "4.5.5";
1852
+ var APP_VERSION = "4.5.8";
1853
1853
  // prettier-ignore
1854
1854
  var ES = "es5";
1855
1855
  var IS_ES_MODERN = false;
@@ -7768,13 +7768,13 @@ function alignElement(command, box) {
7768
7768
 
7769
7769
  "use strict";
7770
7770
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7771
+ /* harmony export */ EW: function() { return /* binding */ alreadyLoadedList; },
7771
7772
  /* harmony export */ Qt: function() { return /* binding */ loadNext; },
7772
7773
  /* harmony export */ S5: function() { return /* binding */ appendStyleAsync; },
7773
7774
  /* harmony export */ w4: function() { return /* binding */ appendScriptAsync; },
7774
7775
  /* harmony export */ x_: function() { return /* binding */ loadNextStyle; }
7775
7776
  /* harmony export */ });
7776
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
7777
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
7777
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98253);
7778
7778
  /* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60346);
7779
7779
  /*!
7780
7780
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -7783,20 +7783,16 @@ function alignElement(command, box) {
7783
7783
  */
7784
7784
 
7785
7785
 
7786
-
7787
7786
  var alreadyLoadedList = new Map();
7788
7787
  var cacheLoaders = function (loader) {
7789
- return function (jodit, url) { return (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__awaiter */ .sH)(void 0, void 0, Promise, function () {
7790
- var promise;
7791
- return (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__generator */ .YH)(this, function (_a) {
7792
- if (alreadyLoadedList.has(url)) {
7793
- return [2 /*return*/, alreadyLoadedList.get(url)];
7794
- }
7795
- promise = loader(jodit, url);
7796
- alreadyLoadedList.set(url, promise);
7797
- return [2 /*return*/, promise];
7798
- });
7799
- }); };
7788
+ return function (jodit, url) {
7789
+ if (alreadyLoadedList.has(url)) {
7790
+ return alreadyLoadedList.get(url);
7791
+ }
7792
+ var promise = loader(jodit, url);
7793
+ alreadyLoadedList.set(url, promise);
7794
+ return promise;
7795
+ };
7800
7796
  };
7801
7797
  /**
7802
7798
  * Load script and return promise
@@ -7843,7 +7839,7 @@ var appendStyleAsync = cacheLoaders(function (jodit, url) {
7843
7839
  });
7844
7840
  function loadNext(jodit, urls, i) {
7845
7841
  if (i === void 0) { i = 0; }
7846
- if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(urls[i])) {
7842
+ if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(urls[i])) {
7847
7843
  return Promise.resolve();
7848
7844
  }
7849
7845
  return appendScriptAsync(jodit, urls[i]).then(function () {
@@ -7852,7 +7848,7 @@ function loadNext(jodit, urls, i) {
7852
7848
  }
7853
7849
  function loadNextStyle(jodit, urls, i) {
7854
7850
  if (i === void 0) { i = 0; }
7855
- if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(urls[i])) {
7851
+ if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(urls[i])) {
7856
7852
  return Promise.resolve();
7857
7853
  }
7858
7854
  return appendStyleAsync(jodit, urls[i]).then(function () {
@@ -8840,6 +8836,7 @@ __webpack_require__.r(__webpack_exports__);
8840
8836
  /* harmony export */ OptionsError: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.ZW; },
8841
8837
  /* harmony export */ abort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.h2; },
8842
8838
  /* harmony export */ alignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.Op; },
8839
+ /* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.EW; },
8843
8840
  /* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.w4; },
8844
8841
  /* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script__WEBPACK_IMPORTED_MODULE_1__.S5; },
8845
8842
  /* harmony export */ attr: function() { return /* reexport safe */ _attr__WEBPACK_IMPORTED_MODULE_3__.C; },
@@ -8892,7 +8889,7 @@ __webpack_require__.r(__webpack_exports__);
8892
8889
  /* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
8893
8890
  /* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_assert__WEBPACK_IMPORTED_MODULE_2__);
8894
8891
  /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
8895
- /* 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__)
8892
+ /* 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__)
8896
8893
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
8897
8894
  /* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26150);
8898
8895
  /* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65717);
@@ -17433,9 +17430,12 @@ var Jodit = /** @class */ (function (_super) {
17433
17430
  });
17434
17431
  };
17435
17432
  Object.defineProperty(Jodit, "ready", {
17433
+ /**
17434
+ * @deprecated I don't know why I wrote itp
17435
+ */
17436
17436
  get: function () {
17437
17437
  return new Promise(function (resolve) {
17438
- jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .eventEmitter */ .RR.on('oditready', resolve);
17438
+ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .eventEmitter */ .RR.on('joditready', resolve);
17439
17439
  });
17440
17440
  },
17441
17441
  enumerable: false,
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.5.5
4
+ * Version: v4.5.8
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.5.5
11
+ * Version: v4.5.8
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */