jodit 4.7.5 → 4.7.6

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 (61) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +4 -18
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.fat.min.js +8 -8
  5. package/es2015/jodit.js +85 -137
  6. package/es2015/jodit.min.js +7 -7
  7. package/es2015/plugins/debug/debug.css +1 -1
  8. package/es2015/plugins/debug/debug.js +1 -1
  9. package/es2015/plugins/debug/debug.min.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.js +9 -3
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  13. package/es2018/jodit.fat.min.js +8 -8
  14. package/es2018/jodit.min.js +7 -7
  15. package/es2018/plugins/debug/debug.min.js +1 -1
  16. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
  17. package/es2021/jodit.css +1 -1
  18. package/es2021/jodit.fat.min.js +9 -9
  19. package/es2021/jodit.js +85 -137
  20. package/es2021/jodit.min.js +8 -8
  21. package/es2021/plugins/debug/debug.css +1 -1
  22. package/es2021/plugins/debug/debug.js +1 -1
  23. package/es2021/plugins/debug/debug.min.js +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.js +9 -3
  26. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  27. package/es2021.en/jodit.css +1 -1
  28. package/es2021.en/jodit.fat.min.js +10 -10
  29. package/es2021.en/jodit.js +85 -137
  30. package/es2021.en/jodit.min.js +9 -9
  31. package/es2021.en/plugins/debug/debug.css +1 -1
  32. package/es2021.en/plugins/debug/debug.js +1 -1
  33. package/es2021.en/plugins/debug/debug.min.js +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.js +9 -3
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  37. package/es5/jodit.css +2 -2
  38. package/es5/jodit.fat.min.js +2 -2
  39. package/es5/jodit.js +86 -141
  40. package/es5/jodit.min.css +2 -2
  41. package/es5/jodit.min.js +2 -2
  42. package/es5/plugins/debug/debug.css +1 -1
  43. package/es5/plugins/debug/debug.js +1 -1
  44. package/es5/plugins/debug/debug.min.js +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.js +9 -3
  47. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  48. package/es5/polyfills.fat.min.js +1 -1
  49. package/es5/polyfills.js +1 -1
  50. package/es5/polyfills.min.js +1 -1
  51. package/esm/core/constants.js +1 -1
  52. package/esm/core/decorators/autobind/autobind.d.ts +19 -1
  53. package/esm/core/decorators/autobind/autobind.js +40 -1
  54. package/esm/modules/file-browser/data-provider.js +2 -17
  55. package/esm/plugins/resize-handler/resize-handler.js +10 -5
  56. package/esm/plugins/size/size.js +8 -6
  57. package/esm/plugins/speech-recognize/helpers/recognize-manager.js +13 -9
  58. package/esm/tsconfig.json +1 -1
  59. package/package.json +1 -1
  60. package/types/core/decorators/autobind/autobind.d.ts +19 -1
  61. package/types/tsconfig.json +1 -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.7.5
4
+ * Version: v4.7.6
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -590,7 +590,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 24 24\">
590
590
  /* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42395);
591
591
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
592
592
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(69364);
593
- /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(52201);
593
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(49574);
594
594
  /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(68616);
595
595
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(23211);
596
596
  /* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(45664);
@@ -763,7 +763,7 @@ var ViewWithToolbar = /*#__PURE__*/ function(View) {
763
763
  (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_11__.watch)(':rebuildToolbar')
764
764
  ], ViewWithToolbar.prototype, "buildToolbar", null);
765
765
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
766
- jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__["default"]
766
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__.autobind
767
767
  ], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
768
768
 
769
769
 
@@ -8148,7 +8148,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
8148
8148
  /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
8149
8149
  /* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91231);
8150
8150
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(81937);
8151
- /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(52201);
8151
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(49574);
8152
8152
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(65946);
8153
8153
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(33201);
8154
8154
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(5266);
@@ -8369,7 +8369,7 @@ var Ajax = /*#__PURE__*/ function() {
8369
8369
  }();
8370
8370
  (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(Ajax, "log", []);
8371
8371
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_7__.__decorate)([
8372
- jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__["default"]
8372
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__.autobind
8373
8373
  ], Ajax.prototype, "destruct", null);
8374
8374
 
8375
8375
 
@@ -8521,12 +8521,11 @@ var Ajax = /*#__PURE__*/ function() {
8521
8521
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25045);
8522
8522
  /* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41411);
8523
8523
  /* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15366);
8524
- /* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
8524
+ /* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
8525
8525
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(81937);
8526
- /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(84839);
8527
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(65946);
8528
- /* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(73714);
8529
- /* harmony import */ var jodit_modules_file_browser_builders_item__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(58664);
8526
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(65946);
8527
+ /* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73714);
8528
+ /* harmony import */ var jodit_modules_file_browser_builders_item__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58664);
8530
8529
  /*!
8531
8530
  * Jodit Editor (https://xdsoft.net/jodit/)
8532
8531
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8544,8 +8543,6 @@ var Ajax = /*#__PURE__*/ function() {
8544
8543
 
8545
8544
 
8546
8545
 
8547
-
8548
-
8549
8546
  var DEFAULT_SOURCE_NAME = 'default';
8550
8547
  var possibleRules = new Set([
8551
8548
  'allowFiles',
@@ -8596,13 +8593,13 @@ var DataProvider = /*#__PURE__*/ function() {
8596
8593
  ajax === null || ajax === void 0 ? void 0 : ajax.abort();
8597
8594
  instances.delete(name);
8598
8595
  }
8599
- var opts = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.ConfigProto)(this.options[name] !== undefined ? this.options[name] : {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.ConfigProto)({
8596
+ var opts = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.ConfigProto)(this.options[name] !== undefined ? this.options[name] : {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.ConfigProto)({
8600
8597
  onProgress: this.progressHandler
8601
8598
  }, this.o.ajax));
8602
8599
  if (opts.prepareData) {
8603
8600
  opts.data = opts.prepareData.call(this, opts.data);
8604
8601
  }
8605
- var ajax1 = new jodit_core_request__WEBPACK_IMPORTED_MODULE_10__.Ajax(opts);
8602
+ var ajax1 = new jodit_core_request__WEBPACK_IMPORTED_MODULE_9__.Ajax(opts);
8606
8603
  instances.set(name, ajax1);
8607
8604
  var promise = ajax1.send();
8608
8605
  promise.finally(function() {
@@ -8635,7 +8632,7 @@ var DataProvider = /*#__PURE__*/ function() {
8635
8632
  */ function permissions(path, source) {
8636
8633
  return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
8637
8634
  var _this;
8638
- return (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__generator)(this, function(_state) {
8635
+ return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_6__.__generator)(this, function(_state) {
8639
8636
  _this = this;
8640
8637
  if (!this.o.permissions) {
8641
8638
  return [
@@ -8650,7 +8647,7 @@ var DataProvider = /*#__PURE__*/ function() {
8650
8647
  2,
8651
8648
  this.get('permissions').then(function(resp) {
8652
8649
  if (_this.parent.isInDestruct) {
8653
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.abort)();
8650
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.abort)();
8654
8651
  }
8655
8652
  var process = _this.o.permissions.process;
8656
8653
  if (!process) {
@@ -8681,7 +8678,7 @@ var DataProvider = /*#__PURE__*/ function() {
8681
8678
  var rule = 'allow' + action;
8682
8679
  if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_7__.IS_PROD) {
8683
8680
  if (!possibleRules.has(rule)) {
8684
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.error)('Wrong action ' + action);
8681
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.error)('Wrong action ' + action);
8685
8682
  }
8686
8683
  }
8687
8684
  var presetValue = this.o.permissionsPresets[rule];
@@ -8762,14 +8759,14 @@ var DataProvider = /*#__PURE__*/ function() {
8762
8759
  sources.forEach(function(source) {
8763
8760
  if (source.files && source.files.length) {
8764
8761
  var sort = _this.o.sort;
8765
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.isFunction)(sort) && mods.sortBy) {
8762
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.isFunction)(sort) && mods.sortBy) {
8766
8763
  source.files.sort(function(a, b) {
8767
8764
  return sort(a, b, mods.sortBy);
8768
8765
  });
8769
8766
  }
8770
8767
  source.files.forEach(function(item) {
8771
8768
  if (inFilter(item) && canBeFile(item)) {
8772
- elements.push(jodit_modules_file_browser_builders_item__WEBPACK_IMPORTED_MODULE_11__.FileBrowserItem.create((0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_5__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_4__._)({}, item), {
8769
+ elements.push(jodit_modules_file_browser_builders_item__WEBPACK_IMPORTED_MODULE_10__.FileBrowserItem.create((0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_5__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_4__._)({}, item), {
8773
8770
  sourceName: source.name,
8774
8771
  source: source
8775
8772
  })));
@@ -8785,11 +8782,11 @@ var DataProvider = /*#__PURE__*/ function() {
8785
8782
  value: function tree(path, source) {
8786
8783
  return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
8787
8784
  var _this;
8788
- return (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__generator)(this, function(_state) {
8785
+ return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_6__.__generator)(this, function(_state) {
8789
8786
  switch(_state.label){
8790
8787
  case 0:
8791
8788
  _this = this;
8792
- path = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.normalizeRelativePath)(path);
8789
+ path = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.normalizeRelativePath)(path);
8793
8790
  if (!this.o.folder) {
8794
8791
  return [
8795
8792
  2,
@@ -8828,12 +8825,12 @@ var DataProvider = /*#__PURE__*/ function() {
8828
8825
  */ key: "getPathByUrl",
8829
8826
  value: function getPathByUrl(url) {
8830
8827
  var _this = this;
8831
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.set)('options.getLocalFileByUrl.data.url', url, this);
8828
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.set)('options.getLocalFileByUrl.data.url', url, this);
8832
8829
  return this.get('getLocalFileByUrl').then(function(resp) {
8833
8830
  if (_this.isSuccess(resp)) {
8834
8831
  return resp.data;
8835
8832
  }
8836
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.error)(_this.getMessage(resp));
8833
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.error)(_this.getMessage(resp));
8837
8834
  });
8838
8835
  }
8839
8836
  },
@@ -8849,7 +8846,7 @@ var DataProvider = /*#__PURE__*/ function() {
8849
8846
  var _this = this;
8850
8847
  var create = this.o.create;
8851
8848
  if (!create) {
8852
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.error)('Set Create api options');
8849
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.error)('Set Create api options');
8853
8850
  }
8854
8851
  create.data.source = source;
8855
8852
  create.data.path = path;
@@ -8858,7 +8855,7 @@ var DataProvider = /*#__PURE__*/ function() {
8858
8855
  if (_this.isSuccess(resp)) {
8859
8856
  return true;
8860
8857
  }
8861
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.error)(_this.getMessage(resp));
8858
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.error)(_this.getMessage(resp));
8862
8859
  });
8863
8860
  }
8864
8861
  },
@@ -8874,7 +8871,7 @@ var DataProvider = /*#__PURE__*/ function() {
8874
8871
  var mode = isFile ? 'fileMove' : 'folderMove';
8875
8872
  var option = this.options[mode];
8876
8873
  if (!option) {
8877
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.error)('Set Move api options');
8874
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.error)('Set Move api options');
8878
8875
  }
8879
8876
  option.data.from = filepath;
8880
8877
  option.data.path = path;
@@ -8883,7 +8880,7 @@ var DataProvider = /*#__PURE__*/ function() {
8883
8880
  if (_this.isSuccess(resp)) {
8884
8881
  return true;
8885
8882
  }
8886
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.error)(_this.getMessage(resp));
8883
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.error)(_this.getMessage(resp));
8887
8884
  });
8888
8885
  }
8889
8886
  },
@@ -8899,7 +8896,7 @@ var DataProvider = /*#__PURE__*/ function() {
8899
8896
  var _this = this;
8900
8897
  var fr = this.o[action];
8901
8898
  if (!fr) {
8902
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.error)('Set "'.concat(action, '" api options'));
8899
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.error)('Set "'.concat(action, '" api options'));
8903
8900
  }
8904
8901
  fr.data.path = path;
8905
8902
  fr.data.name = file;
@@ -8949,7 +8946,7 @@ var DataProvider = /*#__PURE__*/ function() {
8949
8946
  var _this = this;
8950
8947
  var fr = this.o[action];
8951
8948
  if (!fr) {
8952
- throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_9__.error)('Set "'.concat(action, '" api options'));
8949
+ throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__.error)('Set "'.concat(action, '" api options'));
8953
8950
  }
8954
8951
  fr.data.path = path;
8955
8952
  fr.data.name = name;
@@ -9046,9 +9043,6 @@ var DataProvider = /*#__PURE__*/ function() {
9046
9043
  return DataProvider;
9047
9044
  }();
9048
9045
 
9049
- DataProvider = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
9050
- jodit_core_decorators__WEBPACK_IMPORTED_MODULE_8__.autobind
9051
- ], DataProvider);
9052
9046
 
9053
9047
 
9054
9048
  /***/ }),
@@ -22450,7 +22444,9 @@ function _array_with_holes(arr) {
22450
22444
 
22451
22445
 
22452
22446
 
22453
- var size = /*#__PURE__*/ function(Plugin) {
22447
+ /**
22448
+ * Calculate sizes for editor workspace and handle setHeight and setWidth events
22449
+ */ var size = /*#__PURE__*/ function(Plugin) {
22454
22450
  "use strict";
22455
22451
  (0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__._)(size, Plugin);
22456
22452
  function size() {
@@ -22615,10 +22611,13 @@ var size = /*#__PURE__*/ function(Plugin) {
22615
22611
  ], size.prototype, "__initialize", null);
22616
22612
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
22617
22613
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.autobind
22618
- ], size.prototype, "__resizeWorkspaceImd", null);
22619
- size = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
22614
+ ], size.prototype, "__setHeight", null);
22615
+ (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
22616
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.autobind
22617
+ ], size.prototype, "__setWidth", null);
22618
+ (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
22620
22619
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.autobind
22621
- ], size);
22620
+ ], size.prototype, "__resizeWorkspaceImd", null);
22622
22621
  jodit_core_global__WEBPACK_IMPORTED_MODULE_8__.pluginSystem.add('size', size);
22623
22622
 
22624
22623
 
@@ -24503,18 +24502,56 @@ var cns = console;
24503
24502
 
24504
24503
  "use strict";
24505
24504
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24506
- /* harmony export */ autobind: function() { return /* reexport safe */ autobind_decorator__WEBPACK_IMPORTED_MODULE_0__["default"]; }
24505
+ /* harmony export */ autobind: function() { return /* binding */ autobind; }
24507
24506
  /* harmony export */ });
24508
- /* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52201);
24507
+ /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91565);
24509
24508
  /*!
24510
24509
  * Jodit Editor (https://xdsoft.net/jodit/)
24511
24510
  * Released under MIT see LICENSE.txt in the project root for license information.
24512
24511
  * Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
24513
- */ /**
24512
+ */
24513
+ /**
24514
24514
  * [[include:core/decorators/autobind/README.md]]
24515
24515
  * @packageDocumentation
24516
24516
  * @module decorators/autobind
24517
- */
24517
+ */ /**
24518
+ * Decorator that automatically binds a method to its class instance.
24519
+ * This is useful when passing methods as callbacks to preserve the correct `this` context.
24520
+ *
24521
+ * @example
24522
+ * ```typescript
24523
+ * class MyComponent {
24524
+ * @autobind
24525
+ * handleClick() {
24526
+ * console.log(this); // Always refers to MyComponent instance
24527
+ * }
24528
+ * }
24529
+ *
24530
+ * const component = new MyComponent();
24531
+ * const button = document.createElement('button');
24532
+ * button.addEventListener('click', component.handleClick); // `this` is correctly bound
24533
+ * ```
24534
+ */ function autobind(_target, propertyKey, descriptor) {
24535
+ if (!(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__.isFunction)(descriptor.value)) {
24536
+ throw new TypeError('@autobind can only be applied to methods, but "'.concat(propertyKey, '" is not a function'));
24537
+ }
24538
+ var originalMethod = descriptor.value;
24539
+ return {
24540
+ configurable: true,
24541
+ get: function get() {
24542
+ // Create a bound version of the method and cache it on the instance
24543
+ var boundMethod = originalMethod.bind(this);
24544
+ // Define the bound method as a property on the instance
24545
+ // This ensures the same bound function is returned on subsequent accesses
24546
+ Object.defineProperty(this, propertyKey, {
24547
+ value: boundMethod,
24548
+ configurable: true,
24549
+ writable: true
24550
+ });
24551
+ return boundMethod;
24552
+ }
24553
+ };
24554
+ }
24518
24555
 
24519
24556
 
24520
24557
  /***/ }),
@@ -26255,104 +26292,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_9__.pluginSystem.add('xpath', xpath);
26255
26292
  }
26256
26293
 
26257
26294
 
26258
- /***/ }),
26259
-
26260
- /***/ 52201:
26261
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
26262
-
26263
- "use strict";
26264
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26265
- /* harmony export */ "default": function() { return /* binding */ autobind; }
26266
- /* harmony export */ });
26267
- /* unused harmony exports boundMethod, boundClass */
26268
- function _type_of(obj) {
26269
- "@swc/helpers - typeof";
26270
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
26271
- }
26272
- function _typeof(obj) {
26273
- if (typeof Symbol === "function" && _type_of(Symbol.iterator) === "symbol") {
26274
- _typeof = function _typeof(obj) {
26275
- return typeof obj === "undefined" ? "undefined" : _type_of(obj);
26276
- };
26277
- } else {
26278
- _typeof = function _typeof(obj) {
26279
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _type_of(obj);
26280
- };
26281
- }
26282
- return _typeof(obj);
26283
- }
26284
- /**
26285
- * Return a descriptor removing the value and returning a getter
26286
- * The getter will return a .bind version of the function
26287
- * and memoize the result against a symbol on the instance
26288
- */ function boundMethod(target, key, descriptor) {
26289
- var fn = descriptor.value;
26290
- if (typeof fn !== 'function') {
26291
- throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(_typeof(fn)));
26292
- } // In IE11 calling Object.defineProperty has a side-effect of evaluating the
26293
- // getter for the property which is being replaced. This causes infinite
26294
- // recursion and an "Out of stack space" error.
26295
- var definingProperty = false;
26296
- return {
26297
- configurable: true,
26298
- get: function get() {
26299
- // eslint-disable-next-line no-prototype-builtins
26300
- if (definingProperty || this === target.prototype || this.hasOwnProperty(key) || typeof fn !== 'function') {
26301
- return fn;
26302
- }
26303
- var boundFn = fn.bind(this);
26304
- definingProperty = true;
26305
- Object.defineProperty(this, key, {
26306
- configurable: true,
26307
- get: function get() {
26308
- return boundFn;
26309
- },
26310
- set: function set(value) {
26311
- fn = value;
26312
- delete this[key];
26313
- }
26314
- });
26315
- definingProperty = false;
26316
- return boundFn;
26317
- },
26318
- set: function set(value) {
26319
- fn = value;
26320
- }
26321
- };
26322
- }
26323
- /**
26324
- * Use boundMethod to bind all methods on the target.prototype
26325
- */ function boundClass(target) {
26326
- // (Using reflect to get all keys including symbols)
26327
- var keys; // Use Reflect if exists
26328
- if (typeof Reflect !== 'undefined' && typeof Reflect.ownKeys === 'function') {
26329
- keys = Reflect.ownKeys(target.prototype);
26330
- } else {
26331
- keys = Object.getOwnPropertyNames(target.prototype); // Use symbols if support is provided
26332
- if (typeof Object.getOwnPropertySymbols === 'function') {
26333
- keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
26334
- }
26335
- }
26336
- keys.forEach(function(key) {
26337
- // Ignore special case target method
26338
- if (key === 'constructor') {
26339
- return;
26340
- }
26341
- var descriptor = Object.getOwnPropertyDescriptor(target.prototype, key); // Only methods need binding
26342
- if (typeof descriptor.value === 'function') {
26343
- Object.defineProperty(target.prototype, key, boundMethod(target, key, descriptor));
26344
- }
26345
- });
26346
- return target;
26347
- }
26348
- function autobind() {
26349
- if (arguments.length === 1) {
26350
- return boundClass.apply(void 0, arguments);
26351
- }
26352
- return boundMethod.apply(void 0, arguments);
26353
- }
26354
-
26355
-
26356
26295
  /***/ }),
26357
26296
 
26358
26297
  /***/ 52433:
@@ -34718,9 +34657,15 @@ var resizeHandler = /*#__PURE__*/ function(Plugin) {
34718
34657
  /** @override **/ (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(resizeHandler, "requires", [
34719
34658
  'size'
34720
34659
  ]);
34721
- resizeHandler = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
34660
+ (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
34661
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.autobind
34662
+ ], resizeHandler.prototype, "onHandleResizeStart", null);
34663
+ (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
34664
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.autobind
34665
+ ], resizeHandler.prototype, "onHandleResize", null);
34666
+ (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
34722
34667
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_7__.autobind
34723
- ], resizeHandler);
34668
+ ], resizeHandler.prototype, "onHandleResizeEnd", null);
34724
34669
  jodit_core_global__WEBPACK_IMPORTED_MODULE_9__.pluginSystem.add('resizeHandler', resizeHandler);
34725
34670
 
34726
34671
 
@@ -40685,7 +40630,7 @@ __webpack_require__.r(__webpack_exports__);
40685
40630
  * @packageDocumentation
40686
40631
  * @module constants
40687
40632
  */
40688
- var APP_VERSION = "4.7.5";
40633
+ var APP_VERSION = "4.7.6";
40689
40634
  // prettier-ignore
40690
40635
  var ES = "es5";
40691
40636
  var IS_ES_MODERN = 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.7.5
4
+ * Version: v4.7.6
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.7.5
11
+ * Version: v4.7.6
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */