jodit 4.0.0-beta.94 → 4.0.0-beta.98

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 (99) hide show
  1. package/CHANGELOG.md +13 -5
  2. package/README.md +5 -5
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +89 -73
  6. package/es2015/jodit.min.js +2 -2
  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.css +1 -1
  13. package/es2018/jodit.fat.min.js +2 -2
  14. package/es2018/jodit.js +89 -73
  15. package/es2018/jodit.min.js +2 -2
  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 +89 -73
  24. package/es2021/jodit.min.js +2 -2
  25. package/es2021/plugins/debug/debug.js +1 -1
  26. package/es2021/plugins/debug/debug.min.js +1 -1
  27. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  28. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  30. package/es2021.en/jodit.css +1 -1
  31. package/es2021.en/jodit.fat.min.js +2 -2
  32. package/es2021.en/jodit.js +89 -73
  33. package/es2021.en/jodit.min.js +2 -2
  34. package/es2021.en/plugins/debug/debug.js +1 -1
  35. package/es2021.en/plugins/debug/debug.min.js +1 -1
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  37. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  38. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  39. package/es5/jodit.css +2 -2
  40. package/es5/jodit.fat.min.js +2 -2
  41. package/es5/jodit.js +93 -73
  42. package/es5/jodit.min.css +2 -2
  43. package/es5/jodit.min.js +2 -2
  44. package/es5/plugins/debug/debug.js +1 -1
  45. package/es5/plugins/debug/debug.min.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  47. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  48. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  49. package/esm/core/constants.js +1 -1
  50. package/esm/core/helpers/string/ucfirst.js +1 -1
  51. package/esm/core/helpers/utils/index.d.ts +0 -1
  52. package/esm/core/helpers/utils/index.js +0 -1
  53. package/esm/core/selection/interface.d.ts +1 -1
  54. package/esm/core/ui/form/inputs/area/area.d.ts +1 -1
  55. package/esm/core/ui/form/inputs/area/area.js +1 -1
  56. package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +1 -1
  57. package/esm/core/ui/form/inputs/checkbox/checkbox.js +1 -1
  58. package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
  59. package/esm/core/ui/form/inputs/file/file.js +1 -1
  60. package/esm/core/ui/form/inputs/index.d.ts +1 -1
  61. package/esm/core/ui/form/inputs/index.js +1 -1
  62. package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
  63. package/esm/core/ui/form/inputs/input/input.js +1 -1
  64. package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
  65. package/esm/core/ui/form/inputs/select/select.js +1 -1
  66. package/esm/core/view/view.d.ts +1 -0
  67. package/esm/core/view/view.js +4 -1
  68. package/esm/jodit.d.ts +2 -1
  69. package/esm/jodit.js +6 -0
  70. package/esm/modules/messages/messages.d.ts +28 -0
  71. package/esm/modules/messages/messages.js +28 -0
  72. package/esm/modules/table/table.d.ts +4 -2
  73. package/esm/modules/table/table.js +2 -0
  74. package/esm/modules/uploader/helpers/send.js +6 -1
  75. package/esm/modules/widget/color-picker/color-picker.d.ts +1 -1
  76. package/esm/modules/widget/color-picker/color-picker.js +1 -1
  77. package/esm/modules/widget/file-selector/file-selector.d.ts +1 -18
  78. package/esm/modules/widget/file-selector/file-selector.js +12 -19
  79. package/esm/modules/widget/tabs/tabs.d.ts +17 -6
  80. package/esm/modules/widget/tabs/tabs.js +17 -6
  81. package/package.json +1 -1
  82. package/types/core/helpers/utils/index.d.ts +0 -1
  83. package/types/core/selection/interface.d.ts +1 -1
  84. package/types/core/ui/form/inputs/area/area.d.ts +1 -1
  85. package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +1 -1
  86. package/types/core/ui/form/inputs/file/file.d.ts +1 -1
  87. package/types/core/ui/form/inputs/index.d.ts +1 -1
  88. package/types/core/ui/form/inputs/input/input.d.ts +1 -1
  89. package/types/core/ui/form/inputs/select/select.d.ts +1 -1
  90. package/types/core/view/view.d.ts +1 -0
  91. package/types/jodit.d.ts +2 -1
  92. package/types/modules/messages/messages.d.ts +28 -0
  93. package/types/modules/table/table.d.ts +4 -2
  94. package/types/modules/widget/color-picker/color-picker.d.ts +1 -1
  95. package/types/modules/widget/file-selector/file-selector.d.ts +1 -18
  96. package/types/modules/widget/tabs/tabs.d.ts +17 -6
  97. package/esm/core/helpers/utils/val.d.ts +0 -9
  98. package/esm/core/helpers/utils/val.js +0 -18
  99. package/types/core/helpers/utils/val.d.ts +0 -9
package/es5/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.0.0-beta.94
4
+ * Version: v4.0.0-beta.98
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -3108,7 +3108,7 @@ __webpack_require__.r(__webpack_exports__);
3108
3108
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
3109
3109
  */
3110
3110
 
3111
- var APP_VERSION = "4.0.0-beta.94";
3111
+ var APP_VERSION = "4.0.0-beta.98";
3112
3112
  // prettier-ignore
3113
3113
  var ES = "es5";
3114
3114
  var IS_ES_MODERN = false;
@@ -8675,7 +8675,7 @@ function ucfirst(value) {
8675
8675
  if (!value.length) {
8676
8676
  return '';
8677
8677
  }
8678
- return value[0].toUpperCase() + value.substr(1);
8678
+ return value[0].toUpperCase() + value.substring(1);
8679
8679
  }
8680
8680
 
8681
8681
 
@@ -9878,8 +9878,7 @@ __webpack_require__.r(__webpack_exports__);
9878
9878
  /* harmony export */ reset: function() { return /* reexport safe */ _reset__WEBPACK_IMPORTED_MODULE_21__.m; },
9879
9879
  /* harmony export */ resolveElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.W2; },
9880
9880
  /* harmony export */ scrollIntoViewIfNeeded: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_22__.n; },
9881
- /* harmony export */ set: function() { return /* reexport safe */ _set__WEBPACK_IMPORTED_MODULE_24__.t; },
9882
- /* harmony export */ val: function() { return /* reexport safe */ _val__WEBPACK_IMPORTED_MODULE_27__.P; }
9881
+ /* harmony export */ set: function() { return /* reexport safe */ _set__WEBPACK_IMPORTED_MODULE_24__.t; }
9883
9882
  /* harmony export */ });
9884
9883
  /* harmony import */ var _align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13931);
9885
9884
  /* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23144);
@@ -9912,7 +9911,6 @@ __webpack_require__.r(__webpack_exports__);
9912
9911
  /* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(49155);
9913
9912
  /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(56114);
9914
9913
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(87398);
9915
- /* harmony import */ var _val__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(96416);
9916
9914
  /*!
9917
9915
  * Jodit Editor (https://xdsoft.net/jodit/)
9918
9916
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9948,7 +9946,6 @@ __webpack_require__.r(__webpack_exports__);
9948
9946
 
9949
9947
 
9950
9948
 
9951
-
9952
9949
 
9953
9950
 
9954
9951
  /***/ }),
@@ -10688,35 +10685,6 @@ var getDataTransfer = function (event) {
10688
10685
  };
10689
10686
 
10690
10687
 
10691
- /***/ }),
10692
-
10693
- /***/ 96416:
10694
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10695
-
10696
- "use strict";
10697
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10698
- /* harmony export */ P: function() { return /* binding */ val; }
10699
- /* harmony export */ });
10700
- /*!
10701
- * Jodit Editor (https://xdsoft.net/jodit/)
10702
- * Released under MIT see LICENSE.txt in the project root for license information.
10703
- * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
10704
- */
10705
- /**
10706
- * @module helpers/utils
10707
- */
10708
- var val = function (elm, selector, value) {
10709
- var child = elm.querySelector(selector);
10710
- if (!child) {
10711
- return '';
10712
- }
10713
- if (value) {
10714
- child.value = value;
10715
- }
10716
- return child.value;
10717
- };
10718
-
10719
-
10720
10688
  /***/ }),
10721
10689
 
10722
10690
  /***/ 97800:
@@ -15717,7 +15685,7 @@ var UIForm = /** @class */ (function (_super) {
15717
15685
  */
15718
15686
 
15719
15687
  /**
15720
- * @module ui/form/inputs
15688
+ * @module ui/form
15721
15689
  */
15722
15690
 
15723
15691
 
@@ -15771,7 +15739,7 @@ var UITextArea = /** @class */ (function (_super) {
15771
15739
  */
15772
15740
 
15773
15741
  /**
15774
- * @module ui/form/inputs
15742
+ * @module ui/form
15775
15743
  */
15776
15744
 
15777
15745
 
@@ -15861,7 +15829,7 @@ var UICheckbox = /** @class */ (function (_super) {
15861
15829
  */
15862
15830
 
15863
15831
  /**
15864
- * @module ui/form/inputs
15832
+ * @module ui/form
15865
15833
  */
15866
15834
 
15867
15835
 
@@ -15928,7 +15896,7 @@ var UIFileInput = /** @class */ (function (_super) {
15928
15896
  * Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
15929
15897
  */
15930
15898
  /**
15931
- * @module ui/form/inputs
15899
+ * @module ui/form
15932
15900
  */
15933
15901
 
15934
15902
 
@@ -15961,7 +15929,7 @@ var UIFileInput = /** @class */ (function (_super) {
15961
15929
  */
15962
15930
 
15963
15931
  /**
15964
- * @module ui/form/inputs
15932
+ * @module ui/form
15965
15933
  */
15966
15934
 
15967
15935
 
@@ -16220,7 +16188,7 @@ var UIInput = /** @class */ (function (_super) {
16220
16188
  */
16221
16189
 
16222
16190
  /**
16223
- * @module ui/form/inputs
16191
+ * @module ui/form
16224
16192
  */
16225
16193
 
16226
16194
 
@@ -17879,11 +17847,14 @@ var View = /** @class */ (function (_super) {
17879
17847
  });
17880
17848
  Object.defineProperty(View.prototype, "message", {
17881
17849
  get: function () {
17882
- return new jodit_modules_messages_messages__WEBPACK_IMPORTED_MODULE_9__/* .UIMessages */ .D(this, this.container);
17850
+ return this.getMessageModule(this.container);
17883
17851
  },
17884
17852
  enumerable: false,
17885
17853
  configurable: true
17886
17854
  });
17855
+ View.prototype.getMessageModule = function (container) {
17856
+ return new jodit_modules_messages_messages__WEBPACK_IMPORTED_MODULE_9__/* .UIMessages */ .D(this, container);
17857
+ };
17887
17858
  Object.defineProperty(View.prototype, "storage", {
17888
17859
  /**
17889
17860
  * Container for persistent set/get value
@@ -18409,6 +18380,13 @@ var Jodit = /** @class */ (function (_super) {
18409
18380
  enumerable: false,
18410
18381
  configurable: true
18411
18382
  });
18383
+ Object.defineProperty(Jodit.prototype, "message", {
18384
+ get: function () {
18385
+ return this.getMessageModule(this.workplace);
18386
+ },
18387
+ enumerable: false,
18388
+ configurable: true
18389
+ });
18412
18390
  Object.defineProperty(Jodit.prototype, "statusbar", {
18413
18391
  /**
18414
18392
  * Statusbar module
@@ -19506,6 +19484,9 @@ var Jodit = /** @class */ (function (_super) {
19506
19484
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
19507
19485
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
19508
19486
  ], Jodit.prototype, "createInside", null);
19487
+ (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
19488
+ jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
19489
+ ], Jodit.prototype, "message", null);
19509
19490
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .gn)([
19510
19491
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_5__.cache
19511
19492
  ], Jodit.prototype, "s", null);
@@ -24200,15 +24181,43 @@ var UIMessages = /** @class */ (function (_super) {
24200
24181
  UIMessages.prototype.className = function () {
24201
24182
  return 'UIMessages';
24202
24183
  };
24184
+ /**
24185
+ * Show popup info message in the lower right corner of the container
24186
+ * ```js
24187
+ * const jodit = Jodit.make('#editor');
24188
+ * jodit.info('Hello world', 3000);
24189
+ * ```
24190
+ */
24203
24191
  UIMessages.prototype.info = function (text, timeout) {
24204
24192
  this.__message(text, 'info', timeout);
24205
24193
  };
24194
+ /**
24195
+ * Show popup success message in the lower right corner of the container
24196
+ * ```js
24197
+ * const jodit = Jodit.make('#editor');
24198
+ * jodit.success('Hello world', 3000);
24199
+ * ```
24200
+ */
24206
24201
  UIMessages.prototype.success = function (text, timeout) {
24207
24202
  this.__message(text, 'success', timeout);
24208
24203
  };
24204
+ /**
24205
+ * Show popup error message in the lower right corner of the container
24206
+ * ```js
24207
+ * const jodit = Jodit.make('#editor');
24208
+ * jodit.error('Hello world', 3000);
24209
+ * ```
24210
+ */
24209
24211
  UIMessages.prototype.error = function (text, timeout) {
24210
24212
  this.__message(text, 'error', timeout);
24211
24213
  };
24214
+ /**
24215
+ * Show popup message in the lower right corner of the container
24216
+ * ```js
24217
+ * const jodit = Jodit.make('#editor');
24218
+ * jodit.message('Hello world', 'info', 3000);
24219
+ * ```
24220
+ */
24212
24221
  UIMessages.prototype.message = function (text, variant, timeout) {
24213
24222
  this.__message(text, variant, timeout);
24214
24223
  };
@@ -24554,9 +24563,11 @@ var Table = /** @class */ (function (_super) {
24554
24563
  /**
24555
24564
  * Inserts a new line after row what contains the selected cell
24556
24565
  *
24566
+ * @param table - Working table
24557
24567
  * @param line - Insert a new line after/before this
24558
24568
  * line contains the selected cell
24559
24569
  * @param after - Insert a new line after line contains the selected cell
24570
+ * @param create - Instance of Create class
24560
24571
  */
24561
24572
  Table.appendRow = function (table, line, after, create) {
24562
24573
  var _a;
@@ -26439,7 +26450,12 @@ function send(uploader, data) {
26439
26450
  .send()
26440
26451
  .then(function (resp) { return resp.json(); })
26441
26452
  .catch(function (error) {
26442
- uploader.o.error.call(uploader, error);
26453
+ return {
26454
+ success: false,
26455
+ data: {
26456
+ messages: [error]
26457
+ }
26458
+ };
26443
26459
  })
26444
26460
  .finally(function () {
26445
26461
  ajax.destruct();
@@ -26720,7 +26736,7 @@ jodit_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .JO.set('palette', (_palet
26720
26736
  * @param coldColor - Color value ex. #fff or rgb(123, 123, 123) or rgba(123, 123, 123, 1)
26721
26737
  * @example
26722
26738
  * ```javascript
26723
- * $tabs = TabsWidget(editor, {
26739
+ * const tabs = TabsWidget(editor, {
26724
26740
  * 'Text' : ColorPickerWidget(editor, function (color) {
26725
26741
  * box.style.color = color;
26726
26742
  * }, box.style.color),
@@ -26820,27 +26836,10 @@ var ColorPickerWidget = function (editor, callback, coldColor) {
26820
26836
  * Generate 3 tabs
26821
26837
  * upload - Use Drag and Drop
26822
26838
  * url - By specifying the image url
26823
- * filebrowser - After opening the file browser . In the absence of one of the parameters will be less tabs
26839
+ * filebrowser - After opening the file browser. In the absence of one of the parameters will be less tabs
26824
26840
  *
26825
26841
  * @param callbacks - Object with keys `url`, `upload` and `filebrowser`, values which are callback
26826
26842
  * functions with different parameters
26827
- *
26828
- * @example
26829
- * ```javascript
26830
- * let widget = new Jodit.modules.Widget(editor);
26831
- *
26832
- * return widget.c('ImageSelector', {
26833
- * url: function (url, alt) {
26834
- * editor.selections.insertImage(url);
26835
- * },
26836
- * upload: function (images) {
26837
- * editor.selections.insertImage(images[0]);
26838
- * },
26839
- * filebrowser: function (images) {
26840
- * editor.selections.insertImage(images[0]);
26841
- * }
26842
- * }, image);
26843
- * ```
26844
26843
  */
26845
26844
  var FileSelectorWidget = function (editor, callbacks, elm, close, isImage) {
26846
26845
  if (isImage === void 0) { isImage = true; }
@@ -26910,13 +26909,13 @@ var FileSelectorWidget = function (editor, callbacks, elm, close, isImage) {
26910
26909
  !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isText(elm) &&
26911
26910
  (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(elm, 'img') || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.$$)('img', elm).length)) {
26912
26911
  currentImage = elm.tagName === 'IMG' ? elm : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.$$)('img', elm)[0];
26913
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.val)(form.container, 'input[name=url]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(currentImage, 'src'));
26914
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.val)(form.container, 'input[name=text]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(currentImage, 'alt'));
26912
+ val(form.container, 'input[name=url]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(currentImage, 'src'));
26913
+ val(form.container, 'input[name=text]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(currentImage, 'alt'));
26915
26914
  button.state.text = 'Update';
26916
26915
  }
26917
26916
  if (elm && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .i.isTag(elm, 'a')) {
26918
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.val)(form.container, 'input[name=url]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'href'));
26919
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.val)(form.container, 'input[name=text]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'title'));
26917
+ val(form.container, 'input[name=url]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'href'));
26918
+ val(form.container, 'input[name=text]', (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.attr)(elm, 'title'));
26920
26919
  button.state.text = 'Update';
26921
26920
  }
26922
26921
  form.onSubmit(function (data) {
@@ -26932,6 +26931,16 @@ var FileSelectorWidget = function (editor, callbacks, elm, close, isImage) {
26932
26931
  }
26933
26932
  return (0,jodit_modules_widget_tabs_tabs__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .I)(editor, tabs);
26934
26933
  };
26934
+ function val(elm, selector, value) {
26935
+ var child = elm.querySelector(selector);
26936
+ if (!child) {
26937
+ return '';
26938
+ }
26939
+ if (value) {
26940
+ child.value = value;
26941
+ }
26942
+ return child.value;
26943
+ }
26935
26944
 
26936
26945
 
26937
26946
  /***/ }),
@@ -27001,12 +27010,23 @@ var FileSelectorWidget = function (editor, callbacks, elm, close, isImage) {
27001
27010
  *
27002
27011
  * @example
27003
27012
  * ```javascript
27004
- * let tabs = Jodit.modules.TabsWidget(editor, [
27005
- * {name: 'Images', content: '<div>Images</div>'},
27006
- * {name: 'Title 2': Jodit.modules.Helpers.dom('<div>Some content</div>')},
27007
- * {name: 'Color Picker': ColorPickerWidget(editor, function (color) {
27008
- * box.style.color = color;
27009
- * }, box.style.color)},
27013
+ * const editor = Jodit.make('#editor');
27014
+ * const tabs = Jodit.modules.TabsWidget(editor, [
27015
+ * { name: 'Images', content: '<div>Images</div>' },
27016
+ * {
27017
+ * name: 'Title 2',
27018
+ * content: editor.c.fromHTML('<div>Some content</div>')
27019
+ * },
27020
+ * {
27021
+ * name: 'Color Picker',
27022
+ * content: ColorPickerWidget(
27023
+ * editor,
27024
+ * function (color) {
27025
+ * box.style.color = color;
27026
+ * },
27027
+ * box.style.color
27028
+ * )
27029
+ * }
27010
27030
  * ]);
27011
27031
  * ```
27012
27032
  */
package/es5/jodit.min.css CHANGED
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.0.0-beta.94
4
+ * Version: v4.0.0-beta.98
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
  /*!
9
9
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
10
10
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
11
- * Version: v4.0.0-beta.94
11
+ * Version: v4.0.0-beta.98
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */