jodit 4.8.3 → 4.8.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +4 -4
  4. package/es2015/jodit.js +15 -14
  5. package/es2015/jodit.min.js +4 -4
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.fat.min.js +4 -4
  13. package/es2018/jodit.min.js +4 -4
  14. package/es2018/plugins/debug/debug.min.js +1 -1
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +4 -4
  18. package/es2021/jodit.js +15 -14
  19. package/es2021/jodit.min.js +4 -4
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +1 -1
  22. package/es2021/plugins/debug/debug.min.js +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +4 -4
  28. package/es2021.en/jodit.js +15 -14
  29. package/es2021.en/jodit.min.js +4 -4
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +1 -1
  32. package/es2021.en/plugins/debug/debug.min.js +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +18 -14
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +1 -1
  43. package/es5/plugins/debug/debug.min.js +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  47. package/es5/polyfills.fat.min.js +1 -1
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +1 -1
  50. package/esm/core/constants.js +1 -1
  51. package/esm/modules/toolbar/collection/collection.js +3 -2
  52. package/esm/plugins/size/size.d.ts +1 -0
  53. package/esm/plugins/size/size.js +4 -1
  54. package/esm/plugins/source/editor/engines/ace.js +8 -10
  55. package/esm/plugins/source/editor/engines/area.js +1 -1
  56. package/package.json +1 -1
  57. package/types/plugins/size/size.d.ts +1 -0
  58. package/.nvmrc +0 -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.3
4
+ * Version: v4.8.5
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -21292,7 +21292,7 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
21292
21292
  var _this;
21293
21293
  _this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, ToolbarCollection, [
21294
21294
  jodit
21295
- ]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "__listenEvents", 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' + 'selectionchange changeSelection focus afterSetMode touchstart focus blur');
21295
+ ]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "__listenEvents", 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize ' + 'selectionchange changeSelection focus afterSetMode touchstart focus blur');
21296
21296
  return _this;
21297
21297
  }
21298
21298
  (0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(ToolbarCollection, [
@@ -21424,6 +21424,7 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
21424
21424
  return ToolbarCollection;
21425
21425
  }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_11__.UIList);
21426
21426
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
21427
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_9__.watch)(':afterInit'),
21427
21428
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_9__.autobind
21428
21429
  ], ToolbarCollection.prototype, "__immediateUpdate", null);
21429
21430
  (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
@@ -22850,7 +22851,7 @@ function _array_with_holes(arr) {
22850
22851
  editor.e.on('setHeight.size', this.__setHeight).on('setWidth.size', this.__setWidth).on('afterInit.size changePlace.size', this.__initialize, {
22851
22852
  top: true
22852
22853
  }).on(editor.ow, 'load.size', this.__resizeWorkspaces).on('afterInit.size resize.size afterUpdateToolbar.size ' + 'scroll.size afterResize.size', this.__resizeWorkspaces).on('toggleFullSize.size toggleToolbar.size', this.__resizeWorkspaceImd);
22853
- this.__initialize();
22854
+ this.__immediateInitialize();
22854
22855
  }
22855
22856
  },
22856
22857
  {
@@ -22858,6 +22859,12 @@ function _array_with_holes(arr) {
22858
22859
  value: /**
22859
22860
  * Set editor size by options
22860
22861
  */ function __initialize() {
22862
+ this.__immediateInitialize();
22863
+ }
22864
+ },
22865
+ {
22866
+ key: "__immediateInitialize",
22867
+ value: function __immediateInitialize() {
22861
22868
  var j = this.j;
22862
22869
  if (j.o.inline) {
22863
22870
  return;
@@ -23346,7 +23353,7 @@ var TextAreaEditor = /*#__PURE__*/ function(SourceEditor) {
23346
23353
  _this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_0__._)(this, TextAreaEditor, arguments), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_3__._)(_this, "autosize", _this.j.async.debounce(function() {
23347
23354
  _this.instance.style.height = 'auto';
23348
23355
  _this.instance.style.height = _this.instance.scrollHeight + 'px';
23349
- }, _this.j.defaultTimeout));
23356
+ }, _this.j.defaultTimeout, true));
23350
23357
  return _this;
23351
23358
  }
23352
23359
  (0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_2__._)(TextAreaEditor, [
@@ -41091,7 +41098,7 @@ __webpack_require__.r(__webpack_exports__);
41091
41098
  * @packageDocumentation
41092
41099
  * @module constants
41093
41100
  */
41094
- var APP_VERSION = "4.8.3";
41101
+ var APP_VERSION = "4.8.5";
41095
41102
  // prettier-ignore
41096
41103
  var ES = "es5";
41097
41104
  var IS_ES_MODERN = false;
@@ -47274,21 +47281,18 @@ var AceEditor = /*#__PURE__*/ function(SourceEditor) {
47274
47281
  onResize();
47275
47282
  _this.onReady();
47276
47283
  };
47277
- editor.e.on('afterSetMode', function() {
47278
- if (editor.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__.MODE_SOURCE && editor.getMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__.MODE_SPLIT) {
47284
+ var initAceEditor = function initAceEditor() {
47285
+ if (editor.isInDestruct || editor.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__.MODE_SOURCE && editor.getMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__.MODE_SPLIT) {
47279
47286
  return;
47280
47287
  }
47281
47288
  _this.fromWYSIWYG();
47282
47289
  tryInitAceEditor();
47283
- });
47284
- tryInitAceEditor();
47290
+ };
47291
+ editor.e.on('afterSetMode', initAceEditor);
47292
+ initAceEditor();
47285
47293
  // global add ace editor in browser
47286
47294
  if (!this.aceExists()) {
47287
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(function() {
47288
- if (!editor.isInDestruct) {
47289
- tryInitAceEditor();
47290
- }
47291
- }).catch(function() {
47295
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.loadNext)(editor, editor.o.sourceEditorCDNUrlsJS).then(initAceEditor).catch(function() {
47292
47296
  return null;
47293
47297
  });
47294
47298
  }
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.3
4
+ * Version: v4.8.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.8.3
11
+ * Version: v4.8.5
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */