jodit 4.8.1 → 4.8.2

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 (52) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +3 -3
  3. package/es2015/jodit.js +12 -4
  4. package/es2015/jodit.min.js +3 -3
  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.fat.min.js +3 -3
  12. package/es2018/jodit.min.js +3 -3
  13. package/es2018/plugins/debug/debug.min.js +1 -1
  14. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  15. package/es2021/jodit.css +1 -1
  16. package/es2021/jodit.fat.min.js +4 -4
  17. package/es2021/jodit.js +12 -4
  18. package/es2021/jodit.min.js +4 -4
  19. package/es2021/plugins/debug/debug.css +1 -1
  20. package/es2021/plugins/debug/debug.js +1 -1
  21. package/es2021/plugins/debug/debug.min.js +1 -1
  22. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  25. package/es2021.en/jodit.css +1 -1
  26. package/es2021.en/jodit.fat.min.js +4 -4
  27. package/es2021.en/jodit.js +12 -4
  28. package/es2021.en/jodit.min.js +4 -4
  29. package/es2021.en/plugins/debug/debug.css +1 -1
  30. package/es2021.en/plugins/debug/debug.js +1 -1
  31. package/es2021.en/plugins/debug/debug.min.js +1 -1
  32. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  35. package/es5/jodit.css +2 -2
  36. package/es5/jodit.fat.min.js +2 -2
  37. package/es5/jodit.js +52 -14
  38. package/es5/jodit.min.css +2 -2
  39. package/es5/jodit.min.js +2 -2
  40. package/es5/plugins/debug/debug.css +1 -1
  41. package/es5/plugins/debug/debug.js +1 -1
  42. package/es5/plugins/debug/debug.min.js +1 -1
  43. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  46. package/es5/polyfills.fat.min.js +1 -1
  47. package/es5/polyfills.js +1 -1
  48. package/es5/polyfills.min.js +1 -1
  49. package/esm/core/constants.js +1 -1
  50. package/esm/plugins/image-properties/image-properties.js +6 -1
  51. package/esm/plugins/image-properties/readers/size.js +6 -1
  52. package/package.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.8.1
4
+ * Version: v4.8.2
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -28398,16 +28398,34 @@ function _array_without_holes(arr) {
28398
28398
 
28399
28399
  /** @private */ function readSizes(image, values, state) {
28400
28400
  return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
28401
- var width, height, imageWidth, imageHeight, w, h;
28401
+ var e, width, height, imageWidth, imageHeight, w, h;
28402
28402
  return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_1__._)(this, function(_state) {
28403
28403
  switch(_state.label){
28404
28404
  case 0:
28405
+ _state.trys.push([
28406
+ 0,
28407
+ 2,
28408
+ ,
28409
+ 3
28410
+ ]);
28405
28411
  return [
28406
28412
  4,
28407
28413
  image.decode()
28408
28414
  ];
28409
28415
  case 1:
28410
28416
  _state.sent();
28417
+ return [
28418
+ 3,
28419
+ 3
28420
+ ];
28421
+ case 2:
28422
+ e = _state.sent();
28423
+ console.error(e);
28424
+ return [
28425
+ 3,
28426
+ 3
28427
+ ];
28428
+ case 3:
28411
28429
  width = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'width', true) || (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__.attr)(image, 'width') || false;
28412
28430
  height = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(image, 'height', true) || (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__.attr)(image, 'height') || false;
28413
28431
  values.imageWidth = width !== false ? (0,_utils_utils__WEBPACK_IMPORTED_MODULE_5__.normalSizeFromString)(width) : image.offsetWidth || image.naturalWidth;
@@ -41073,7 +41091,7 @@ __webpack_require__.r(__webpack_exports__);
41073
41091
  * @packageDocumentation
41074
41092
  * @module constants
41075
41093
  */
41076
- var APP_VERSION = "4.8.1";
41094
+ var APP_VERSION = "4.8.2";
41077
41095
  // prettier-ignore
41078
41096
  var ES = "es5";
41079
41097
  var IS_ES_MODERN = false;
@@ -44372,7 +44390,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('image', image);
44372
44390
  key: "onStateValuesImageSrcChange",
44373
44391
  value: function onStateValuesImageSrcChange() {
44374
44392
  return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
44375
- var _this_state, image, values, w, e;
44393
+ var _this_state, image, values, e, w, e1;
44376
44394
  return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_8__._)(this, function(_state) {
44377
44395
  switch(_state.label){
44378
44396
  case 0:
@@ -44386,17 +44404,37 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('image', image);
44386
44404
  case 1:
44387
44405
  _state.trys.push([
44388
44406
  1,
44389
- 3,
44407
+ 6,
44408
+ 7,
44409
+ 8
44410
+ ]);
44411
+ this.__lock();
44412
+ _state.label = 2;
44413
+ case 2:
44414
+ _state.trys.push([
44415
+ 2,
44390
44416
  4,
44417
+ ,
44391
44418
  5
44392
44419
  ]);
44393
- this.__lock();
44394
44420
  return [
44395
44421
  4,
44396
44422
  image.decode()
44397
44423
  ];
44398
- case 2:
44424
+ case 3:
44399
44425
  _state.sent();
44426
+ return [
44427
+ 3,
44428
+ 5
44429
+ ];
44430
+ case 4:
44431
+ e = _state.sent();
44432
+ console.error(e);
44433
+ return [
44434
+ 3,
44435
+ 5
44436
+ ];
44437
+ case 5:
44400
44438
  if (this.state.sizeIsLocked && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_12__.isNumeric)(values.imageWidth)) {
44401
44439
  w = parseFloat(values.imageWidth.toString());
44402
44440
  values.imageHeight = Math.round(w / this.state.ratio);
@@ -44404,21 +44442,21 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('image', image);
44404
44442
  this.j.e.fire('updateImageProperties.imageproperties', image);
44405
44443
  return [
44406
44444
  3,
44407
- 5
44445
+ 8
44408
44446
  ];
44409
- case 3:
44410
- e = _state.sent();
44411
- this.j.alert(e.message);
44447
+ case 6:
44448
+ e1 = _state.sent();
44449
+ this.j.alert(e1.message);
44412
44450
  return [
44413
44451
  3,
44414
- 5
44452
+ 8
44415
44453
  ];
44416
- case 4:
44454
+ case 7:
44417
44455
  this.__unlock();
44418
44456
  return [
44419
44457
  7
44420
44458
  ];
44421
- case 5:
44459
+ case 8:
44422
44460
  return [
44423
44461
  2
44424
44462
  ];
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.8.1
4
+ * Version: v4.8.2
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.8.1
11
+ * Version: v4.8.2
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */