jodit 4.2.14 → 4.2.17

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 (133) hide show
  1. package/CHANGELOG.md +64 -5
  2. package/es2015/jodit.css +115 -115
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +928 -823
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +2 -2
  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 +11 -11
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  13. package/es2018/jodit.css +115 -115
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +2 -2
  16. package/es2018/jodit.js +928 -825
  17. package/es2018/jodit.min.css +1 -1
  18. package/es2018/jodit.min.js +2 -2
  19. package/es2018/plugins/debug/debug.js +1 -1
  20. package/es2018/plugins/debug/debug.min.js +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  22. package/es2018/plugins/speech-recognize/speech-recognize.js +11 -11
  23. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
  24. package/es2021/jodit.css +115 -115
  25. package/es2021/jodit.fat.min.css +1 -1
  26. package/es2021/jodit.fat.min.js +2 -2
  27. package/es2021/jodit.js +922 -819
  28. package/es2021/jodit.min.css +1 -1
  29. package/es2021/jodit.min.js +2 -2
  30. package/es2021/plugins/debug/debug.js +1 -1
  31. package/es2021/plugins/debug/debug.min.js +1 -1
  32. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  33. package/es2021/plugins/speech-recognize/speech-recognize.js +11 -11
  34. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  35. package/es2021.en/jodit.css +115 -115
  36. package/es2021.en/jodit.fat.min.css +1 -1
  37. package/es2021.en/jodit.fat.min.js +2 -2
  38. package/es2021.en/jodit.js +922 -819
  39. package/es2021.en/jodit.min.css +1 -1
  40. package/es2021.en/jodit.min.js +2 -2
  41. package/es2021.en/plugins/debug/debug.js +1 -1
  42. package/es2021.en/plugins/debug/debug.min.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.js +11 -11
  45. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  46. package/es5/jodit.css +129 -129
  47. package/es5/jodit.fat.min.css +1 -1
  48. package/es5/jodit.fat.min.js +2 -2
  49. package/es5/jodit.js +950 -844
  50. package/es5/jodit.min.css +3 -3
  51. package/es5/jodit.min.js +2 -2
  52. package/es5/plugins/debug/debug.js +1 -1
  53. package/es5/plugins/debug/debug.min.js +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +11 -11
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  57. package/esm/core/constants.js +1 -1
  58. package/esm/core/helpers/utils/config-proto.js +1 -1
  59. package/esm/core/request/ajax.js +1 -1
  60. package/esm/core/selection/helpers/index.d.ts +9 -3
  61. package/esm/core/selection/helpers/index.js +48 -0
  62. package/esm/core/selection/selection.d.ts +6 -1
  63. package/esm/core/selection/selection.js +95 -117
  64. package/esm/core/ui/helpers/get-control-type.js +15 -9
  65. package/esm/core/ui/helpers/get-strong-control-types.js +1 -1
  66. package/esm/index.d.ts +6 -1
  67. package/esm/index.js +3 -2
  68. package/esm/jodit.d.ts +1 -1
  69. package/esm/jodit.js +1 -1
  70. package/esm/modules/file-browser/file-browser.js +1 -1
  71. package/esm/modules/history/history.js +1 -1
  72. package/esm/modules/image-editor/config.js +1 -1
  73. package/esm/modules/image-editor/image-editor.js +1 -1
  74. package/esm/modules/table/table.d.ts +3 -1
  75. package/esm/modules/table/table.js +38 -33
  76. package/esm/modules/toolbar/button/button.js +2 -1
  77. package/esm/modules/toolbar/button/select/select.js +2 -1
  78. package/esm/modules/uploader/helpers/send-files.js +33 -29
  79. package/esm/modules/uploader/uploader.js +1 -1
  80. package/esm/plugins/about/about.js +1 -1
  81. package/esm/plugins/add-new-line/config.js +1 -1
  82. package/esm/plugins/ai-assistant/config.js +1 -1
  83. package/esm/plugins/backspace/cases/check-remove-char.js +68 -54
  84. package/esm/plugins/bold/bold.js +1 -1
  85. package/esm/plugins/class-span/class-span.js +1 -1
  86. package/esm/plugins/clean-html/config.js +1 -1
  87. package/esm/plugins/clipboard/config.js +1 -1
  88. package/esm/plugins/color/config.js +1 -1
  89. package/esm/plugins/copy-format/copy-format.js +1 -1
  90. package/esm/plugins/drag-and-drop/drag-and-drop.d.ts +2 -0
  91. package/esm/plugins/drag-and-drop/drag-and-drop.js +43 -36
  92. package/esm/plugins/file/file.js +1 -1
  93. package/esm/plugins/font/config.js +1 -1
  94. package/esm/plugins/format-block/config.js +6 -4
  95. package/esm/plugins/fullsize/config.js +1 -1
  96. package/esm/plugins/hr/hr.js +1 -1
  97. package/esm/plugins/image/image.js +1 -1
  98. package/esm/plugins/image-properties/config.d.ts +0 -3
  99. package/esm/plugins/image-properties/config.js +3 -0
  100. package/esm/plugins/image-properties/interface.d.ts +121 -0
  101. package/esm/plugins/indent/config.js +1 -1
  102. package/esm/plugins/inline-popup/config/config.js +1 -1
  103. package/esm/plugins/justify/justify.js +10 -6
  104. package/esm/plugins/line-height/config.js +1 -1
  105. package/esm/plugins/link/config.js +1 -1
  106. package/esm/plugins/link/link.js +71 -64
  107. package/esm/plugins/mobile/config.js +1 -1
  108. package/esm/plugins/ordered-list/config.js +1 -1
  109. package/esm/plugins/paste/config.js +1 -1
  110. package/esm/plugins/print/print.js +1 -1
  111. package/esm/plugins/redo-undo/redo-undo.js +1 -1
  112. package/esm/plugins/search/config.js +1 -1
  113. package/esm/plugins/search/helpers/highlight-text-ranges.d.ts +0 -4
  114. package/esm/plugins/search/helpers/highlight-text-ranges.js +58 -49
  115. package/esm/plugins/source/config.js +1 -1
  116. package/esm/plugins/speech-recognize/config.js +1 -1
  117. package/esm/plugins/spellcheck/config.js +1 -1
  118. package/esm/plugins/symbols/config.js +1 -1
  119. package/esm/plugins/table/config.js +1 -1
  120. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +35 -29
  121. package/esm/plugins/video/config.js +1 -1
  122. package/esm/types/toolbar.d.ts +1 -2
  123. package/package.json +1 -1
  124. package/types/core/selection/helpers/index.d.ts +9 -3
  125. package/types/core/selection/selection.d.ts +6 -1
  126. package/types/index.d.ts +6 -1
  127. package/types/jodit.d.ts +1 -1
  128. package/types/modules/table/table.d.ts +3 -1
  129. package/types/plugins/drag-and-drop/drag-and-drop.d.ts +2 -0
  130. package/types/plugins/image-properties/config.d.ts +0 -3
  131. package/types/plugins/image-properties/interface.d.ts +121 -0
  132. package/types/plugins/search/helpers/highlight-text-ranges.d.ts +0 -4
  133. package/types/types/toolbar.d.ts +1 -2
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.2.14
4
+ * Version: v4.2.17
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -3127,7 +3127,7 @@ __webpack_require__.r(__webpack_exports__);
3127
3127
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
3128
3128
  */
3129
3129
 
3130
- var APP_VERSION = "4.2.14";
3130
+ var APP_VERSION = "4.2.17";
3131
3131
  // prettier-ignore
3132
3132
  var ES = "es5";
3133
3133
  var IS_ES_MODERN = false;
@@ -9163,9 +9163,9 @@ var completeUrl = function (url) {
9163
9163
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
9164
9164
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
9165
9165
  /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35642);
9166
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36115);
9166
9167
  /* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49429);
9167
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84976);
9168
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
9168
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84976);
9169
9169
  /*!
9170
9170
  * Jodit Editor (https://xdsoft.net/jodit/)
9171
9171
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9215,7 +9215,7 @@ function ConfigProto(options, proto, deep) {
9215
9215
  if (Object.getPrototypeOf(options) !== Object.prototype) {
9216
9216
  return options;
9217
9217
  }
9218
- var def = jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions;
9218
+ var def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
9219
9219
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
9220
9220
  if (def.presets[options.preset] !== undefined) {
9221
9221
  var preset_1 = def.presets[options.preset];
@@ -9245,7 +9245,7 @@ function ConfigProto(options, proto, deep) {
9245
9245
  return newOpt;
9246
9246
  }
9247
9247
  function ConfigFlatten(obj) {
9248
- return (0,_utils__WEBPACK_IMPORTED_MODULE_0__/* .keys */ .HP)(obj, false).reduce(function (app, key) {
9248
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce(function (app, key) {
9249
9249
  app[key] = obj[key];
9250
9250
  return app;
9251
9251
  }, {});
@@ -11281,9 +11281,9 @@ var Plugin = /** @class */ (function (_super) {
11281
11281
  /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26318);
11282
11282
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
11283
11283
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50156);
11284
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27337);
11285
- /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91672);
11286
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
11284
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
11285
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27337);
11286
+ /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91672);
11287
11287
  /*!
11288
11288
  * Jodit Editor (https://xdsoft.net/jodit/)
11289
11289
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -11299,7 +11299,7 @@ var Plugin = /** @class */ (function (_super) {
11299
11299
 
11300
11300
  var Ajax = /** @class */ (function () {
11301
11301
  function Ajax(options, defaultAjaxOptions) {
11302
- if (defaultAjaxOptions === void 0) { defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.defaultAjaxOptions; }
11302
+ if (defaultAjaxOptions === void 0) { defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions; }
11303
11303
  this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
11304
11304
  this.__isFulfilled = false;
11305
11305
  this.__activated = false;
@@ -11362,7 +11362,7 @@ var Ajax = /** @class */ (function () {
11362
11362
  };
11363
11363
  onResolve = function () {
11364
11364
  _this.__isFulfilled = true;
11365
- resolve(new _response__WEBPACK_IMPORTED_MODULE_4__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
11365
+ resolve(new _response__WEBPACK_IMPORTED_MODULE_5__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
11366
11366
  };
11367
11367
  xhr.onload = onResolve;
11368
11368
  xhr.onabort = function () {
@@ -11582,10 +11582,14 @@ var Response = /** @class */ (function () {
11582
11582
 
11583
11583
  "use strict";
11584
11584
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11585
- /* harmony export */ W: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__.W; }
11585
+ /* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
11586
+ /* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
11587
+ /* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
11586
11588
  /* harmony export */ });
11587
- /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5298);
11588
- /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83541);
11589
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
11590
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
11591
+ /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5298);
11592
+ /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83541);
11589
11593
  /*!
11590
11594
  * Jodit Editor (https://xdsoft.net/jodit/)
11591
11595
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -11598,6 +11602,55 @@ var Response = /** @class */ (function () {
11598
11602
 
11599
11603
 
11600
11604
 
11605
+ /**
11606
+ * Check if the cursor is at the edge of the string
11607
+ * @private
11608
+ */
11609
+ function cursorInTheEdgeOfString(container, offset, start, end) {
11610
+ var _a;
11611
+ var text = ((_a = container.nodeValue) === null || _a === void 0 ? void 0 : _a.length) ? container.nodeValue : '';
11612
+ if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
11613
+ return true;
11614
+ }
11615
+ var inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
11616
+ return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
11617
+ }
11618
+ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
11619
+ node = range.startContainer.childNodes[range.startOffset];
11620
+ if (!node) {
11621
+ node = range.startContainer.childNodes[range.startOffset - 1];
11622
+ rightMode = true;
11623
+ }
11624
+ if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
11625
+ // test Current method - Cursor in the left of some SPAN
11626
+ if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
11627
+ node = node.previousSibling;
11628
+ }
11629
+ else if (checkChild) {
11630
+ var current = child(node);
11631
+ while (current) {
11632
+ if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
11633
+ node = current;
11634
+ break;
11635
+ }
11636
+ current = child(current);
11637
+ }
11638
+ }
11639
+ }
11640
+ if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
11641
+ var leftChild = node, rightChild = node;
11642
+ do {
11643
+ leftChild = leftChild.firstChild;
11644
+ rightChild = rightChild.lastChild;
11645
+ } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
11646
+ if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
11647
+ node = leftChild;
11648
+ }
11649
+ }
11650
+ return { node: node, rightMode: rightMode };
11651
+ }
11652
+
11653
+
11601
11654
  /***/ }),
11602
11655
 
11603
11656
  /***/ 5298:
@@ -11718,7 +11771,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
11718
11771
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11719
11772
  /* harmony export */ L: function() { return /* binding */ Selection; }
11720
11773
  /* harmony export */ });
11721
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
11774
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
11722
11775
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
11723
11776
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
11724
11777
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
@@ -11728,6 +11781,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
11728
11781
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__);
11729
11782
  /* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(83541);
11730
11783
  /* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8757);
11784
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46602);
11731
11785
  /*!
11732
11786
  * Jodit Editor (https://xdsoft.net/jodit/)
11733
11787
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -11744,6 +11798,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
11744
11798
 
11745
11799
 
11746
11800
 
11801
+
11747
11802
  var Selection = /** @class */ (function () {
11748
11803
  function Selection(jodit) {
11749
11804
  var _this = this;
@@ -12035,7 +12090,7 @@ var Selection = /** @class */ (function () {
12035
12090
  if (!nodes.length) {
12036
12091
  return;
12037
12092
  }
12038
- var _e = (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__read */ .zs)(nodes, 2), fakeLeft = _e[0], fakeRight = _e[1];
12093
+ var _e = (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__read */ .zs)(nodes, 2), fakeLeft = _e[0], fakeRight = _e[1];
12039
12094
  var range = this.createRange();
12040
12095
  range.setStartAfter(fakeLeft);
12041
12096
  if (fakeRight) {
@@ -12174,65 +12229,37 @@ var Selection = /** @class */ (function () {
12174
12229
  */
12175
12230
  Selection.prototype.current = function (checkChild) {
12176
12231
  if (checkChild === void 0) { checkChild = true; }
12177
- if (this.j.getRealMode() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
12178
- var sel = this.sel;
12179
- if (!sel || sel.rangeCount === 0) {
12180
- return null;
12181
- }
12182
- var range = sel.getRangeAt(0);
12183
- var node = range.startContainer, rightMode_1 = false;
12184
- var child = function (nd) {
12185
- return rightMode_1 ? nd.lastChild : nd.firstChild;
12186
- };
12187
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
12188
- return node;
12189
- }
12190
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
12191
- node = range.startContainer.childNodes[range.startOffset];
12192
- if (!node) {
12193
- node =
12194
- range.startContainer.childNodes[range.startOffset - 1];
12195
- rightMode_1 = true;
12196
- }
12197
- if (node && sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
12198
- // test Current method - Cursor in the left of some SPAN
12199
- if (!rightMode_1 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node.previousSibling)) {
12200
- node = node.previousSibling;
12201
- }
12202
- else if (checkChild) {
12203
- var current = child(node);
12204
- while (current) {
12205
- if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
12206
- node = current;
12207
- break;
12208
- }
12209
- current = child(current);
12210
- }
12211
- }
12212
- }
12213
- if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
12214
- var leftChild = node, rightChild = node;
12215
- do {
12216
- leftChild = leftChild.firstChild;
12217
- rightChild = rightChild.lastChild;
12218
- } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
12219
- if (leftChild === rightChild &&
12220
- leftChild &&
12221
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
12222
- node = leftChild;
12223
- }
12224
- }
12225
- }
12226
- // check - cursor inside editor
12227
- if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
12228
- return node;
12229
- }
12232
+ if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
12233
+ return null;
12234
+ }
12235
+ var sel = this.sel;
12236
+ if (!sel || sel.rangeCount === 0) {
12237
+ return null;
12238
+ }
12239
+ var range = sel.getRangeAt(0);
12240
+ var node = range.startContainer;
12241
+ var rightMode = false;
12242
+ var child = function (nd) {
12243
+ return rightMode ? nd.lastChild : nd.firstChild;
12244
+ };
12245
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
12246
+ return node;
12247
+ }
12248
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
12249
+ var ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
12250
+ node = ret.node;
12251
+ rightMode = ret.rightMode;
12252
+ }
12253
+ // check - cursor inside editor
12254
+ if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
12255
+ return node;
12230
12256
  }
12231
12257
  return null;
12232
12258
  };
12233
12259
  /**
12234
12260
  * Insert element in editor
12235
12261
  *
12262
+ * @param node - Node for insert
12236
12263
  * @param insertCursorAfter - After insert, cursor will move after element
12237
12264
  * @param fireChange - After insert, editor fire change event. You can prevent this behavior
12238
12265
  */
@@ -12297,6 +12324,7 @@ var Selection = /** @class */ (function () {
12297
12324
  * Inserts in the current cursor position some HTML snippet
12298
12325
  *
12299
12326
  * @param html - HTML The text to be inserted into the document
12327
+ * @param insertCursorAfter - After insert, cursor will move after element
12300
12328
  * @example
12301
12329
  * ```javascript
12302
12330
  * parent.s.insertHTML('<img src="image.png"/>');
@@ -12341,6 +12369,7 @@ var Selection = /** @class */ (function () {
12341
12369
  *
12342
12370
  * @param url - URL for image, or HTMLImageElement
12343
12371
  * @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
12372
+ * @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
12344
12373
  */
12345
12374
  Selection.prototype.insertImage = function (url, styles, defaultWidth) {
12346
12375
  if (styles === void 0) { styles = null; }
@@ -12399,74 +12428,81 @@ var Selection = /** @class */ (function () {
12399
12428
  var _this = this;
12400
12429
  var _a;
12401
12430
  var sel = this.sel;
12402
- if (sel && sel.rangeCount) {
12403
- var range = sel.getRangeAt(0);
12404
- var root_1 = range.commonAncestorContainer;
12405
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root_1)) {
12406
- root_1 = root_1.parentElement;
12407
- }
12408
- var nodes_1 = [], startOffset = range.startOffset, length = root_1.childNodes.length, elementOffset = startOffset < length ? startOffset : length - 1;
12409
- var start = range.startContainer === this.area
12410
- ? root_1.childNodes[elementOffset]
12411
- : range.startContainer, end_1 = range.endContainer === this.area
12412
- ? root_1.childNodes[range.endOffset - 1]
12413
- : range.endContainer;
12414
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
12415
- start === range.startContainer &&
12416
- range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
12417
- start.nextSibling) {
12418
- start = start.nextSibling;
12419
- }
12420
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end_1) &&
12421
- end_1 === range.endContainer &&
12422
- range.endOffset === 0 &&
12423
- end_1.previousSibling) {
12424
- end_1 = end_1.previousSibling;
12425
- }
12426
- var checkElm_1 = function (node) {
12427
- if (node &&
12428
- node !== root_1 &&
12429
- !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
12430
- !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
12431
- nodes_1.push(node);
12432
- }
12433
- };
12434
- checkElm_1(start);
12435
- if (start !== end_1 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root_1, start, true)) {
12436
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, function (node) {
12437
- checkElm_1(node);
12438
- // checks parentElement as well because partial selections are not equal to entire element
12439
- return (node === end_1 ||
12440
- (node && node.contains && node.contains(end_1)));
12441
- }, root_1, true, false);
12442
- }
12443
- var forEvery_1 = function (current) {
12444
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(_this.j.editor, current, true)) {
12445
- return;
12446
- }
12447
- if (current.nodeName.match(/^(UL|OL)$/)) {
12448
- return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery_1);
12431
+ if (!sel || !sel.rangeCount) {
12432
+ return;
12433
+ }
12434
+ var range = sel.getRangeAt(0);
12435
+ var root = range.commonAncestorContainer;
12436
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
12437
+ root = root.parentElement;
12438
+ }
12439
+ var nodes = [];
12440
+ var startOffset = range.startOffset;
12441
+ var length = root.childNodes.length;
12442
+ var elementOffset = startOffset < length ? startOffset : length - 1;
12443
+ var start = range.startContainer === this.area
12444
+ ? root.childNodes[elementOffset]
12445
+ : range.startContainer;
12446
+ var end = range.endContainer === this.area
12447
+ ? root.childNodes[range.endOffset - 1]
12448
+ : range.endContainer;
12449
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
12450
+ start === range.startContainer &&
12451
+ range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
12452
+ start.nextSibling) {
12453
+ start = start.nextSibling;
12454
+ }
12455
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
12456
+ end === range.endContainer &&
12457
+ range.endOffset === 0 &&
12458
+ end.previousSibling) {
12459
+ end = end.previousSibling;
12460
+ }
12461
+ var checkElm = function (node) {
12462
+ if (node &&
12463
+ node !== root &&
12464
+ !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
12465
+ !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
12466
+ nodes.push(node);
12467
+ }
12468
+ };
12469
+ checkElm(start);
12470
+ if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
12471
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, function (node) {
12472
+ checkElm(node);
12473
+ // checks parentElement as well because partial selections are not equal to entire element
12474
+ return (node === end ||
12475
+ (node && node.contains && node.contains(end)));
12476
+ }, root, true, false);
12477
+ }
12478
+ var forEvery = function (current) {
12479
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(_this.j.editor, current, true)) {
12480
+ return;
12481
+ }
12482
+ if (current.nodeName.match(/^(UL|OL)$/)) {
12483
+ return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
12484
+ }
12485
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
12486
+ if (current.firstChild) {
12487
+ current = current.firstChild;
12449
12488
  }
12450
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
12451
- if (current.firstChild) {
12452
- current = current.firstChild;
12453
- }
12454
- else {
12455
- var currentB = _this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
12456
- current.appendChild(currentB);
12457
- current = currentB;
12458
- }
12489
+ else {
12490
+ var currentB = _this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
12491
+ current.appendChild(currentB);
12492
+ current = currentB;
12459
12493
  }
12460
- callback(current);
12461
- };
12462
- if (nodes_1.length === 0 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
12463
- nodes_1.push(start);
12464
12494
  }
12465
- if (nodes_1.length === 0 && start.firstChild) {
12466
- nodes_1.push(start.firstChild);
12495
+ callback(current);
12496
+ };
12497
+ if (nodes.length === 0) {
12498
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
12499
+ nodes.push(start);
12500
+ }
12501
+ if (start.firstChild) {
12502
+ nodes.push(start.firstChild);
12467
12503
  }
12468
- nodes_1.forEach(forEvery_1);
12469
12504
  }
12505
+ nodes.forEach(forEvery);
12470
12506
  };
12471
12507
  /**
12472
12508
  * Checks if the cursor is at the end(start) block
@@ -12479,7 +12515,7 @@ var Selection = /** @class */ (function () {
12479
12515
  */
12480
12516
  Selection.prototype.cursorInTheEdge = function (start, parentBlock, fake) {
12481
12517
  var _this = this;
12482
- var _a, _b;
12518
+ var _a;
12483
12519
  if (fake === void 0) { fake = null; }
12484
12520
  var end = !start, range = (_a = this.sel) === null || _a === void 0 ? void 0 : _a.getRangeAt(0);
12485
12521
  fake !== null && fake !== void 0 ? fake : (fake = this.current(false));
@@ -12498,13 +12534,7 @@ var Selection = /** @class */ (function () {
12498
12534
  };
12499
12535
  // check right offset
12500
12536
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
12501
- var text = ((_b = container.nodeValue) === null || _b === void 0 ? void 0 : _b.length) ? container.nodeValue : '';
12502
- if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
12503
- return false;
12504
- }
12505
- var inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
12506
- if (start &&
12507
- ((inv && inv[0].length < offset) || (!inv && offset > 0))) {
12537
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
12508
12538
  return false;
12509
12539
  }
12510
12540
  }
@@ -12596,6 +12626,7 @@ var Selection = /** @class */ (function () {
12596
12626
  };
12597
12627
  /**
12598
12628
  * Set cursor in the node
12629
+ * @param node - Node element
12599
12630
  * @param inStart - set cursor in start of element
12600
12631
  */
12601
12632
  Selection.prototype.setCursorIn = function (node, inStart) {
@@ -12661,6 +12692,7 @@ var Selection = /** @class */ (function () {
12661
12692
  };
12662
12693
  /**
12663
12694
  * Select node
12695
+ * @param node - Node element
12664
12696
  * @param inward - select all inside
12665
12697
  */
12666
12698
  Selection.prototype.select = function (node, inward) {
@@ -12706,7 +12738,7 @@ var Selection = /** @class */ (function () {
12706
12738
  Selection.prototype.wrapInTagGen = function (fakes) {
12707
12739
  var font, elms, elms_1, elms_1_1, font, firstChild, lastChild, e_1_1;
12708
12740
  var e_1, _a;
12709
- return (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__generator */ .YH)(this, function (_b) {
12741
+ return (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__generator */ .YH)(this, function (_b) {
12710
12742
  switch (_b.label) {
12711
12743
  case 0:
12712
12744
  if (!this.isCollapsed()) return [3 /*break*/, 2];
@@ -12738,7 +12770,7 @@ var Selection = /** @class */ (function () {
12738
12770
  _b.label = 3;
12739
12771
  case 3:
12740
12772
  _b.trys.push([3, 8, 9, 10]);
12741
- elms_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__values */ .Ju)(elms), elms_1_1 = elms_1.next();
12773
+ elms_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__values */ .Ju)(elms), elms_1_1 = elms_1.next();
12742
12774
  _b.label = 4;
12743
12775
  case 4:
12744
12776
  if (!!elms_1_1.done) return [3 /*break*/, 7];
@@ -12786,7 +12818,7 @@ var Selection = /** @class */ (function () {
12786
12818
  var e_2, _a;
12787
12819
  var result = [];
12788
12820
  try {
12789
- for (var _b = (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__values */ .Ju)(this.wrapInTagGen()), _c = _b.next(); !_c.done; _c = _b.next()) {
12821
+ for (var _b = (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__values */ .Ju)(this.wrapInTagGen()), _c = _b.next(); !_c.done; _c = _b.next()) {
12790
12822
  var font = _c.value;
12791
12823
  try {
12792
12824
  if (font.firstChild &&
@@ -12988,19 +13020,19 @@ var Selection = /** @class */ (function () {
12988
13020
  }
12989
13021
  return this;
12990
13022
  };
12991
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
13023
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
12992
13024
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
12993
13025
  ], Selection.prototype, "createRange", null);
12994
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
13026
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
12995
13027
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
12996
13028
  ], Selection.prototype, "focus", null);
12997
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
13029
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
12998
13030
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
12999
13031
  ], Selection.prototype, "setCursorAfter", null);
13000
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
13032
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
13001
13033
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
13002
13034
  ], Selection.prototype, "setCursorBefore", null);
13003
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
13035
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
13004
13036
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
13005
13037
  ], Selection.prototype, "setCursorIn", null);
13006
13038
  return Selection;
@@ -17016,9 +17048,8 @@ function getControlType(button, controls) {
17016
17048
  * @private
17017
17049
  */
17018
17050
  function findControlType(path, controls) {
17019
- var _a;
17020
17051
  // eslint-disable-next-line prefer-const
17021
- var _b = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__read */ .zs)(path.split(/\./), 2), namespaceOrKey = _b[0], key = _b[1];
17052
+ var _a = (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__read */ .zs)(path.split(/\./), 2), namespaceOrKey = _a[0], key = _a[1];
17022
17053
  var store = controls;
17023
17054
  if (key != null) {
17024
17055
  if (controls[namespaceOrKey] !== undefined) {
@@ -17028,14 +17059,22 @@ function findControlType(path, controls) {
17028
17059
  else {
17029
17060
  key = namespaceOrKey;
17030
17061
  }
17031
- var list = (_a = store[key]) === null || _a === void 0 ? void 0 : _a.list;
17062
+ // const list = store[key]?.list;
17032
17063
  return store[key]
17033
- ? (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__assign */ .Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__assign */ .Cl)({ name: key }, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])), { list: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isArray)(list)
17034
- ? list.reduce(function (acc, k) {
17035
- acc[k] = k;
17036
- return acc;
17037
- }, {})
17038
- : list }) : undefined;
17064
+ ? (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__assign */ .Cl)({ name: key }, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
17065
+ // list: isArray(list)
17066
+ // ? (<Array<string>>list).reduce(
17067
+ // (
17068
+ // acc: IDictionary<string | number>,
17069
+ // k: string | number
17070
+ // ) => {
17071
+ // acc[String(k)] = k;
17072
+ // return acc;
17073
+ // },
17074
+ // {}
17075
+ // )
17076
+ // : list
17077
+ ) : undefined;
17039
17078
  }
17040
17079
 
17041
17080
 
@@ -17050,8 +17089,8 @@ function findControlType(path, controls) {
17050
17089
  /* harmony export */ });
17051
17090
  /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37923);
17052
17091
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97369);
17053
- /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57023);
17054
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
17092
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
17093
+ /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57023);
17055
17094
  /*!
17056
17095
  * Jodit Editor (https://xdsoft.net/jodit/)
17057
17096
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -17072,7 +17111,7 @@ function getStrongControlTypes(items, controls) {
17072
17111
  return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
17073
17112
  });
17074
17113
  return elements.map(function (item) {
17075
- return (0,_get_control_type__WEBPACK_IMPORTED_MODULE_1__/* .getControlType */ .U)(item, controls || jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.defaultOptions.controls);
17114
+ return (0,_get_control_type__WEBPACK_IMPORTED_MODULE_2__/* .getControlType */ .U)(item, controls || jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions.controls);
17076
17115
  });
17077
17116
  }
17078
17117
 
@@ -18266,8 +18305,8 @@ View.defaultOptions = {
18266
18305
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
18267
18306
  /* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53883);
18268
18307
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58597);
18269
- /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(37435);
18270
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36115);
18308
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
18309
+ /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37435);
18271
18310
  /*!
18272
18311
  * Jodit Editor (https://xdsoft.net/jodit/)
18273
18312
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -18324,7 +18363,7 @@ var Jodit = /** @class */ (function (_super) {
18324
18363
  _this.destruct();
18325
18364
  throw e;
18326
18365
  }
18327
- _this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeInit);
18366
+ _this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
18328
18367
  _this.id =
18329
18368
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.resolveElement)(element, _this.o.shadowRoot || _this.od), 'id') ||
18330
18369
  new Date().getTime().toString();
@@ -18336,7 +18375,7 @@ var Jodit = /** @class */ (function (_super) {
18336
18375
  }
18337
18376
  });
18338
18377
  _this.e.on('prepareWYSIWYGEditor', _this.__prepareWYSIWYGEditor);
18339
- _this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Selection(_this);
18378
+ _this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(_this);
18340
18379
  var beforeInitHookResult = _this.beforeInitHook();
18341
18380
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, function () {
18342
18381
  if (_this.isInDestruct) {
@@ -18360,7 +18399,7 @@ var Jodit = /** @class */ (function (_super) {
18360
18399
  _this.e.fire('afterInit', _this);
18361
18400
  }
18362
18401
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(_this.afterInitHook());
18363
- _this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.ready);
18402
+ _this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
18364
18403
  _this.e.fire('afterConstructor', _this);
18365
18404
  };
18366
18405
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
@@ -18424,7 +18463,7 @@ var Jodit = /** @class */ (function (_super) {
18424
18463
  get: function () {
18425
18464
  return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
18426
18465
  ? this.o.defaultTimeout
18427
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.defaultTimeout;
18466
+ : jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
18428
18467
  },
18429
18468
  enumerable: false,
18430
18469
  configurable: true
@@ -18454,7 +18493,7 @@ var Jodit = /** @class */ (function (_super) {
18454
18493
  * Default settings
18455
18494
  */
18456
18495
  get: function () {
18457
- return jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions;
18496
+ return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
18458
18497
  },
18459
18498
  enumerable: false,
18460
18499
  configurable: true
@@ -18462,7 +18501,7 @@ var Jodit = /** @class */ (function (_super) {
18462
18501
  Object.defineProperty(Jodit.prototype, "createInside", {
18463
18502
  get: function () {
18464
18503
  var _this = this;
18465
- return new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Create(function () { return _this.ed; }, this.o.createAttributes);
18504
+ return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(function () { return _this.ed; }, this.o.createAttributes);
18466
18505
  },
18467
18506
  enumerable: false,
18468
18507
  configurable: true
@@ -19107,8 +19146,8 @@ var Jodit = /** @class */ (function (_super) {
19107
19146
  var active = this.od.activeElement;
19108
19147
  if (active &&
19109
19148
  (active === this.iframe ||
19110
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.editor, active) ||
19111
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.toolbar.container, active))) {
19149
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
19150
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
19112
19151
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
19113
19152
  }
19114
19153
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
@@ -19265,7 +19304,7 @@ var Jodit = /** @class */ (function (_super) {
19265
19304
  };
19266
19305
  /** @override **/
19267
19306
  Jodit.prototype.initOptions = function (options) {
19268
- this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions));
19307
+ this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
19269
19308
  };
19270
19309
  /** @override **/
19271
19310
  Jodit.prototype.initOwners = function () {
@@ -19284,7 +19323,7 @@ var Jodit = /** @class */ (function (_super) {
19284
19323
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach(function (attr) {
19285
19324
  var name = attr.name;
19286
19325
  var value = attr.value;
19287
- if (jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions[name] !== undefined &&
19326
+ if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
19288
19327
  (!options || options[name] === undefined)) {
19289
19328
  if (['readonly', 'disabled'].indexOf(name) !== -1) {
19290
19329
  value = value === '' || value === 'true';
@@ -19352,11 +19391,11 @@ var Jodit = /** @class */ (function (_super) {
19352
19391
  element: element,
19353
19392
  container: container,
19354
19393
  workplace: workplace,
19355
- statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.StatusBar(this, container),
19394
+ statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
19356
19395
  options: this.isReady
19357
- ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions)
19396
+ ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
19358
19397
  : this.options,
19359
- history: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.History(this),
19398
+ history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
19360
19399
  editorWindow: this.ow
19361
19400
  };
19362
19401
  this.__elementToPlace.set(editor, currentPlace);
@@ -19449,7 +19488,7 @@ var Jodit = /** @class */ (function (_super) {
19449
19488
  return;
19450
19489
  }
19451
19490
  if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
19452
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(defaultEditorArea);
19491
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
19453
19492
  }
19454
19493
  addClassNames(_this.o.editorClassName, _this.editor);
19455
19494
  if (_this.o.style) {
@@ -19539,7 +19578,7 @@ var Jodit = /** @class */ (function (_super) {
19539
19578
  if (this.isInDestruct) {
19540
19579
  return;
19541
19580
  }
19542
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeDestruct);
19581
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
19543
19582
  this.__elementToPlace.clear();
19544
19583
  this.storage.clear();
19545
19584
  this.buffer.clear();
@@ -19581,17 +19620,17 @@ var Jodit = /** @class */ (function (_super) {
19581
19620
  _this.e.off(container);
19582
19621
  _this.e.off(element);
19583
19622
  _this.e.off(editor);
19584
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(workplace);
19585
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(editor);
19623
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
19624
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
19586
19625
  if (container !== element) {
19587
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(container);
19626
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
19588
19627
  }
19589
19628
  Object.defineProperty(element, 'component', {
19590
19629
  enumerable: false,
19591
19630
  configurable: true,
19592
19631
  value: null
19593
19632
  });
19594
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(iframe);
19633
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
19595
19634
  // inline mode
19596
19635
  if (container === element) {
19597
19636
  element.innerHTML = buffer;
@@ -19613,7 +19652,7 @@ var Jodit = /** @class */ (function (_super) {
19613
19652
  Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
19614
19653
  Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
19615
19654
  Jodit.core = {
19616
- Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Plugin
19655
+ Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
19617
19656
  };
19618
19657
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
19619
19658
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
@@ -19643,7 +19682,7 @@ var Jodit = /** @class */ (function (_super) {
19643
19682
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.derive)(jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__/* .Dlgs */ .z)
19644
19683
  ], Jodit);
19645
19684
  return Jodit;
19646
- }(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.ViewWithToolbar));
19685
+ }(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar));
19647
19686
 
19648
19687
  function addClassNames(className, elm) {
19649
19688
  if (className) {
@@ -21960,16 +21999,16 @@ function loadTree(fb) {
21960
21999
  /* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63915);
21961
22000
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58597);
21962
22001
  /* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14961);
21963
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70265);
22002
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(36115);
22003
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70265);
21964
22004
  /* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(9979);
21965
- /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31859);
21966
- /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62994);
21967
- /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(18043);
21968
- /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(80004);
21969
- /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(75889);
21970
- /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(83797);
21971
- /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10274);
21972
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(36115);
22005
+ /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(31859);
22006
+ /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62994);
22007
+ /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(18043);
22008
+ /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80004);
22009
+ /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(75889);
22010
+ /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(83797);
22011
+ /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(10274);
21973
22012
  /*!
21974
22013
  * Jodit Editor (https://xdsoft.net/jodit/)
21975
22014
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -22003,11 +22042,11 @@ var FileBrowser = /** @class */ (function (_super) {
22003
22042
  var _this = _super.call(this, options) || this;
22004
22043
  _this.browser = _this.c.div(_this.componentName);
22005
22044
  _this.status_line = _this.c.div(_this.getFullElName('status'));
22006
- _this.tree = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserTree */ .V(_this);
22007
- _this.files = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserFiles */ .Q(_this);
22045
+ _this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(_this);
22046
+ _this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(_this);
22008
22047
  _this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
22009
22048
  currentPath: '',
22010
- currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_14__/* .DEFAULT_SOURCE_NAME */ .o,
22049
+ currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
22011
22050
  currentBaseUrl: '',
22012
22051
  activeElements: [],
22013
22052
  elements: [],
@@ -22037,7 +22076,7 @@ var FileBrowser = /** @class */ (function (_super) {
22037
22076
  _this.__prevButtons = [];
22038
22077
  _this.attachEvents(options);
22039
22078
  var self = _this;
22040
- self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.filebrowser);
22079
+ self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
22041
22080
  self.browser.component = _this;
22042
22081
  self.container = self.browser;
22043
22082
  if (self.o.showFoldersPanel) {
@@ -22045,9 +22084,9 @@ var FileBrowser = /** @class */ (function (_super) {
22045
22084
  }
22046
22085
  self.browser.appendChild(self.files.container);
22047
22086
  self.browser.appendChild(self.status_line);
22048
- _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__/* .selfListeners */ .c.call(self);
22049
- _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__/* .nativeListeners */ .nW.call(self);
22050
- _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__/* .stateListeners */ .r.call(self);
22087
+ _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
22088
+ _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
22089
+ _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
22051
22090
  var keys = [
22052
22091
  'getLocalFileByUrl',
22053
22092
  'crop',
@@ -22107,7 +22146,7 @@ var FileBrowser = /** @class */ (function (_super) {
22107
22146
  };
22108
22147
  Object.defineProperty(FileBrowser.prototype, "dataProvider", {
22109
22148
  get: function () {
22110
- return (0,_factories__WEBPACK_IMPORTED_MODULE_15__/* .makeDataProvider */ .S)(this, this.options);
22149
+ return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
22111
22150
  },
22112
22151
  enumerable: false,
22113
22152
  configurable: true
@@ -22245,7 +22284,7 @@ var FileBrowser = /** @class */ (function (_super) {
22245
22284
  _this.__updateToolbarButtons();
22246
22285
  _this._dialog.open(_this.browser, header);
22247
22286
  _this.e.fire('sort.filebrowser', _this.state.sortBy);
22248
- (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__/* .loadTree */ .r)(_this)
22287
+ (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(_this)
22249
22288
  .then(resolve, reject)
22250
22289
  .finally(function () {
22251
22290
  var _a;
@@ -22284,7 +22323,7 @@ var FileBrowser = /** @class */ (function (_super) {
22284
22323
  FileBrowser.prototype.initUploader = function (editor) {
22285
22324
  var _this = this;
22286
22325
  var _a;
22287
- var self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.uploader);
22326
+ var self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
22288
22327
  var uploadHandler = function () { return (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_19__/* .loadItems */ .f)(_this); };
22289
22328
  self.uploader = self.getInstance('Uploader', uploaderOptions);
22290
22329
  self.uploader
@@ -22947,10 +22986,10 @@ var Command = /** @class */ (function () {
22947
22986
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
22948
22987
  /* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
22949
22988
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
22950
- /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84345);
22951
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58770);
22952
- /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66180);
22953
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
22989
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
22990
+ /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84345);
22991
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(58770);
22992
+ /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66180);
22954
22993
  /*!
22955
22994
  * Jodit Editor (https://xdsoft.net/jodit/)
22956
22995
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -22963,7 +23002,7 @@ var Command = /** @class */ (function () {
22963
23002
 
22964
23003
 
22965
23004
 
22966
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.history = {
23005
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
22967
23006
  enable: true,
22968
23007
  maxHistoryLength: Infinity,
22969
23008
  timeout: 1000
@@ -22974,8 +23013,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.history = {
22974
23013
  var History = /** @class */ (function (_super) {
22975
23014
  (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__extends */ .C6)(History, _super);
22976
23015
  function History(editor, stack, snapshot) {
22977
- if (stack === void 0) { stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength); }
22978
- if (snapshot === void 0) { snapshot = new _snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F(editor); }
23016
+ if (stack === void 0) { stack = new _stack__WEBPACK_IMPORTED_MODULE_5__/* .Stack */ .B(editor.o.history.maxHistoryLength); }
23017
+ if (snapshot === void 0) { snapshot = new _snapshot__WEBPACK_IMPORTED_MODULE_4__/* .Snapshot */ .F(editor); }
22979
23018
  var _this = _super.call(this, editor) || this;
22980
23019
  _this.updateTick = 0;
22981
23020
  _this.__stack = stack;
@@ -23090,8 +23129,8 @@ var History = /** @class */ (function (_super) {
23090
23129
  History.prototype.updateStack = function (replace) {
23091
23130
  if (replace === void 0) { replace = false; }
23092
23131
  var newValue = this.snapshot.make();
23093
- if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
23094
- var newCommand = new _command__WEBPACK_IMPORTED_MODULE_2__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
23132
+ if (!_snapshot__WEBPACK_IMPORTED_MODULE_4__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
23133
+ var newCommand = new _command__WEBPACK_IMPORTED_MODULE_3__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
23095
23134
  if (replace) {
23096
23135
  var command = this.__stack.current();
23097
23136
  if (command && this.updateTick === command.tick) {
@@ -23443,11 +23482,11 @@ var Stack = /** @class */ (function () {
23443
23482
 
23444
23483
  "use strict";
23445
23484
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
23446
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(928);
23447
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__);
23448
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31230);
23449
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__);
23450
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
23485
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
23486
+ /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(928);
23487
+ /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__);
23488
+ /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31230);
23489
+ /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__);
23451
23490
  /*!
23452
23491
  * Jodit Editor (https://xdsoft.net/jodit/)
23453
23492
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -23457,7 +23496,7 @@ var Stack = /** @class */ (function () {
23457
23496
 
23458
23497
 
23459
23498
 
23460
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor = {
23499
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
23461
23500
  min_width: 20,
23462
23501
  min_height: 20,
23463
23502
  closeAfterSave: false,
@@ -23472,7 +23511,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
23472
23511
  cropDefaultWidth: '70%',
23473
23512
  cropDefaultHeight: '70%'
23474
23513
  };
23475
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icons_crop_svg__WEBPACK_IMPORTED_MODULE_1___default())).set('resize', (_icons_resize_svg__WEBPACK_IMPORTED_MODULE_2___default()));
23514
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('resize', (_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default()));
23476
23515
 
23477
23516
 
23478
23517
  /***/ }),
@@ -23491,9 +23530,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
23491
23530
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71842);
23492
23531
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
23493
23532
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35265);
23494
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93027);
23495
- /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24863);
23496
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36115);
23533
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
23534
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93027);
23535
+ /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24863);
23497
23536
  /*!
23498
23537
  * Jodit Editor (https://xdsoft.net/jodit/)
23499
23538
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -23732,7 +23771,7 @@ var ImageEditor = /** @class */ (function (_super) {
23732
23771
  _this.options =
23733
23772
  editor && editor.o && editor.o.imageeditor
23734
23773
  ? editor.o.imageeditor
23735
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.imageeditor;
23774
+ : jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
23736
23775
  var o = _this.options;
23737
23776
  _this.resizeUseRatio = o.resizeUseRatio;
23738
23777
  _this.cropUseRatio = o.cropUseRatio;
@@ -23742,7 +23781,7 @@ var ImageEditor = /** @class */ (function (_super) {
23742
23781
  saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(_this.j, 'save', 'Save as ...')
23743
23782
  };
23744
23783
  _this.activeTab = o.resize ? TABS.resize : TABS.crop;
23745
- _this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_6__/* .form */ .Z)(_this.j, _this.options);
23784
+ _this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_7__/* .form */ .Z)(_this.j, _this.options);
23746
23785
  var _a = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(_this.editor), resizeBox = _a.resizeBox, cropBox = _a.cropBox;
23747
23786
  _this.resize_box = resizeBox;
23748
23787
  _this.crop_box = cropBox;
@@ -24697,6 +24736,7 @@ var Table = /** @class */ (function (_super) {
24697
24736
  };
24698
24737
  /**
24699
24738
  * Generate formal table martix columns*rows
24739
+ * @param table - Working table
24700
24740
  * @param callback - if return false cycle break
24701
24741
  */
24702
24742
  Table.prototype.formalMatrix = function (table, callback) {
@@ -24768,7 +24808,6 @@ var Table = /** @class */ (function (_super) {
24768
24808
  * @param line - Insert a new line after/before this
24769
24809
  * line contains the selected cell
24770
24810
  * @param after - Insert a new line after line contains the selected cell
24771
- * @param create - Instance of Create class
24772
24811
  */
24773
24812
  Table.prototype.appendRow = function (table, line, after) {
24774
24813
  return Table.__appendRow(table, line, after, this.j.createInside);
@@ -24937,13 +24976,36 @@ var Table = /** @class */ (function (_super) {
24937
24976
  return Table.__getSelectedBound(table, selectedCells);
24938
24977
  };
24939
24978
  Table.__normalizeTable = function (table) {
24940
- var i, j, min, not;
24941
24979
  var __marked = [], box = Table.__formalMatrix(table);
24942
- // remove extra colspans
24943
- for (j = 0; j < box[0].length; j += 1) {
24944
- min = 1000000;
24945
- not = false;
24946
- for (i = 0; i < box.length; i += 1) {
24980
+ Table.__removeExtraColspans(box, __marked);
24981
+ Table.__removeExtraRowspans(box, __marked);
24982
+ // remove rowspans and colspans equal 1 and empty class
24983
+ for (var i = 0; i < box.length; i += 1) {
24984
+ for (var j = 0; j < box[i].length; j += 1) {
24985
+ if (box[i][j] === undefined) {
24986
+ continue; // broken table
24987
+ }
24988
+ if (box[i][j].hasAttribute('rowspan') &&
24989
+ box[i][j].rowSpan === 1) {
24990
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
24991
+ }
24992
+ if (box[i][j].hasAttribute('colspan') &&
24993
+ box[i][j].colSpan === 1) {
24994
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
24995
+ }
24996
+ if (box[i][j].hasAttribute('class') &&
24997
+ !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
24998
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
24999
+ }
25000
+ }
25001
+ }
25002
+ Table.__unmark(__marked);
25003
+ };
25004
+ Table.__removeExtraColspans = function (box, __marked) {
25005
+ for (var j = 0; j < box[0].length; j += 1) {
25006
+ var min = 1000000;
25007
+ var not = false;
25008
+ for (var i = 0; i < box.length; i += 1) {
24947
25009
  if (box[i][j] === undefined) {
24948
25010
  continue; // broken table
24949
25011
  }
@@ -24954,7 +25016,7 @@ var Table = /** @class */ (function (_super) {
24954
25016
  min = Math.min(min, box[i][j].colSpan);
24955
25017
  }
24956
25018
  if (!not) {
24957
- for (i = 0; i < box.length; i += 1) {
25019
+ for (var i = 0; i < box.length; i += 1) {
24958
25020
  if (box[i][j] === undefined) {
24959
25021
  continue; // broken table
24960
25022
  }
@@ -24962,10 +25024,13 @@ var Table = /** @class */ (function (_super) {
24962
25024
  }
24963
25025
  }
24964
25026
  }
24965
- // remove extra rowspans
25027
+ };
25028
+ Table.__removeExtraRowspans = function (box, marked) {
25029
+ var i = 0;
25030
+ var j = 0;
24966
25031
  for (i = 0; i < box.length; i += 1) {
24967
- min = 1000000;
24968
- not = false;
25032
+ var min = 1000000;
25033
+ var not = false;
24969
25034
  for (j = 0; j < box[i].length; j += 1) {
24970
25035
  if (box[i][j] === undefined) {
24971
25036
  continue; // broken table
@@ -24981,31 +25046,10 @@ var Table = /** @class */ (function (_super) {
24981
25046
  if (box[i][j] === undefined) {
24982
25047
  continue; // broken table
24983
25048
  }
24984
- Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, __marked);
25049
+ Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
24985
25050
  }
24986
25051
  }
24987
25052
  }
24988
- // remove rowspans and colspans equal 1 and empty class
24989
- for (i = 0; i < box.length; i += 1) {
24990
- for (j = 0; j < box[i].length; j += 1) {
24991
- if (box[i][j] === undefined) {
24992
- continue; // broken table
24993
- }
24994
- if (box[i][j].hasAttribute('rowspan') &&
24995
- box[i][j].rowSpan === 1) {
24996
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
24997
- }
24998
- if (box[i][j].hasAttribute('colspan') &&
24999
- box[i][j].colSpan === 1) {
25000
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
25001
- }
25002
- if (box[i][j].hasAttribute('class') &&
25003
- !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
25004
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
25005
- }
25006
- }
25007
- }
25008
- Table.__unmark(__marked);
25009
25053
  };
25010
25054
  /**
25011
25055
  * Try recalculate all coluns and rows after change
@@ -25406,7 +25450,8 @@ var ToolbarButton = /** @class */ (function (_super) {
25406
25450
  };
25407
25451
  ToolbarButton.prototype.createContainer = function () {
25408
25452
  var cn = this.componentName;
25409
- var container = this.j.c.span(cn), button = _super.prototype.createContainer.call(this);
25453
+ var container = this.j.c.span(cn);
25454
+ var button = _super.prototype.createContainer.call(this);
25410
25455
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
25411
25456
  button.classList.remove(cn);
25412
25457
  button.classList.add(cn + '__button');
@@ -25771,6 +25816,7 @@ var ToolbarContent = /** @class */ (function (_super) {
25771
25816
  /* harmony export */ });
25772
25817
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31635);
25773
25818
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22664);
25819
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
25774
25820
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98253);
25775
25821
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3258);
25776
25822
  /*!
@@ -25783,6 +25829,7 @@ var ToolbarContent = /** @class */ (function (_super) {
25783
25829
 
25784
25830
 
25785
25831
 
25832
+
25786
25833
  var ToolbarSelect = /** @class */ (function (_super) {
25787
25834
  (0,tslib__WEBPACK_IMPORTED_MODULE_2__/* .__extends */ .C6)(ToolbarSelect, _super);
25788
25835
  function ToolbarSelect() {
@@ -25805,7 +25852,7 @@ var ToolbarSelect = /** @class */ (function (_super) {
25805
25852
  var keys = Object.keys(list);
25806
25853
  key = keys[0];
25807
25854
  }
25808
- var text = (list[key.toString()] || key).toString();
25855
+ var text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
25809
25856
  this.state.text =
25810
25857
  (_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
25811
25858
  }
@@ -26472,37 +26519,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
26472
26519
  }
26473
26520
  var promises = [];
26474
26521
  if (o.insertImageAsBase64URI) {
26475
- var file_1, i = void 0;
26476
- var _loop_1 = function () {
26477
- file_1 = fileList[i];
26478
- if (file_1 && file_1.type) {
26479
- var mime = file_1.type.match(/\/([a-z0-9]+)/i);
26480
- var extension = mime[1] ? mime[1].toLowerCase() : '';
26481
- if (o.imagesExtensions.includes(extension)) {
26482
- var reader_1 = new FileReader();
26483
- promises.push(uploader.j.async.promise(function (resolve, reject) {
26484
- reader_1.onerror = reject;
26485
- reader_1.onloadend = function () {
26486
- var resp = {
26487
- baseurl: '',
26488
- files: [reader_1.result],
26489
- isImages: [true]
26490
- };
26491
- var handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
26492
- ? handlerSuccess
26493
- : o.defaultHandlerSuccess;
26494
- handler.call(uploader, resp);
26495
- resolve(resp);
26496
- };
26497
- reader_1.readAsDataURL(file_1);
26498
- }));
26499
- fileList[i] = null;
26500
- }
26501
- }
26502
- };
26503
- for (i = 0; i < fileList.length; i += 1) {
26504
- _loop_1();
26505
- }
26522
+ readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
26506
26523
  }
26507
26524
  fileList = fileList.filter(function (a) { return a; });
26508
26525
  if (fileList.length) {
@@ -26513,7 +26530,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
26513
26530
  for (var i = 0; i < fileList.length; i += 1) {
26514
26531
  file = fileList[i];
26515
26532
  if (file) {
26516
- var hasRealExtension = /\.[\d\w]+$/.test(file.name);
26533
+ var hasRealExtension = /\.\w+$/.test(file.name);
26517
26534
  var mime = file.type.match(/\/([a-z0-9]+)/i);
26518
26535
  var extension = mime && mime[1] ? mime[1].toLowerCase() : '';
26519
26536
  var newName = fileList[i].name ||
@@ -26562,6 +26579,40 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
26562
26579
  }
26563
26580
  return Promise.all(promises);
26564
26581
  }
26582
+ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
26583
+ var file, i;
26584
+ var _loop_1 = function () {
26585
+ file = fileList[i];
26586
+ if (file && file.type) {
26587
+ var mime = file.type.match(/\/([a-z0-9]+)/i);
26588
+ var extension = mime[1] ? mime[1].toLowerCase() : '';
26589
+ if (!imagesExtensions.includes(extension)) {
26590
+ return "continue";
26591
+ }
26592
+ var reader_1 = new FileReader();
26593
+ promises.push(uploader.j.async.promise(function (resolve, reject) {
26594
+ reader_1.onerror = reject;
26595
+ reader_1.onloadend = function () {
26596
+ var resp = {
26597
+ baseurl: '',
26598
+ files: [reader_1.result],
26599
+ isImages: [true]
26600
+ };
26601
+ var handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
26602
+ ? handlerSuccess
26603
+ : defaultHandlerSuccess;
26604
+ handler.call(uploader, resp);
26605
+ resolve(resp);
26606
+ };
26607
+ reader_1.readAsDataURL(file);
26608
+ }));
26609
+ fileList[i] = null;
26610
+ }
26611
+ };
26612
+ for (i = 0; i < fileList.length; i += 1) {
26613
+ _loop_1();
26614
+ }
26615
+ }
26565
26616
 
26566
26617
 
26567
26618
  /***/ }),
@@ -26668,9 +26719,9 @@ function send(uploader, data) {
26668
26719
  /* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
26669
26720
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
26670
26721
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
26671
- /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74340);
26672
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77334);
26673
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
26722
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
26723
+ /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74340);
26724
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77334);
26674
26725
  /*!
26675
26726
  * Jodit Editor (https://xdsoft.net/jodit/)
26676
26727
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26690,7 +26741,7 @@ var Uploader = /** @class */ (function (_super) {
26690
26741
  var _this = _super.call(this, editor) || this;
26691
26742
  _this.path = '';
26692
26743
  _this.source = 'default';
26693
- _this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.uploader, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(editor) ? editor.o.uploader : {}));
26744
+ _this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.uploader, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(editor) ? editor.o.uploader : {}));
26694
26745
  return _this;
26695
26746
  }
26696
26747
  Object.defineProperty(Uploader.prototype, "j", {
@@ -26759,14 +26810,14 @@ var Uploader = /** @class */ (function (_super) {
26759
26810
  }
26760
26811
  };
26761
26812
  // send data on server
26762
- if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(cData)) {
26763
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
26813
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
26814
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
26764
26815
  return false;
26765
26816
  }
26766
26817
  if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
26767
- return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
26818
+ return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
26768
26819
  }
26769
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(cData)) {
26820
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
26770
26821
  var items = cData.items;
26771
26822
  for (i = 0; i < items.length; i += 1) {
26772
26823
  if (items[i].kind === 'file' &&
@@ -26777,7 +26828,7 @@ var Uploader = /** @class */ (function (_super) {
26777
26828
  extension = mime[1]
26778
26829
  ? mime[1].toLowerCase()
26779
26830
  : '';
26780
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
26831
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
26781
26832
  }
26782
26833
  e.preventDefault();
26783
26834
  break;
@@ -26800,30 +26851,30 @@ var Uploader = /** @class */ (function (_super) {
26800
26851
  e.preventDefault();
26801
26852
  })
26802
26853
  .on(form, 'dragover', function (event) {
26803
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer) ||
26804
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(event.dataTransfer)) {
26854
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
26855
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
26805
26856
  form.classList.add('jodit_drag_hover');
26806
26857
  event.preventDefault();
26807
26858
  }
26808
26859
  })
26809
26860
  .on(form, 'dragend dragleave', function (event) {
26810
26861
  form.classList.remove('jodit_drag_hover');
26811
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
26862
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
26812
26863
  event.preventDefault();
26813
26864
  }
26814
26865
  })
26815
26866
  .on(form, 'drop', function (event) {
26816
26867
  form.classList.remove('jodit_drag_hover');
26817
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
26868
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
26818
26869
  event.preventDefault();
26819
26870
  event.stopImmediatePropagation();
26820
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
26871
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
26821
26872
  }
26822
26873
  });
26823
26874
  var inputFile = form.querySelector('input[type=file]');
26824
26875
  if (inputFile) {
26825
26876
  self.j.e.on(inputFile, 'change', function () {
26826
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
26877
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
26827
26878
  .then(function () {
26828
26879
  inputFile.value = '';
26829
26880
  if (!/safari/i.test(navigator.userAgent)) {
@@ -26843,7 +26894,7 @@ var Uploader = /** @class */ (function (_super) {
26843
26894
  var handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
26844
26895
  ? handlerError
26845
26896
  : o.defaultHandlerError;
26846
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .send */ .tN)(uploader, {
26897
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
26847
26898
  action: 'fileUploadRemote',
26848
26899
  url: url
26849
26900
  })
@@ -26861,7 +26912,7 @@ var Uploader = /** @class */ (function (_super) {
26861
26912
  };
26862
26913
  Uploader.prototype.destruct = function () {
26863
26914
  this.setStatus(jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
26864
- var instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .ajaxInstances */ .$j.get(this);
26915
+ var instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
26865
26916
  if (instances) {
26866
26917
  instances.forEach(function (ajax) {
26867
26918
  try {
@@ -27296,9 +27347,9 @@ var TabsWidget = function (jodit, tabs, state) {
27296
27347
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
27297
27348
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
27298
27349
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
27299
- /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17995);
27300
- /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_4__);
27301
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
27350
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
27351
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17995);
27352
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
27302
27353
  /*!
27303
27354
  * Jodit Editor (https://xdsoft.net/jodit/)
27304
27355
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27312,7 +27363,7 @@ var TabsWidget = function (jodit, tabs, state) {
27312
27363
 
27313
27364
 
27314
27365
 
27315
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.about = {
27366
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
27316
27367
  exec: function (editor) {
27317
27368
  var dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
27318
27369
  dialog
@@ -27337,7 +27388,7 @@ function about(editor) {
27337
27388
  });
27338
27389
  }
27339
27390
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('about', about);
27340
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_4___default()));
27391
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
27341
27392
 
27342
27393
 
27343
27394
  /***/ }),
@@ -27587,9 +27638,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
27587
27638
 
27588
27639
  "use strict";
27589
27640
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
27590
- /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86634);
27591
- /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_1__);
27592
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
27641
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
27642
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86634);
27643
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
27593
27644
  /*!
27594
27645
  * Jodit Editor (https://xdsoft.net/jodit/)
27595
27646
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27598,9 +27649,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
27598
27649
 
27599
27650
 
27600
27651
 
27601
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLine = true;
27602
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
27603
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
27652
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
27653
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
27654
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
27604
27655
  'table',
27605
27656
  'iframe',
27606
27657
  'img',
@@ -27608,8 +27659,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
27608
27659
  'pre',
27609
27660
  'jodit'
27610
27661
  ];
27611
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
27612
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_1___default()));
27662
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
27663
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
27613
27664
 
27614
27665
 
27615
27666
  /***/ }),
@@ -27771,11 +27822,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
27771
27822
 
27772
27823
  "use strict";
27773
27824
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
27774
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91115);
27775
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__);
27776
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1916);
27777
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__);
27778
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
27825
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
27826
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91115);
27827
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
27828
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1916);
27829
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
27779
27830
  /*!
27780
27831
  * Jodit Editor (https://xdsoft.net/jodit/)
27781
27832
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27816,10 +27867,10 @@ var aiAssistantDefaults = {
27816
27867
  aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
27817
27868
  aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
27818
27869
  };
27819
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
27820
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default()));
27821
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default()));
27822
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-commands'] = {
27870
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
27871
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
27872
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
27873
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
27823
27874
  isDisabled: function (editor) {
27824
27875
  return !editor.o.aiAssistant.aiAssistantCallback;
27825
27876
  },
@@ -27858,7 +27909,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
27858
27909
  editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
27859
27910
  }
27860
27911
  };
27861
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-assistant'] = {
27912
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
27862
27913
  isDisabled: function (editor) {
27863
27914
  return !editor.o.aiAssistant.aiAssistantCallback;
27864
27915
  },
@@ -28222,7 +28273,7 @@ var backspace = /** @class */ (function (_super) {
28222
28273
  if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
28223
28274
  return false;
28224
28275
  }
28225
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
28276
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
28226
28277
  if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some(function (func) {
28227
28278
  if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_9__/* .isFunction */ .T)(func) &&
28228
28279
  func(jodit, fakeNode, backspace, mode)) {
@@ -28485,22 +28536,15 @@ function checkNotCollapsed(jodit) {
28485
28536
  * @private
28486
28537
  */
28487
28538
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
28488
- var _a, _b, _c;
28539
+ var _a, _b;
28489
28540
  var step = backspace ? -1 : 1;
28490
28541
  var anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
28491
- var sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace), removeNeighbor = null;
28492
- var charRemoved = false, removed;
28493
- var getNextInlineSibling = function (sibling) {
28494
- var nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
28495
- if (!nextSibling &&
28496
- sibling.parentNode &&
28497
- sibling.parentNode !== jodit.editor) {
28498
- nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
28499
- }
28500
- return nextSibling;
28501
- };
28542
+ var sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
28543
+ var removeNeighbor = null;
28544
+ var charRemoved = false;
28545
+ var removed;
28502
28546
  if (!sibling) {
28503
- sibling = getNextInlineSibling(fakeNode);
28547
+ sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
28504
28548
  }
28505
28549
  while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
28506
28550
  while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
@@ -28510,57 +28554,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
28510
28554
  break;
28511
28555
  }
28512
28556
  if ((_a = sibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) {
28513
- // For Unicode escapes
28514
- var value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
28515
- var length = value.length;
28516
- var index = backspace ? length - 1 : 0;
28517
- if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28518
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28519
- index += step;
28520
- }
28521
- }
28522
- removed = value[index];
28523
- if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28524
- index += step;
28525
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28526
- index += step;
28527
- }
28528
- index += backspace ? 1 : -1;
28557
+ removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
28558
+ if (!sibling.nodeValue.length &&
28559
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
28560
+ sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
28529
28561
  }
28530
- if (backspace && index < 0) {
28531
- value = [];
28532
- }
28533
- else {
28534
- value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
28535
- }
28536
- if (!anotherSibling ||
28537
- !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
28538
- (!backspace ? / $/ : /^ /).test((_b = anotherSibling.nodeValue) !== null && _b !== void 0 ? _b : '') ||
28539
- !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
28540
- for (var i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
28541
- if (value[i] === ' ') {
28542
- value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
28543
- }
28544
- else {
28545
- break;
28546
- }
28547
- }
28548
- }
28549
- sibling.nodeValue = value.join('');
28550
28562
  }
28551
- if (!((_c = sibling.nodeValue) === null || _c === void 0 ? void 0 : _c.length)) {
28563
+ if (!((_b = sibling.nodeValue) === null || _b === void 0 ? void 0 : _b.length)) {
28552
28564
  removeNeighbor = sibling;
28553
28565
  }
28554
28566
  if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28567
+ checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
28555
28568
  charRemoved = true;
28556
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before, sibling, fakeNode);
28557
- if (mode === 'sentence' ||
28558
- (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
28559
- checkRemoveChar(jodit, fakeNode, backspace, mode);
28560
- }
28561
28569
  break;
28562
28570
  }
28563
- var nextSibling = getNextInlineSibling(sibling);
28571
+ var nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
28564
28572
  if (removeNeighbor) {
28565
28573
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
28566
28574
  removeNeighbor = null;
@@ -28582,6 +28590,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
28582
28590
  }
28583
28591
  return charRemoved;
28584
28592
  }
28593
+ function getNextInlineSibling(sibling, backspace, root) {
28594
+ var nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
28595
+ if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
28596
+ nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
28597
+ }
28598
+ return nextSibling;
28599
+ }
28585
28600
  /**
28586
28601
  * Helper removes all empty inline parents
28587
28602
  */
@@ -28606,6 +28621,57 @@ function addBRInsideEmptyBlock(jodit, node) {
28606
28621
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
28607
28622
  }
28608
28623
  }
28624
+ function tryRemoveChar(sibling, backspace, step, anotherSibling) {
28625
+ // For Unicode escapes
28626
+ var value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
28627
+ var length = value.length;
28628
+ var index = backspace ? length - 1 : 0;
28629
+ if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28630
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28631
+ index += step;
28632
+ }
28633
+ }
28634
+ var removed = value[index];
28635
+ if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28636
+ index += step;
28637
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
28638
+ index += step;
28639
+ }
28640
+ index += backspace ? 1 : -1;
28641
+ }
28642
+ if (backspace && index < 0) {
28643
+ value = [];
28644
+ }
28645
+ else {
28646
+ value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
28647
+ }
28648
+ replaceSpaceOnNBSP(anotherSibling, backspace, value);
28649
+ sibling.nodeValue = value.join('');
28650
+ return removed;
28651
+ }
28652
+ function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
28653
+ var _a;
28654
+ if (!anotherSibling ||
28655
+ !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
28656
+ (!backspace ? / $/ : /^ /).test((_a = anotherSibling.nodeValue) !== null && _a !== void 0 ? _a : '') ||
28657
+ !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
28658
+ for (var i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
28659
+ if (value[i] === ' ') {
28660
+ value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
28661
+ }
28662
+ else {
28663
+ break;
28664
+ }
28665
+ }
28666
+ }
28667
+ }
28668
+ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
28669
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before, sibling, fakeNode);
28670
+ if (mode === 'sentence' ||
28671
+ (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
28672
+ checkRemoveChar(jodit, fakeNode, backspace, mode);
28673
+ }
28674
+ }
28609
28675
 
28610
28676
 
28611
28677
  /***/ }),
@@ -28643,7 +28709,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
28643
28709
  !jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
28644
28710
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before : jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after, neighbor, fakeNode);
28645
28711
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
28646
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
28712
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
28647
28713
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
28648
28714
  return true;
28649
28715
  }
@@ -29053,20 +29119,20 @@ function getMoveFilter(jodit) {
29053
29119
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56298);
29054
29120
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
29055
29121
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
29056
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73124);
29057
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52450);
29058
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__);
29059
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41111);
29060
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__);
29061
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49972);
29062
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__);
29063
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(45062);
29064
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__);
29065
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(18605);
29066
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__);
29067
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83389);
29068
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__);
29069
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(36115);
29122
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
29123
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73124);
29124
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52450);
29125
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
29126
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41111);
29127
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
29128
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49972);
29129
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
29130
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45062);
29131
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
29132
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(18605);
29133
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
29134
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83389);
29135
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
29070
29136
  /*!
29071
29137
  * Jodit Editor (https://xdsoft.net/jodit/)
29072
29138
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -29090,7 +29156,7 @@ function getMoveFilter(jodit) {
29090
29156
  */
29091
29157
  function bold(editor) {
29092
29158
  var callBack = function (command) {
29093
- var control = jodit_config__WEBPACK_IMPORTED_MODULE_10__/* .Config */ .T.defaultOptions.controls[command], cssOptions = (0,tslib__WEBPACK_IMPORTED_MODULE_11__/* .__assign */ .Cl)({}, control.css);
29159
+ var control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = (0,tslib__WEBPACK_IMPORTED_MODULE_11__/* .__assign */ .Cl)({}, control.css);
29094
29160
  var cssRules;
29095
29161
  Object.keys(cssOptions).forEach(function (key) {
29096
29162
  if (!cssRules) {
@@ -29142,12 +29208,12 @@ function bold(editor) {
29142
29208
  });
29143
29209
  }
29144
29210
  jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
29145
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default()))
29146
- .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default()))
29147
- .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default()))
29148
- .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default()))
29149
- .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
29150
- .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default()));
29211
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
29212
+ .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
29213
+ .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
29214
+ .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
29215
+ .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
29216
+ .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
29151
29217
 
29152
29218
 
29153
29219
  /***/ }),
@@ -29218,9 +29284,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
29218
29284
  /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84976);
29219
29285
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71005);
29220
29286
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
29221
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93267);
29222
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_5__);
29223
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
29287
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
29288
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93267);
29289
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
29224
29290
  /*!
29225
29291
  * Jodit Editor (https://xdsoft.net/jodit/)
29226
29292
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -29234,7 +29300,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
29234
29300
 
29235
29301
 
29236
29302
 
29237
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.classSpan = {
29303
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
29238
29304
  command: 'applyClassName',
29239
29305
  exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
29240
29306
  list: [
@@ -29329,7 +29395,7 @@ var classSpan = /** @class */ (function (_super) {
29329
29395
  }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin */ .k));
29330
29396
 
29331
29397
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
29332
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_5___default()));
29398
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
29333
29399
 
29334
29400
 
29335
29401
  /***/ }),
@@ -29479,9 +29545,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
29479
29545
 
29480
29546
  "use strict";
29481
29547
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
29482
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71948);
29483
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_1__);
29484
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
29548
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
29549
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71948);
29550
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
29485
29551
  /*!
29486
29552
  * Jodit Editor (https://xdsoft.net/jodit/)
29487
29553
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -29490,7 +29556,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
29490
29556
 
29491
29557
 
29492
29558
 
29493
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML = {
29559
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
29494
29560
  timeout: 300,
29495
29561
  removeEmptyElements: true,
29496
29562
  fillEmptyParagraph: true,
@@ -29506,11 +29572,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
29506
29572
  safeJavaScriptLink: true,
29507
29573
  disableCleanFilter: null
29508
29574
  };
29509
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.eraser = {
29575
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
29510
29576
  command: 'removeFormat',
29511
29577
  tooltip: 'Clear Formatting'
29512
29578
  };
29513
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_1___default()));
29579
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
29514
29580
 
29515
29581
 
29516
29582
  /***/ }),
@@ -30194,15 +30260,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
30194
30260
 
30195
30261
  "use strict";
30196
30262
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
30197
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51457);
30198
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__);
30199
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23602);
30200
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__);
30201
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(86899);
30202
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__);
30203
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95320);
30204
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__);
30205
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
30263
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
30264
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51457);
30265
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
30266
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23602);
30267
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
30268
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86899);
30269
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
30270
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95320);
30271
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
30206
30272
  /*!
30207
30273
  * Jodit Editor (https://xdsoft.net/jodit/)
30208
30274
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30214,25 +30280,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
30214
30280
 
30215
30281
 
30216
30282
 
30217
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.cut = {
30283
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
30218
30284
  command: 'cut',
30219
30285
  isDisabled: function (editor) { return editor.s.isCollapsed(); },
30220
30286
  tooltip: 'Cut selection'
30221
30287
  };
30222
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copy = {
30288
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
30223
30289
  command: 'copy',
30224
30290
  isDisabled: function (editor) { return editor.s.isCollapsed(); },
30225
30291
  tooltip: 'Copy selection'
30226
30292
  };
30227
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.selectall = {
30293
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
30228
30294
  icon: 'select-all',
30229
30295
  command: 'selectall',
30230
30296
  tooltip: 'Select all'
30231
30297
  };
30232
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default()))
30233
- .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default()))
30234
- .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default()))
30235
- .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default()));
30298
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
30299
+ .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
30300
+ .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
30301
+ .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
30236
30302
 
30237
30303
 
30238
30304
  /***/ }),
@@ -30304,10 +30370,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
30304
30370
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
30305
30371
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
30306
30372
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
30307
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16116);
30308
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45674);
30309
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_4__);
30310
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
30373
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
30374
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
30375
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45674);
30376
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
30311
30377
  /*!
30312
30378
  * Jodit Editor (https://xdsoft.net/jodit/)
30313
30379
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30319,8 +30385,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
30319
30385
 
30320
30386
 
30321
30387
 
30322
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_4___default()));
30323
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brushCell = {
30388
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
30389
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
30324
30390
  isVisible: function (editor) {
30325
30391
  return !editor.o.disablePlugins.includes('color');
30326
30392
  },
@@ -30334,7 +30400,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
30334
30400
  return false;
30335
30401
  }
30336
30402
  var makeColorPicker = function (key) {
30337
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, function (value) {
30403
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, function (value) {
30338
30404
  selected.forEach(function (cell) {
30339
30405
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
30340
30406
  });
@@ -30344,7 +30410,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
30344
30410
  editor.unlock();
30345
30411
  }, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
30346
30412
  };
30347
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, [
30413
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
30348
30414
  {
30349
30415
  name: 'Background',
30350
30416
  content: makeColorPicker('background-color')
@@ -30355,7 +30421,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
30355
30421
  },
30356
30422
  tooltip: 'Background'
30357
30423
  };
30358
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brush = {
30424
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
30359
30425
  isVisible: function (editor) {
30360
30426
  return !editor.o.disablePlugins.includes('color');
30361
30427
  },
@@ -30403,7 +30469,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
30403
30469
  }
30404
30470
  }, editor.editor);
30405
30471
  }
30406
- var backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, function (value) {
30472
+ var backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, function (value) {
30407
30473
  if (!currentElement) {
30408
30474
  editor.execCommand('background', false, value);
30409
30475
  }
@@ -30414,7 +30480,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
30414
30480
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
30415
30481
  close();
30416
30482
  }, bg_color);
30417
- var colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, function (value) {
30483
+ var colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, function (value) {
30418
30484
  if (!currentElement) {
30419
30485
  editor.execCommand('forecolor', false, value);
30420
30486
  }
@@ -30438,7 +30504,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
30438
30504
  if (editor.o.colorPickerDefaultTab !== 'background') {
30439
30505
  tabs = tabs.reverse();
30440
30506
  }
30441
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
30507
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
30442
30508
  },
30443
30509
  exec: function (jodit, current, _a) {
30444
30510
  var button = _a.button;
@@ -30478,10 +30544,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
30478
30544
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
30479
30545
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
30480
30546
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
30481
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3843);
30482
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_3__);
30483
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94628);
30484
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
30547
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
30548
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3843);
30549
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
30550
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94628);
30485
30551
  /*!
30486
30552
  * Jodit Editor (https://xdsoft.net/jodit/)
30487
30553
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30539,7 +30605,7 @@ var getStyles = function (editor, box, defaultStyles) {
30539
30605
  }
30540
30606
  return result;
30541
30607
  };
30542
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copyformat = {
30608
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
30543
30609
  exec: function (editor, current, _a) {
30544
30610
  var button = _a.button;
30545
30611
  if (!current) {
@@ -30590,10 +30656,10 @@ function copyFormat(editor) {
30590
30656
  name: 'copyformat',
30591
30657
  group: 'clipboard'
30592
30658
  });
30593
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_4__);
30659
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
30594
30660
  }
30595
30661
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
30596
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default()));
30662
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
30597
30663
 
30598
30664
 
30599
30665
  /***/ }),
@@ -31567,45 +31633,11 @@ var dragAndDrop = /** @class */ (function (_super) {
31567
31633
  var sel = this.j.s.sel;
31568
31634
  var range = this.bufferRange ||
31569
31635
  (sel && sel.rangeCount ? sel.getRangeAt(0) : null);
31570
- var fragment = null;
31571
- if (!this.draggable && range) {
31572
- fragment = this.isCopyMode
31573
- ? range.cloneContents()
31574
- : range.extractContents();
31575
- }
31576
- else if (this.draggable) {
31577
- if (this.isCopyMode) {
31578
- var _a = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__read */ .zs)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
31579
- ? ['a', 'href']
31580
- : ['img', 'src'], 2), tagName = _a[0], field = _a[1];
31581
- fragment = this.j.createInside.element(tagName);
31582
- fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
31583
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
31584
- '');
31585
- if (tagName === 'a') {
31586
- fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
31587
- }
31588
- }
31589
- else {
31590
- fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
31591
- }
31592
- }
31593
- else if (this.getText(event)) {
31594
- fragment = this.j.createInside.fromHTML(this.getText(event));
31595
- }
31636
+ var fragment = this.__getWorkFragment(range, event);
31596
31637
  sel && sel.removeAllRanges();
31597
31638
  this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
31598
31639
  if (fragment) {
31599
- this.j.s.insertNode(fragment, false, false);
31600
- if (range && fragment.firstChild && fragment.lastChild) {
31601
- range.setStartBefore(fragment.firstChild);
31602
- range.setEndAfter(fragment.lastChild);
31603
- this.j.s.selectRange(range);
31604
- this.j.e.fire('synchro');
31605
- }
31606
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
31607
- this.j.e.fire('afterInsertImage', fragment);
31608
- }
31640
+ this.__insertFragment.call(this, fragment, range);
31609
31641
  }
31610
31642
  event.preventDefault();
31611
31643
  event.stopPropagation();
@@ -31613,6 +31645,47 @@ var dragAndDrop = /** @class */ (function (_super) {
31613
31645
  this.isFragmentFromEditor = false;
31614
31646
  this.removeDragListeners();
31615
31647
  };
31648
+ dragAndDrop.prototype.__getWorkFragment = function (range, event) {
31649
+ var fragment = null;
31650
+ if (!this.draggable && range) {
31651
+ fragment = this.isCopyMode
31652
+ ? range.cloneContents()
31653
+ : range.extractContents();
31654
+ }
31655
+ else if (this.draggable) {
31656
+ if (this.isCopyMode) {
31657
+ var _a = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__read */ .zs)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
31658
+ ? ['a', 'href']
31659
+ : ['img', 'src'], 2), tagName = _a[0], field = _a[1];
31660
+ fragment = this.j.createInside.element(tagName);
31661
+ fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
31662
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
31663
+ '');
31664
+ if (tagName === 'a') {
31665
+ fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
31666
+ }
31667
+ }
31668
+ else {
31669
+ fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
31670
+ }
31671
+ }
31672
+ else if (this.getText(event)) {
31673
+ fragment = this.j.createInside.fromHTML(this.getText(event));
31674
+ }
31675
+ return fragment;
31676
+ };
31677
+ dragAndDrop.prototype.__insertFragment = function (fragment, range) {
31678
+ this.j.s.insertNode(fragment, false, false);
31679
+ if (range && fragment.firstChild && fragment.lastChild) {
31680
+ range.setStartBefore(fragment.firstChild);
31681
+ range.setEndAfter(fragment.lastChild);
31682
+ this.j.s.selectRange(range);
31683
+ this.j.e.fire('synchro');
31684
+ }
31685
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
31686
+ this.j.e.fire('afterInsertImage', fragment);
31687
+ }
31688
+ };
31616
31689
  /** @override */
31617
31690
  dragAndDrop.prototype.beforeDestruct = function () {
31618
31691
  this.onDragEnd();
@@ -32434,8 +32507,8 @@ function wrapText(fake, jodit) {
32434
32507
  /* unused harmony export file */
32435
32508
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
32436
32509
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
32437
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16116);
32438
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
32510
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
32511
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16116);
32439
32512
  /*!
32440
32513
  * Jodit Editor (https://xdsoft.net/jodit/)
32441
32514
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32445,7 +32518,7 @@ function wrapText(fake, jodit) {
32445
32518
 
32446
32519
 
32447
32520
 
32448
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.file = {
32521
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
32449
32522
  popup: function (editor, current, close) {
32450
32523
  var insert = function (url, title) {
32451
32524
  if (title === void 0) { title = ''; }
@@ -32459,7 +32532,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
32459
32532
  ? current
32460
32533
  : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
32461
32534
  }
32462
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__/* .FileSelectorWidget */ .kG)(editor, {
32535
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
32463
32536
  filebrowser: function (data) {
32464
32537
  data.files &&
32465
32538
  data.files.forEach(function (file) { return insert(data.baseurl + file); });
@@ -32585,11 +32658,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
32585
32658
  /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59101);
32586
32659
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
32587
32660
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
32588
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48842);
32589
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_3__);
32590
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25501);
32591
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__);
32592
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
32661
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
32662
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48842);
32663
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
32664
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25501);
32665
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
32593
32666
  /*!
32594
32667
  * Jodit Editor (https://xdsoft.net/jodit/)
32595
32668
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32606,9 +32679,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
32606
32679
  /**
32607
32680
  * Default font-size points
32608
32681
  */
32609
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
32610
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (_icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('fontsize', (_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4___default()));
32611
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize = {
32682
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
32683
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (_icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default())).set('fontsize', (_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default()));
32684
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
32612
32685
  command: 'fontsize',
32613
32686
  data: {
32614
32687
  cssRule: 'font-size',
@@ -32667,7 +32740,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
32667
32740
  return keySet.has(normalize(value.toString()));
32668
32741
  }
32669
32742
  };
32670
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.font = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__assign */ .Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__assign */ .Cl)({}, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize), { command: 'fontname', textTemplate: function (j, value) {
32743
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__assign */ .Cl)((0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__assign */ .Cl)({}, jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize), { command: 'fontname', textTemplate: function (j, value) {
32671
32744
  var _a = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__read */ .zs)(value.split(','), 1), first = _a[0];
32672
32745
  return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trimChars */ .Gd)(first, '"\'');
32673
32746
  }, list: {
@@ -32770,11 +32843,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
32770
32843
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
32771
32844
 
32772
32845
  "use strict";
32773
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
32846
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
32847
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
32774
32848
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
32775
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29348);
32776
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_2__);
32777
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
32849
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
32850
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29348);
32851
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
32778
32852
  /*!
32779
32853
  * Jodit Editor (https://xdsoft.net/jodit/)
32780
32854
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32784,13 +32858,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
32784
32858
 
32785
32859
 
32786
32860
 
32787
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default()));
32788
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.paragraph = {
32861
+
32862
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
32863
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
32789
32864
  command: 'formatBlock',
32790
32865
  value: function (editor, button) {
32791
32866
  var _a, _b;
32792
32867
  var control = button.control, current = editor.s.current();
32793
- var currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
32868
+ var currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
32794
32869
  return (_a = currentBox === null || currentBox === void 0 ? void 0 : currentBox.nodeName.toLowerCase()) !== null && _a !== void 0 ? _a : (_b = control.data) === null || _b === void 0 ? void 0 : _b.currentValue;
32795
32870
  },
32796
32871
  update: function (editor, button) {
@@ -32799,7 +32874,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
32799
32874
  return false;
32800
32875
  }
32801
32876
  var currentValue = button.state.value, list = control.list;
32802
- if (list && list[currentValue.toString()]) {
32877
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
32803
32878
  if (editor.o.textIcons) {
32804
32879
  button.state.text = list[currentValue.toString()].toString();
32805
32880
  }
@@ -32823,9 +32898,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
32823
32898
  return Boolean(button.state.value === ((_b = (_a = button.control) === null || _a === void 0 ? void 0 : _a.args) === null || _b === void 0 ? void 0 : _b[0]));
32824
32899
  },
32825
32900
  isActive: function (editor, button) {
32826
- var _a;
32827
32901
  return (button.state.value !== editor.o.enter &&
32828
- Boolean((_a = button.control.list) === null || _a === void 0 ? void 0 : _a[button.state.value]));
32902
+ (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
32903
+ Boolean(button.control.list[button.state.value]));
32829
32904
  },
32830
32905
  childTemplate: function (e, key, value) {
32831
32906
  return "<".concat(key, " style=\"margin:0;padding:0\"><span>").concat(e.i18n(value), "</span></").concat(key, ">");
@@ -32877,11 +32952,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
32877
32952
  "use strict";
32878
32953
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
32879
32954
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
32880
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24772);
32881
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__);
32882
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66547);
32883
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__);
32884
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
32955
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
32956
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24772);
32957
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
32958
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66547);
32959
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
32885
32960
  /*!
32886
32961
  * Jodit Editor (https://xdsoft.net/jodit/)
32887
32962
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32893,10 +32968,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
32893
32968
 
32894
32969
 
32895
32970
 
32896
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.fullsize = false;
32897
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.globalFullSize = true;
32898
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('shrink', (_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3___default()));
32899
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.fullsize = {
32971
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
32972
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
32973
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('shrink', (_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default()));
32974
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
32900
32975
  exec: function (editor) {
32901
32976
  editor.toggleFullSize();
32902
32977
  },
@@ -33231,9 +33306,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
33231
33306
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
33232
33307
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
33233
33308
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
33234
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89097);
33235
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_3__);
33236
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
33309
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
33310
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89097);
33311
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
33237
33312
  /*!
33238
33313
  * Jodit Editor (https://xdsoft.net/jodit/)
33239
33314
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33244,8 +33319,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
33244
33319
 
33245
33320
 
33246
33321
 
33247
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_3___default()));
33248
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.hr = {
33322
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
33323
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
33249
33324
  command: 'insertHorizontalRule',
33250
33325
  tags: ['hr'],
33251
33326
  tooltip: 'Insert Horizontal Line'
@@ -33765,6 +33840,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
33765
33840
  * Released under MIT see LICENSE.txt in the project root for license information.
33766
33841
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
33767
33842
  */
33843
+ /**
33844
+ * @module plugins/image-properties
33845
+ */
33768
33846
 
33769
33847
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
33770
33848
  dialogWidth: 600,
@@ -35287,10 +35365,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
35287
35365
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
35288
35366
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
35289
35367
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
35290
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
35291
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(64831);
35292
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_5__);
35293
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
35368
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
35369
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
35370
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64831);
35371
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
35294
35372
  /*!
35295
35373
  * Jodit Editor (https://xdsoft.net/jodit/)
35296
35374
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35304,8 +35382,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
35304
35382
 
35305
35383
 
35306
35384
 
35307
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_5___default()));
35308
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.image = {
35385
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
35386
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
35309
35387
  popup: function (editor, current, close) {
35310
35388
  var sourceImage = null;
35311
35389
  if (current &&
@@ -35317,7 +35395,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
35317
35395
  : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
35318
35396
  }
35319
35397
  editor.s.save();
35320
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .FileSelectorWidget */ .kG)(editor, {
35398
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
35321
35399
  filebrowser: function (data) {
35322
35400
  editor.s.restore();
35323
35401
  data.files &&
@@ -35372,12 +35450,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
35372
35450
  "use strict";
35373
35451
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
35374
35452
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
35375
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67176);
35376
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__);
35377
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14017);
35378
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__);
35379
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3392);
35380
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
35453
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
35454
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67176);
35455
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
35456
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14017);
35457
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
35458
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3392);
35381
35459
  /*!
35382
35460
  * Jodit Editor (https://xdsoft.net/jodit/)
35383
35461
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35389,17 +35467,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
35389
35467
 
35390
35468
 
35391
35469
 
35392
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (_icons_indent_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('outdent', (_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3___default()));
35393
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.indent = {
35470
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('outdent', (_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default()));
35471
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
35394
35472
  tooltip: 'Increase Indent'
35395
35473
  };
35396
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.outdent = {
35474
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
35397
35475
  isDisabled: function (editor) {
35398
35476
  var current = editor.s.current();
35399
35477
  if (current) {
35400
35478
  var currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
35401
35479
  if (currentBox) {
35402
- var arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__/* .getKey */ .i)(editor.o.direction, currentBox);
35480
+ var arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
35403
35481
  return (!currentBox.style[arrow] ||
35404
35482
  parseInt(currentBox.style[arrow], 10) <= 0);
35405
35483
  }
@@ -35408,7 +35486,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
35408
35486
  },
35409
35487
  tooltip: 'Decrease Indent'
35410
35488
  };
35411
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.indentMargin = 10;
35489
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
35412
35490
 
35413
35491
 
35414
35492
  /***/ }),
@@ -35671,12 +35749,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
35671
35749
 
35672
35750
  "use strict";
35673
35751
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
35674
- /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97836);
35675
- /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82558);
35676
- /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6295);
35677
- /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26396);
35752
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
35753
+ /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97836);
35754
+ /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82558);
35755
+ /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6295);
35756
+ /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26396);
35678
35757
  /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(58540);
35679
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
35680
35758
  /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38681);
35681
35759
  /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__);
35682
35760
  /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(64637);
@@ -35710,10 +35788,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
35710
35788
 
35711
35789
 
35712
35790
 
35713
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInline = true;
35714
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
35715
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
35716
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
35791
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
35792
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
35793
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
35794
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
35717
35795
  jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
35718
35796
  .set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
35719
35797
  .set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
@@ -35721,14 +35799,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
35721
35799
  .set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
35722
35800
  .set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
35723
35801
  .set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
35724
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
35725
- a: _items_a__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,
35726
- img: _items_img__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
35727
- cells: _items_cells__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
35802
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
35803
+ a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
35804
+ img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
35805
+ cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
35728
35806
  toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
35729
- jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
35730
- iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
35731
- 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
35807
+ jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
35808
+ iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
35809
+ 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
35732
35810
  selection: [
35733
35811
  'bold',
35734
35812
  'underline',
@@ -36369,12 +36447,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
36369
36447
  /* unused harmony export justify */
36370
36448
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
36371
36449
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
36372
- /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40080);
36373
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
36374
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
36375
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80515);
36376
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
36450
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
36451
+ /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40080);
36452
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38322);
36453
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
36377
36454
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
36455
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80515);
36456
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
36378
36457
  /*!
36379
36458
  * Jodit Editor (https://xdsoft.net/jodit/)
36380
36459
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36387,7 +36466,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
36387
36466
 
36388
36467
 
36389
36468
 
36390
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_4___default()));
36469
+
36470
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
36391
36471
  jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
36392
36472
  name: 'left',
36393
36473
  tooltip: 'Align',
@@ -36396,22 +36476,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
36396
36476
  if (current) {
36397
36477
  var currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor) ||
36398
36478
  editor.editor;
36399
- var currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString();
36479
+ var currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
36400
36480
  if (control.defaultValue &&
36401
36481
  control.defaultValue.indexOf(currentValue) !== -1) {
36402
36482
  currentValue = 'left';
36403
36483
  }
36404
- if (control.data &&
36405
- control.data.currentValue !== currentValue &&
36406
- control.list &&
36407
- control.list[currentValue]) {
36484
+ var list = control.list, data = control.data;
36485
+ if (data &&
36486
+ data.currentValue !== currentValue &&
36487
+ list &&
36488
+ ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
36489
+ ? list[currentValue]
36490
+ : list.includes(currentValue))) {
36408
36491
  if (editor.o.textIcons || control.component === 'select') {
36409
36492
  button.state.text = currentValue;
36410
36493
  }
36411
36494
  else {
36412
36495
  button.state.icon.name = currentValue;
36413
36496
  }
36414
- control.data.currentValue = currentValue;
36497
+ data.currentValue = currentValue;
36415
36498
  }
36416
36499
  }
36417
36500
  },
@@ -36422,7 +36505,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
36422
36505
  }
36423
36506
  var currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor) ||
36424
36507
  editor.editor;
36425
- return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
36508
+ return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
36426
36509
  },
36427
36510
  defaultValue: ['left', 'start', 'inherit'],
36428
36511
  data: {
@@ -36476,7 +36559,7 @@ function justify(editor) {
36476
36559
  if (!currentBox) {
36477
36560
  currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
36478
36561
  }
36479
- (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__/* .alignElement */ .Op)(command, currentBox);
36562
+ (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
36480
36563
  });
36481
36564
  return false;
36482
36565
  };
@@ -36701,9 +36784,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
36701
36784
  "use strict";
36702
36785
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65147);
36703
36786
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
36704
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(223);
36705
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_2__);
36706
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
36787
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
36788
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(223);
36789
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
36707
36790
  /*!
36708
36791
  * Jodit Editor (https://xdsoft.net/jodit/)
36709
36792
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36713,9 +36796,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
36713
36796
 
36714
36797
 
36715
36798
 
36716
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultLineHeight = null;
36717
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_2___default()));
36718
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.lineHeight = {
36799
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
36800
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
36801
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
36719
36802
  command: 'applyLineHeight',
36720
36803
  tags: ['ol'],
36721
36804
  tooltip: 'Line height',
@@ -37287,12 +37370,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
37287
37370
  "use strict";
37288
37371
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
37289
37372
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
37290
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95032);
37291
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_2__);
37292
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73533);
37293
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__);
37294
- /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21329);
37295
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
37373
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
37374
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95032);
37375
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
37376
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73533);
37377
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
37378
+ /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21329);
37296
37379
  /*!
37297
37380
  * Jodit Editor (https://xdsoft.net/jodit/)
37298
37381
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37304,8 +37387,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
37304
37387
 
37305
37388
 
37306
37389
 
37307
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
37308
- formTemplate: _template__WEBPACK_IMPORTED_MODULE_4__/* .formTemplate */ .B,
37390
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
37391
+ formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
37309
37392
  followOnDblClick: false,
37310
37393
  processVideoLink: true,
37311
37394
  processPastedLink: true,
@@ -37317,8 +37400,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
37317
37400
  selectOptionsClassName: [],
37318
37401
  hotkeys: ['ctrl+k', 'cmd+k']
37319
37402
  };
37320
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (_icons_link_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('unlink', (_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3___default()));
37321
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unlink = {
37403
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (_icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('unlink', (_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default()));
37404
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
37322
37405
  exec: function (editor, current) {
37323
37406
  var anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
37324
37407
  if (anchor) {
@@ -37329,7 +37412,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
37329
37412
  },
37330
37413
  tooltip: 'Unlink'
37331
37414
  };
37332
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.link = {
37415
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
37333
37416
  isActive: function (editor) {
37334
37417
  var current = editor.s.current();
37335
37418
  return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
@@ -37492,35 +37575,7 @@ var link = /** @class */ (function (_super) {
37492
37575
  if (link) {
37493
37576
  url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
37494
37577
  if (modeClassName) {
37495
- switch (modeClassName) {
37496
- case 'input':
37497
- if (className_input) {
37498
- className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
37499
- }
37500
- break;
37501
- case 'select':
37502
- if (className_select) {
37503
- for (var i = 0; i < className_select.selectedOptions.length; i++) {
37504
- var option = className_select.options.item(i);
37505
- if (option) {
37506
- option.selected = false;
37507
- }
37508
- }
37509
- var classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
37510
- classNames.split(' ').forEach(function (className) {
37511
- if (className) {
37512
- for (var i = 0; i < className_select.options.length; i++) {
37513
- var option = className_select.options.item(i);
37514
- if ((option === null || option === void 0 ? void 0 : option.value) &&
37515
- option.value === className) {
37516
- option.selected = true;
37517
- }
37518
- }
37519
- }
37520
- });
37521
- }
37522
- break;
37523
- }
37578
+ readClassnames(modeClassName, className_input, link, className_select);
37524
37579
  }
37525
37580
  if (openInNewTabCheckbox && target_checkbox) {
37526
37581
  target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
@@ -37581,44 +37636,10 @@ var link = /** @class */ (function (_super) {
37581
37636
  links = [link];
37582
37637
  }
37583
37638
  links.forEach(function (a) {
37584
- var _a;
37585
37639
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
37586
- if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
37587
- if (modeClassName === 'input') {
37588
- if (className_input.value === '' &&
37589
- a.hasAttribute('class')) {
37590
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
37591
- }
37592
- if (className_input.value !== '') {
37593
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
37594
- }
37595
- }
37596
- else if (modeClassName === 'select') {
37597
- if (a.hasAttribute('class')) {
37598
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
37599
- }
37600
- for (var i = 0; i < className_select.selectedOptions.length; i++) {
37601
- var className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
37602
- if (className) {
37603
- a.classList.add(className);
37604
- }
37605
- }
37606
- }
37607
- }
37640
+ writeClasses(modeClassName, className_input, className_select, a);
37608
37641
  if (!isImageContent) {
37609
- var newContent = a.textContent;
37610
- if (content_input.value.trim().length) {
37611
- if (textWasChanged) {
37612
- newContent = content_input.value;
37613
- }
37614
- }
37615
- else {
37616
- newContent = url_input.value;
37617
- }
37618
- var content = a.textContent;
37619
- if (newContent !== content) {
37620
- a.textContent = newContent;
37621
- }
37642
+ writeImage(a, content_input, textWasChanged, url_input);
37622
37643
  }
37623
37644
  if (openInNewTabCheckbox && target_checkbox) {
37624
37645
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
@@ -37665,6 +37686,75 @@ var link = /** @class */ (function (_super) {
37665
37686
  }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .k));
37666
37687
 
37667
37688
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
37689
+ function writeClasses(modeClassName, className_input, className_select, a) {
37690
+ var _a;
37691
+ if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
37692
+ if (modeClassName === 'input') {
37693
+ if (className_input.value === '' && a.hasAttribute('class')) {
37694
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
37695
+ }
37696
+ if (className_input.value !== '') {
37697
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
37698
+ }
37699
+ }
37700
+ else if (modeClassName === 'select') {
37701
+ if (a.hasAttribute('class')) {
37702
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
37703
+ }
37704
+ for (var i = 0; i < className_select.selectedOptions.length; i++) {
37705
+ var className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
37706
+ if (className) {
37707
+ a.classList.add(className);
37708
+ }
37709
+ }
37710
+ }
37711
+ }
37712
+ }
37713
+ function readClassnames(modeClassName, className_input, link, className_select) {
37714
+ switch (modeClassName) {
37715
+ case 'input':
37716
+ if (className_input) {
37717
+ className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
37718
+ }
37719
+ break;
37720
+ case 'select':
37721
+ if (className_select) {
37722
+ for (var i = 0; i < className_select.selectedOptions.length; i++) {
37723
+ var option = className_select.options.item(i);
37724
+ if (option) {
37725
+ option.selected = false;
37726
+ }
37727
+ }
37728
+ var classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
37729
+ classNames.split(' ').forEach(function (className) {
37730
+ if (className) {
37731
+ for (var i = 0; i < className_select.options.length; i++) {
37732
+ var option = className_select.options.item(i);
37733
+ if ((option === null || option === void 0 ? void 0 : option.value) && option.value === className) {
37734
+ option.selected = true;
37735
+ }
37736
+ }
37737
+ }
37738
+ });
37739
+ }
37740
+ break;
37741
+ }
37742
+ }
37743
+ function writeImage(a, content_input, textWasChanged, url_input) {
37744
+ var newContent = a.textContent;
37745
+ if (content_input.value.trim().length) {
37746
+ if (textWasChanged) {
37747
+ newContent = content_input.value;
37748
+ }
37749
+ }
37750
+ else {
37751
+ newContent = url_input.value;
37752
+ }
37753
+ var content = a.textContent;
37754
+ if (newContent !== content) {
37755
+ a.textContent = newContent;
37756
+ }
37757
+ }
37668
37758
 
37669
37759
 
37670
37760
  /***/ }),
@@ -37876,9 +37966,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
37876
37966
  "use strict";
37877
37967
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
37878
37968
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
37879
- /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97394);
37880
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8809);
37881
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
37969
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
37970
+ /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97394);
37971
+ /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8809);
37882
37972
  /*!
37883
37973
  * Jodit Editor (https://xdsoft.net/jodit/)
37884
37974
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37889,9 +37979,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
37889
37979
 
37890
37980
 
37891
37981
 
37892
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.mobileTapTimeout = 300;
37893
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.toolbarAdaptive = true;
37894
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD = [
37982
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
37983
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
37984
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
37895
37985
  {
37896
37986
  group: 'font-style',
37897
37987
  buttons: []
@@ -37938,7 +38028,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
37938
38028
  '|',
37939
38029
  'dots'
37940
38030
  ];
37941
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM = [
38031
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
37942
38032
  {
37943
38033
  group: 'font-style',
37944
38034
  buttons: []
@@ -37973,7 +38063,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
37973
38063
  '|',
37974
38064
  'dots'
37975
38065
  ];
37976
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS = [
38066
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
37977
38067
  {
37978
38068
  group: 'font-style',
37979
38069
  buttons: []
@@ -37994,17 +38084,17 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
37994
38084
  '---',
37995
38085
  'dots'
37996
38086
  ];
37997
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.dots = {
38087
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
37998
38088
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
37999
38089
  popup: function (editor, current, close, button) {
38000
38090
  var store = button.control.data;
38001
38091
  if (store === undefined) {
38002
38092
  store = {
38003
- toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__/* .makeCollection */ .$K)(editor),
38093
+ toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
38004
38094
  rebuild: function () {
38005
38095
  var _a, _b;
38006
38096
  if (button) {
38007
- var buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__/* .ToolbarCollection */ .Q));
38097
+ var buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
38008
38098
  if (buttons && store) {
38009
38099
  store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
38010
38100
  var w = ((_b = (_a = editor.toolbar) === null || _a === void 0 ? void 0 : _a.firstButton) === null || _b === void 0 ? void 0 : _b.container.offsetWidth) || 36;
@@ -38115,11 +38205,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
38115
38205
  "use strict";
38116
38206
  /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72197);
38117
38207
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
38118
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40037);
38119
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__);
38120
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83207);
38121
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__);
38122
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
38208
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
38209
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40037);
38210
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
38211
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83207);
38212
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
38123
38213
  /*!
38124
38214
  * Jodit Editor (https://xdsoft.net/jodit/)
38125
38215
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38138,8 +38228,8 @@ var memoExec = function (jodit, _, _a) {
38138
38228
  (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
38139
38229
  jodit.execCommand(control.command, false, value === 'default' ? null : value);
38140
38230
  };
38141
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (_icons_ol_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('ul', (_icons_ul_svg__WEBPACK_IMPORTED_MODULE_3___default()));
38142
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul = {
38231
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('ul', (_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default()));
38232
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
38143
38233
  command: 'insertUnorderedList',
38144
38234
  tags: ['ul'],
38145
38235
  tooltip: 'Insert Unordered List',
@@ -38151,7 +38241,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
38151
38241
  },
38152
38242
  exec: memoExec
38153
38243
  };
38154
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ol = {
38244
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
38155
38245
  command: 'insertOrderedList',
38156
38246
  tags: ['ol'],
38157
38247
  tooltip: 'Insert Ordered List',
@@ -38546,8 +38636,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
38546
38636
  "use strict";
38547
38637
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
38548
38638
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
38549
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90823);
38550
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
38639
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
38640
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90823);
38551
38641
  /*!
38552
38642
  * Jodit Editor (https://xdsoft.net/jodit/)
38553
38643
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38558,19 +38648,19 @@ var _a;
38558
38648
 
38559
38649
 
38560
38650
 
38561
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.askBeforePasteHTML = true;
38562
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.processPasteHTML = true;
38563
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.scrollToPastedContent = true;
38564
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
38565
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteHTMLActionList = [
38651
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
38652
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
38653
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
38654
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
38655
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
38566
38656
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
38567
38657
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
38568
38658
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
38569
38659
  ];
38570
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
38571
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.nl2brInPlainText = true;
38660
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
38661
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
38572
38662
  var psKey = 'pasteStorage';
38573
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paste = {
38663
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
38574
38664
  tooltip: 'Paste from clipboard',
38575
38665
  exec: function (editor_1, _1, _a) {
38576
38666
  return (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__awaiter */ .sH)(this, arguments, void 0, function (editor, _, _b) {
@@ -38639,7 +38729,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
38639
38729
  !error && editor.e.fire('afterPaste');
38640
38730
  }
38641
38731
  else if (text.length) {
38642
- (0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .sX)(null, editor, text);
38732
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
38643
38733
  editor.e.fire('afterPaste');
38644
38734
  }
38645
38735
  else {
@@ -39399,10 +39489,10 @@ function generateCriticalCSS(jodit) {
39399
39489
  /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17527);
39400
39490
  /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98434);
39401
39491
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
39402
- /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11131);
39403
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(59827);
39404
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_6__);
39405
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36115);
39492
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
39493
+ /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11131);
39494
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59827);
39495
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
39406
39496
  /*!
39407
39497
  * Jodit Editor (https://xdsoft.net/jodit/)
39408
39498
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -39417,8 +39507,8 @@ function generateCriticalCSS(jodit) {
39417
39507
 
39418
39508
 
39419
39509
 
39420
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_6___default()));
39421
- jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.print = {
39510
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
39511
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
39422
39512
  exec: function (editor) {
39423
39513
  var iframe = editor.create.element('iframe');
39424
39514
  Object.assign(iframe.style, {
@@ -39429,7 +39519,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
39429
39519
  height: 0,
39430
39520
  border: 0
39431
39521
  });
39432
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T).appendChild(iframe);
39522
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
39433
39523
  var afterFinishPrint = function () {
39434
39524
  editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
39435
39525
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
@@ -39447,7 +39537,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
39447
39537
  myWindow.document.write('<!doctype html><html lang="' +
39448
39538
  (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
39449
39539
  '"><head><title></title></head><style>' +
39450
- (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__/* .generateCriticalCSS */ .Y)(editor) +
39540
+ (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
39451
39541
  '</style><body></body></html>');
39452
39542
  myWindow.document.close();
39453
39543
  (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
@@ -39482,11 +39572,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
39482
39572
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
39483
39573
  /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
39484
39574
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
39485
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34045);
39486
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__);
39487
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39199);
39488
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__);
39489
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
39575
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
39576
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34045);
39577
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
39578
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39199);
39579
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
39490
39580
  /*!
39491
39581
  * Jodit Editor (https://xdsoft.net/jodit/)
39492
39582
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -39500,13 +39590,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
39500
39590
 
39501
39591
 
39502
39592
 
39503
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (_icons_redo_svg__WEBPACK_IMPORTED_MODULE_4___default())).set('undo', (_icons_undo_svg__WEBPACK_IMPORTED_MODULE_5___default()));
39504
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.redo = {
39593
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default())).set('undo', (_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default()));
39594
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
39505
39595
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
39506
39596
  isDisabled: function (editor) { return !editor.history.canRedo(); },
39507
39597
  tooltip: 'Redo'
39508
39598
  };
39509
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.undo = {
39599
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
39510
39600
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
39511
39601
  isDisabled: function (editor) { return !editor.history.canUndo(); },
39512
39602
  tooltip: 'Undo'
@@ -40553,9 +40643,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
40553
40643
 
40554
40644
  "use strict";
40555
40645
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
40556
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21917);
40557
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_1__);
40558
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
40646
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
40647
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21917);
40648
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
40559
40649
  /*!
40560
40650
  * Jodit Editor (https://xdsoft.net/jodit/)
40561
40651
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40565,14 +40655,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
40565
40655
 
40566
40656
 
40567
40657
 
40568
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
40569
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
40658
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
40659
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
40570
40660
  lazyIdleTimeout: 0,
40571
40661
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
40572
40662
  useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
40573
40663
  };
40574
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_1___default()));
40575
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
40664
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
40665
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
40576
40666
  tooltip: 'Find',
40577
40667
  icon: 'search',
40578
40668
  exec: function (jodit, _, _a) {
@@ -40614,7 +40704,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
40614
40704
  /* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
40615
40705
  /* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
40616
40706
  /* harmony export */ });
40617
- /* unused harmony export isSelectionWrapper */
40618
40707
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31635);
40619
40708
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
40620
40709
  /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58720);
@@ -40634,11 +40723,65 @@ var TMP_ATTR = 'jd-tmp-selection';
40634
40723
  * @private
40635
40724
  */
40636
40725
  function highlightTextRanges(jodit, rng, restRanges, ci, root) {
40637
- var _a, e_1, _b;
40726
+ var _a;
40638
40727
  if (rng.startContainer.nodeValue == null ||
40639
40728
  rng.endContainer.nodeValue == null) {
40640
40729
  return;
40641
40730
  }
40731
+ if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
40732
+ return;
40733
+ }
40734
+ var span = ci.element('span', (_a = {},
40735
+ _a[TMP_ATTR] = true,
40736
+ _a));
40737
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
40738
+ normalizeRanges(rng, restRanges, ci);
40739
+ var next = rng.startContainer;
40740
+ do {
40741
+ if (!next) {
40742
+ break;
40743
+ }
40744
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
40745
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
40746
+ }
40747
+ if (next === rng.endContainer) {
40748
+ break;
40749
+ }
40750
+ var step = next.firstChild || next.nextSibling;
40751
+ if (!step) {
40752
+ while (next && !next.nextSibling && next !== root) {
40753
+ next = next.parentNode;
40754
+ }
40755
+ step = next === null || next === void 0 ? void 0 : next.nextSibling;
40756
+ }
40757
+ next = step;
40758
+ } while (next && next !== root);
40759
+ }
40760
+ /**
40761
+ * @private
40762
+ */
40763
+ function getSelectionWrappers(root) {
40764
+ return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__.$$)("[".concat(TMP_ATTR, "]"), root);
40765
+ }
40766
+ /**
40767
+ * @private
40768
+ */
40769
+ function clearSelectionWrappers(root) {
40770
+ getSelectionWrappers(root).forEach(function (span) { return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(span); });
40771
+ }
40772
+ /**
40773
+ * @private
40774
+ */
40775
+ function clearSelectionWrappersFromHTML(root) {
40776
+ return root.replace(RegExp("<span[^>]+".concat(TMP_ATTR, "[^>]+>(.*?)</span>"), 'g'), '$1');
40777
+ }
40778
+ /**
40779
+ * @private
40780
+ */
40781
+ function isSelectionWrapper(node) {
40782
+ return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
40783
+ }
40784
+ function checkNativeSelectionMethod(jodit, rng, restRanges) {
40642
40785
  if (jodit.o.search.useCustomHighlightAPI &&
40643
40786
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
40644
40787
  typeof window.Highlight !== 'undefined') {
@@ -40655,12 +40798,12 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
40655
40798
  // @ts-ignore
40656
40799
  CSS.highlights.set('jodit-search-result', searchHighlight);
40657
40800
  restRanges.length = 0;
40658
- return;
40801
+ return true;
40659
40802
  }
40660
- var span = ci.element('span', (_a = {},
40661
- _a[TMP_ATTR] = true,
40662
- _a));
40663
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
40803
+ return false;
40804
+ }
40805
+ function normalizeRanges(rng, restRanges, ci) {
40806
+ var e_1, _a;
40664
40807
  var startText = rng.startContainer.nodeValue;
40665
40808
  var diff = 0;
40666
40809
  if (rng.startOffset !== 0) {
@@ -40697,56 +40840,12 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
40697
40840
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
40698
40841
  finally {
40699
40842
  try {
40700
- if (restRanges_1_1 && !restRanges_1_1.done && (_b = restRanges_1.return)) _b.call(restRanges_1);
40843
+ if (restRanges_1_1 && !restRanges_1_1.done && (_a = restRanges_1.return)) _a.call(restRanges_1);
40701
40844
  }
40702
40845
  finally { if (e_1) throw e_1.error; }
40703
40846
  }
40704
40847
  rng.endOffset = rng.endContainer.nodeValue.length;
40705
40848
  }
40706
- var next = rng.startContainer;
40707
- do {
40708
- if (!next) {
40709
- break;
40710
- }
40711
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
40712
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
40713
- }
40714
- if (next === rng.endContainer) {
40715
- break;
40716
- }
40717
- var step = next.firstChild || next.nextSibling;
40718
- if (!step) {
40719
- while (next && !next.nextSibling && next !== root) {
40720
- next = next.parentNode;
40721
- }
40722
- step = next === null || next === void 0 ? void 0 : next.nextSibling;
40723
- }
40724
- next = step;
40725
- } while (next && next !== root);
40726
- }
40727
- /**
40728
- * @private
40729
- */
40730
- function getSelectionWrappers(root) {
40731
- return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__.$$)("[".concat(TMP_ATTR, "]"), root);
40732
- }
40733
- /**
40734
- * @private
40735
- */
40736
- function clearSelectionWrappers(root) {
40737
- getSelectionWrappers(root).forEach(function (span) { return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(span); });
40738
- }
40739
- /**
40740
- * @private
40741
- */
40742
- function clearSelectionWrappersFromHTML(root) {
40743
- return root.replace(RegExp("<span[^>]+".concat(TMP_ATTR, "[^>]+>(.*?)</span>"), 'g'), '$1');
40744
- }
40745
- /**
40746
- * @private
40747
- */
40748
- function isSelectionWrapper(node) {
40749
- return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
40750
40849
  }
40751
40850
 
40752
40851
 
@@ -42315,9 +42414,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
42315
42414
  "use strict";
42316
42415
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
42317
42416
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
42318
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9103);
42319
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_2__);
42320
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
42417
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
42418
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9103);
42419
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
42321
42420
  /*!
42322
42421
  * Jodit Editor (https://xdsoft.net/jodit/)
42323
42422
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42327,9 +42426,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
42327
42426
 
42328
42427
 
42329
42428
 
42330
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
42331
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor = 'ace';
42332
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
42429
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
42430
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
42431
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
42333
42432
  /**
42334
42433
  * Show gutter
42335
42434
  */
@@ -42351,15 +42450,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
42351
42450
  */
42352
42451
  highlightActiveLine: true
42353
42452
  };
42354
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
42453
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
42355
42454
  'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
42356
42455
  ];
42357
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
42456
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
42358
42457
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
42359
42458
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
42360
42459
  ];
42361
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_2___default()));
42362
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.source = {
42460
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
42461
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
42363
42462
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
42364
42463
  exec: function (editor) {
42365
42464
  editor.toggleMode();
@@ -43207,9 +43306,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
43207
43306
 
43208
43307
  "use strict";
43209
43308
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
43210
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49989);
43211
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__);
43212
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
43309
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
43310
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49989);
43311
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
43213
43312
  /*!
43214
43313
  * Jodit Editor (https://xdsoft.net/jodit/)
43215
43314
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -43218,13 +43317,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
43218
43317
 
43219
43318
 
43220
43319
 
43221
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.spellcheck = false;
43222
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()));
43223
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.spellcheck = {
43320
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
43321
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
43322
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
43224
43323
  isActive: function (e) {
43225
43324
  return e.o.spellcheck;
43226
43325
  },
43227
- icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()),
43326
+ icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
43228
43327
  name: 'spellcheck',
43229
43328
  command: 'toggleSpellcheck',
43230
43329
  tooltip: 'Spellcheck'
@@ -44015,9 +44114,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
44015
44114
 
44016
44115
  "use strict";
44017
44116
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
44018
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81875);
44019
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_1__);
44020
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
44117
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
44118
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81875);
44119
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
44021
44120
  /*!
44022
44121
  * Jodit Editor (https://xdsoft.net/jodit/)
44023
44122
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -44026,8 +44125,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
44026
44125
 
44027
44126
 
44028
44127
 
44029
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
44030
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialCharacters = [
44128
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
44129
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
44031
44130
  '!',
44032
44131
  '&quot;',
44033
44132
  '#',
@@ -44239,8 +44338,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
44239
44338
  '&diams;',
44240
44339
  '&asymp;'
44241
44340
  ];
44242
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_1___default()));
44243
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.symbols = {
44341
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
44342
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
44244
44343
  hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
44245
44344
  tooltip: 'Insert Special Character',
44246
44345
  popup: function (editor, current, close) {
@@ -45129,40 +45228,10 @@ function tableKeyboardNavigation(editor) {
45129
45228
  .off('.tableKeyboardNavigation')
45130
45229
  .on('keydown.tableKeyboardNavigation', function (event) {
45131
45230
  var key = event.key;
45132
- if (!WORK_KEYS.has(key)) {
45133
- return;
45134
- }
45135
- var current = editor.s.current();
45136
- if (!current) {
45137
- return;
45138
- }
45139
- var cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isCell, editor.editor);
45231
+ var cell = findCell(editor, key);
45140
45232
  if (!cell) {
45141
45233
  return;
45142
45234
  }
45143
- var range = editor.s.range;
45144
- if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
45145
- var isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
45146
- var hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.next, current, function (elm) {
45147
- return key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
45148
- ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
45149
- : Boolean(elm);
45150
- }, cell);
45151
- if ((!isNextDirection &&
45152
- (hasNext ||
45153
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
45154
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
45155
- range.startOffset !== 0))) ||
45156
- (isNextDirection &&
45157
- (hasNext ||
45158
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
45159
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
45160
- current.nodeValue &&
45161
- range.startOffset !==
45162
- current.nodeValue.length)))) {
45163
- return;
45164
- }
45165
- }
45166
45235
  var tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
45167
45236
  var table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
45168
45237
  var next = null;
@@ -45222,6 +45291,42 @@ function tableKeyboardNavigation(editor) {
45222
45291
  });
45223
45292
  }
45224
45293
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
45294
+ function findCell(editor, key) {
45295
+ if (!WORK_KEYS.has(key)) {
45296
+ return;
45297
+ }
45298
+ var current = editor.s.current();
45299
+ if (!current) {
45300
+ return;
45301
+ }
45302
+ var cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isCell, editor.editor);
45303
+ if (!cell) {
45304
+ return;
45305
+ }
45306
+ var range = editor.s.range;
45307
+ if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
45308
+ var isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
45309
+ var hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.next, current, function (elm) {
45310
+ return key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
45311
+ ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
45312
+ : Boolean(elm);
45313
+ }, cell);
45314
+ if ((!isNextDirection &&
45315
+ (hasNext ||
45316
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
45317
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
45318
+ range.startOffset !== 0))) ||
45319
+ (isNextDirection &&
45320
+ (hasNext ||
45321
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
45322
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
45323
+ current.nodeValue &&
45324
+ range.startOffset !== current.nodeValue.length)))) {
45325
+ return;
45326
+ }
45327
+ }
45328
+ return cell;
45329
+ }
45225
45330
 
45226
45331
 
45227
45332
  /***/ }),
@@ -45234,9 +45339,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
45234
45339
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
45235
45340
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97369);
45236
45341
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
45237
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67447);
45238
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_4__);
45239
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
45342
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
45343
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67447);
45344
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
45240
45345
  /*!
45241
45346
  * Jodit Editor (https://xdsoft.net/jodit/)
45242
45347
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -45248,12 +45353,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
45248
45353
 
45249
45354
 
45250
45355
 
45251
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.table = {
45356
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
45252
45357
  selectionCellStyle: 'border: 1px double #1e88e5 !important;',
45253
45358
  useExtraClassesOptions: false
45254
45359
  };
45255
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_4___default()));
45256
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.table = {
45360
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
45361
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
45257
45362
  data: {
45258
45363
  cols: 10,
45259
45364
  rows: 10,
@@ -45420,10 +45525,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
45420
45525
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35265);
45421
45526
  /* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20703);
45422
45527
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
45423
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
45424
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36339);
45425
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_5__);
45426
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
45528
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
45529
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
45530
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36339);
45531
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
45427
45532
  /*!
45428
45533
  * Jodit Editor (https://xdsoft.net/jodit/)
45429
45534
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -45436,8 +45541,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
45436
45541
 
45437
45542
 
45438
45543
 
45439
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_5___default()));
45440
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.video = {
45544
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
45545
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
45441
45546
  popup: function (editor, current, close) {
45442
45547
  var formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
45443
45548
  new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
@@ -45488,7 +45593,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
45488
45593
  formCode.onSubmit(function (data) {
45489
45594
  insertCode(data.code);
45490
45595
  });
45491
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs);
45596
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
45492
45597
  },
45493
45598
  tags: ['iframe'],
45494
45599
  tooltip: 'Insert youtube/vimeo video'
@@ -51169,16 +51274,16 @@ var __webpack_exports__ = {};
51169
51274
  __webpack_require__.r(__webpack_exports__);
51170
51275
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
51171
51276
  /* harmony export */ CommitMode: function() { return /* binding */ CommitMode; },
51172
- /* harmony export */ Jodit: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_6__.x; }
51277
+ /* harmony export */ Jodit: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
51173
51278
  /* harmony export */ });
51174
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9823);
51175
- /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88222);
51279
+ /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46173);
51280
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9823);
51176
51281
  /* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17352);
51177
51282
  /* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22664);
51178
51283
  /* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37435);
51179
51284
  /* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79721);
51180
- /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46173);
51181
- /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(74470);
51285
+ /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74470);
51286
+ /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88222);
51182
51287
  /*!
51183
51288
  * Jodit Editor (https://xdsoft.net/jodit/)
51184
51289
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -51189,6 +51294,7 @@ __webpack_require__.r(__webpack_exports__);
51189
51294
  * @packageDocumentation
51190
51295
  * @module jodit
51191
51296
  */
51297
+ // eslint-disable-next-line simple-import-sort/imports
51192
51298
 
51193
51299
 
51194
51300
 
@@ -51208,7 +51314,7 @@ if (typeof process !== 'undefined' &&
51208
51314
  // JODIT-SECTION-END:POLYFILLS
51209
51315
  // copy constants in Jodit
51210
51316
  Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach(function (key) {
51211
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
51317
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
51212
51318
  });
51213
51319
  var esFilter = function (key) { return key !== '__esModule'; };
51214
51320
  // Icons
@@ -51224,32 +51330,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
51224
51330
  var _a;
51225
51331
  // @ts-ignore
51226
51332
  var module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
51227
- var name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
51333
+ var name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
51228
51334
  ? module.prototype.className()
51229
51335
  : key;
51230
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .Kg)(name)) {
51336
+ if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
51231
51337
  console.warn('Module name must be a string', key);
51232
51338
  return;
51233
51339
  }
51234
51340
  // @ts-ignore
51235
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.modules[name] = module;
51341
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
51236
51342
  });
51237
51343
  // Decorators
51238
51344
  Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
51239
51345
  .filter(esFilter)
51240
51346
  .forEach(function (key) {
51241
51347
  // @ts-ignore
51242
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
51348
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
51243
51349
  });
51244
51350
  ['Confirm', 'Alert', 'Prompt'].forEach(function (key) {
51245
51351
  // @ts-ignore
51246
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
51352
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
51247
51353
  });
51248
51354
  // Languages
51249
- Object.keys(_languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)
51355
+ Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
51250
51356
  .filter(esFilter)
51251
51357
  .forEach(function (key) {
51252
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A[key];
51358
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
51253
51359
  });
51254
51360
 
51255
51361
  var CommitMode = /** @class */ (function () {