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/es2021/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
  */
@@ -1737,7 +1737,7 @@ __webpack_require__.r(__webpack_exports__);
1737
1737
  * Released under MIT see LICENSE.txt in the project root for license information.
1738
1738
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1739
1739
  */
1740
- const APP_VERSION = "4.2.14";
1740
+ const APP_VERSION = "4.2.17";
1741
1741
  // prettier-ignore
1742
1742
  const ES = "es2021";
1743
1743
  const IS_ES_MODERN = true;
@@ -7521,9 +7521,9 @@ const completeUrl = (url) => {
7521
7521
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
7522
7522
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
7523
7523
  /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35642);
7524
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36115);
7524
7525
  /* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49429);
7525
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84976);
7526
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
7526
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84976);
7527
7527
  /*!
7528
7528
  * Jodit Editor (https://xdsoft.net/jodit/)
7529
7529
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -7571,7 +7571,7 @@ function ConfigProto(options, proto, deep = 0) {
7571
7571
  if (Object.getPrototypeOf(options) !== Object.prototype) {
7572
7572
  return options;
7573
7573
  }
7574
- const def = jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions;
7574
+ const def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
7575
7575
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
7576
7576
  if (def.presets[options.preset] !== undefined) {
7577
7577
  const preset = def.presets[options.preset];
@@ -7601,7 +7601,7 @@ function ConfigProto(options, proto, deep = 0) {
7601
7601
  return newOpt;
7602
7602
  }
7603
7603
  function ConfigFlatten(obj) {
7604
- return (0,_utils__WEBPACK_IMPORTED_MODULE_0__/* .keys */ .HP)(obj, false).reduce((app, key) => {
7604
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce((app, key) => {
7605
7605
  app[key] = obj[key];
7606
7606
  return app;
7607
7607
  }, {});
@@ -9560,9 +9560,9 @@ Plugin.requires = [];
9560
9560
  /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26318);
9561
9561
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
9562
9562
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50156);
9563
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27337);
9563
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
9564
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27337);
9564
9565
  /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91672);
9565
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
9566
9566
  /*!
9567
9567
  * Jodit Editor (https://xdsoft.net/jodit/)
9568
9568
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9580,7 +9580,7 @@ class Ajax {
9580
9580
  className() {
9581
9581
  return 'Ajax';
9582
9582
  }
9583
- constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
9583
+ constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
9584
9584
  this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
9585
9585
  this.__isFulfilled = false;
9586
9586
  this.__activated = false;
@@ -9823,10 +9823,14 @@ class Response {
9823
9823
 
9824
9824
  "use strict";
9825
9825
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9826
- /* harmony export */ W: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__.W; }
9826
+ /* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
9827
+ /* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
9828
+ /* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
9827
9829
  /* harmony export */ });
9828
- /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5298);
9829
- /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83541);
9830
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
9831
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
9832
+ /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5298);
9833
+ /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83541);
9830
9834
  /*!
9831
9835
  * Jodit Editor (https://xdsoft.net/jodit/)
9832
9836
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9839,6 +9843,54 @@ class Response {
9839
9843
 
9840
9844
 
9841
9845
 
9846
+ /**
9847
+ * Check if the cursor is at the edge of the string
9848
+ * @private
9849
+ */
9850
+ function cursorInTheEdgeOfString(container, offset, start, end) {
9851
+ const text = container.nodeValue?.length ? container.nodeValue : '';
9852
+ if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
9853
+ return true;
9854
+ }
9855
+ const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
9856
+ return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
9857
+ }
9858
+ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
9859
+ node = range.startContainer.childNodes[range.startOffset];
9860
+ if (!node) {
9861
+ node = range.startContainer.childNodes[range.startOffset - 1];
9862
+ rightMode = true;
9863
+ }
9864
+ if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
9865
+ // test Current method - Cursor in the left of some SPAN
9866
+ if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
9867
+ node = node.previousSibling;
9868
+ }
9869
+ else if (checkChild) {
9870
+ let current = child(node);
9871
+ while (current) {
9872
+ if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
9873
+ node = current;
9874
+ break;
9875
+ }
9876
+ current = child(current);
9877
+ }
9878
+ }
9879
+ }
9880
+ if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
9881
+ let leftChild = node, rightChild = node;
9882
+ do {
9883
+ leftChild = leftChild.firstChild;
9884
+ rightChild = rightChild.lastChild;
9885
+ } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
9886
+ if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
9887
+ node = leftChild;
9888
+ }
9889
+ }
9890
+ return { node, rightMode };
9891
+ }
9892
+
9893
+
9842
9894
  /***/ }),
9843
9895
 
9844
9896
  /***/ 5298:
@@ -9959,7 +10011,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
9959
10011
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9960
10012
  /* harmony export */ L: function() { return /* binding */ Selection; }
9961
10013
  /* harmony export */ });
9962
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
10014
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
9963
10015
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
9964
10016
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
9965
10017
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
@@ -9969,6 +10021,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
9969
10021
  /* 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__);
9970
10022
  /* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(83541);
9971
10023
  /* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8757);
10024
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46602);
9972
10025
  /*!
9973
10026
  * Jodit Editor (https://xdsoft.net/jodit/)
9974
10027
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9985,6 +10038,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
9985
10038
 
9986
10039
 
9987
10040
 
10041
+
9988
10042
  class Selection {
9989
10043
  constructor(jodit) {
9990
10044
  this.jodit = jodit;
@@ -10367,63 +10421,35 @@ class Selection {
10367
10421
  * Returns the current element under the cursor inside editor
10368
10422
  */
10369
10423
  current(checkChild = true) {
10370
- if (this.j.getRealMode() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
10371
- const sel = this.sel;
10372
- if (!sel || sel.rangeCount === 0) {
10373
- return null;
10374
- }
10375
- const range = sel.getRangeAt(0);
10376
- let node = range.startContainer, rightMode = false;
10377
- const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
10378
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
10379
- return node;
10380
- }
10381
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
10382
- node = range.startContainer.childNodes[range.startOffset];
10383
- if (!node) {
10384
- node =
10385
- range.startContainer.childNodes[range.startOffset - 1];
10386
- rightMode = true;
10387
- }
10388
- if (node && sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
10389
- // test Current method - Cursor in the left of some SPAN
10390
- if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node.previousSibling)) {
10391
- node = node.previousSibling;
10392
- }
10393
- else if (checkChild) {
10394
- let current = child(node);
10395
- while (current) {
10396
- if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
10397
- node = current;
10398
- break;
10399
- }
10400
- current = child(current);
10401
- }
10402
- }
10403
- }
10404
- if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
10405
- let leftChild = node, rightChild = node;
10406
- do {
10407
- leftChild = leftChild.firstChild;
10408
- rightChild = rightChild.lastChild;
10409
- } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
10410
- if (leftChild === rightChild &&
10411
- leftChild &&
10412
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
10413
- node = leftChild;
10414
- }
10415
- }
10416
- }
10417
- // check - cursor inside editor
10418
- if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
10419
- return node;
10420
- }
10424
+ if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
10425
+ return null;
10426
+ }
10427
+ const sel = this.sel;
10428
+ if (!sel || sel.rangeCount === 0) {
10429
+ return null;
10430
+ }
10431
+ const range = sel.getRangeAt(0);
10432
+ let node = range.startContainer;
10433
+ let rightMode = false;
10434
+ const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
10435
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
10436
+ return node;
10437
+ }
10438
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
10439
+ const ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
10440
+ node = ret.node;
10441
+ rightMode = ret.rightMode;
10442
+ }
10443
+ // check - cursor inside editor
10444
+ if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
10445
+ return node;
10421
10446
  }
10422
10447
  return null;
10423
10448
  }
10424
10449
  /**
10425
10450
  * Insert element in editor
10426
10451
  *
10452
+ * @param node - Node for insert
10427
10453
  * @param insertCursorAfter - After insert, cursor will move after element
10428
10454
  * @param fireChange - After insert, editor fire change event. You can prevent this behavior
10429
10455
  */
@@ -10485,6 +10511,7 @@ class Selection {
10485
10511
  * Inserts in the current cursor position some HTML snippet
10486
10512
  *
10487
10513
  * @param html - HTML The text to be inserted into the document
10514
+ * @param insertCursorAfter - After insert, cursor will move after element
10488
10515
  * @example
10489
10516
  * ```javascript
10490
10517
  * parent.s.insertHTML('<img src="image.png"/>');
@@ -10528,6 +10555,7 @@ class Selection {
10528
10555
  *
10529
10556
  * @param url - URL for image, or HTMLImageElement
10530
10557
  * @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
10558
+ * @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
10531
10559
  */
10532
10560
  insertImage(url, styles = null, defaultWidth = null) {
10533
10561
  const image = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .Kg)(url) ? this.j.createInside.element('img') : url;
@@ -10582,74 +10610,81 @@ class Selection {
10582
10610
  */
10583
10611
  eachSelection(callback) {
10584
10612
  const sel = this.sel;
10585
- if (sel && sel.rangeCount) {
10586
- const range = sel.getRangeAt(0);
10587
- let root = range.commonAncestorContainer;
10588
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
10589
- root = root.parentElement;
10590
- }
10591
- const nodes = [], startOffset = range.startOffset, length = root.childNodes.length, elementOffset = startOffset < length ? startOffset : length - 1;
10592
- let start = range.startContainer === this.area
10593
- ? root.childNodes[elementOffset]
10594
- : range.startContainer, end = range.endContainer === this.area
10595
- ? root.childNodes[range.endOffset - 1]
10596
- : range.endContainer;
10597
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
10598
- start === range.startContainer &&
10599
- range.startOffset === start.nodeValue?.length &&
10600
- start.nextSibling) {
10601
- start = start.nextSibling;
10602
- }
10603
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
10604
- end === range.endContainer &&
10605
- range.endOffset === 0 &&
10606
- end.previousSibling) {
10607
- end = end.previousSibling;
10608
- }
10609
- const checkElm = (node) => {
10610
- if (node &&
10611
- node !== root &&
10612
- !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
10613
- !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
10614
- nodes.push(node);
10615
- }
10616
- };
10617
- checkElm(start);
10618
- if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
10619
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
10620
- checkElm(node);
10621
- // checks parentElement as well because partial selections are not equal to entire element
10622
- return (node === end ||
10623
- (node && node.contains && node.contains(end)));
10624
- }, root, true, false);
10625
- }
10626
- const forEvery = (current) => {
10627
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
10628
- return;
10629
- }
10630
- if (current.nodeName.match(/^(UL|OL)$/)) {
10631
- return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
10613
+ if (!sel || !sel.rangeCount) {
10614
+ return;
10615
+ }
10616
+ const range = sel.getRangeAt(0);
10617
+ let root = range.commonAncestorContainer;
10618
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
10619
+ root = root.parentElement;
10620
+ }
10621
+ const nodes = [];
10622
+ const startOffset = range.startOffset;
10623
+ const length = root.childNodes.length;
10624
+ const elementOffset = startOffset < length ? startOffset : length - 1;
10625
+ let start = range.startContainer === this.area
10626
+ ? root.childNodes[elementOffset]
10627
+ : range.startContainer;
10628
+ let end = range.endContainer === this.area
10629
+ ? root.childNodes[range.endOffset - 1]
10630
+ : range.endContainer;
10631
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
10632
+ start === range.startContainer &&
10633
+ range.startOffset === start.nodeValue?.length &&
10634
+ start.nextSibling) {
10635
+ start = start.nextSibling;
10636
+ }
10637
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
10638
+ end === range.endContainer &&
10639
+ range.endOffset === 0 &&
10640
+ end.previousSibling) {
10641
+ end = end.previousSibling;
10642
+ }
10643
+ const checkElm = (node) => {
10644
+ if (node &&
10645
+ node !== root &&
10646
+ !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
10647
+ !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
10648
+ nodes.push(node);
10649
+ }
10650
+ };
10651
+ checkElm(start);
10652
+ if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
10653
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
10654
+ checkElm(node);
10655
+ // checks parentElement as well because partial selections are not equal to entire element
10656
+ return (node === end ||
10657
+ (node && node.contains && node.contains(end)));
10658
+ }, root, true, false);
10659
+ }
10660
+ const forEvery = (current) => {
10661
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
10662
+ return;
10663
+ }
10664
+ if (current.nodeName.match(/^(UL|OL)$/)) {
10665
+ return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
10666
+ }
10667
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
10668
+ if (current.firstChild) {
10669
+ current = current.firstChild;
10632
10670
  }
10633
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
10634
- if (current.firstChild) {
10635
- current = current.firstChild;
10636
- }
10637
- else {
10638
- const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
10639
- current.appendChild(currentB);
10640
- current = currentB;
10641
- }
10671
+ else {
10672
+ const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
10673
+ current.appendChild(currentB);
10674
+ current = currentB;
10642
10675
  }
10643
- callback(current);
10644
- };
10645
- if (nodes.length === 0 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
10676
+ }
10677
+ callback(current);
10678
+ };
10679
+ if (nodes.length === 0) {
10680
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
10646
10681
  nodes.push(start);
10647
10682
  }
10648
- if (nodes.length === 0 && start.firstChild) {
10683
+ if (start.firstChild) {
10649
10684
  nodes.push(start.firstChild);
10650
10685
  }
10651
- nodes.forEach(forEvery);
10652
10686
  }
10687
+ nodes.forEach(forEvery);
10653
10688
  }
10654
10689
  /**
10655
10690
  * Checks if the cursor is at the end(start) block
@@ -10676,13 +10711,7 @@ class Selection {
10676
10711
  this.j.e.fire('isInvisibleForCursor', elm) === true));
10677
10712
  // check right offset
10678
10713
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
10679
- const text = container.nodeValue?.length ? container.nodeValue : '';
10680
- if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
10681
- return false;
10682
- }
10683
- const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
10684
- if (start &&
10685
- ((inv && inv[0].length < offset) || (!inv && offset > 0))) {
10714
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
10686
10715
  return false;
10687
10716
  }
10688
10717
  }
@@ -10770,6 +10799,7 @@ class Selection {
10770
10799
  }
10771
10800
  /**
10772
10801
  * Set cursor in the node
10802
+ * @param node - Node element
10773
10803
  * @param inStart - set cursor in start of element
10774
10804
  */
10775
10805
  setCursorIn(node, inStart = false) {
@@ -10830,6 +10860,7 @@ class Selection {
10830
10860
  }
10831
10861
  /**
10832
10862
  * Select node
10863
+ * @param node - Node element
10833
10864
  * @param inward - select all inside
10834
10865
  */
10835
10866
  select(node, inward = false) {
@@ -11103,19 +11134,19 @@ class Selection {
11103
11134
  return this;
11104
11135
  }
11105
11136
  }
11106
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11137
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11107
11138
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11108
11139
  ], Selection.prototype, "createRange", null);
11109
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11140
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11110
11141
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11111
11142
  ], Selection.prototype, "focus", null);
11112
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11143
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11113
11144
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11114
11145
  ], Selection.prototype, "setCursorAfter", null);
11115
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11146
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11116
11147
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11117
11148
  ], Selection.prototype, "setCursorBefore", null);
11118
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11149
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11119
11150
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11120
11151
  ], Selection.prototype, "setCursorIn", null);
11121
11152
 
@@ -14996,17 +15027,23 @@ function findControlType(path, controls) {
14996
15027
  else {
14997
15028
  key = namespaceOrKey;
14998
15029
  }
14999
- const list = store[key]?.list;
15030
+ // const list = store[key]?.list;
15000
15031
  return store[key]
15001
15032
  ? {
15002
15033
  name: key,
15003
- ...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key]),
15004
- list: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isArray)(list)
15005
- ? list.reduce((acc, k) => {
15006
- acc[k] = k;
15007
- return acc;
15008
- }, {})
15009
- : list
15034
+ ...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
15035
+ // list: isArray(list)
15036
+ // ? (<Array<string>>list).reduce(
15037
+ // (
15038
+ // acc: IDictionary<string | number>,
15039
+ // k: string | number
15040
+ // ) => {
15041
+ // acc[String(k)] = k;
15042
+ // return acc;
15043
+ // },
15044
+ // {}
15045
+ // )
15046
+ // : list
15010
15047
  }
15011
15048
  : undefined;
15012
15049
  }
@@ -15023,8 +15060,8 @@ function findControlType(path, controls) {
15023
15060
  /* harmony export */ });
15024
15061
  /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37923);
15025
15062
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97369);
15026
- /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57023);
15027
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
15063
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
15064
+ /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57023);
15028
15065
  /*!
15029
15066
  * Jodit Editor (https://xdsoft.net/jodit/)
15030
15067
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -15044,7 +15081,7 @@ function getStrongControlTypes(items, controls) {
15044
15081
  const value = items[key] || {};
15045
15082
  return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
15046
15083
  });
15047
- return elements.map(item => (0,_get_control_type__WEBPACK_IMPORTED_MODULE_1__/* .getControlType */ .U)(item, controls || jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.defaultOptions.controls));
15084
+ return elements.map(item => (0,_get_control_type__WEBPACK_IMPORTED_MODULE_2__/* .getControlType */ .U)(item, controls || jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions.controls));
15048
15085
  }
15049
15086
 
15050
15087
 
@@ -16142,8 +16179,8 @@ View.defaultOptions = {
16142
16179
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
16143
16180
  /* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53883);
16144
16181
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58597);
16145
- /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(37435);
16146
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36115);
16182
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
16183
+ /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37435);
16147
16184
  /*!
16148
16185
  * Jodit Editor (https://xdsoft.net/jodit/)
16149
16186
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -16162,7 +16199,7 @@ var Jodit_1;
16162
16199
 
16163
16200
  const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
16164
16201
  const __defaultClassesKey = 'data-jodit-default-classes';
16165
- let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_6__.ViewWithToolbar {
16202
+ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar {
16166
16203
  /** @override */
16167
16204
  className() {
16168
16205
  return 'Jodit';
@@ -16209,7 +16246,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16209
16246
  get defaultTimeout() {
16210
16247
  return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
16211
16248
  ? this.o.defaultTimeout
16212
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.defaultTimeout;
16249
+ : jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
16213
16250
  }
16214
16251
  /**
16215
16252
  * Method wrap usual Has Object in Object helper for prevent deep object merging in options*
@@ -16235,10 +16272,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16235
16272
  * Default settings
16236
16273
  */
16237
16274
  static get defaultOptions() {
16238
- return jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions;
16275
+ return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
16239
16276
  }
16240
16277
  get createInside() {
16241
- return new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Create(() => this.ed, this.o.createAttributes);
16278
+ return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(() => this.ed, this.o.createAttributes);
16242
16279
  }
16243
16280
  __setPlaceField(field, value) {
16244
16281
  if (!this.currentPlace) {
@@ -16786,8 +16823,8 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16786
16823
  const active = this.od.activeElement;
16787
16824
  if (active &&
16788
16825
  (active === this.iframe ||
16789
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.editor, active) ||
16790
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.toolbar.container, active))) {
16826
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
16827
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
16791
16828
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
16792
16829
  }
16793
16830
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
@@ -16939,7 +16976,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16939
16976
  }
16940
16977
  /** @override **/
16941
16978
  initOptions(options) {
16942
- this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions));
16979
+ this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
16943
16980
  }
16944
16981
  /** @override **/
16945
16982
  initOwners() {
@@ -16984,7 +17021,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16984
17021
  this.destruct();
16985
17022
  throw e;
16986
17023
  }
16987
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeInit);
17024
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
16988
17025
  this.id =
16989
17026
  (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') ||
16990
17027
  new Date().getTime().toString();
@@ -16996,7 +17033,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16996
17033
  }
16997
17034
  });
16998
17035
  this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
16999
- this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Selection(this);
17036
+ this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(this);
17000
17037
  const beforeInitHookResult = this.beforeInitHook();
17001
17038
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
17002
17039
  if (this.isInDestruct) {
@@ -17020,7 +17057,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17020
17057
  this.e.fire('afterInit', this);
17021
17058
  }
17022
17059
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
17023
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.ready);
17060
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
17024
17061
  this.e.fire('afterConstructor', this);
17025
17062
  };
17026
17063
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
@@ -17036,7 +17073,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17036
17073
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr) => {
17037
17074
  const name = attr.name;
17038
17075
  let value = attr.value;
17039
- if (jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions[name] !== undefined &&
17076
+ if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
17040
17077
  (!options || options[name] === undefined)) {
17041
17078
  if (['readonly', 'disabled'].indexOf(name) !== -1) {
17042
17079
  value = value === '' || value === 'true';
@@ -17104,11 +17141,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17104
17141
  element,
17105
17142
  container,
17106
17143
  workplace,
17107
- statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.StatusBar(this, container),
17144
+ statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
17108
17145
  options: this.isReady
17109
- ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions)
17146
+ ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
17110
17147
  : this.options,
17111
- history: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.History(this),
17148
+ history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
17112
17149
  editorWindow: this.ow
17113
17150
  };
17114
17151
  this.__elementToPlace.set(editor, currentPlace);
@@ -17199,7 +17236,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17199
17236
  return;
17200
17237
  }
17201
17238
  if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
17202
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(defaultEditorArea);
17239
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
17203
17240
  }
17204
17241
  addClassNames(this.o.editorClassName, this.editor);
17205
17242
  if (this.o.style) {
@@ -17289,7 +17326,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17289
17326
  if (this.isInDestruct) {
17290
17327
  return;
17291
17328
  }
17292
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeDestruct);
17329
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
17293
17330
  this.__elementToPlace.clear();
17294
17331
  this.storage.clear();
17295
17332
  this.buffer.clear();
@@ -17330,17 +17367,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17330
17367
  this.e.off(container);
17331
17368
  this.e.off(element);
17332
17369
  this.e.off(editor);
17333
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(workplace);
17334
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(editor);
17370
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
17371
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
17335
17372
  if (container !== element) {
17336
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(container);
17373
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
17337
17374
  }
17338
17375
  Object.defineProperty(element, 'component', {
17339
17376
  enumerable: false,
17340
17377
  configurable: true,
17341
17378
  value: null
17342
17379
  });
17343
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(iframe);
17380
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
17344
17381
  // inline mode
17345
17382
  if (container === element) {
17346
17383
  element.innerHTML = buffer;
@@ -17362,7 +17399,7 @@ Jodit.constants = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__;
17362
17399
  Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
17363
17400
  Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
17364
17401
  Jodit.core = {
17365
- Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Plugin
17402
+ Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
17366
17403
  };
17367
17404
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
17368
17405
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
@@ -19635,16 +19672,16 @@ async function loadTree(fb) {
19635
19672
  /* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63915);
19636
19673
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58597);
19637
19674
  /* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14961);
19638
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70265);
19675
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(36115);
19676
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70265);
19639
19677
  /* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(9979);
19640
- /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31859);
19641
- /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62994);
19642
- /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(18043);
19643
- /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(80004);
19644
- /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(75889);
19645
- /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(83797);
19646
- /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10274);
19647
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(36115);
19678
+ /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(31859);
19679
+ /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62994);
19680
+ /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(18043);
19681
+ /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80004);
19682
+ /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(75889);
19683
+ /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(83797);
19684
+ /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(10274);
19648
19685
  /*!
19649
19686
  * Jodit Editor (https://xdsoft.net/jodit/)
19650
19687
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -19678,7 +19715,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19678
19715
  return 'FileBrowser';
19679
19716
  }
19680
19717
  get dataProvider() {
19681
- return (0,_factories__WEBPACK_IMPORTED_MODULE_15__/* .makeDataProvider */ .S)(this, this.options);
19718
+ return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
19682
19719
  }
19683
19720
  // eslint-disable-next-line no-unused-vars
19684
19721
  onSelect(callback) {
@@ -19792,7 +19829,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19792
19829
  this.__updateToolbarButtons();
19793
19830
  this._dialog.open(this.browser, header);
19794
19831
  this.e.fire('sort.filebrowser', this.state.sortBy);
19795
- (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__/* .loadTree */ .r)(this)
19832
+ (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(this)
19796
19833
  .then(resolve, reject)
19797
19834
  .finally(() => {
19798
19835
  if (this.isInDestruct) {
@@ -19826,7 +19863,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19826
19863
  });
19827
19864
  }
19828
19865
  initUploader(editor) {
19829
- const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.uploader);
19866
+ const self = this, options = editor?.options?.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
19830
19867
  const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
19831
19868
  self.uploader = self.getInstance('Uploader', uploaderOptions);
19832
19869
  self.uploader
@@ -19846,11 +19883,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19846
19883
  super(options);
19847
19884
  this.browser = this.c.div(this.componentName);
19848
19885
  this.status_line = this.c.div(this.getFullElName('status'));
19849
- this.tree = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserTree */ .V(this);
19850
- this.files = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserFiles */ .Q(this);
19886
+ this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(this);
19887
+ this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(this);
19851
19888
  this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
19852
19889
  currentPath: '',
19853
- currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_14__/* .DEFAULT_SOURCE_NAME */ .o,
19890
+ currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
19854
19891
  currentBaseUrl: '',
19855
19892
  activeElements: [],
19856
19893
  elements: [],
@@ -19880,7 +19917,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19880
19917
  this.__prevButtons = [];
19881
19918
  this.attachEvents(options);
19882
19919
  const self = this;
19883
- self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.filebrowser);
19920
+ self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
19884
19921
  self.browser.component = this;
19885
19922
  self.container = self.browser;
19886
19923
  if (self.o.showFoldersPanel) {
@@ -19888,9 +19925,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19888
19925
  }
19889
19926
  self.browser.appendChild(self.files.container);
19890
19927
  self.browser.appendChild(self.status_line);
19891
- _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__/* .selfListeners */ .c.call(self);
19892
- _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__/* .nativeListeners */ .nW.call(self);
19893
- _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__/* .stateListeners */ .r.call(self);
19928
+ _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
19929
+ _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
19930
+ _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
19894
19931
  const keys = [
19895
19932
  'getLocalFileByUrl',
19896
19933
  'crop',
@@ -20561,10 +20598,10 @@ class Command {
20561
20598
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
20562
20599
  /* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
20563
20600
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
20601
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
20564
20602
  /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84345);
20565
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58770);
20603
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58770);
20566
20604
  /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66180);
20567
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
20568
20605
  /*!
20569
20606
  * Jodit Editor (https://xdsoft.net/jodit/)
20570
20607
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -20577,7 +20614,7 @@ class Command {
20577
20614
 
20578
20615
 
20579
20616
 
20580
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.history = {
20617
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
20581
20618
  enable: true,
20582
20619
  maxHistoryLength: Infinity,
20583
20620
  timeout: 1000
@@ -20628,7 +20665,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
20628
20665
  set startValue(value) {
20629
20666
  this.__startValue = value;
20630
20667
  }
20631
- constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new _snapshot__WEBPACK_IMPORTED_MODULE_2__/* .Snapshot */ .F(editor)) {
20668
+ constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new _snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F(editor)) {
20632
20669
  super(editor);
20633
20670
  this.updateTick = 0;
20634
20671
  this.__stack = stack;
@@ -20691,7 +20728,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
20691
20728
  */
20692
20729
  updateStack(replace = false) {
20693
20730
  const newValue = this.snapshot.make();
20694
- if (!_snapshot__WEBPACK_IMPORTED_MODULE_2__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
20731
+ if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
20695
20732
  const newCommand = new _command__WEBPACK_IMPORTED_MODULE_5__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
20696
20733
  if (replace) {
20697
20734
  const command = this.__stack.current();
@@ -21024,11 +21061,11 @@ class Stack {
21024
21061
 
21025
21062
  "use strict";
21026
21063
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
21027
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(928);
21028
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__);
21029
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31230);
21030
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__);
21031
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
21064
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
21065
+ /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(928);
21066
+ /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__);
21067
+ /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31230);
21068
+ /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__);
21032
21069
  /*!
21033
21070
  * Jodit Editor (https://xdsoft.net/jodit/)
21034
21071
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21038,7 +21075,7 @@ class Stack {
21038
21075
 
21039
21076
 
21040
21077
 
21041
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor = {
21078
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
21042
21079
  min_width: 20,
21043
21080
  min_height: 20,
21044
21081
  closeAfterSave: false,
@@ -21053,7 +21090,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
21053
21090
  cropDefaultWidth: '70%',
21054
21091
  cropDefaultHeight: '70%'
21055
21092
  };
21056
- 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()));
21093
+ 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()));
21057
21094
 
21058
21095
 
21059
21096
  /***/ }),
@@ -21072,9 +21109,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
21072
21109
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71842);
21073
21110
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
21074
21111
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35265);
21075
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93027);
21076
- /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24863);
21077
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36115);
21112
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
21113
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93027);
21114
+ /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24863);
21078
21115
  /*!
21079
21116
  * Jodit Editor (https://xdsoft.net/jodit/)
21080
21117
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21534,7 +21571,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
21534
21571
  this.options =
21535
21572
  editor && editor.o && editor.o.imageeditor
21536
21573
  ? editor.o.imageeditor
21537
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.imageeditor;
21574
+ : jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
21538
21575
  const o = this.options;
21539
21576
  this.resizeUseRatio = o.resizeUseRatio;
21540
21577
  this.cropUseRatio = o.cropUseRatio;
@@ -21544,7 +21581,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
21544
21581
  saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(this.j, 'save', 'Save as ...')
21545
21582
  };
21546
21583
  this.activeTab = o.resize ? TABS.resize : TABS.crop;
21547
- this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_6__/* .form */ .Z)(this.j, this.options);
21584
+ this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_7__/* .form */ .Z)(this.j, this.options);
21548
21585
  const { resizeBox, cropBox } = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(this.editor);
21549
21586
  this.resize_box = resizeBox;
21550
21587
  this.crop_box = cropBox;
@@ -22294,6 +22331,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22294
22331
  }
22295
22332
  /**
22296
22333
  * Generate formal table martix columns*rows
22334
+ * @param table - Working table
22297
22335
  * @param callback - if return false cycle break
22298
22336
  */
22299
22337
  formalMatrix(table, callback) {
@@ -22362,7 +22400,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22362
22400
  * @param line - Insert a new line after/before this
22363
22401
  * line contains the selected cell
22364
22402
  * @param after - Insert a new line after line contains the selected cell
22365
- * @param create - Instance of Create class
22366
22403
  */
22367
22404
  appendRow(table, line, after) {
22368
22405
  return Table.__appendRow(table, line, after, this.j.createInside);
@@ -22531,13 +22568,36 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22531
22568
  return Table.__getSelectedBound(table, selectedCells);
22532
22569
  }
22533
22570
  static __normalizeTable(table) {
22534
- let i, j, min, not;
22535
22571
  const __marked = [], box = Table.__formalMatrix(table);
22536
- // remove extra colspans
22537
- for (j = 0; j < box[0].length; j += 1) {
22538
- min = 1000000;
22539
- not = false;
22540
- for (i = 0; i < box.length; i += 1) {
22572
+ Table.__removeExtraColspans(box, __marked);
22573
+ Table.__removeExtraRowspans(box, __marked);
22574
+ // remove rowspans and colspans equal 1 and empty class
22575
+ for (let i = 0; i < box.length; i += 1) {
22576
+ for (let j = 0; j < box[i].length; j += 1) {
22577
+ if (box[i][j] === undefined) {
22578
+ continue; // broken table
22579
+ }
22580
+ if (box[i][j].hasAttribute('rowspan') &&
22581
+ box[i][j].rowSpan === 1) {
22582
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
22583
+ }
22584
+ if (box[i][j].hasAttribute('colspan') &&
22585
+ box[i][j].colSpan === 1) {
22586
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
22587
+ }
22588
+ if (box[i][j].hasAttribute('class') &&
22589
+ !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
22590
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
22591
+ }
22592
+ }
22593
+ }
22594
+ Table.__unmark(__marked);
22595
+ }
22596
+ static __removeExtraColspans(box, __marked) {
22597
+ for (let j = 0; j < box[0].length; j += 1) {
22598
+ let min = 1000000;
22599
+ let not = false;
22600
+ for (let i = 0; i < box.length; i += 1) {
22541
22601
  if (box[i][j] === undefined) {
22542
22602
  continue; // broken table
22543
22603
  }
@@ -22548,7 +22608,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22548
22608
  min = Math.min(min, box[i][j].colSpan);
22549
22609
  }
22550
22610
  if (!not) {
22551
- for (i = 0; i < box.length; i += 1) {
22611
+ for (let i = 0; i < box.length; i += 1) {
22552
22612
  if (box[i][j] === undefined) {
22553
22613
  continue; // broken table
22554
22614
  }
@@ -22556,10 +22616,13 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22556
22616
  }
22557
22617
  }
22558
22618
  }
22559
- // remove extra rowspans
22619
+ }
22620
+ static __removeExtraRowspans(box, marked) {
22621
+ let i = 0;
22622
+ let j = 0;
22560
22623
  for (i = 0; i < box.length; i += 1) {
22561
- min = 1000000;
22562
- not = false;
22624
+ let min = 1000000;
22625
+ let not = false;
22563
22626
  for (j = 0; j < box[i].length; j += 1) {
22564
22627
  if (box[i][j] === undefined) {
22565
22628
  continue; // broken table
@@ -22575,31 +22638,10 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22575
22638
  if (box[i][j] === undefined) {
22576
22639
  continue; // broken table
22577
22640
  }
22578
- Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, __marked);
22579
- }
22580
- }
22581
- }
22582
- // remove rowspans and colspans equal 1 and empty class
22583
- for (i = 0; i < box.length; i += 1) {
22584
- for (j = 0; j < box[i].length; j += 1) {
22585
- if (box[i][j] === undefined) {
22586
- continue; // broken table
22587
- }
22588
- if (box[i][j].hasAttribute('rowspan') &&
22589
- box[i][j].rowSpan === 1) {
22590
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
22591
- }
22592
- if (box[i][j].hasAttribute('colspan') &&
22593
- box[i][j].colSpan === 1) {
22594
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
22595
- }
22596
- if (box[i][j].hasAttribute('class') &&
22597
- !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
22598
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
22641
+ Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
22599
22642
  }
22600
22643
  }
22601
22644
  }
22602
- Table.__unmark(__marked);
22603
22645
  }
22604
22646
  /**
22605
22647
  * Try recalculate all coluns and rows after change
@@ -22955,7 +22997,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
22955
22997
  }
22956
22998
  createContainer() {
22957
22999
  const cn = this.componentName;
22958
- const container = this.j.c.span(cn), button = super.createContainer();
23000
+ const container = this.j.c.span(cn);
23001
+ const button = super.createContainer();
22959
23002
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
22960
23003
  button.classList.remove(cn);
22961
23004
  button.classList.add(cn + '__button');
@@ -23344,8 +23387,9 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
23344
23387
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23345
23388
  /* harmony export */ q: function() { return /* binding */ ToolbarSelect; }
23346
23389
  /* harmony export */ });
23347
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
23390
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
23348
23391
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22664);
23392
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25376);
23349
23393
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
23350
23394
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3258);
23351
23395
  /*!
@@ -23358,6 +23402,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
23358
23402
 
23359
23403
 
23360
23404
 
23405
+
23361
23406
  let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .I {
23362
23407
  className() {
23363
23408
  return 'ToolbarSelect';
@@ -23375,13 +23420,13 @@ let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE
23375
23420
  const keys = Object.keys(list);
23376
23421
  key = keys[0];
23377
23422
  }
23378
- const text = (list[key.toString()] || key).toString();
23423
+ const text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
23379
23424
  this.state.text =
23380
23425
  this.control.textTemplate?.(this.jodit, text) ?? text;
23381
23426
  }
23382
23427
  }
23383
23428
  };
23384
- ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
23429
+ ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
23385
23430
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
23386
23431
  ], ToolbarSelect);
23387
23432
 
@@ -24017,34 +24062,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24017
24062
  }
24018
24063
  const promises = [];
24019
24064
  if (o.insertImageAsBase64URI) {
24020
- let file, i;
24021
- for (i = 0; i < fileList.length; i += 1) {
24022
- file = fileList[i];
24023
- if (file && file.type) {
24024
- const mime = file.type.match(/\/([a-z0-9]+)/i);
24025
- const extension = mime[1] ? mime[1].toLowerCase() : '';
24026
- if (o.imagesExtensions.includes(extension)) {
24027
- const reader = new FileReader();
24028
- promises.push(uploader.j.async.promise((resolve, reject) => {
24029
- reader.onerror = reject;
24030
- reader.onloadend = () => {
24031
- const resp = {
24032
- baseurl: '',
24033
- files: [reader.result],
24034
- isImages: [true]
24035
- };
24036
- const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
24037
- ? handlerSuccess
24038
- : o.defaultHandlerSuccess;
24039
- handler.call(uploader, resp);
24040
- resolve(resp);
24041
- };
24042
- reader.readAsDataURL(file);
24043
- }));
24044
- fileList[i] = null;
24045
- }
24046
- }
24047
- }
24065
+ readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
24048
24066
  }
24049
24067
  fileList = fileList.filter(a => a);
24050
24068
  if (fileList.length) {
@@ -24055,7 +24073,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24055
24073
  for (let i = 0; i < fileList.length; i += 1) {
24056
24074
  file = fileList[i];
24057
24075
  if (file) {
24058
- const hasRealExtension = /\.[\d\w]+$/.test(file.name);
24076
+ const hasRealExtension = /\.\w+$/.test(file.name);
24059
24077
  const mime = file.type.match(/\/([a-z0-9]+)/i);
24060
24078
  const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
24061
24079
  let newName = fileList[i].name ||
@@ -24104,6 +24122,37 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24104
24122
  }
24105
24123
  return Promise.all(promises);
24106
24124
  }
24125
+ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
24126
+ let file, i;
24127
+ for (i = 0; i < fileList.length; i += 1) {
24128
+ file = fileList[i];
24129
+ if (file && file.type) {
24130
+ const mime = file.type.match(/\/([a-z0-9]+)/i);
24131
+ const extension = mime[1] ? mime[1].toLowerCase() : '';
24132
+ if (!imagesExtensions.includes(extension)) {
24133
+ continue;
24134
+ }
24135
+ const reader = new FileReader();
24136
+ promises.push(uploader.j.async.promise((resolve, reject) => {
24137
+ reader.onerror = reject;
24138
+ reader.onloadend = () => {
24139
+ const resp = {
24140
+ baseurl: '',
24141
+ files: [reader.result],
24142
+ isImages: [true]
24143
+ };
24144
+ const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
24145
+ ? handlerSuccess
24146
+ : defaultHandlerSuccess;
24147
+ handler.call(uploader, resp);
24148
+ resolve(resp);
24149
+ };
24150
+ reader.readAsDataURL(file);
24151
+ }));
24152
+ fileList[i] = null;
24153
+ }
24154
+ }
24155
+ }
24107
24156
 
24108
24157
 
24109
24158
  /***/ }),
@@ -24209,9 +24258,9 @@ function send(uploader, data) {
24209
24258
  /* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
24210
24259
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
24211
24260
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
24212
- /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74340);
24213
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77334);
24214
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
24261
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
24262
+ /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74340);
24263
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77334);
24215
24264
  /*!
24216
24265
  * Jodit Editor (https://xdsoft.net/jodit/)
24217
24266
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -24283,14 +24332,14 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24283
24332
  }
24284
24333
  };
24285
24334
  // send data on server
24286
- if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(cData)) {
24287
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
24335
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
24336
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
24288
24337
  return false;
24289
24338
  }
24290
24339
  if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
24291
- return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
24340
+ return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
24292
24341
  }
24293
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(cData)) {
24342
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
24294
24343
  const { items } = cData;
24295
24344
  for (i = 0; i < items.length; i += 1) {
24296
24345
  if (items[i].kind === 'file' &&
@@ -24301,7 +24350,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24301
24350
  extension = mime[1]
24302
24351
  ? mime[1].toLowerCase()
24303
24352
  : '';
24304
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
24353
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
24305
24354
  }
24306
24355
  e.preventDefault();
24307
24356
  break;
@@ -24324,30 +24373,30 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24324
24373
  e.preventDefault();
24325
24374
  })
24326
24375
  .on(form, 'dragover', (event) => {
24327
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer) ||
24328
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(event.dataTransfer)) {
24376
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
24377
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
24329
24378
  form.classList.add('jodit_drag_hover');
24330
24379
  event.preventDefault();
24331
24380
  }
24332
24381
  })
24333
24382
  .on(form, 'dragend dragleave', (event) => {
24334
24383
  form.classList.remove('jodit_drag_hover');
24335
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
24384
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
24336
24385
  event.preventDefault();
24337
24386
  }
24338
24387
  })
24339
24388
  .on(form, 'drop', (event) => {
24340
24389
  form.classList.remove('jodit_drag_hover');
24341
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
24390
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
24342
24391
  event.preventDefault();
24343
24392
  event.stopImmediatePropagation();
24344
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
24393
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
24345
24394
  }
24346
24395
  });
24347
24396
  const inputFile = form.querySelector('input[type=file]');
24348
24397
  if (inputFile) {
24349
24398
  self.j.e.on(inputFile, 'change', () => {
24350
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
24399
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
24351
24400
  .then(() => {
24352
24401
  inputFile.value = '';
24353
24402
  if (!/safari/i.test(navigator.userAgent)) {
@@ -24367,7 +24416,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24367
24416
  const handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
24368
24417
  ? handlerError
24369
24418
  : o.defaultHandlerError;
24370
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .send */ .tN)(uploader, {
24419
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
24371
24420
  action: 'fileUploadRemote',
24372
24421
  url
24373
24422
  })
@@ -24387,11 +24436,11 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24387
24436
  super(editor);
24388
24437
  this.path = '';
24389
24438
  this.source = 'default';
24390
- 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 : {}));
24439
+ 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 : {}));
24391
24440
  }
24392
24441
  destruct() {
24393
24442
  this.setStatus(jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
24394
- const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .ajaxInstances */ .$j.get(this);
24443
+ const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
24395
24444
  if (instances) {
24396
24445
  instances.forEach(ajax => {
24397
24446
  try {
@@ -24820,9 +24869,9 @@ const TabsWidget = (jodit, tabs, state) => {
24820
24869
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
24821
24870
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
24822
24871
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
24823
- /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17995);
24824
- /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_4__);
24825
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
24872
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
24873
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17995);
24874
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
24826
24875
  /*!
24827
24876
  * Jodit Editor (https://xdsoft.net/jodit/)
24828
24877
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -24836,7 +24885,7 @@ const TabsWidget = (jodit, tabs, state) => {
24836
24885
 
24837
24886
 
24838
24887
 
24839
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.about = {
24888
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
24840
24889
  exec: (editor) => {
24841
24890
  const dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
24842
24891
  dialog
@@ -24872,7 +24921,7 @@ function about(editor) {
24872
24921
  });
24873
24922
  }
24874
24923
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('about', about);
24875
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_4___default()));
24924
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
24876
24925
 
24877
24926
 
24878
24927
  /***/ }),
@@ -25115,9 +25164,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
25115
25164
 
25116
25165
  "use strict";
25117
25166
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
25118
- /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86634);
25119
- /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_1__);
25120
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
25167
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
25168
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86634);
25169
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
25121
25170
  /*!
25122
25171
  * Jodit Editor (https://xdsoft.net/jodit/)
25123
25172
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25126,9 +25175,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
25126
25175
 
25127
25176
 
25128
25177
 
25129
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLine = true;
25130
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
25131
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
25178
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
25179
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
25180
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
25132
25181
  'table',
25133
25182
  'iframe',
25134
25183
  'img',
@@ -25136,8 +25185,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
25136
25185
  'pre',
25137
25186
  'jodit'
25138
25187
  ];
25139
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
25140
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_1___default()));
25188
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
25189
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
25141
25190
 
25142
25191
 
25143
25192
  /***/ }),
@@ -25275,11 +25324,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
25275
25324
 
25276
25325
  "use strict";
25277
25326
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
25278
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91115);
25279
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__);
25280
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1916);
25281
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__);
25282
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
25327
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
25328
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91115);
25329
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
25330
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1916);
25331
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
25283
25332
  /*!
25284
25333
  * Jodit Editor (https://xdsoft.net/jodit/)
25285
25334
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25320,10 +25369,10 @@ const aiAssistantDefaults = {
25320
25369
  aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
25321
25370
  aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
25322
25371
  };
25323
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
25324
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default()));
25325
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default()));
25326
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-commands'] = {
25372
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
25373
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
25374
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
25375
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
25327
25376
  isDisabled(editor) {
25328
25377
  return !editor.o.aiAssistant.aiAssistantCallback;
25329
25378
  },
@@ -25361,7 +25410,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
25361
25410
  editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
25362
25411
  }
25363
25412
  };
25364
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-assistant'] = {
25413
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
25365
25414
  isDisabled(editor) {
25366
25415
  return !editor.o.aiAssistant.aiAssistantCallback;
25367
25416
  },
@@ -25722,7 +25771,7 @@ class backspace extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
25722
25771
  if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
25723
25772
  return false;
25724
25773
  }
25725
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
25774
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
25726
25775
  if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some((func) => {
25727
25776
  if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .T)(func) &&
25728
25777
  func(jodit, fakeNode, backspace, mode)) {
@@ -25982,19 +26031,12 @@ function checkNotCollapsed(jodit) {
25982
26031
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
25983
26032
  const step = backspace ? -1 : 1;
25984
26033
  const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
25985
- let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace), removeNeighbor = null;
25986
- let charRemoved = false, removed;
25987
- const getNextInlineSibling = (sibling) => {
25988
- let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
25989
- if (!nextSibling &&
25990
- sibling.parentNode &&
25991
- sibling.parentNode !== jodit.editor) {
25992
- nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
25993
- }
25994
- return nextSibling;
25995
- };
26034
+ let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
26035
+ let removeNeighbor = null;
26036
+ let charRemoved = false;
26037
+ let removed;
25996
26038
  if (!sibling) {
25997
- sibling = getNextInlineSibling(fakeNode);
26039
+ sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
25998
26040
  }
25999
26041
  while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
26000
26042
  while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
@@ -26004,57 +26046,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26004
26046
  break;
26005
26047
  }
26006
26048
  if (sibling.nodeValue?.length) {
26007
- // For Unicode escapes
26008
- let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
26009
- const length = value.length;
26010
- let index = backspace ? length - 1 : 0;
26011
- if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26012
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26013
- index += step;
26014
- }
26049
+ removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
26050
+ if (!sibling.nodeValue.length &&
26051
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
26052
+ sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
26015
26053
  }
26016
- removed = value[index];
26017
- if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26018
- index += step;
26019
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26020
- index += step;
26021
- }
26022
- index += backspace ? 1 : -1;
26023
- }
26024
- if (backspace && index < 0) {
26025
- value = [];
26026
- }
26027
- else {
26028
- value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
26029
- }
26030
- if (!anotherSibling ||
26031
- !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
26032
- (!backspace ? / $/ : /^ /).test(anotherSibling.nodeValue ?? '') ||
26033
- !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
26034
- for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
26035
- if (value[i] === ' ') {
26036
- value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
26037
- }
26038
- else {
26039
- break;
26040
- }
26041
- }
26042
- }
26043
- sibling.nodeValue = value.join('');
26044
26054
  }
26045
26055
  if (!sibling.nodeValue?.length) {
26046
26056
  removeNeighbor = sibling;
26047
26057
  }
26048
26058
  if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26059
+ checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
26049
26060
  charRemoved = true;
26050
- (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);
26051
- if (mode === 'sentence' ||
26052
- (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
26053
- checkRemoveChar(jodit, fakeNode, backspace, mode);
26054
- }
26055
26061
  break;
26056
26062
  }
26057
- const nextSibling = getNextInlineSibling(sibling);
26063
+ const nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
26058
26064
  if (removeNeighbor) {
26059
26065
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
26060
26066
  removeNeighbor = null;
@@ -26076,6 +26082,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26076
26082
  }
26077
26083
  return charRemoved;
26078
26084
  }
26085
+ function getNextInlineSibling(sibling, backspace, root) {
26086
+ let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
26087
+ if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
26088
+ nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
26089
+ }
26090
+ return nextSibling;
26091
+ }
26079
26092
  /**
26080
26093
  * Helper removes all empty inline parents
26081
26094
  */
@@ -26100,6 +26113,56 @@ function addBRInsideEmptyBlock(jodit, node) {
26100
26113
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
26101
26114
  }
26102
26115
  }
26116
+ function tryRemoveChar(sibling, backspace, step, anotherSibling) {
26117
+ // For Unicode escapes
26118
+ let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
26119
+ const length = value.length;
26120
+ let index = backspace ? length - 1 : 0;
26121
+ if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26122
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26123
+ index += step;
26124
+ }
26125
+ }
26126
+ const removed = value[index];
26127
+ if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26128
+ index += step;
26129
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26130
+ index += step;
26131
+ }
26132
+ index += backspace ? 1 : -1;
26133
+ }
26134
+ if (backspace && index < 0) {
26135
+ value = [];
26136
+ }
26137
+ else {
26138
+ value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
26139
+ }
26140
+ replaceSpaceOnNBSP(anotherSibling, backspace, value);
26141
+ sibling.nodeValue = value.join('');
26142
+ return removed;
26143
+ }
26144
+ function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
26145
+ if (!anotherSibling ||
26146
+ !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
26147
+ (!backspace ? / $/ : /^ /).test(anotherSibling.nodeValue ?? '') ||
26148
+ !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
26149
+ for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
26150
+ if (value[i] === ' ') {
26151
+ value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
26152
+ }
26153
+ else {
26154
+ break;
26155
+ }
26156
+ }
26157
+ }
26158
+ }
26159
+ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
26160
+ (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);
26161
+ if (mode === 'sentence' ||
26162
+ (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
26163
+ checkRemoveChar(jodit, fakeNode, backspace, mode);
26164
+ }
26165
+ }
26103
26166
 
26104
26167
 
26105
26168
  /***/ }),
@@ -26137,7 +26200,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
26137
26200
  !jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
26138
26201
  (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);
26139
26202
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
26140
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
26203
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
26141
26204
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
26142
26205
  return true;
26143
26206
  }
@@ -26540,20 +26603,20 @@ function getMoveFilter(jodit) {
26540
26603
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56298);
26541
26604
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
26542
26605
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
26543
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73124);
26544
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52450);
26545
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__);
26546
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41111);
26547
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__);
26548
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49972);
26549
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__);
26550
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(45062);
26551
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__);
26552
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(18605);
26553
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__);
26554
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83389);
26555
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__);
26556
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(36115);
26606
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
26607
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73124);
26608
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52450);
26609
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
26610
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41111);
26611
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
26612
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49972);
26613
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
26614
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45062);
26615
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
26616
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(18605);
26617
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
26618
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83389);
26619
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
26557
26620
  /*!
26558
26621
  * Jodit Editor (https://xdsoft.net/jodit/)
26559
26622
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26576,7 +26639,7 @@ function getMoveFilter(jodit) {
26576
26639
  */
26577
26640
  function bold(editor) {
26578
26641
  const callBack = (command) => {
26579
- const control = jodit_config__WEBPACK_IMPORTED_MODULE_10__/* .Config */ .T.defaultOptions.controls[command], cssOptions = {
26642
+ const control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = {
26580
26643
  ...control.css
26581
26644
  };
26582
26645
  let cssRules;
@@ -26630,12 +26693,12 @@ function bold(editor) {
26630
26693
  });
26631
26694
  }
26632
26695
  jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
26633
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default()))
26634
- .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default()))
26635
- .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default()))
26636
- .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default()))
26637
- .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
26638
- .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default()));
26696
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
26697
+ .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
26698
+ .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
26699
+ .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
26700
+ .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
26701
+ .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
26639
26702
 
26640
26703
 
26641
26704
  /***/ }),
@@ -26705,9 +26768,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
26705
26768
  /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84976);
26706
26769
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71005);
26707
26770
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
26708
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93267);
26709
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_5__);
26710
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
26771
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
26772
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93267);
26773
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
26711
26774
  /*!
26712
26775
  * Jodit Editor (https://xdsoft.net/jodit/)
26713
26776
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26720,7 +26783,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
26720
26783
 
26721
26784
 
26722
26785
 
26723
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.classSpan = {
26786
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
26724
26787
  command: 'applyClassName',
26725
26788
  exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
26726
26789
  list: [
@@ -26808,7 +26871,7 @@ class classSpan extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
26808
26871
  beforeDestruct() { }
26809
26872
  }
26810
26873
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
26811
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_5___default()));
26874
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
26812
26875
 
26813
26876
 
26814
26877
  /***/ }),
@@ -26947,9 +27010,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
26947
27010
 
26948
27011
  "use strict";
26949
27012
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
26950
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71948);
26951
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_1__);
26952
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
27013
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
27014
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71948);
27015
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
26953
27016
  /*!
26954
27017
  * Jodit Editor (https://xdsoft.net/jodit/)
26955
27018
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26958,7 +27021,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
26958
27021
 
26959
27022
 
26960
27023
 
26961
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML = {
27024
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
26962
27025
  timeout: 300,
26963
27026
  removeEmptyElements: true,
26964
27027
  fillEmptyParagraph: true,
@@ -26974,11 +27037,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
26974
27037
  safeJavaScriptLink: true,
26975
27038
  disableCleanFilter: null
26976
27039
  };
26977
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.eraser = {
27040
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
26978
27041
  command: 'removeFormat',
26979
27042
  tooltip: 'Clear Formatting'
26980
27043
  };
26981
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_1___default()));
27044
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
26982
27045
 
26983
27046
 
26984
27047
  /***/ }),
@@ -27644,15 +27707,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
27644
27707
 
27645
27708
  "use strict";
27646
27709
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
27647
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51457);
27648
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__);
27649
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23602);
27650
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__);
27651
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(86899);
27652
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__);
27653
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95320);
27654
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__);
27655
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
27710
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
27711
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51457);
27712
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
27713
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23602);
27714
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
27715
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86899);
27716
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
27717
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95320);
27718
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
27656
27719
  /*!
27657
27720
  * Jodit Editor (https://xdsoft.net/jodit/)
27658
27721
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27664,25 +27727,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
27664
27727
 
27665
27728
 
27666
27729
 
27667
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.cut = {
27730
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
27668
27731
  command: 'cut',
27669
27732
  isDisabled: (editor) => editor.s.isCollapsed(),
27670
27733
  tooltip: 'Cut selection'
27671
27734
  };
27672
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copy = {
27735
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
27673
27736
  command: 'copy',
27674
27737
  isDisabled: (editor) => editor.s.isCollapsed(),
27675
27738
  tooltip: 'Copy selection'
27676
27739
  };
27677
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.selectall = {
27740
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
27678
27741
  icon: 'select-all',
27679
27742
  command: 'selectall',
27680
27743
  tooltip: 'Select all'
27681
27744
  };
27682
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default()))
27683
- .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default()))
27684
- .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default()))
27685
- .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default()));
27745
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
27746
+ .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
27747
+ .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
27748
+ .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
27686
27749
 
27687
27750
 
27688
27751
  /***/ }),
@@ -27754,10 +27817,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
27754
27817
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
27755
27818
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
27756
27819
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
27757
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16116);
27758
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45674);
27759
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_4__);
27760
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
27820
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
27821
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
27822
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45674);
27823
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
27761
27824
  /*!
27762
27825
  * Jodit Editor (https://xdsoft.net/jodit/)
27763
27826
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27769,8 +27832,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
27769
27832
 
27770
27833
 
27771
27834
 
27772
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_4___default()));
27773
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brushCell = {
27835
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
27836
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
27774
27837
  isVisible: (editor) => {
27775
27838
  return !editor.o.disablePlugins.includes('color');
27776
27839
  },
@@ -27783,7 +27846,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27783
27846
  if (!selected.length) {
27784
27847
  return false;
27785
27848
  }
27786
- const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27849
+ const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27787
27850
  selected.forEach(cell => {
27788
27851
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
27789
27852
  });
@@ -27792,7 +27855,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27792
27855
  close();
27793
27856
  editor.unlock();
27794
27857
  }, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
27795
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, [
27858
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
27796
27859
  {
27797
27860
  name: 'Background',
27798
27861
  content: makeColorPicker('background-color')
@@ -27803,7 +27866,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27803
27866
  },
27804
27867
  tooltip: 'Background'
27805
27868
  };
27806
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brush = {
27869
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
27807
27870
  isVisible: (editor) => {
27808
27871
  return !editor.o.disablePlugins.includes('color');
27809
27872
  },
@@ -27851,7 +27914,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27851
27914
  }
27852
27915
  }, editor.editor);
27853
27916
  }
27854
- const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27917
+ const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27855
27918
  if (!currentElement) {
27856
27919
  editor.execCommand('background', false, value);
27857
27920
  }
@@ -27862,7 +27925,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27862
27925
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
27863
27926
  close();
27864
27927
  }, bg_color);
27865
- const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27928
+ const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27866
27929
  if (!currentElement) {
27867
27930
  editor.execCommand('forecolor', false, value);
27868
27931
  }
@@ -27886,7 +27949,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27886
27949
  if (editor.o.colorPickerDefaultTab !== 'background') {
27887
27950
  tabs = tabs.reverse();
27888
27951
  }
27889
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
27952
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
27890
27953
  },
27891
27954
  exec(jodit, current, { button }) {
27892
27955
  const mode = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode'), color = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color');
@@ -27925,10 +27988,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27925
27988
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
27926
27989
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
27927
27990
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
27928
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3843);
27929
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_3__);
27930
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94628);
27931
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
27991
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
27992
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3843);
27993
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
27994
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94628);
27932
27995
  /*!
27933
27996
  * Jodit Editor (https://xdsoft.net/jodit/)
27934
27997
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27986,7 +28049,7 @@ const getStyles = (editor, box, defaultStyles) => {
27986
28049
  }
27987
28050
  return result;
27988
28051
  };
27989
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copyformat = {
28052
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
27990
28053
  exec: (editor, current, { button }) => {
27991
28054
  if (!current) {
27992
28055
  return;
@@ -28036,10 +28099,10 @@ function copyFormat(editor) {
28036
28099
  name: 'copyformat',
28037
28100
  group: 'clipboard'
28038
28101
  });
28039
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_4__);
28102
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
28040
28103
  }
28041
28104
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
28042
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default()));
28105
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
28043
28106
 
28044
28107
 
28045
28108
  /***/ }),
@@ -28993,45 +29056,11 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
28993
29056
  const sel = this.j.s.sel;
28994
29057
  const range = this.bufferRange ||
28995
29058
  (sel && sel.rangeCount ? sel.getRangeAt(0) : null);
28996
- let fragment = null;
28997
- if (!this.draggable && range) {
28998
- fragment = this.isCopyMode
28999
- ? range.cloneContents()
29000
- : range.extractContents();
29001
- }
29002
- else if (this.draggable) {
29003
- if (this.isCopyMode) {
29004
- const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
29005
- ? ['a', 'href']
29006
- : ['img', 'src'];
29007
- fragment = this.j.createInside.element(tagName);
29008
- fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
29009
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
29010
- '');
29011
- if (tagName === 'a') {
29012
- fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
29013
- }
29014
- }
29015
- else {
29016
- fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
29017
- }
29018
- }
29019
- else if (this.getText(event)) {
29020
- fragment = this.j.createInside.fromHTML(this.getText(event));
29021
- }
29059
+ const fragment = this.__getWorkFragment(range, event);
29022
29060
  sel && sel.removeAllRanges();
29023
29061
  this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
29024
29062
  if (fragment) {
29025
- this.j.s.insertNode(fragment, false, false);
29026
- if (range && fragment.firstChild && fragment.lastChild) {
29027
- range.setStartBefore(fragment.firstChild);
29028
- range.setEndAfter(fragment.lastChild);
29029
- this.j.s.selectRange(range);
29030
- this.j.e.fire('synchro');
29031
- }
29032
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
29033
- this.j.e.fire('afterInsertImage', fragment);
29034
- }
29063
+ this.__insertFragment.call(this, fragment, range);
29035
29064
  }
29036
29065
  event.preventDefault();
29037
29066
  event.stopPropagation();
@@ -29039,6 +29068,47 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
29039
29068
  this.isFragmentFromEditor = false;
29040
29069
  this.removeDragListeners();
29041
29070
  }
29071
+ __getWorkFragment(range, event) {
29072
+ let fragment = null;
29073
+ if (!this.draggable && range) {
29074
+ fragment = this.isCopyMode
29075
+ ? range.cloneContents()
29076
+ : range.extractContents();
29077
+ }
29078
+ else if (this.draggable) {
29079
+ if (this.isCopyMode) {
29080
+ const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
29081
+ ? ['a', 'href']
29082
+ : ['img', 'src'];
29083
+ fragment = this.j.createInside.element(tagName);
29084
+ fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
29085
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
29086
+ '');
29087
+ if (tagName === 'a') {
29088
+ fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
29089
+ }
29090
+ }
29091
+ else {
29092
+ fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
29093
+ }
29094
+ }
29095
+ else if (this.getText(event)) {
29096
+ fragment = this.j.createInside.fromHTML(this.getText(event));
29097
+ }
29098
+ return fragment;
29099
+ }
29100
+ __insertFragment(fragment, range) {
29101
+ this.j.s.insertNode(fragment, false, false);
29102
+ if (range && fragment.firstChild && fragment.lastChild) {
29103
+ range.setStartBefore(fragment.firstChild);
29104
+ range.setEndAfter(fragment.lastChild);
29105
+ this.j.s.selectRange(range);
29106
+ this.j.e.fire('synchro');
29107
+ }
29108
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
29109
+ this.j.e.fire('afterInsertImage', fragment);
29110
+ }
29111
+ }
29042
29112
  /** @override */
29043
29113
  beforeDestruct() {
29044
29114
  this.onDragEnd();
@@ -29840,8 +29910,8 @@ function wrapText(fake, jodit) {
29840
29910
  /* unused harmony export file */
29841
29911
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
29842
29912
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
29843
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16116);
29844
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
29913
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
29914
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16116);
29845
29915
  /*!
29846
29916
  * Jodit Editor (https://xdsoft.net/jodit/)
29847
29917
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -29851,7 +29921,7 @@ function wrapText(fake, jodit) {
29851
29921
 
29852
29922
 
29853
29923
 
29854
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.file = {
29924
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
29855
29925
  popup: (editor, current, close) => {
29856
29926
  const insert = (url, title = '') => {
29857
29927
  editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
@@ -29864,7 +29934,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
29864
29934
  ? current
29865
29935
  : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
29866
29936
  }
29867
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__/* .FileSelectorWidget */ .kG)(editor, {
29937
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
29868
29938
  filebrowser: (data) => {
29869
29939
  data.files &&
29870
29940
  data.files.forEach(file => insert(data.baseurl + file));
@@ -29987,11 +30057,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
29987
30057
  /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59101);
29988
30058
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
29989
30059
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
29990
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48842);
29991
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_3__);
29992
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25501);
29993
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__);
29994
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
30060
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
30061
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48842);
30062
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
30063
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25501);
30064
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
29995
30065
  /*!
29996
30066
  * Jodit Editor (https://xdsoft.net/jodit/)
29997
30067
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30007,9 +30077,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
30007
30077
  /**
30008
30078
  * Default font-size points
30009
30079
  */
30010
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
30011
- 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()));
30012
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize = {
30080
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
30081
+ 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()));
30082
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
30013
30083
  command: 'fontsize',
30014
30084
  data: {
30015
30085
  cssRule: 'font-size',
@@ -30065,8 +30135,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
30065
30135
  return keySet.has(normalize(value.toString()));
30066
30136
  }
30067
30137
  };
30068
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.font = {
30069
- ...jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize,
30138
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = {
30139
+ ...jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize,
30070
30140
  command: 'fontname',
30071
30141
  textTemplate: (j, value) => {
30072
30142
  const [first] = value.split(',');
@@ -30176,11 +30246,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
30176
30246
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
30177
30247
 
30178
30248
  "use strict";
30179
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
30249
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
30250
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
30180
30251
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
30181
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29348);
30182
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_2__);
30183
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
30252
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
30253
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29348);
30254
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
30184
30255
  /*!
30185
30256
  * Jodit Editor (https://xdsoft.net/jodit/)
30186
30257
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30190,12 +30261,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
30190
30261
 
30191
30262
 
30192
30263
 
30193
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default()));
30194
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.paragraph = {
30264
+
30265
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
30266
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
30195
30267
  command: 'formatBlock',
30196
30268
  value(editor, button) {
30197
30269
  const control = button.control, current = editor.s.current();
30198
- const currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
30270
+ const 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);
30199
30271
  return currentBox?.nodeName.toLowerCase() ?? control.data?.currentValue;
30200
30272
  },
30201
30273
  update(editor, button) {
@@ -30204,7 +30276,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
30204
30276
  return false;
30205
30277
  }
30206
30278
  const currentValue = button.state.value, list = control.list;
30207
- if (list && list[currentValue.toString()]) {
30279
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
30208
30280
  if (editor.o.textIcons) {
30209
30281
  button.state.text = list[currentValue.toString()].toString();
30210
30282
  }
@@ -30228,7 +30300,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
30228
30300
  },
30229
30301
  isActive: (editor, button) => {
30230
30302
  return (button.state.value !== editor.o.enter &&
30231
- Boolean(button.control.list?.[button.state.value]));
30303
+ (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
30304
+ Boolean(button.control.list[button.state.value]));
30232
30305
  },
30233
30306
  childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
30234
30307
  tooltip: 'Insert format block'
@@ -30278,11 +30351,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
30278
30351
  "use strict";
30279
30352
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
30280
30353
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
30281
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24772);
30282
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__);
30283
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66547);
30284
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__);
30285
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
30354
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
30355
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24772);
30356
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
30357
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66547);
30358
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
30286
30359
  /*!
30287
30360
  * Jodit Editor (https://xdsoft.net/jodit/)
30288
30361
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30294,10 +30367,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
30294
30367
 
30295
30368
 
30296
30369
 
30297
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.fullsize = false;
30298
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.globalFullSize = true;
30299
- 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()));
30300
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.fullsize = {
30370
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
30371
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
30372
+ 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()));
30373
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
30301
30374
  exec: (editor) => {
30302
30375
  editor.toggleFullSize();
30303
30376
  },
@@ -30623,9 +30696,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
30623
30696
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
30624
30697
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
30625
30698
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
30626
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89097);
30627
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_3__);
30628
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
30699
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
30700
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89097);
30701
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
30629
30702
  /*!
30630
30703
  * Jodit Editor (https://xdsoft.net/jodit/)
30631
30704
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30636,8 +30709,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
30636
30709
 
30637
30710
 
30638
30711
 
30639
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_3___default()));
30640
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.hr = {
30712
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
30713
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
30641
30714
  command: 'insertHorizontalRule',
30642
30715
  tags: ['hr'],
30643
30716
  tooltip: 'Insert Horizontal Line'
@@ -31114,6 +31187,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
31114
31187
  * Released under MIT see LICENSE.txt in the project root for license information.
31115
31188
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
31116
31189
  */
31190
+ /**
31191
+ * @module plugins/image-properties
31192
+ */
31117
31193
 
31118
31194
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
31119
31195
  dialogWidth: 600,
@@ -32614,10 +32690,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
32614
32690
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
32615
32691
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
32616
32692
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
32617
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
32618
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(64831);
32619
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_5__);
32620
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
32693
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
32694
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
32695
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64831);
32696
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
32621
32697
  /*!
32622
32698
  * Jodit Editor (https://xdsoft.net/jodit/)
32623
32699
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32630,8 +32706,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
32630
32706
 
32631
32707
 
32632
32708
 
32633
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_5___default()));
32634
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.image = {
32709
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
32710
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
32635
32711
  popup: (editor, current, close) => {
32636
32712
  let sourceImage = null;
32637
32713
  if (current &&
@@ -32643,7 +32719,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
32643
32719
  : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
32644
32720
  }
32645
32721
  editor.s.save();
32646
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .FileSelectorWidget */ .kG)(editor, {
32722
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
32647
32723
  filebrowser: (data) => {
32648
32724
  editor.s.restore();
32649
32725
  data.files &&
@@ -32686,12 +32762,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
32686
32762
  "use strict";
32687
32763
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
32688
32764
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
32689
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67176);
32690
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__);
32691
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14017);
32692
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__);
32693
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3392);
32694
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
32765
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
32766
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67176);
32767
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
32768
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14017);
32769
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
32770
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3392);
32695
32771
  /*!
32696
32772
  * Jodit Editor (https://xdsoft.net/jodit/)
32697
32773
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32703,17 +32779,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
32703
32779
 
32704
32780
 
32705
32781
 
32706
- 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()));
32707
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.indent = {
32782
+ 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()));
32783
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
32708
32784
  tooltip: 'Increase Indent'
32709
32785
  };
32710
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.outdent = {
32786
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
32711
32787
  isDisabled: (editor) => {
32712
32788
  const current = editor.s.current();
32713
32789
  if (current) {
32714
32790
  const currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
32715
32791
  if (currentBox) {
32716
- const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__/* .getKey */ .i)(editor.o.direction, currentBox);
32792
+ const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
32717
32793
  return (!currentBox.style[arrow] ||
32718
32794
  parseInt(currentBox.style[arrow], 10) <= 0);
32719
32795
  }
@@ -32722,7 +32798,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
32722
32798
  },
32723
32799
  tooltip: 'Decrease Indent'
32724
32800
  };
32725
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.indentMargin = 10;
32801
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
32726
32802
 
32727
32803
 
32728
32804
  /***/ }),
@@ -32983,12 +33059,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
32983
33059
 
32984
33060
  "use strict";
32985
33061
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
32986
- /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97836);
32987
- /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82558);
32988
- /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6295);
32989
- /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26396);
33062
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
33063
+ /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97836);
33064
+ /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82558);
33065
+ /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6295);
33066
+ /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26396);
32990
33067
  /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(58540);
32991
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
32992
33068
  /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38681);
32993
33069
  /* 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__);
32994
33070
  /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(64637);
@@ -33022,10 +33098,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
33022
33098
 
33023
33099
 
33024
33100
 
33025
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInline = true;
33026
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
33027
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
33028
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
33101
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
33102
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
33103
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
33104
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
33029
33105
  jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
33030
33106
  .set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
33031
33107
  .set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
@@ -33033,14 +33109,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
33033
33109
  .set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
33034
33110
  .set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
33035
33111
  .set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
33036
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
33037
- a: _items_a__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,
33038
- img: _items_img__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33039
- cells: _items_cells__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
33112
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
33113
+ a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
33114
+ img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
33115
+ cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33040
33116
  toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
33041
- jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33042
- iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33043
- 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33117
+ jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33118
+ iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33119
+ 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33044
33120
  selection: [
33045
33121
  'bold',
33046
33122
  'underline',
@@ -33652,12 +33728,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
33652
33728
  /* unused harmony export justify */
33653
33729
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
33654
33730
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
33655
- /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40080);
33656
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
33657
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
33658
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80515);
33659
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
33731
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
33732
+ /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40080);
33733
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38322);
33734
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
33660
33735
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
33736
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80515);
33737
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
33661
33738
  /*!
33662
33739
  * Jodit Editor (https://xdsoft.net/jodit/)
33663
33740
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33670,7 +33747,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
33670
33747
 
33671
33748
 
33672
33749
 
33673
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_4___default()));
33750
+
33751
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
33674
33752
  jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
33675
33753
  name: 'left',
33676
33754
  tooltip: 'Align',
@@ -33679,22 +33757,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
33679
33757
  if (current) {
33680
33758
  const 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) ||
33681
33759
  editor.editor;
33682
- let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString();
33760
+ let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
33683
33761
  if (control.defaultValue &&
33684
33762
  control.defaultValue.indexOf(currentValue) !== -1) {
33685
33763
  currentValue = 'left';
33686
33764
  }
33687
- if (control.data &&
33688
- control.data.currentValue !== currentValue &&
33689
- control.list &&
33690
- control.list[currentValue]) {
33765
+ const { list, data } = control;
33766
+ if (data &&
33767
+ data.currentValue !== currentValue &&
33768
+ list &&
33769
+ ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
33770
+ ? list[currentValue]
33771
+ : list.includes(currentValue))) {
33691
33772
  if (editor.o.textIcons || control.component === 'select') {
33692
33773
  button.state.text = currentValue;
33693
33774
  }
33694
33775
  else {
33695
33776
  button.state.icon.name = currentValue;
33696
33777
  }
33697
- control.data.currentValue = currentValue;
33778
+ data.currentValue = currentValue;
33698
33779
  }
33699
33780
  }
33700
33781
  },
@@ -33705,7 +33786,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
33705
33786
  }
33706
33787
  const 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) ||
33707
33788
  editor.editor;
33708
- return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
33789
+ return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
33709
33790
  },
33710
33791
  defaultValue: ['left', 'start', 'inherit'],
33711
33792
  data: {
@@ -33759,7 +33840,7 @@ function justify(editor) {
33759
33840
  if (!currentBox) {
33760
33841
  currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
33761
33842
  }
33762
- (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__/* .alignElement */ .Op)(command, currentBox);
33843
+ (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
33763
33844
  });
33764
33845
  return false;
33765
33846
  };
@@ -33970,9 +34051,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
33970
34051
  "use strict";
33971
34052
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65147);
33972
34053
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
33973
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(223);
33974
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_2__);
33975
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
34054
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
34055
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(223);
34056
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
33976
34057
  /*!
33977
34058
  * Jodit Editor (https://xdsoft.net/jodit/)
33978
34059
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33982,9 +34063,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
33982
34063
 
33983
34064
 
33984
34065
 
33985
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultLineHeight = null;
33986
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_2___default()));
33987
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.lineHeight = {
34066
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
34067
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
34068
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
33988
34069
  command: 'applyLineHeight',
33989
34070
  tags: ['ol'],
33990
34071
  tooltip: 'Line height',
@@ -34549,12 +34630,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
34549
34630
  "use strict";
34550
34631
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
34551
34632
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
34552
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95032);
34553
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_2__);
34554
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73533);
34555
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__);
34556
- /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21329);
34557
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
34633
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
34634
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95032);
34635
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
34636
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73533);
34637
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
34638
+ /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21329);
34558
34639
  /*!
34559
34640
  * Jodit Editor (https://xdsoft.net/jodit/)
34560
34641
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -34566,8 +34647,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
34566
34647
 
34567
34648
 
34568
34649
 
34569
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
34570
- formTemplate: _template__WEBPACK_IMPORTED_MODULE_4__/* .formTemplate */ .B,
34650
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
34651
+ formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
34571
34652
  followOnDblClick: false,
34572
34653
  processVideoLink: true,
34573
34654
  processPastedLink: true,
@@ -34579,8 +34660,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
34579
34660
  selectOptionsClassName: [],
34580
34661
  hotkeys: ['ctrl+k', 'cmd+k']
34581
34662
  };
34582
- 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()));
34583
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unlink = {
34663
+ 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()));
34664
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
34584
34665
  exec: (editor, current) => {
34585
34666
  const anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
34586
34667
  if (anchor) {
@@ -34591,7 +34672,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
34591
34672
  },
34592
34673
  tooltip: 'Unlink'
34593
34674
  };
34594
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.link = {
34675
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
34595
34676
  isActive: (editor) => {
34596
34677
  const current = editor.s.current();
34597
34678
  return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
@@ -34749,35 +34830,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
34749
34830
  if (link) {
34750
34831
  url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
34751
34832
  if (modeClassName) {
34752
- switch (modeClassName) {
34753
- case 'input':
34754
- if (className_input) {
34755
- className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
34756
- }
34757
- break;
34758
- case 'select':
34759
- if (className_select) {
34760
- for (let i = 0; i < className_select.selectedOptions.length; i++) {
34761
- const option = className_select.options.item(i);
34762
- if (option) {
34763
- option.selected = false;
34764
- }
34765
- }
34766
- const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
34767
- classNames.split(' ').forEach(className => {
34768
- if (className) {
34769
- for (let i = 0; i < className_select.options.length; i++) {
34770
- const option = className_select.options.item(i);
34771
- if (option?.value &&
34772
- option.value === className) {
34773
- option.selected = true;
34774
- }
34775
- }
34776
- }
34777
- });
34778
- }
34779
- break;
34780
- }
34833
+ readClassnames(modeClassName, className_input, link, className_select);
34781
34834
  }
34782
34835
  if (openInNewTabCheckbox && target_checkbox) {
34783
34836
  target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
@@ -34839,42 +34892,9 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
34839
34892
  }
34840
34893
  links.forEach(a => {
34841
34894
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
34842
- if (modeClassName && (className_input ?? className_select)) {
34843
- if (modeClassName === 'input') {
34844
- if (className_input.value === '' &&
34845
- a.hasAttribute('class')) {
34846
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
34847
- }
34848
- if (className_input.value !== '') {
34849
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
34850
- }
34851
- }
34852
- else if (modeClassName === 'select') {
34853
- if (a.hasAttribute('class')) {
34854
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
34855
- }
34856
- for (let i = 0; i < className_select.selectedOptions.length; i++) {
34857
- const className = className_select.selectedOptions.item(i)?.value;
34858
- if (className) {
34859
- a.classList.add(className);
34860
- }
34861
- }
34862
- }
34863
- }
34895
+ writeClasses(modeClassName, className_input, className_select, a);
34864
34896
  if (!isImageContent) {
34865
- let newContent = a.textContent;
34866
- if (content_input.value.trim().length) {
34867
- if (textWasChanged) {
34868
- newContent = content_input.value;
34869
- }
34870
- }
34871
- else {
34872
- newContent = url_input.value;
34873
- }
34874
- const content = a.textContent;
34875
- if (newContent !== content) {
34876
- a.textContent = newContent;
34877
- }
34897
+ writeImage(a, content_input, textWasChanged, url_input);
34878
34898
  }
34879
34899
  if (openInNewTabCheckbox && target_checkbox) {
34880
34900
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
@@ -34919,6 +34939,74 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
34919
34939
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
34920
34940
  ], link.prototype, "__generateForm", null);
34921
34941
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
34942
+ function writeClasses(modeClassName, className_input, className_select, a) {
34943
+ if (modeClassName && (className_input ?? className_select)) {
34944
+ if (modeClassName === 'input') {
34945
+ if (className_input.value === '' && a.hasAttribute('class')) {
34946
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
34947
+ }
34948
+ if (className_input.value !== '') {
34949
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
34950
+ }
34951
+ }
34952
+ else if (modeClassName === 'select') {
34953
+ if (a.hasAttribute('class')) {
34954
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
34955
+ }
34956
+ for (let i = 0; i < className_select.selectedOptions.length; i++) {
34957
+ const className = className_select.selectedOptions.item(i)?.value;
34958
+ if (className) {
34959
+ a.classList.add(className);
34960
+ }
34961
+ }
34962
+ }
34963
+ }
34964
+ }
34965
+ function readClassnames(modeClassName, className_input, link, className_select) {
34966
+ switch (modeClassName) {
34967
+ case 'input':
34968
+ if (className_input) {
34969
+ className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
34970
+ }
34971
+ break;
34972
+ case 'select':
34973
+ if (className_select) {
34974
+ for (let i = 0; i < className_select.selectedOptions.length; i++) {
34975
+ const option = className_select.options.item(i);
34976
+ if (option) {
34977
+ option.selected = false;
34978
+ }
34979
+ }
34980
+ const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
34981
+ classNames.split(' ').forEach(className => {
34982
+ if (className) {
34983
+ for (let i = 0; i < className_select.options.length; i++) {
34984
+ const option = className_select.options.item(i);
34985
+ if (option?.value && option.value === className) {
34986
+ option.selected = true;
34987
+ }
34988
+ }
34989
+ }
34990
+ });
34991
+ }
34992
+ break;
34993
+ }
34994
+ }
34995
+ function writeImage(a, content_input, textWasChanged, url_input) {
34996
+ let newContent = a.textContent;
34997
+ if (content_input.value.trim().length) {
34998
+ if (textWasChanged) {
34999
+ newContent = content_input.value;
35000
+ }
35001
+ }
35002
+ else {
35003
+ newContent = url_input.value;
35004
+ }
35005
+ const content = a.textContent;
35006
+ if (newContent !== content) {
35007
+ a.textContent = newContent;
35008
+ }
35009
+ }
34922
35010
 
34923
35011
 
34924
35012
  /***/ }),
@@ -35128,9 +35216,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
35128
35216
  "use strict";
35129
35217
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
35130
35218
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
35131
- /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97394);
35132
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8809);
35133
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
35219
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
35220
+ /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97394);
35221
+ /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8809);
35134
35222
  /*!
35135
35223
  * Jodit Editor (https://xdsoft.net/jodit/)
35136
35224
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35141,9 +35229,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
35141
35229
 
35142
35230
 
35143
35231
 
35144
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.mobileTapTimeout = 300;
35145
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.toolbarAdaptive = true;
35146
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD = [
35232
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
35233
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
35234
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
35147
35235
  {
35148
35236
  group: 'font-style',
35149
35237
  buttons: []
@@ -35190,7 +35278,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
35190
35278
  '|',
35191
35279
  'dots'
35192
35280
  ];
35193
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM = [
35281
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
35194
35282
  {
35195
35283
  group: 'font-style',
35196
35284
  buttons: []
@@ -35225,7 +35313,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
35225
35313
  '|',
35226
35314
  'dots'
35227
35315
  ];
35228
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS = [
35316
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
35229
35317
  {
35230
35318
  group: 'font-style',
35231
35319
  buttons: []
@@ -35246,16 +35334,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
35246
35334
  '---',
35247
35335
  'dots'
35248
35336
  ];
35249
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.dots = {
35337
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
35250
35338
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
35251
35339
  popup: (editor, current, close, button) => {
35252
35340
  let store = button.control.data;
35253
35341
  if (store === undefined) {
35254
35342
  store = {
35255
- toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__/* .makeCollection */ .$K)(editor),
35343
+ toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
35256
35344
  rebuild: () => {
35257
35345
  if (button) {
35258
- const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__/* .ToolbarCollection */ .Q));
35346
+ const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
35259
35347
  if (buttons && store) {
35260
35348
  store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
35261
35349
  const w = editor.toolbar?.firstButton?.container
@@ -35366,11 +35454,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
35366
35454
  "use strict";
35367
35455
  /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72197);
35368
35456
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
35369
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40037);
35370
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__);
35371
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83207);
35372
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__);
35373
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
35457
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
35458
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40037);
35459
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
35460
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83207);
35461
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
35374
35462
  /*!
35375
35463
  * Jodit Editor (https://xdsoft.net/jodit/)
35376
35464
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35387,8 +35475,8 @@ const memoExec = (jodit, _, { control }) => {
35387
35475
  (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
35388
35476
  jodit.execCommand(control.command, false, value === 'default' ? null : value);
35389
35477
  };
35390
- 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()));
35391
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul = {
35478
+ 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()));
35479
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
35392
35480
  command: 'insertUnorderedList',
35393
35481
  tags: ['ul'],
35394
35482
  tooltip: 'Insert Unordered List',
@@ -35400,7 +35488,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
35400
35488
  },
35401
35489
  exec: memoExec
35402
35490
  };
35403
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ol = {
35491
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
35404
35492
  command: 'insertOrderedList',
35405
35493
  tags: ['ol'],
35406
35494
  tooltip: 'Insert Ordered List',
@@ -35774,8 +35862,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
35774
35862
 
35775
35863
  "use strict";
35776
35864
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
35777
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90823);
35778
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
35865
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
35866
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90823);
35779
35867
  /*!
35780
35868
  * Jodit Editor (https://xdsoft.net/jodit/)
35781
35869
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35784,19 +35872,19 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
35784
35872
 
35785
35873
 
35786
35874
 
35787
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.askBeforePasteHTML = true;
35788
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.processPasteHTML = true;
35789
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.scrollToPastedContent = true;
35790
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
35791
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteHTMLActionList = [
35875
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
35876
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
35877
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
35878
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
35879
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
35792
35880
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
35793
35881
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
35794
35882
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
35795
35883
  ];
35796
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
35797
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.nl2brInPlainText = true;
35884
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
35885
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
35798
35886
  const psKey = 'pasteStorage';
35799
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paste = {
35887
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
35800
35888
  tooltip: 'Paste from clipboard',
35801
35889
  async exec(editor, _, { control }) {
35802
35890
  if (control.name === psKey) {
@@ -35844,7 +35932,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
35844
35932
  !error && editor.e.fire('afterPaste');
35845
35933
  }
35846
35934
  else if (text.length) {
35847
- (0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .sX)(null, editor, text);
35935
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
35848
35936
  editor.e.fire('afterPaste');
35849
35937
  }
35850
35938
  else {
@@ -36568,10 +36656,10 @@ function generateCriticalCSS(jodit) {
36568
36656
  /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17527);
36569
36657
  /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98434);
36570
36658
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
36571
- /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11131);
36572
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(59827);
36573
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_6__);
36574
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36115);
36659
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
36660
+ /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11131);
36661
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59827);
36662
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
36575
36663
  /*!
36576
36664
  * Jodit Editor (https://xdsoft.net/jodit/)
36577
36665
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36586,8 +36674,8 @@ function generateCriticalCSS(jodit) {
36586
36674
 
36587
36675
 
36588
36676
 
36589
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_6___default()));
36590
- jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.print = {
36677
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
36678
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
36591
36679
  exec: (editor) => {
36592
36680
  const iframe = editor.create.element('iframe');
36593
36681
  Object.assign(iframe.style, {
@@ -36598,7 +36686,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
36598
36686
  height: 0,
36599
36687
  border: 0
36600
36688
  });
36601
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T).appendChild(iframe);
36689
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
36602
36690
  const afterFinishPrint = () => {
36603
36691
  editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
36604
36692
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
@@ -36616,7 +36704,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
36616
36704
  myWindow.document.write('<!doctype html><html lang="' +
36617
36705
  (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
36618
36706
  '"><head><title></title></head><style>' +
36619
- (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__/* .generateCriticalCSS */ .Y)(editor) +
36707
+ (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
36620
36708
  '</style><body></body></html>');
36621
36709
  myWindow.document.close();
36622
36710
  (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
@@ -36654,11 +36742,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
36654
36742
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
36655
36743
  /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
36656
36744
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
36657
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34045);
36658
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__);
36659
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39199);
36660
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__);
36661
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
36745
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
36746
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34045);
36747
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
36748
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39199);
36749
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
36662
36750
  /*!
36663
36751
  * Jodit Editor (https://xdsoft.net/jodit/)
36664
36752
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36671,13 +36759,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
36671
36759
 
36672
36760
 
36673
36761
 
36674
- 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()));
36675
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.redo = {
36762
+ 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()));
36763
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
36676
36764
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
36677
36765
  isDisabled: (editor) => !editor.history.canRedo(),
36678
36766
  tooltip: 'Redo'
36679
36767
  };
36680
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.undo = {
36768
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
36681
36769
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
36682
36770
  isDisabled: (editor) => !editor.history.canUndo(),
36683
36771
  tooltip: 'Undo'
@@ -37696,9 +37784,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
37696
37784
 
37697
37785
  "use strict";
37698
37786
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
37699
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21917);
37700
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_1__);
37701
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
37787
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
37788
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21917);
37789
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
37702
37790
  /*!
37703
37791
  * Jodit Editor (https://xdsoft.net/jodit/)
37704
37792
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37708,14 +37796,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
37708
37796
 
37709
37797
 
37710
37798
 
37711
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
37712
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
37799
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
37800
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
37713
37801
  lazyIdleTimeout: 0,
37714
37802
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37715
37803
  useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
37716
37804
  };
37717
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_1___default()));
37718
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
37805
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
37806
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
37719
37807
  tooltip: 'Find',
37720
37808
  icon: 'search',
37721
37809
  exec(jodit, _, { control }) {
@@ -37756,7 +37844,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
37756
37844
  /* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
37757
37845
  /* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
37758
37846
  /* harmony export */ });
37759
- /* unused harmony export isSelectionWrapper */
37760
37847
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
37761
37848
  /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58720);
37762
37849
  /*!
@@ -37778,60 +37865,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
37778
37865
  rng.endContainer.nodeValue == null) {
37779
37866
  return;
37780
37867
  }
37781
- if (jodit.o.search.useCustomHighlightAPI &&
37782
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37783
- typeof window.Highlight !== 'undefined') {
37784
- const ranges = [rng, ...restRanges].map(rng => {
37785
- const range = jodit.selection.createRange();
37786
- range.setStart(rng.startContainer, rng.startOffset);
37787
- range.setEnd(rng.endContainer, rng.endOffset);
37788
- return range;
37789
- });
37790
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37791
- const searchHighlight = new Highlight(...ranges);
37792
- // @ts-ignore
37793
- CSS.highlights.clear();
37794
- // @ts-ignore
37795
- CSS.highlights.set('jodit-search-result', searchHighlight);
37796
- restRanges.length = 0;
37868
+ if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
37797
37869
  return;
37798
37870
  }
37799
37871
  const span = ci.element('span', {
37800
37872
  [TMP_ATTR]: true
37801
37873
  });
37802
37874
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
37803
- const startText = rng.startContainer.nodeValue;
37804
- let diff = 0;
37805
- if (rng.startOffset !== 0) {
37806
- const text = ci.text(startText.substring(0, rng.startOffset));
37807
- rng.startContainer.nodeValue = startText.substring(rng.startOffset);
37808
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
37809
- if (rng.startContainer === rng.endContainer) {
37810
- diff = rng.startOffset;
37811
- rng.endOffset -= diff;
37812
- }
37813
- rng.startOffset = 0;
37814
- }
37815
- const endText = rng.endContainer.nodeValue;
37816
- if (rng.endOffset !== endText.length) {
37817
- const text = ci.text(endText.substring(rng.endOffset));
37818
- rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
37819
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
37820
- for (const range of restRanges) {
37821
- if (range.startContainer === rng.endContainer) {
37822
- range.startContainer = text;
37823
- range.startOffset = range.startOffset - rng.endOffset - diff;
37824
- if (range.endContainer === rng.endContainer) {
37825
- range.endContainer = text;
37826
- range.endOffset = range.endOffset - rng.endOffset - diff;
37827
- }
37828
- }
37829
- else {
37830
- break;
37831
- }
37832
- }
37833
- rng.endOffset = rng.endContainer.nodeValue.length;
37834
- }
37875
+ normalizeRanges(rng, restRanges, ci);
37835
37876
  let next = rng.startContainer;
37836
37877
  do {
37837
37878
  if (!next) {
@@ -37877,6 +37918,61 @@ function clearSelectionWrappersFromHTML(root) {
37877
37918
  function isSelectionWrapper(node) {
37878
37919
  return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
37879
37920
  }
37921
+ function checkNativeSelectionMethod(jodit, rng, restRanges) {
37922
+ if (jodit.o.search.useCustomHighlightAPI &&
37923
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37924
+ typeof window.Highlight !== 'undefined') {
37925
+ const ranges = [rng, ...restRanges].map(rng => {
37926
+ const range = jodit.selection.createRange();
37927
+ range.setStart(rng.startContainer, rng.startOffset);
37928
+ range.setEnd(rng.endContainer, rng.endOffset);
37929
+ return range;
37930
+ });
37931
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37932
+ const searchHighlight = new Highlight(...ranges);
37933
+ // @ts-ignore
37934
+ CSS.highlights.clear();
37935
+ // @ts-ignore
37936
+ CSS.highlights.set('jodit-search-result', searchHighlight);
37937
+ restRanges.length = 0;
37938
+ return true;
37939
+ }
37940
+ return false;
37941
+ }
37942
+ function normalizeRanges(rng, restRanges, ci) {
37943
+ const startText = rng.startContainer.nodeValue;
37944
+ let diff = 0;
37945
+ if (rng.startOffset !== 0) {
37946
+ const text = ci.text(startText.substring(0, rng.startOffset));
37947
+ rng.startContainer.nodeValue = startText.substring(rng.startOffset);
37948
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
37949
+ if (rng.startContainer === rng.endContainer) {
37950
+ diff = rng.startOffset;
37951
+ rng.endOffset -= diff;
37952
+ }
37953
+ rng.startOffset = 0;
37954
+ }
37955
+ const endText = rng.endContainer.nodeValue;
37956
+ if (rng.endOffset !== endText.length) {
37957
+ const text = ci.text(endText.substring(rng.endOffset));
37958
+ rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
37959
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
37960
+ for (const range of restRanges) {
37961
+ if (range.startContainer === rng.endContainer) {
37962
+ range.startContainer = text;
37963
+ range.startOffset = range.startOffset - rng.endOffset - diff;
37964
+ if (range.endContainer === rng.endContainer) {
37965
+ range.endContainer = text;
37966
+ range.endOffset = range.endOffset - rng.endOffset - diff;
37967
+ }
37968
+ }
37969
+ else {
37970
+ break;
37971
+ }
37972
+ }
37973
+ rng.endOffset = rng.endContainer.nodeValue.length;
37974
+ }
37975
+ }
37880
37976
 
37881
37977
 
37882
37978
  /***/ }),
@@ -39314,9 +39410,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
39314
39410
  "use strict";
39315
39411
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
39316
39412
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
39317
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9103);
39318
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_2__);
39319
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
39413
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
39414
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9103);
39415
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
39320
39416
  /*!
39321
39417
  * Jodit Editor (https://xdsoft.net/jodit/)
39322
39418
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -39326,9 +39422,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
39326
39422
 
39327
39423
 
39328
39424
 
39329
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
39330
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor = 'ace';
39331
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
39425
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
39426
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
39427
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
39332
39428
  /**
39333
39429
  * Show gutter
39334
39430
  */
@@ -39350,15 +39446,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
39350
39446
  */
39351
39447
  highlightActiveLine: true
39352
39448
  };
39353
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
39449
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
39354
39450
  'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
39355
39451
  ];
39356
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
39452
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
39357
39453
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
39358
39454
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
39359
39455
  ];
39360
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_2___default()));
39361
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.source = {
39456
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
39457
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
39362
39458
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
39363
39459
  exec: (editor) => {
39364
39460
  editor.toggleMode();
@@ -40153,9 +40249,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
40153
40249
 
40154
40250
  "use strict";
40155
40251
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
40156
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49989);
40157
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__);
40158
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
40252
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
40253
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49989);
40254
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
40159
40255
  /*!
40160
40256
  * Jodit Editor (https://xdsoft.net/jodit/)
40161
40257
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40164,13 +40260,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
40164
40260
 
40165
40261
 
40166
40262
 
40167
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.spellcheck = false;
40168
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()));
40169
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.spellcheck = {
40263
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
40264
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
40265
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
40170
40266
  isActive(e) {
40171
40267
  return e.o.spellcheck;
40172
40268
  },
40173
- icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()),
40269
+ icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
40174
40270
  name: 'spellcheck',
40175
40271
  command: 'toggleSpellcheck',
40176
40272
  tooltip: 'Spellcheck'
@@ -40945,9 +41041,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
40945
41041
 
40946
41042
  "use strict";
40947
41043
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
40948
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81875);
40949
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_1__);
40950
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
41044
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
41045
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81875);
41046
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
40951
41047
  /*!
40952
41048
  * Jodit Editor (https://xdsoft.net/jodit/)
40953
41049
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40956,8 +41052,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
40956
41052
 
40957
41053
 
40958
41054
 
40959
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
40960
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialCharacters = [
41055
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
41056
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
40961
41057
  '!',
40962
41058
  '&quot;',
40963
41059
  '#',
@@ -41169,8 +41265,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
41169
41265
  '&diams;',
41170
41266
  '&asymp;'
41171
41267
  ];
41172
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_1___default()));
41173
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.symbols = {
41268
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
41269
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
41174
41270
  hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
41175
41271
  tooltip: 'Insert Special Character',
41176
41272
  popup: (editor, current, close) => {
@@ -42052,38 +42148,10 @@ function tableKeyboardNavigation(editor) {
42052
42148
  .off('.tableKeyboardNavigation')
42053
42149
  .on('keydown.tableKeyboardNavigation', (event) => {
42054
42150
  const { key } = event;
42055
- if (!WORK_KEYS.has(key)) {
42056
- return;
42057
- }
42058
- const current = editor.s.current();
42059
- if (!current) {
42060
- return;
42061
- }
42062
- const 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);
42151
+ const cell = findCell(editor, key);
42063
42152
  if (!cell) {
42064
42153
  return;
42065
42154
  }
42066
- const { range } = editor.s;
42067
- if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
42068
- const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
42069
- const 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, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
42070
- ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
42071
- : Boolean(elm), cell);
42072
- if ((!isNextDirection &&
42073
- (hasNext ||
42074
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
42075
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42076
- range.startOffset !== 0))) ||
42077
- (isNextDirection &&
42078
- (hasNext ||
42079
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
42080
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42081
- current.nodeValue &&
42082
- range.startOffset !==
42083
- current.nodeValue.length)))) {
42084
- return;
42085
- }
42086
- }
42087
42155
  const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
42088
42156
  const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
42089
42157
  let next = null;
@@ -42141,6 +42209,40 @@ function tableKeyboardNavigation(editor) {
42141
42209
  });
42142
42210
  }
42143
42211
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
42212
+ function findCell(editor, key) {
42213
+ if (!WORK_KEYS.has(key)) {
42214
+ return;
42215
+ }
42216
+ const current = editor.s.current();
42217
+ if (!current) {
42218
+ return;
42219
+ }
42220
+ const 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);
42221
+ if (!cell) {
42222
+ return;
42223
+ }
42224
+ const { range } = editor.s;
42225
+ if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
42226
+ const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
42227
+ const 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, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
42228
+ ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
42229
+ : Boolean(elm), cell);
42230
+ if ((!isNextDirection &&
42231
+ (hasNext ||
42232
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
42233
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42234
+ range.startOffset !== 0))) ||
42235
+ (isNextDirection &&
42236
+ (hasNext ||
42237
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
42238
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42239
+ current.nodeValue &&
42240
+ range.startOffset !== current.nodeValue.length)))) {
42241
+ return;
42242
+ }
42243
+ }
42244
+ return cell;
42245
+ }
42144
42246
 
42145
42247
 
42146
42248
  /***/ }),
@@ -42153,9 +42255,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
42153
42255
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
42154
42256
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97369);
42155
42257
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
42156
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67447);
42157
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_4__);
42158
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
42258
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
42259
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67447);
42260
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
42159
42261
  /*!
42160
42262
  * Jodit Editor (https://xdsoft.net/jodit/)
42161
42263
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42167,12 +42269,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
42167
42269
 
42168
42270
 
42169
42271
 
42170
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.table = {
42272
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
42171
42273
  selectionCellStyle: 'border: 1px double #1e88e5 !important;',
42172
42274
  useExtraClassesOptions: false
42173
42275
  };
42174
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_4___default()));
42175
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.table = {
42276
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
42277
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
42176
42278
  data: {
42177
42279
  cols: 10,
42178
42280
  rows: 10,
@@ -42339,10 +42441,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
42339
42441
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35265);
42340
42442
  /* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20703);
42341
42443
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
42342
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
42343
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36339);
42344
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_5__);
42345
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
42444
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
42445
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
42446
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36339);
42447
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
42346
42448
  /*!
42347
42449
  * Jodit Editor (https://xdsoft.net/jodit/)
42348
42450
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42355,8 +42457,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
42355
42457
 
42356
42458
 
42357
42459
 
42358
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_5___default()));
42359
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.video = {
42460
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
42461
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
42360
42462
  popup: (editor, current, close) => {
42361
42463
  const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
42362
42464
  new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
@@ -42403,7 +42505,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
42403
42505
  formCode.onSubmit(data => {
42404
42506
  insertCode(data.code);
42405
42507
  });
42406
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs);
42508
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
42407
42509
  },
42408
42510
  tags: ['iframe'],
42409
42511
  tooltip: 'Insert youtube/vimeo video'
@@ -44188,16 +44290,16 @@ var __webpack_exports__ = {};
44188
44290
  __webpack_require__.r(__webpack_exports__);
44189
44291
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44190
44292
  /* harmony export */ CommitMode: function() { return /* binding */ CommitMode; },
44191
- /* harmony export */ Jodit: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_6__.x; }
44293
+ /* harmony export */ Jodit: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
44192
44294
  /* harmony export */ });
44193
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9823);
44194
- /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88222);
44295
+ /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46173);
44296
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9823);
44195
44297
  /* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17352);
44196
44298
  /* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22664);
44197
44299
  /* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37435);
44198
44300
  /* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79721);
44199
- /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46173);
44200
- /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(74470);
44301
+ /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74470);
44302
+ /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88222);
44201
44303
  /*!
44202
44304
  * Jodit Editor (https://xdsoft.net/jodit/)
44203
44305
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -44208,6 +44310,7 @@ __webpack_require__.r(__webpack_exports__);
44208
44310
  * @packageDocumentation
44209
44311
  * @module jodit
44210
44312
  */
44313
+ // eslint-disable-next-line simple-import-sort/imports
44211
44314
 
44212
44315
 
44213
44316
 
@@ -44220,7 +44323,7 @@ __webpack_require__.r(__webpack_exports__);
44220
44323
 
44221
44324
  // copy constants in Jodit
44222
44325
  Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach((key) => {
44223
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
44326
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
44224
44327
  });
44225
44328
  const esFilter = (key) => key !== '__esModule';
44226
44329
  // Icons
@@ -44235,32 +44338,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
44235
44338
  .forEach((key) => {
44236
44339
  // @ts-ignore
44237
44340
  const module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
44238
- const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isFunction */ .Tn)(module.prototype?.className)
44341
+ const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)(module.prototype?.className)
44239
44342
  ? module.prototype.className()
44240
44343
  : key;
44241
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .Kg)(name)) {
44344
+ if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
44242
44345
  console.warn('Module name must be a string', key);
44243
44346
  return;
44244
44347
  }
44245
44348
  // @ts-ignore
44246
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.modules[name] = module;
44349
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
44247
44350
  });
44248
44351
  // Decorators
44249
44352
  Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
44250
44353
  .filter(esFilter)
44251
44354
  .forEach((key) => {
44252
44355
  // @ts-ignore
44253
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
44356
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
44254
44357
  });
44255
44358
  ['Confirm', 'Alert', 'Prompt'].forEach((key) => {
44256
44359
  // @ts-ignore
44257
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
44360
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
44258
44361
  });
44259
44362
  // Languages
44260
- Object.keys(_languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)
44363
+ Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
44261
44364
  .filter(esFilter)
44262
44365
  .forEach((key) => {
44263
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A[key];
44366
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
44264
44367
  });
44265
44368
 
44266
44369
  class CommitMode {