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/es2015/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
  */
@@ -1736,7 +1736,7 @@ __webpack_require__.r(__webpack_exports__);
1736
1736
  * Released under MIT see LICENSE.txt in the project root for license information.
1737
1737
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1738
1738
  */
1739
- const APP_VERSION = "4.2.14";
1739
+ const APP_VERSION = "4.2.17";
1740
1740
  // prettier-ignore
1741
1741
  const ES = "es2015";
1742
1742
  const IS_ES_MODERN = true;
@@ -7540,9 +7540,9 @@ const completeUrl = (url) => {
7540
7540
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
7541
7541
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
7542
7542
  /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(35642);
7543
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36115);
7543
7544
  /* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49429);
7544
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84976);
7545
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
7545
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84976);
7546
7546
  /*!
7547
7547
  * Jodit Editor (https://xdsoft.net/jodit/)
7548
7548
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -7590,7 +7590,7 @@ function ConfigProto(options, proto, deep = 0) {
7590
7590
  if (Object.getPrototypeOf(options) !== Object.prototype) {
7591
7591
  return options;
7592
7592
  }
7593
- const def = jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions;
7593
+ const def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
7594
7594
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
7595
7595
  if (def.presets[options.preset] !== undefined) {
7596
7596
  const preset = def.presets[options.preset];
@@ -7620,7 +7620,7 @@ function ConfigProto(options, proto, deep = 0) {
7620
7620
  return newOpt;
7621
7621
  }
7622
7622
  function ConfigFlatten(obj) {
7623
- return (0,_utils__WEBPACK_IMPORTED_MODULE_0__/* .keys */ .HP)(obj, false).reduce((app, key) => {
7623
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce((app, key) => {
7624
7624
  app[key] = obj[key];
7625
7625
  return app;
7626
7626
  }, {});
@@ -9588,9 +9588,9 @@ Plugin.requires = [];
9588
9588
  /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26318);
9589
9589
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
9590
9590
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50156);
9591
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27337);
9591
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
9592
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27337);
9592
9593
  /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91672);
9593
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
9594
9594
  /*!
9595
9595
  * Jodit Editor (https://xdsoft.net/jodit/)
9596
9596
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9608,7 +9608,7 @@ class Ajax {
9608
9608
  className() {
9609
9609
  return 'Ajax';
9610
9610
  }
9611
- constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
9611
+ constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
9612
9612
  this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
9613
9613
  this.__isFulfilled = false;
9614
9614
  this.__activated = false;
@@ -9860,10 +9860,14 @@ class Response {
9860
9860
 
9861
9861
  "use strict";
9862
9862
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9863
- /* harmony export */ W: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__.W; }
9863
+ /* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
9864
+ /* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
9865
+ /* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
9864
9866
  /* harmony export */ });
9865
- /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5298);
9866
- /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83541);
9867
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
9868
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55186);
9869
+ /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5298);
9870
+ /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83541);
9867
9871
  /*!
9868
9872
  * Jodit Editor (https://xdsoft.net/jodit/)
9869
9873
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -9876,6 +9880,55 @@ class Response {
9876
9880
 
9877
9881
 
9878
9882
 
9883
+ /**
9884
+ * Check if the cursor is at the edge of the string
9885
+ * @private
9886
+ */
9887
+ function cursorInTheEdgeOfString(container, offset, start, end) {
9888
+ var _a;
9889
+ const text = ((_a = container.nodeValue) === null || _a === void 0 ? void 0 : _a.length) ? container.nodeValue : '';
9890
+ if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
9891
+ return true;
9892
+ }
9893
+ const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
9894
+ return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
9895
+ }
9896
+ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
9897
+ node = range.startContainer.childNodes[range.startOffset];
9898
+ if (!node) {
9899
+ node = range.startContainer.childNodes[range.startOffset - 1];
9900
+ rightMode = true;
9901
+ }
9902
+ if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
9903
+ // test Current method - Cursor in the left of some SPAN
9904
+ if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
9905
+ node = node.previousSibling;
9906
+ }
9907
+ else if (checkChild) {
9908
+ let current = child(node);
9909
+ while (current) {
9910
+ if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
9911
+ node = current;
9912
+ break;
9913
+ }
9914
+ current = child(current);
9915
+ }
9916
+ }
9917
+ }
9918
+ if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
9919
+ let leftChild = node, rightChild = node;
9920
+ do {
9921
+ leftChild = leftChild.firstChild;
9922
+ rightChild = rightChild.lastChild;
9923
+ } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
9924
+ if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
9925
+ node = leftChild;
9926
+ }
9927
+ }
9928
+ return { node, rightMode };
9929
+ }
9930
+
9931
+
9879
9932
  /***/ }),
9880
9933
 
9881
9934
  /***/ 5298:
@@ -9996,7 +10049,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
9996
10049
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9997
10050
  /* harmony export */ L: function() { return /* binding */ Selection; }
9998
10051
  /* harmony export */ });
9999
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
10052
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
10000
10053
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
10001
10054
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
10002
10055
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55186);
@@ -10006,6 +10059,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
10006
10059
  /* 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__);
10007
10060
  /* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(83541);
10008
10061
  /* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8757);
10062
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(46602);
10009
10063
  /*!
10010
10064
  * Jodit Editor (https://xdsoft.net/jodit/)
10011
10065
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10022,6 +10076,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
10022
10076
 
10023
10077
 
10024
10078
 
10079
+
10025
10080
  class Selection {
10026
10081
  constructor(jodit) {
10027
10082
  this.jodit = jodit;
@@ -10407,63 +10462,35 @@ class Selection {
10407
10462
  * Returns the current element under the cursor inside editor
10408
10463
  */
10409
10464
  current(checkChild = true) {
10410
- if (this.j.getRealMode() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
10411
- const sel = this.sel;
10412
- if (!sel || sel.rangeCount === 0) {
10413
- return null;
10414
- }
10415
- const range = sel.getRangeAt(0);
10416
- let node = range.startContainer, rightMode = false;
10417
- const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
10418
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
10419
- return node;
10420
- }
10421
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
10422
- node = range.startContainer.childNodes[range.startOffset];
10423
- if (!node) {
10424
- node =
10425
- range.startContainer.childNodes[range.startOffset - 1];
10426
- rightMode = true;
10427
- }
10428
- if (node && sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
10429
- // test Current method - Cursor in the left of some SPAN
10430
- if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node.previousSibling)) {
10431
- node = node.previousSibling;
10432
- }
10433
- else if (checkChild) {
10434
- let current = child(node);
10435
- while (current) {
10436
- if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
10437
- node = current;
10438
- break;
10439
- }
10440
- current = child(current);
10441
- }
10442
- }
10443
- }
10444
- if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
10445
- let leftChild = node, rightChild = node;
10446
- do {
10447
- leftChild = leftChild.firstChild;
10448
- rightChild = rightChild.lastChild;
10449
- } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
10450
- if (leftChild === rightChild &&
10451
- leftChild &&
10452
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
10453
- node = leftChild;
10454
- }
10455
- }
10456
- }
10457
- // check - cursor inside editor
10458
- if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
10459
- return node;
10460
- }
10465
+ if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
10466
+ return null;
10467
+ }
10468
+ const sel = this.sel;
10469
+ if (!sel || sel.rangeCount === 0) {
10470
+ return null;
10471
+ }
10472
+ const range = sel.getRangeAt(0);
10473
+ let node = range.startContainer;
10474
+ let rightMode = false;
10475
+ const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
10476
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
10477
+ return node;
10478
+ }
10479
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
10480
+ const ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
10481
+ node = ret.node;
10482
+ rightMode = ret.rightMode;
10483
+ }
10484
+ // check - cursor inside editor
10485
+ if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
10486
+ return node;
10461
10487
  }
10462
10488
  return null;
10463
10489
  }
10464
10490
  /**
10465
10491
  * Insert element in editor
10466
10492
  *
10493
+ * @param node - Node for insert
10467
10494
  * @param insertCursorAfter - After insert, cursor will move after element
10468
10495
  * @param fireChange - After insert, editor fire change event. You can prevent this behavior
10469
10496
  */
@@ -10525,6 +10552,7 @@ class Selection {
10525
10552
  * Inserts in the current cursor position some HTML snippet
10526
10553
  *
10527
10554
  * @param html - HTML The text to be inserted into the document
10555
+ * @param insertCursorAfter - After insert, cursor will move after element
10528
10556
  * @example
10529
10557
  * ```javascript
10530
10558
  * parent.s.insertHTML('<img src="image.png"/>');
@@ -10568,6 +10596,7 @@ class Selection {
10568
10596
  *
10569
10597
  * @param url - URL for image, or HTMLImageElement
10570
10598
  * @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
10599
+ * @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
10571
10600
  */
10572
10601
  insertImage(url, styles = null, defaultWidth = null) {
10573
10602
  const image = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .Kg)(url) ? this.j.createInside.element('img') : url;
@@ -10623,74 +10652,81 @@ class Selection {
10623
10652
  eachSelection(callback) {
10624
10653
  var _a;
10625
10654
  const sel = this.sel;
10626
- if (sel && sel.rangeCount) {
10627
- const range = sel.getRangeAt(0);
10628
- let root = range.commonAncestorContainer;
10629
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
10630
- root = root.parentElement;
10631
- }
10632
- const nodes = [], startOffset = range.startOffset, length = root.childNodes.length, elementOffset = startOffset < length ? startOffset : length - 1;
10633
- let start = range.startContainer === this.area
10634
- ? root.childNodes[elementOffset]
10635
- : range.startContainer, end = range.endContainer === this.area
10636
- ? root.childNodes[range.endOffset - 1]
10637
- : range.endContainer;
10638
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
10639
- start === range.startContainer &&
10640
- range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
10641
- start.nextSibling) {
10642
- start = start.nextSibling;
10643
- }
10644
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
10645
- end === range.endContainer &&
10646
- range.endOffset === 0 &&
10647
- end.previousSibling) {
10648
- end = end.previousSibling;
10649
- }
10650
- const checkElm = (node) => {
10651
- if (node &&
10652
- node !== root &&
10653
- !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
10654
- !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
10655
- nodes.push(node);
10656
- }
10657
- };
10658
- checkElm(start);
10659
- if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
10660
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
10661
- checkElm(node);
10662
- // checks parentElement as well because partial selections are not equal to entire element
10663
- return (node === end ||
10664
- (node && node.contains && node.contains(end)));
10665
- }, root, true, false);
10666
- }
10667
- const forEvery = (current) => {
10668
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
10669
- return;
10670
- }
10671
- if (current.nodeName.match(/^(UL|OL)$/)) {
10672
- return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
10655
+ if (!sel || !sel.rangeCount) {
10656
+ return;
10657
+ }
10658
+ const range = sel.getRangeAt(0);
10659
+ let root = range.commonAncestorContainer;
10660
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
10661
+ root = root.parentElement;
10662
+ }
10663
+ const nodes = [];
10664
+ const startOffset = range.startOffset;
10665
+ const length = root.childNodes.length;
10666
+ const elementOffset = startOffset < length ? startOffset : length - 1;
10667
+ let start = range.startContainer === this.area
10668
+ ? root.childNodes[elementOffset]
10669
+ : range.startContainer;
10670
+ let end = range.endContainer === this.area
10671
+ ? root.childNodes[range.endOffset - 1]
10672
+ : range.endContainer;
10673
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
10674
+ start === range.startContainer &&
10675
+ range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
10676
+ start.nextSibling) {
10677
+ start = start.nextSibling;
10678
+ }
10679
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
10680
+ end === range.endContainer &&
10681
+ range.endOffset === 0 &&
10682
+ end.previousSibling) {
10683
+ end = end.previousSibling;
10684
+ }
10685
+ const checkElm = (node) => {
10686
+ if (node &&
10687
+ node !== root &&
10688
+ !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
10689
+ !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
10690
+ nodes.push(node);
10691
+ }
10692
+ };
10693
+ checkElm(start);
10694
+ if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
10695
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
10696
+ checkElm(node);
10697
+ // checks parentElement as well because partial selections are not equal to entire element
10698
+ return (node === end ||
10699
+ (node && node.contains && node.contains(end)));
10700
+ }, root, true, false);
10701
+ }
10702
+ const forEvery = (current) => {
10703
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
10704
+ return;
10705
+ }
10706
+ if (current.nodeName.match(/^(UL|OL)$/)) {
10707
+ return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
10708
+ }
10709
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
10710
+ if (current.firstChild) {
10711
+ current = current.firstChild;
10673
10712
  }
10674
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
10675
- if (current.firstChild) {
10676
- current = current.firstChild;
10677
- }
10678
- else {
10679
- const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
10680
- current.appendChild(currentB);
10681
- current = currentB;
10682
- }
10713
+ else {
10714
+ const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
10715
+ current.appendChild(currentB);
10716
+ current = currentB;
10683
10717
  }
10684
- callback(current);
10685
- };
10686
- if (nodes.length === 0 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
10718
+ }
10719
+ callback(current);
10720
+ };
10721
+ if (nodes.length === 0) {
10722
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
10687
10723
  nodes.push(start);
10688
10724
  }
10689
- if (nodes.length === 0 && start.firstChild) {
10725
+ if (start.firstChild) {
10690
10726
  nodes.push(start.firstChild);
10691
10727
  }
10692
- nodes.forEach(forEvery);
10693
10728
  }
10729
+ nodes.forEach(forEvery);
10694
10730
  }
10695
10731
  /**
10696
10732
  * Checks if the cursor is at the end(start) block
@@ -10702,7 +10738,7 @@ class Selection {
10702
10738
  * @returns true - the cursor is at the end(start) block, null - cursor somewhere outside
10703
10739
  */
10704
10740
  cursorInTheEdge(start, parentBlock, fake = null) {
10705
- var _a, _b;
10741
+ var _a;
10706
10742
  const end = !start, range = (_a = this.sel) === null || _a === void 0 ? void 0 : _a.getRangeAt(0);
10707
10743
  fake !== null && fake !== void 0 ? fake : (fake = this.current(false));
10708
10744
  if (!range || !fake || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(parentBlock, fake, true)) {
@@ -10718,13 +10754,7 @@ class Selection {
10718
10754
  this.j.e.fire('isInvisibleForCursor', elm) === true));
10719
10755
  // check right offset
10720
10756
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
10721
- const text = ((_b = container.nodeValue) === null || _b === void 0 ? void 0 : _b.length) ? container.nodeValue : '';
10722
- if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
10723
- return false;
10724
- }
10725
- const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
10726
- if (start &&
10727
- ((inv && inv[0].length < offset) || (!inv && offset > 0))) {
10757
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
10728
10758
  return false;
10729
10759
  }
10730
10760
  }
@@ -10813,6 +10843,7 @@ class Selection {
10813
10843
  }
10814
10844
  /**
10815
10845
  * Set cursor in the node
10846
+ * @param node - Node element
10816
10847
  * @param inStart - set cursor in start of element
10817
10848
  */
10818
10849
  setCursorIn(node, inStart = false) {
@@ -10873,6 +10904,7 @@ class Selection {
10873
10904
  }
10874
10905
  /**
10875
10906
  * Select node
10907
+ * @param node - Node element
10876
10908
  * @param inward - select all inside
10877
10909
  */
10878
10910
  select(node, inward = false) {
@@ -11147,19 +11179,19 @@ class Selection {
11147
11179
  return this;
11148
11180
  }
11149
11181
  }
11150
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11182
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11151
11183
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11152
11184
  ], Selection.prototype, "createRange", null);
11153
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11185
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11154
11186
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11155
11187
  ], Selection.prototype, "focus", null);
11156
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11188
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11157
11189
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11158
11190
  ], Selection.prototype, "setCursorAfter", null);
11159
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11191
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11160
11192
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11161
11193
  ], Selection.prototype, "setCursorBefore", null);
11162
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11194
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11163
11195
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11164
11196
  ], Selection.prototype, "setCursorIn", null);
11165
11197
 
@@ -14987,7 +15019,6 @@ function getControlType(button, controls) {
14987
15019
  * @private
14988
15020
  */
14989
15021
  function findControlType(path, controls) {
14990
- var _a;
14991
15022
  // eslint-disable-next-line prefer-const
14992
15023
  let [namespaceOrKey, key] = path.split(/\./);
14993
15024
  let store = controls;
@@ -14999,14 +15030,22 @@ function findControlType(path, controls) {
14999
15030
  else {
15000
15031
  key = namespaceOrKey;
15001
15032
  }
15002
- const list = (_a = store[key]) === null || _a === void 0 ? void 0 : _a.list;
15033
+ // const list = store[key]?.list;
15003
15034
  return store[key]
15004
- ? Object.assign(Object.assign({ name: key }, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])), { 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 }) : undefined;
15035
+ ? Object.assign({ name: key }, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
15036
+ // list: isArray(list)
15037
+ // ? (<Array<string>>list).reduce(
15038
+ // (
15039
+ // acc: IDictionary<string | number>,
15040
+ // k: string | number
15041
+ // ) => {
15042
+ // acc[String(k)] = k;
15043
+ // return acc;
15044
+ // },
15045
+ // {}
15046
+ // )
15047
+ // : list
15048
+ ) : undefined;
15010
15049
  }
15011
15050
 
15012
15051
 
@@ -15021,8 +15060,8 @@ function findControlType(path, controls) {
15021
15060
  /* harmony export */ });
15022
15061
  /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37923);
15023
15062
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97369);
15024
- /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57023);
15025
- /* 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);
15026
15065
  /*!
15027
15066
  * Jodit Editor (https://xdsoft.net/jodit/)
15028
15067
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -15042,7 +15081,7 @@ function getStrongControlTypes(items, controls) {
15042
15081
  const value = items[key] || {};
15043
15082
  return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
15044
15083
  });
15045
- 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));
15046
15085
  }
15047
15086
 
15048
15087
 
@@ -16138,8 +16177,8 @@ View.defaultOptions = {
16138
16177
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
16139
16178
  /* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53883);
16140
16179
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58597);
16141
- /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(37435);
16142
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36115);
16180
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
16181
+ /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37435);
16143
16182
  /*!
16144
16183
  * Jodit Editor (https://xdsoft.net/jodit/)
16145
16184
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -16158,7 +16197,7 @@ var Jodit_1;
16158
16197
 
16159
16198
  const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
16160
16199
  const __defaultClassesKey = 'data-jodit-default-classes';
16161
- let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_6__.ViewWithToolbar {
16200
+ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar {
16162
16201
  /** @override */
16163
16202
  className() {
16164
16203
  return 'Jodit';
@@ -16205,7 +16244,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16205
16244
  get defaultTimeout() {
16206
16245
  return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
16207
16246
  ? this.o.defaultTimeout
16208
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.defaultTimeout;
16247
+ : jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
16209
16248
  }
16210
16249
  /**
16211
16250
  * Method wrap usual Has Object in Object helper for prevent deep object merging in options*
@@ -16231,10 +16270,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16231
16270
  * Default settings
16232
16271
  */
16233
16272
  static get defaultOptions() {
16234
- return jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions;
16273
+ return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
16235
16274
  }
16236
16275
  get createInside() {
16237
- return new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Create(() => this.ed, this.o.createAttributes);
16276
+ return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(() => this.ed, this.o.createAttributes);
16238
16277
  }
16239
16278
  __setPlaceField(field, value) {
16240
16279
  if (!this.currentPlace) {
@@ -16782,8 +16821,8 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16782
16821
  const active = this.od.activeElement;
16783
16822
  if (active &&
16784
16823
  (active === this.iframe ||
16785
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.editor, active) ||
16786
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.toolbar.container, active))) {
16824
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
16825
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
16787
16826
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
16788
16827
  }
16789
16828
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
@@ -16935,7 +16974,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16935
16974
  }
16936
16975
  /** @override **/
16937
16976
  initOptions(options) {
16938
- this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions));
16977
+ this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
16939
16978
  }
16940
16979
  /** @override **/
16941
16980
  initOwners() {
@@ -16980,7 +17019,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16980
17019
  this.destruct();
16981
17020
  throw e;
16982
17021
  }
16983
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeInit);
17022
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
16984
17023
  this.id =
16985
17024
  (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') ||
16986
17025
  new Date().getTime().toString();
@@ -16992,7 +17031,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16992
17031
  }
16993
17032
  });
16994
17033
  this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
16995
- this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Selection(this);
17034
+ this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(this);
16996
17035
  const beforeInitHookResult = this.beforeInitHook();
16997
17036
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
16998
17037
  if (this.isInDestruct) {
@@ -17016,7 +17055,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17016
17055
  this.e.fire('afterInit', this);
17017
17056
  }
17018
17057
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
17019
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.ready);
17058
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
17020
17059
  this.e.fire('afterConstructor', this);
17021
17060
  };
17022
17061
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
@@ -17032,7 +17071,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17032
17071
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr) => {
17033
17072
  const name = attr.name;
17034
17073
  let value = attr.value;
17035
- if (jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions[name] !== undefined &&
17074
+ if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
17036
17075
  (!options || options[name] === undefined)) {
17037
17076
  if (['readonly', 'disabled'].indexOf(name) !== -1) {
17038
17077
  value = value === '' || value === 'true';
@@ -17100,11 +17139,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17100
17139
  element,
17101
17140
  container,
17102
17141
  workplace,
17103
- statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.StatusBar(this, container),
17142
+ statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
17104
17143
  options: this.isReady
17105
- ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions)
17144
+ ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
17106
17145
  : this.options,
17107
- history: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.History(this),
17146
+ history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
17108
17147
  editorWindow: this.ow
17109
17148
  };
17110
17149
  this.__elementToPlace.set(editor, currentPlace);
@@ -17195,7 +17234,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17195
17234
  return;
17196
17235
  }
17197
17236
  if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
17198
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(defaultEditorArea);
17237
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
17199
17238
  }
17200
17239
  addClassNames(this.o.editorClassName, this.editor);
17201
17240
  if (this.o.style) {
@@ -17282,7 +17321,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17282
17321
  if (this.isInDestruct) {
17283
17322
  return;
17284
17323
  }
17285
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeDestruct);
17324
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
17286
17325
  this.__elementToPlace.clear();
17287
17326
  this.storage.clear();
17288
17327
  this.buffer.clear();
@@ -17323,17 +17362,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17323
17362
  this.e.off(container);
17324
17363
  this.e.off(element);
17325
17364
  this.e.off(editor);
17326
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(workplace);
17327
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(editor);
17365
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
17366
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
17328
17367
  if (container !== element) {
17329
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(container);
17368
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
17330
17369
  }
17331
17370
  Object.defineProperty(element, 'component', {
17332
17371
  enumerable: false,
17333
17372
  configurable: true,
17334
17373
  value: null
17335
17374
  });
17336
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(iframe);
17375
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
17337
17376
  // inline mode
17338
17377
  if (container === element) {
17339
17378
  element.innerHTML = buffer;
@@ -17355,7 +17394,7 @@ Jodit.constants = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__;
17355
17394
  Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
17356
17395
  Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
17357
17396
  Jodit.core = {
17358
- Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Plugin
17397
+ Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
17359
17398
  };
17360
17399
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
17361
17400
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
@@ -19626,16 +19665,16 @@ function loadTree(fb) {
19626
19665
  /* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63915);
19627
19666
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58597);
19628
19667
  /* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14961);
19629
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70265);
19668
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(36115);
19669
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70265);
19630
19670
  /* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(9979);
19631
- /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31859);
19632
- /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62994);
19633
- /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(18043);
19634
- /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(80004);
19635
- /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(75889);
19636
- /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(83797);
19637
- /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10274);
19638
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(36115);
19671
+ /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(31859);
19672
+ /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62994);
19673
+ /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(18043);
19674
+ /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80004);
19675
+ /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(75889);
19676
+ /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(83797);
19677
+ /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(10274);
19639
19678
  /*!
19640
19679
  * Jodit Editor (https://xdsoft.net/jodit/)
19641
19680
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -19669,7 +19708,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19669
19708
  return 'FileBrowser';
19670
19709
  }
19671
19710
  get dataProvider() {
19672
- return (0,_factories__WEBPACK_IMPORTED_MODULE_15__/* .makeDataProvider */ .S)(this, this.options);
19711
+ return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
19673
19712
  }
19674
19713
  // eslint-disable-next-line no-unused-vars
19675
19714
  onSelect(callback) {
@@ -19785,7 +19824,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19785
19824
  this.__updateToolbarButtons();
19786
19825
  this._dialog.open(this.browser, header);
19787
19826
  this.e.fire('sort.filebrowser', this.state.sortBy);
19788
- (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__/* .loadTree */ .r)(this)
19827
+ (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(this)
19789
19828
  .then(resolve, reject)
19790
19829
  .finally(() => {
19791
19830
  var _a;
@@ -19822,7 +19861,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19822
19861
  }
19823
19862
  initUploader(editor) {
19824
19863
  var _a;
19825
- const self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.uploader);
19864
+ const self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
19826
19865
  const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
19827
19866
  self.uploader = self.getInstance('Uploader', uploaderOptions);
19828
19867
  self.uploader
@@ -19842,11 +19881,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19842
19881
  super(options);
19843
19882
  this.browser = this.c.div(this.componentName);
19844
19883
  this.status_line = this.c.div(this.getFullElName('status'));
19845
- this.tree = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserTree */ .V(this);
19846
- this.files = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserFiles */ .Q(this);
19884
+ this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(this);
19885
+ this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(this);
19847
19886
  this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
19848
19887
  currentPath: '',
19849
- currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_14__/* .DEFAULT_SOURCE_NAME */ .o,
19888
+ currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
19850
19889
  currentBaseUrl: '',
19851
19890
  activeElements: [],
19852
19891
  elements: [],
@@ -19876,7 +19915,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19876
19915
  this.__prevButtons = [];
19877
19916
  this.attachEvents(options);
19878
19917
  const self = this;
19879
- self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.filebrowser);
19918
+ self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
19880
19919
  self.browser.component = this;
19881
19920
  self.container = self.browser;
19882
19921
  if (self.o.showFoldersPanel) {
@@ -19884,9 +19923,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
19884
19923
  }
19885
19924
  self.browser.appendChild(self.files.container);
19886
19925
  self.browser.appendChild(self.status_line);
19887
- _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__/* .selfListeners */ .c.call(self);
19888
- _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__/* .nativeListeners */ .nW.call(self);
19889
- _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__/* .stateListeners */ .r.call(self);
19926
+ _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
19927
+ _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
19928
+ _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
19890
19929
  const keys = [
19891
19930
  'getLocalFileByUrl',
19892
19931
  'crop',
@@ -20558,10 +20597,10 @@ class Command {
20558
20597
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
20559
20598
  /* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
20560
20599
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22664);
20600
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
20561
20601
  /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84345);
20562
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58770);
20602
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58770);
20563
20603
  /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66180);
20564
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
20565
20604
  /*!
20566
20605
  * Jodit Editor (https://xdsoft.net/jodit/)
20567
20606
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -20574,7 +20613,7 @@ class Command {
20574
20613
 
20575
20614
 
20576
20615
 
20577
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.history = {
20616
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
20578
20617
  enable: true,
20579
20618
  maxHistoryLength: Infinity,
20580
20619
  timeout: 1000
@@ -20625,7 +20664,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
20625
20664
  set startValue(value) {
20626
20665
  this.__startValue = value;
20627
20666
  }
20628
- 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)) {
20667
+ 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)) {
20629
20668
  super(editor);
20630
20669
  this.updateTick = 0;
20631
20670
  this.__stack = stack;
@@ -20688,7 +20727,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
20688
20727
  */
20689
20728
  updateStack(replace = false) {
20690
20729
  const newValue = this.snapshot.make();
20691
- if (!_snapshot__WEBPACK_IMPORTED_MODULE_2__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
20730
+ if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
20692
20731
  const newCommand = new _command__WEBPACK_IMPORTED_MODULE_5__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
20693
20732
  if (replace) {
20694
20733
  const command = this.__stack.current();
@@ -21022,11 +21061,11 @@ class Stack {
21022
21061
 
21023
21062
  "use strict";
21024
21063
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
21025
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(928);
21026
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__);
21027
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31230);
21028
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__);
21029
- /* 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__);
21030
21069
  /*!
21031
21070
  * Jodit Editor (https://xdsoft.net/jodit/)
21032
21071
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21036,7 +21075,7 @@ class Stack {
21036
21075
 
21037
21076
 
21038
21077
 
21039
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor = {
21078
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
21040
21079
  min_width: 20,
21041
21080
  min_height: 20,
21042
21081
  closeAfterSave: false,
@@ -21051,7 +21090,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
21051
21090
  cropDefaultWidth: '70%',
21052
21091
  cropDefaultHeight: '70%'
21053
21092
  };
21054
- 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()));
21055
21094
 
21056
21095
 
21057
21096
  /***/ }),
@@ -21070,9 +21109,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
21070
21109
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71842);
21071
21110
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65147);
21072
21111
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35265);
21073
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93027);
21074
- /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24863);
21075
- /* 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);
21076
21115
  /*!
21077
21116
  * Jodit Editor (https://xdsoft.net/jodit/)
21078
21117
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21532,7 +21571,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
21532
21571
  this.options =
21533
21572
  editor && editor.o && editor.o.imageeditor
21534
21573
  ? editor.o.imageeditor
21535
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.imageeditor;
21574
+ : jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
21536
21575
  const o = this.options;
21537
21576
  this.resizeUseRatio = o.resizeUseRatio;
21538
21577
  this.cropUseRatio = o.cropUseRatio;
@@ -21542,7 +21581,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
21542
21581
  saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(this.j, 'save', 'Save as ...')
21543
21582
  };
21544
21583
  this.activeTab = o.resize ? TABS.resize : TABS.crop;
21545
- 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);
21546
21585
  const { resizeBox, cropBox } = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(this.editor);
21547
21586
  this.resize_box = resizeBox;
21548
21587
  this.crop_box = cropBox;
@@ -22294,6 +22333,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22294
22333
  }
22295
22334
  /**
22296
22335
  * Generate formal table martix columns*rows
22336
+ * @param table - Working table
22297
22337
  * @param callback - if return false cycle break
22298
22338
  */
22299
22339
  formalMatrix(table, callback) {
@@ -22363,7 +22403,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22363
22403
  * @param line - Insert a new line after/before this
22364
22404
  * line contains the selected cell
22365
22405
  * @param after - Insert a new line after line contains the selected cell
22366
- * @param create - Instance of Create class
22367
22406
  */
22368
22407
  appendRow(table, line, after) {
22369
22408
  return Table.__appendRow(table, line, after, this.j.createInside);
@@ -22532,13 +22571,36 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22532
22571
  return Table.__getSelectedBound(table, selectedCells);
22533
22572
  }
22534
22573
  static __normalizeTable(table) {
22535
- let i, j, min, not;
22536
22574
  const __marked = [], box = Table.__formalMatrix(table);
22537
- // remove extra colspans
22538
- for (j = 0; j < box[0].length; j += 1) {
22539
- min = 1000000;
22540
- not = false;
22541
- for (i = 0; i < box.length; i += 1) {
22575
+ Table.__removeExtraColspans(box, __marked);
22576
+ Table.__removeExtraRowspans(box, __marked);
22577
+ // remove rowspans and colspans equal 1 and empty class
22578
+ for (let i = 0; i < box.length; i += 1) {
22579
+ for (let j = 0; j < box[i].length; j += 1) {
22580
+ if (box[i][j] === undefined) {
22581
+ continue; // broken table
22582
+ }
22583
+ if (box[i][j].hasAttribute('rowspan') &&
22584
+ box[i][j].rowSpan === 1) {
22585
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
22586
+ }
22587
+ if (box[i][j].hasAttribute('colspan') &&
22588
+ box[i][j].colSpan === 1) {
22589
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
22590
+ }
22591
+ if (box[i][j].hasAttribute('class') &&
22592
+ !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
22593
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
22594
+ }
22595
+ }
22596
+ }
22597
+ Table.__unmark(__marked);
22598
+ }
22599
+ static __removeExtraColspans(box, __marked) {
22600
+ for (let j = 0; j < box[0].length; j += 1) {
22601
+ let min = 1000000;
22602
+ let not = false;
22603
+ for (let i = 0; i < box.length; i += 1) {
22542
22604
  if (box[i][j] === undefined) {
22543
22605
  continue; // broken table
22544
22606
  }
@@ -22549,7 +22611,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22549
22611
  min = Math.min(min, box[i][j].colSpan);
22550
22612
  }
22551
22613
  if (!not) {
22552
- for (i = 0; i < box.length; i += 1) {
22614
+ for (let i = 0; i < box.length; i += 1) {
22553
22615
  if (box[i][j] === undefined) {
22554
22616
  continue; // broken table
22555
22617
  }
@@ -22557,10 +22619,13 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22557
22619
  }
22558
22620
  }
22559
22621
  }
22560
- // remove extra rowspans
22622
+ }
22623
+ static __removeExtraRowspans(box, marked) {
22624
+ let i = 0;
22625
+ let j = 0;
22561
22626
  for (i = 0; i < box.length; i += 1) {
22562
- min = 1000000;
22563
- not = false;
22627
+ let min = 1000000;
22628
+ let not = false;
22564
22629
  for (j = 0; j < box[i].length; j += 1) {
22565
22630
  if (box[i][j] === undefined) {
22566
22631
  continue; // broken table
@@ -22576,31 +22641,10 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22576
22641
  if (box[i][j] === undefined) {
22577
22642
  continue; // broken table
22578
22643
  }
22579
- Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, __marked);
22580
- }
22581
- }
22582
- }
22583
- // remove rowspans and colspans equal 1 and empty class
22584
- for (i = 0; i < box.length; i += 1) {
22585
- for (j = 0; j < box[i].length; j += 1) {
22586
- if (box[i][j] === undefined) {
22587
- continue; // broken table
22588
- }
22589
- if (box[i][j].hasAttribute('rowspan') &&
22590
- box[i][j].rowSpan === 1) {
22591
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
22592
- }
22593
- if (box[i][j].hasAttribute('colspan') &&
22594
- box[i][j].colSpan === 1) {
22595
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
22596
- }
22597
- if (box[i][j].hasAttribute('class') &&
22598
- !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
22599
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
22644
+ Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
22600
22645
  }
22601
22646
  }
22602
22647
  }
22603
- Table.__unmark(__marked);
22604
22648
  }
22605
22649
  /**
22606
22650
  * Try recalculate all coluns and rows after change
@@ -22960,7 +23004,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
22960
23004
  }
22961
23005
  createContainer() {
22962
23006
  const cn = this.componentName;
22963
- const container = this.j.c.span(cn), button = super.createContainer();
23007
+ const container = this.j.c.span(cn);
23008
+ const button = super.createContainer();
22964
23009
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
22965
23010
  button.classList.remove(cn);
22966
23011
  button.classList.add(cn + '__button');
@@ -23342,8 +23387,9 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
23342
23387
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23343
23388
  /* harmony export */ q: function() { return /* binding */ ToolbarSelect; }
23344
23389
  /* harmony export */ });
23345
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
23390
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
23346
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);
23347
23393
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98253);
23348
23394
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3258);
23349
23395
  /*!
@@ -23356,6 +23402,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
23356
23402
 
23357
23403
 
23358
23404
 
23405
+
23359
23406
  let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .I {
23360
23407
  className() {
23361
23408
  return 'ToolbarSelect';
@@ -23374,13 +23421,13 @@ let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE
23374
23421
  const keys = Object.keys(list);
23375
23422
  key = keys[0];
23376
23423
  }
23377
- const text = (list[key.toString()] || key).toString();
23424
+ const text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
23378
23425
  this.state.text =
23379
23426
  (_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
23380
23427
  }
23381
23428
  }
23382
23429
  };
23383
- ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
23430
+ ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
23384
23431
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
23385
23432
  ], ToolbarSelect);
23386
23433
 
@@ -24017,34 +24064,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24017
24064
  }
24018
24065
  const promises = [];
24019
24066
  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
- }
24067
+ readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
24048
24068
  }
24049
24069
  fileList = fileList.filter(a => a);
24050
24070
  if (fileList.length) {
@@ -24055,7 +24075,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24055
24075
  for (let i = 0; i < fileList.length; i += 1) {
24056
24076
  file = fileList[i];
24057
24077
  if (file) {
24058
- const hasRealExtension = /\.[\d\w]+$/.test(file.name);
24078
+ const hasRealExtension = /\.\w+$/.test(file.name);
24059
24079
  const mime = file.type.match(/\/([a-z0-9]+)/i);
24060
24080
  const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
24061
24081
  let newName = fileList[i].name ||
@@ -24104,6 +24124,37 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24104
24124
  }
24105
24125
  return Promise.all(promises);
24106
24126
  }
24127
+ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
24128
+ let file, i;
24129
+ for (i = 0; i < fileList.length; i += 1) {
24130
+ file = fileList[i];
24131
+ if (file && file.type) {
24132
+ const mime = file.type.match(/\/([a-z0-9]+)/i);
24133
+ const extension = mime[1] ? mime[1].toLowerCase() : '';
24134
+ if (!imagesExtensions.includes(extension)) {
24135
+ continue;
24136
+ }
24137
+ const reader = new FileReader();
24138
+ promises.push(uploader.j.async.promise((resolve, reject) => {
24139
+ reader.onerror = reject;
24140
+ reader.onloadend = () => {
24141
+ const resp = {
24142
+ baseurl: '',
24143
+ files: [reader.result],
24144
+ isImages: [true]
24145
+ };
24146
+ const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
24147
+ ? handlerSuccess
24148
+ : defaultHandlerSuccess;
24149
+ handler.call(uploader, resp);
24150
+ resolve(resp);
24151
+ };
24152
+ reader.readAsDataURL(file);
24153
+ }));
24154
+ fileList[i] = null;
24155
+ }
24156
+ }
24157
+ }
24107
24158
 
24108
24159
 
24109
24160
  /***/ }),
@@ -24209,9 +24260,9 @@ function send(uploader, data) {
24209
24260
  /* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
24210
24261
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
24211
24262
  /* 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);
24263
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
24264
+ /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74340);
24265
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77334);
24215
24266
  /*!
24216
24267
  * Jodit Editor (https://xdsoft.net/jodit/)
24217
24268
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -24283,14 +24334,14 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24283
24334
  }
24284
24335
  };
24285
24336
  // 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);
24337
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
24338
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
24288
24339
  return false;
24289
24340
  }
24290
24341
  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);
24342
+ return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
24292
24343
  }
24293
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(cData)) {
24344
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
24294
24345
  const { items } = cData;
24295
24346
  for (i = 0; i < items.length; i += 1) {
24296
24347
  if (items[i].kind === 'file' &&
@@ -24301,7 +24352,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24301
24352
  extension = mime[1]
24302
24353
  ? mime[1].toLowerCase()
24303
24354
  : '';
24304
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
24355
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
24305
24356
  }
24306
24357
  e.preventDefault();
24307
24358
  break;
@@ -24324,30 +24375,30 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24324
24375
  e.preventDefault();
24325
24376
  })
24326
24377
  .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)) {
24378
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
24379
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
24329
24380
  form.classList.add('jodit_drag_hover');
24330
24381
  event.preventDefault();
24331
24382
  }
24332
24383
  })
24333
24384
  .on(form, 'dragend dragleave', (event) => {
24334
24385
  form.classList.remove('jodit_drag_hover');
24335
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
24386
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
24336
24387
  event.preventDefault();
24337
24388
  }
24338
24389
  })
24339
24390
  .on(form, 'drop', (event) => {
24340
24391
  form.classList.remove('jodit_drag_hover');
24341
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
24392
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
24342
24393
  event.preventDefault();
24343
24394
  event.stopImmediatePropagation();
24344
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
24395
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
24345
24396
  }
24346
24397
  });
24347
24398
  const inputFile = form.querySelector('input[type=file]');
24348
24399
  if (inputFile) {
24349
24400
  self.j.e.on(inputFile, 'change', () => {
24350
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
24401
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
24351
24402
  .then(() => {
24352
24403
  inputFile.value = '';
24353
24404
  if (!/safari/i.test(navigator.userAgent)) {
@@ -24367,7 +24418,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24367
24418
  const handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
24368
24419
  ? handlerError
24369
24420
  : o.defaultHandlerError;
24370
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .send */ .tN)(uploader, {
24421
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
24371
24422
  action: 'fileUploadRemote',
24372
24423
  url
24373
24424
  })
@@ -24387,11 +24438,11 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
24387
24438
  super(editor);
24388
24439
  this.path = '';
24389
24440
  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 : {}));
24441
+ 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
24442
  }
24392
24443
  destruct() {
24393
24444
  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);
24445
+ const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
24395
24446
  if (instances) {
24396
24447
  instances.forEach(ajax => {
24397
24448
  try {
@@ -24820,9 +24871,9 @@ const TabsWidget = (jodit, tabs, state) => {
24820
24871
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
24821
24872
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
24822
24873
  /* 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);
24874
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
24875
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17995);
24876
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
24826
24877
  /*!
24827
24878
  * Jodit Editor (https://xdsoft.net/jodit/)
24828
24879
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -24836,7 +24887,7 @@ const TabsWidget = (jodit, tabs, state) => {
24836
24887
 
24837
24888
 
24838
24889
 
24839
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.about = {
24890
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
24840
24891
  exec: (editor) => {
24841
24892
  const dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
24842
24893
  dialog
@@ -24872,7 +24923,7 @@ function about(editor) {
24872
24923
  });
24873
24924
  }
24874
24925
  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()));
24926
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
24876
24927
 
24877
24928
 
24878
24929
  /***/ }),
@@ -25115,9 +25166,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
25115
25166
 
25116
25167
  "use strict";
25117
25168
  /* 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);
25169
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
25170
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86634);
25171
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
25121
25172
  /*!
25122
25173
  * Jodit Editor (https://xdsoft.net/jodit/)
25123
25174
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25126,9 +25177,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
25126
25177
 
25127
25178
 
25128
25179
 
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 = [
25180
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
25181
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
25182
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
25132
25183
  'table',
25133
25184
  'iframe',
25134
25185
  'img',
@@ -25136,8 +25187,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
25136
25187
  'pre',
25137
25188
  'jodit'
25138
25189
  ];
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()));
25190
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
25191
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
25141
25192
 
25142
25193
 
25143
25194
  /***/ }),
@@ -25276,11 +25327,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
25276
25327
 
25277
25328
  "use strict";
25278
25329
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
25279
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91115);
25280
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__);
25281
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1916);
25282
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__);
25283
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
25330
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
25331
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91115);
25332
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
25333
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1916);
25334
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
25284
25335
  /*!
25285
25336
  * Jodit Editor (https://xdsoft.net/jodit/)
25286
25337
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25321,10 +25372,10 @@ const aiAssistantDefaults = {
25321
25372
  aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
25322
25373
  aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
25323
25374
  };
25324
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
25325
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default()));
25326
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default()));
25327
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-commands'] = {
25375
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
25376
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
25377
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
25378
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
25328
25379
  isDisabled(editor) {
25329
25380
  return !editor.o.aiAssistant.aiAssistantCallback;
25330
25381
  },
@@ -25362,7 +25413,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
25362
25413
  editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
25363
25414
  }
25364
25415
  };
25365
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-assistant'] = {
25416
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
25366
25417
  isDisabled(editor) {
25367
25418
  return !editor.o.aiAssistant.aiAssistantCallback;
25368
25419
  },
@@ -25723,7 +25774,7 @@ class backspace extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
25723
25774
  if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
25724
25775
  return false;
25725
25776
  }
25726
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
25777
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
25727
25778
  if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some((func) => {
25728
25779
  if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .T)(func) &&
25729
25780
  func(jodit, fakeNode, backspace, mode)) {
@@ -25982,22 +26033,15 @@ function checkNotCollapsed(jodit) {
25982
26033
  * @private
25983
26034
  */
25984
26035
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
25985
- var _a, _b, _c;
26036
+ var _a, _b;
25986
26037
  const step = backspace ? -1 : 1;
25987
26038
  const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
25988
- let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace), removeNeighbor = null;
25989
- let charRemoved = false, removed;
25990
- const getNextInlineSibling = (sibling) => {
25991
- let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
25992
- if (!nextSibling &&
25993
- sibling.parentNode &&
25994
- sibling.parentNode !== jodit.editor) {
25995
- nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
25996
- }
25997
- return nextSibling;
25998
- };
26039
+ let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
26040
+ let removeNeighbor = null;
26041
+ let charRemoved = false;
26042
+ let removed;
25999
26043
  if (!sibling) {
26000
- sibling = getNextInlineSibling(fakeNode);
26044
+ sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
26001
26045
  }
26002
26046
  while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
26003
26047
  while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
@@ -26007,57 +26051,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26007
26051
  break;
26008
26052
  }
26009
26053
  if ((_a = sibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) {
26010
- // For Unicode escapes
26011
- let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
26012
- const length = value.length;
26013
- let index = backspace ? length - 1 : 0;
26014
- if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26015
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26016
- index += step;
26017
- }
26018
- }
26019
- removed = value[index];
26020
- if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26021
- index += step;
26022
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26023
- index += step;
26024
- }
26025
- index += backspace ? 1 : -1;
26054
+ removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
26055
+ if (!sibling.nodeValue.length &&
26056
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
26057
+ sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
26026
26058
  }
26027
- if (backspace && index < 0) {
26028
- value = [];
26029
- }
26030
- else {
26031
- value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
26032
- }
26033
- if (!anotherSibling ||
26034
- !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
26035
- (!backspace ? / $/ : /^ /).test((_b = anotherSibling.nodeValue) !== null && _b !== void 0 ? _b : '') ||
26036
- !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
26037
- for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
26038
- if (value[i] === ' ') {
26039
- value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
26040
- }
26041
- else {
26042
- break;
26043
- }
26044
- }
26045
- }
26046
- sibling.nodeValue = value.join('');
26047
26059
  }
26048
- if (!((_c = sibling.nodeValue) === null || _c === void 0 ? void 0 : _c.length)) {
26060
+ if (!((_b = sibling.nodeValue) === null || _b === void 0 ? void 0 : _b.length)) {
26049
26061
  removeNeighbor = sibling;
26050
26062
  }
26051
26063
  if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26064
+ checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
26052
26065
  charRemoved = true;
26053
- (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);
26054
- if (mode === 'sentence' ||
26055
- (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
26056
- checkRemoveChar(jodit, fakeNode, backspace, mode);
26057
- }
26058
26066
  break;
26059
26067
  }
26060
- const nextSibling = getNextInlineSibling(sibling);
26068
+ const nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
26061
26069
  if (removeNeighbor) {
26062
26070
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
26063
26071
  removeNeighbor = null;
@@ -26079,6 +26087,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26079
26087
  }
26080
26088
  return charRemoved;
26081
26089
  }
26090
+ function getNextInlineSibling(sibling, backspace, root) {
26091
+ let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
26092
+ if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
26093
+ nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
26094
+ }
26095
+ return nextSibling;
26096
+ }
26082
26097
  /**
26083
26098
  * Helper removes all empty inline parents
26084
26099
  */
@@ -26103,6 +26118,57 @@ function addBRInsideEmptyBlock(jodit, node) {
26103
26118
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
26104
26119
  }
26105
26120
  }
26121
+ function tryRemoveChar(sibling, backspace, step, anotherSibling) {
26122
+ // For Unicode escapes
26123
+ let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
26124
+ const length = value.length;
26125
+ let index = backspace ? length - 1 : 0;
26126
+ if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26127
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26128
+ index += step;
26129
+ }
26130
+ }
26131
+ const removed = value[index];
26132
+ if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26133
+ index += step;
26134
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26135
+ index += step;
26136
+ }
26137
+ index += backspace ? 1 : -1;
26138
+ }
26139
+ if (backspace && index < 0) {
26140
+ value = [];
26141
+ }
26142
+ else {
26143
+ value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
26144
+ }
26145
+ replaceSpaceOnNBSP(anotherSibling, backspace, value);
26146
+ sibling.nodeValue = value.join('');
26147
+ return removed;
26148
+ }
26149
+ function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
26150
+ var _a;
26151
+ if (!anotherSibling ||
26152
+ !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
26153
+ (!backspace ? / $/ : /^ /).test((_a = anotherSibling.nodeValue) !== null && _a !== void 0 ? _a : '') ||
26154
+ !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
26155
+ for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
26156
+ if (value[i] === ' ') {
26157
+ value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
26158
+ }
26159
+ else {
26160
+ break;
26161
+ }
26162
+ }
26163
+ }
26164
+ }
26165
+ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
26166
+ (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);
26167
+ if (mode === 'sentence' ||
26168
+ (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
26169
+ checkRemoveChar(jodit, fakeNode, backspace, mode);
26170
+ }
26171
+ }
26106
26172
 
26107
26173
 
26108
26174
  /***/ }),
@@ -26140,7 +26206,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
26140
26206
  !jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
26141
26207
  (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);
26142
26208
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
26143
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
26209
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
26144
26210
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
26145
26211
  return true;
26146
26212
  }
@@ -26544,20 +26610,20 @@ function getMoveFilter(jodit) {
26544
26610
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56298);
26545
26611
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
26546
26612
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
26547
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73124);
26548
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52450);
26549
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__);
26550
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41111);
26551
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__);
26552
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49972);
26553
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__);
26554
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(45062);
26555
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__);
26556
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(18605);
26557
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__);
26558
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83389);
26559
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__);
26560
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(36115);
26613
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
26614
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73124);
26615
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52450);
26616
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
26617
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41111);
26618
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
26619
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(49972);
26620
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
26621
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(45062);
26622
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
26623
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(18605);
26624
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
26625
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83389);
26626
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
26561
26627
  /*!
26562
26628
  * Jodit Editor (https://xdsoft.net/jodit/)
26563
26629
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26580,7 +26646,7 @@ function getMoveFilter(jodit) {
26580
26646
  */
26581
26647
  function bold(editor) {
26582
26648
  const callBack = (command) => {
26583
- const control = jodit_config__WEBPACK_IMPORTED_MODULE_10__/* .Config */ .T.defaultOptions.controls[command], cssOptions = Object.assign({}, control.css);
26649
+ const control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = Object.assign({}, control.css);
26584
26650
  let cssRules;
26585
26651
  Object.keys(cssOptions).forEach((key) => {
26586
26652
  if (!cssRules) {
@@ -26632,12 +26698,12 @@ function bold(editor) {
26632
26698
  });
26633
26699
  }
26634
26700
  jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
26635
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default()))
26636
- .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default()))
26637
- .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default()))
26638
- .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default()))
26639
- .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
26640
- .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default()));
26701
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
26702
+ .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
26703
+ .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
26704
+ .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
26705
+ .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
26706
+ .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
26641
26707
 
26642
26708
 
26643
26709
  /***/ }),
@@ -26707,9 +26773,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
26707
26773
  /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84976);
26708
26774
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71005);
26709
26775
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
26710
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93267);
26711
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_5__);
26712
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
26776
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
26777
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93267);
26778
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
26713
26779
  /*!
26714
26780
  * Jodit Editor (https://xdsoft.net/jodit/)
26715
26781
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26722,7 +26788,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
26722
26788
 
26723
26789
 
26724
26790
 
26725
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.classSpan = {
26791
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
26726
26792
  command: 'applyClassName',
26727
26793
  exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
26728
26794
  list: [
@@ -26810,7 +26876,7 @@ class classSpan extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
26810
26876
  beforeDestruct() { }
26811
26877
  }
26812
26878
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
26813
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_5___default()));
26879
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
26814
26880
 
26815
26881
 
26816
26882
  /***/ }),
@@ -26949,9 +27015,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
26949
27015
 
26950
27016
  "use strict";
26951
27017
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
26952
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71948);
26953
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_1__);
26954
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
27018
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
27019
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71948);
27020
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
26955
27021
  /*!
26956
27022
  * Jodit Editor (https://xdsoft.net/jodit/)
26957
27023
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26960,7 +27026,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
26960
27026
 
26961
27027
 
26962
27028
 
26963
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML = {
27029
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
26964
27030
  timeout: 300,
26965
27031
  removeEmptyElements: true,
26966
27032
  fillEmptyParagraph: true,
@@ -26976,11 +27042,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
26976
27042
  safeJavaScriptLink: true,
26977
27043
  disableCleanFilter: null
26978
27044
  };
26979
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.eraser = {
27045
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
26980
27046
  command: 'removeFormat',
26981
27047
  tooltip: 'Clear Formatting'
26982
27048
  };
26983
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_1___default()));
27049
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
26984
27050
 
26985
27051
 
26986
27052
  /***/ }),
@@ -27649,15 +27715,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
27649
27715
 
27650
27716
  "use strict";
27651
27717
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
27652
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51457);
27653
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__);
27654
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23602);
27655
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__);
27656
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(86899);
27657
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__);
27658
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95320);
27659
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__);
27660
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
27718
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
27719
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51457);
27720
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
27721
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23602);
27722
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
27723
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(86899);
27724
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
27725
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95320);
27726
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
27661
27727
  /*!
27662
27728
  * Jodit Editor (https://xdsoft.net/jodit/)
27663
27729
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27669,25 +27735,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
27669
27735
 
27670
27736
 
27671
27737
 
27672
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.cut = {
27738
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
27673
27739
  command: 'cut',
27674
27740
  isDisabled: (editor) => editor.s.isCollapsed(),
27675
27741
  tooltip: 'Cut selection'
27676
27742
  };
27677
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copy = {
27743
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
27678
27744
  command: 'copy',
27679
27745
  isDisabled: (editor) => editor.s.isCollapsed(),
27680
27746
  tooltip: 'Copy selection'
27681
27747
  };
27682
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.selectall = {
27748
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
27683
27749
  icon: 'select-all',
27684
27750
  command: 'selectall',
27685
27751
  tooltip: 'Select all'
27686
27752
  };
27687
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default()))
27688
- .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default()))
27689
- .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default()))
27690
- .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default()));
27753
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
27754
+ .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
27755
+ .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
27756
+ .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
27691
27757
 
27692
27758
 
27693
27759
  /***/ }),
@@ -27759,10 +27825,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
27759
27825
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
27760
27826
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
27761
27827
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
27762
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16116);
27763
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45674);
27764
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_4__);
27765
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
27828
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
27829
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
27830
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45674);
27831
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
27766
27832
  /*!
27767
27833
  * Jodit Editor (https://xdsoft.net/jodit/)
27768
27834
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27774,8 +27840,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
27774
27840
 
27775
27841
 
27776
27842
 
27777
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_4___default()));
27778
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brushCell = {
27843
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
27844
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
27779
27845
  isVisible: (editor) => {
27780
27846
  return !editor.o.disablePlugins.includes('color');
27781
27847
  },
@@ -27788,7 +27854,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27788
27854
  if (!selected.length) {
27789
27855
  return false;
27790
27856
  }
27791
- const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27857
+ const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27792
27858
  selected.forEach(cell => {
27793
27859
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
27794
27860
  });
@@ -27797,7 +27863,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27797
27863
  close();
27798
27864
  editor.unlock();
27799
27865
  }, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
27800
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, [
27866
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
27801
27867
  {
27802
27868
  name: 'Background',
27803
27869
  content: makeColorPicker('background-color')
@@ -27808,7 +27874,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27808
27874
  },
27809
27875
  tooltip: 'Background'
27810
27876
  };
27811
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brush = {
27877
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
27812
27878
  isVisible: (editor) => {
27813
27879
  return !editor.o.disablePlugins.includes('color');
27814
27880
  },
@@ -27856,7 +27922,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27856
27922
  }
27857
27923
  }, editor.editor);
27858
27924
  }
27859
- const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27925
+ const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27860
27926
  if (!currentElement) {
27861
27927
  editor.execCommand('background', false, value);
27862
27928
  }
@@ -27867,7 +27933,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27867
27933
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
27868
27934
  close();
27869
27935
  }, bg_color);
27870
- const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27936
+ const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
27871
27937
  if (!currentElement) {
27872
27938
  editor.execCommand('forecolor', false, value);
27873
27939
  }
@@ -27891,7 +27957,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27891
27957
  if (editor.o.colorPickerDefaultTab !== 'background') {
27892
27958
  tabs = tabs.reverse();
27893
27959
  }
27894
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
27960
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
27895
27961
  },
27896
27962
  exec(jodit, current, { button }) {
27897
27963
  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');
@@ -27930,10 +27996,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
27930
27996
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
27931
27997
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
27932
27998
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
27933
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3843);
27934
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_3__);
27935
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94628);
27936
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
27999
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
28000
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3843);
28001
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
28002
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94628);
27937
28003
  /*!
27938
28004
  * Jodit Editor (https://xdsoft.net/jodit/)
27939
28005
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27991,7 +28057,7 @@ const getStyles = (editor, box, defaultStyles) => {
27991
28057
  }
27992
28058
  return result;
27993
28059
  };
27994
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copyformat = {
28060
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
27995
28061
  exec: (editor, current, { button }) => {
27996
28062
  if (!current) {
27997
28063
  return;
@@ -28041,10 +28107,10 @@ function copyFormat(editor) {
28041
28107
  name: 'copyformat',
28042
28108
  group: 'clipboard'
28043
28109
  });
28044
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_4__);
28110
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
28045
28111
  }
28046
28112
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
28047
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default()));
28113
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
28048
28114
 
28049
28115
 
28050
28116
  /***/ }),
@@ -29000,45 +29066,11 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
29000
29066
  const sel = this.j.s.sel;
29001
29067
  const range = this.bufferRange ||
29002
29068
  (sel && sel.rangeCount ? sel.getRangeAt(0) : null);
29003
- let fragment = null;
29004
- if (!this.draggable && range) {
29005
- fragment = this.isCopyMode
29006
- ? range.cloneContents()
29007
- : range.extractContents();
29008
- }
29009
- else if (this.draggable) {
29010
- if (this.isCopyMode) {
29011
- const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
29012
- ? ['a', 'href']
29013
- : ['img', 'src'];
29014
- fragment = this.j.createInside.element(tagName);
29015
- fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
29016
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
29017
- '');
29018
- if (tagName === 'a') {
29019
- fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
29020
- }
29021
- }
29022
- else {
29023
- fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
29024
- }
29025
- }
29026
- else if (this.getText(event)) {
29027
- fragment = this.j.createInside.fromHTML(this.getText(event));
29028
- }
29069
+ const fragment = this.__getWorkFragment(range, event);
29029
29070
  sel && sel.removeAllRanges();
29030
29071
  this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
29031
29072
  if (fragment) {
29032
- this.j.s.insertNode(fragment, false, false);
29033
- if (range && fragment.firstChild && fragment.lastChild) {
29034
- range.setStartBefore(fragment.firstChild);
29035
- range.setEndAfter(fragment.lastChild);
29036
- this.j.s.selectRange(range);
29037
- this.j.e.fire('synchro');
29038
- }
29039
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
29040
- this.j.e.fire('afterInsertImage', fragment);
29041
- }
29073
+ this.__insertFragment.call(this, fragment, range);
29042
29074
  }
29043
29075
  event.preventDefault();
29044
29076
  event.stopPropagation();
@@ -29046,6 +29078,47 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
29046
29078
  this.isFragmentFromEditor = false;
29047
29079
  this.removeDragListeners();
29048
29080
  }
29081
+ __getWorkFragment(range, event) {
29082
+ let fragment = null;
29083
+ if (!this.draggable && range) {
29084
+ fragment = this.isCopyMode
29085
+ ? range.cloneContents()
29086
+ : range.extractContents();
29087
+ }
29088
+ else if (this.draggable) {
29089
+ if (this.isCopyMode) {
29090
+ const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
29091
+ ? ['a', 'href']
29092
+ : ['img', 'src'];
29093
+ fragment = this.j.createInside.element(tagName);
29094
+ fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
29095
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
29096
+ '');
29097
+ if (tagName === 'a') {
29098
+ fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
29099
+ }
29100
+ }
29101
+ else {
29102
+ fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
29103
+ }
29104
+ }
29105
+ else if (this.getText(event)) {
29106
+ fragment = this.j.createInside.fromHTML(this.getText(event));
29107
+ }
29108
+ return fragment;
29109
+ }
29110
+ __insertFragment(fragment, range) {
29111
+ this.j.s.insertNode(fragment, false, false);
29112
+ if (range && fragment.firstChild && fragment.lastChild) {
29113
+ range.setStartBefore(fragment.firstChild);
29114
+ range.setEndAfter(fragment.lastChild);
29115
+ this.j.s.selectRange(range);
29116
+ this.j.e.fire('synchro');
29117
+ }
29118
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
29119
+ this.j.e.fire('afterInsertImage', fragment);
29120
+ }
29121
+ }
29049
29122
  /** @override */
29050
29123
  beforeDestruct() {
29051
29124
  this.onDragEnd();
@@ -29847,8 +29920,8 @@ function wrapText(fake, jodit) {
29847
29920
  /* unused harmony export file */
29848
29921
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
29849
29922
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
29850
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16116);
29851
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
29923
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
29924
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16116);
29852
29925
  /*!
29853
29926
  * Jodit Editor (https://xdsoft.net/jodit/)
29854
29927
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -29858,7 +29931,7 @@ function wrapText(fake, jodit) {
29858
29931
 
29859
29932
 
29860
29933
 
29861
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.file = {
29934
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
29862
29935
  popup: (editor, current, close) => {
29863
29936
  const insert = (url, title = '') => {
29864
29937
  editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
@@ -29871,7 +29944,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
29871
29944
  ? current
29872
29945
  : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
29873
29946
  }
29874
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__/* .FileSelectorWidget */ .kG)(editor, {
29947
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
29875
29948
  filebrowser: (data) => {
29876
29949
  data.files &&
29877
29950
  data.files.forEach(file => insert(data.baseurl + file));
@@ -29994,11 +30067,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
29994
30067
  /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59101);
29995
30068
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
29996
30069
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
29997
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48842);
29998
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_3__);
29999
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25501);
30000
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__);
30001
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
30070
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
30071
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48842);
30072
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
30073
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25501);
30074
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
30002
30075
  /*!
30003
30076
  * Jodit Editor (https://xdsoft.net/jodit/)
30004
30077
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30014,9 +30087,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
30014
30087
  /**
30015
30088
  * Default font-size points
30016
30089
  */
30017
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
30018
- 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()));
30019
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize = {
30090
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
30091
+ 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()));
30092
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
30020
30093
  command: 'fontsize',
30021
30094
  data: {
30022
30095
  cssRule: 'font-size',
@@ -30075,7 +30148,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
30075
30148
  return keySet.has(normalize(value.toString()));
30076
30149
  }
30077
30150
  };
30078
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.font = Object.assign(Object.assign({}, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize), { command: 'fontname', textTemplate: (j, value) => {
30151
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = Object.assign(Object.assign({}, jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize), { command: 'fontname', textTemplate: (j, value) => {
30079
30152
  const [first] = value.split(',');
30080
30153
  return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trimChars */ .Gd)(first, '"\'');
30081
30154
  }, list: {
@@ -30178,11 +30251,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
30178
30251
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
30179
30252
 
30180
30253
  "use strict";
30181
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
30254
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
30255
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25376);
30182
30256
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
30183
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29348);
30184
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_2__);
30185
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
30257
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
30258
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29348);
30259
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
30186
30260
  /*!
30187
30261
  * Jodit Editor (https://xdsoft.net/jodit/)
30188
30262
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30192,13 +30266,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
30192
30266
 
30193
30267
 
30194
30268
 
30195
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default()));
30196
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.paragraph = {
30269
+
30270
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
30271
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
30197
30272
  command: 'formatBlock',
30198
30273
  value(editor, button) {
30199
30274
  var _a, _b;
30200
30275
  const control = button.control, current = editor.s.current();
30201
- 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);
30276
+ 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);
30202
30277
  return (_a = currentBox === null || currentBox === void 0 ? void 0 : currentBox.nodeName.toLowerCase()) !== null && _a !== void 0 ? _a : (_b = control.data) === null || _b === void 0 ? void 0 : _b.currentValue;
30203
30278
  },
30204
30279
  update(editor, button) {
@@ -30207,7 +30282,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
30207
30282
  return false;
30208
30283
  }
30209
30284
  const currentValue = button.state.value, list = control.list;
30210
- if (list && list[currentValue.toString()]) {
30285
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
30211
30286
  if (editor.o.textIcons) {
30212
30287
  button.state.text = list[currentValue.toString()].toString();
30213
30288
  }
@@ -30231,9 +30306,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
30231
30306
  return Boolean(button.state.value === ((_b = (_a = button.control) === null || _a === void 0 ? void 0 : _a.args) === null || _b === void 0 ? void 0 : _b[0]));
30232
30307
  },
30233
30308
  isActive: (editor, button) => {
30234
- var _a;
30235
30309
  return (button.state.value !== editor.o.enter &&
30236
- Boolean((_a = button.control.list) === null || _a === void 0 ? void 0 : _a[button.state.value]));
30310
+ (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
30311
+ Boolean(button.control.list[button.state.value]));
30237
30312
  },
30238
30313
  childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
30239
30314
  tooltip: 'Insert format block'
@@ -30283,11 +30358,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
30283
30358
  "use strict";
30284
30359
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
30285
30360
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
30286
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24772);
30287
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__);
30288
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66547);
30289
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__);
30290
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
30361
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
30362
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24772);
30363
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
30364
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66547);
30365
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
30291
30366
  /*!
30292
30367
  * Jodit Editor (https://xdsoft.net/jodit/)
30293
30368
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30299,10 +30374,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
30299
30374
 
30300
30375
 
30301
30376
 
30302
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.fullsize = false;
30303
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.globalFullSize = true;
30304
- 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()));
30305
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.fullsize = {
30377
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
30378
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
30379
+ 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()));
30380
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
30306
30381
  exec: (editor) => {
30307
30382
  editor.toggleFullSize();
30308
30383
  },
@@ -30630,9 +30705,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
30630
30705
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
30631
30706
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
30632
30707
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(931);
30633
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89097);
30634
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_3__);
30635
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
30708
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
30709
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89097);
30710
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
30636
30711
  /*!
30637
30712
  * Jodit Editor (https://xdsoft.net/jodit/)
30638
30713
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30643,8 +30718,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
30643
30718
 
30644
30719
 
30645
30720
 
30646
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_3___default()));
30647
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.hr = {
30721
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
30722
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
30648
30723
  command: 'insertHorizontalRule',
30649
30724
  tags: ['hr'],
30650
30725
  tooltip: 'Insert Horizontal Line'
@@ -31125,6 +31200,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
31125
31200
  * Released under MIT see LICENSE.txt in the project root for license information.
31126
31201
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
31127
31202
  */
31203
+ /**
31204
+ * @module plugins/image-properties
31205
+ */
31128
31206
 
31129
31207
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
31130
31208
  dialogWidth: 600,
@@ -32641,10 +32719,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
32641
32719
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
32642
32720
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
32643
32721
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
32644
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
32645
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(64831);
32646
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_5__);
32647
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
32722
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
32723
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
32724
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64831);
32725
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
32648
32726
  /*!
32649
32727
  * Jodit Editor (https://xdsoft.net/jodit/)
32650
32728
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32658,8 +32736,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
32658
32736
 
32659
32737
 
32660
32738
 
32661
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_5___default()));
32662
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.image = {
32739
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
32740
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
32663
32741
  popup: (editor, current, close) => {
32664
32742
  let sourceImage = null;
32665
32743
  if (current &&
@@ -32671,7 +32749,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
32671
32749
  : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
32672
32750
  }
32673
32751
  editor.s.save();
32674
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .FileSelectorWidget */ .kG)(editor, {
32752
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
32675
32753
  filebrowser: (data) => {
32676
32754
  editor.s.restore();
32677
32755
  data.files &&
@@ -32714,12 +32792,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
32714
32792
  "use strict";
32715
32793
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71842);
32716
32794
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
32717
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67176);
32718
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__);
32719
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14017);
32720
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__);
32721
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3392);
32722
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
32795
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
32796
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67176);
32797
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
32798
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14017);
32799
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
32800
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3392);
32723
32801
  /*!
32724
32802
  * Jodit Editor (https://xdsoft.net/jodit/)
32725
32803
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -32731,17 +32809,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
32731
32809
 
32732
32810
 
32733
32811
 
32734
- 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()));
32735
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.indent = {
32812
+ 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()));
32813
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
32736
32814
  tooltip: 'Increase Indent'
32737
32815
  };
32738
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.outdent = {
32816
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
32739
32817
  isDisabled: (editor) => {
32740
32818
  const current = editor.s.current();
32741
32819
  if (current) {
32742
32820
  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);
32743
32821
  if (currentBox) {
32744
- const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__/* .getKey */ .i)(editor.o.direction, currentBox);
32822
+ const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
32745
32823
  return (!currentBox.style[arrow] ||
32746
32824
  parseInt(currentBox.style[arrow], 10) <= 0);
32747
32825
  }
@@ -32750,7 +32828,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
32750
32828
  },
32751
32829
  tooltip: 'Decrease Indent'
32752
32830
  };
32753
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.indentMargin = 10;
32831
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
32754
32832
 
32755
32833
 
32756
32834
  /***/ }),
@@ -33011,12 +33089,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
33011
33089
 
33012
33090
  "use strict";
33013
33091
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
33014
- /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97836);
33015
- /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82558);
33016
- /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6295);
33017
- /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26396);
33092
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
33093
+ /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97836);
33094
+ /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82558);
33095
+ /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6295);
33096
+ /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26396);
33018
33097
  /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(58540);
33019
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
33020
33098
  /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38681);
33021
33099
  /* 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__);
33022
33100
  /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(64637);
@@ -33050,10 +33128,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
33050
33128
 
33051
33129
 
33052
33130
 
33053
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInline = true;
33054
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
33055
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
33056
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
33131
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
33132
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
33133
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
33134
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
33057
33135
  jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
33058
33136
  .set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
33059
33137
  .set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
@@ -33061,14 +33139,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
33061
33139
  .set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
33062
33140
  .set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
33063
33141
  .set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
33064
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
33065
- a: _items_a__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,
33066
- img: _items_img__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33067
- cells: _items_cells__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
33142
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
33143
+ a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
33144
+ img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
33145
+ cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33068
33146
  toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
33069
- jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33070
- iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33071
- 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33147
+ jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33148
+ iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33149
+ 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33072
33150
  selection: [
33073
33151
  'bold',
33074
33152
  'underline',
@@ -33680,12 +33758,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
33680
33758
  /* unused harmony export justify */
33681
33759
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
33682
33760
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
33683
- /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40080);
33684
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38322);
33685
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
33686
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80515);
33687
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
33761
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65147);
33762
+ /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40080);
33763
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38322);
33764
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
33688
33765
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
33766
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80515);
33767
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
33689
33768
  /*!
33690
33769
  * Jodit Editor (https://xdsoft.net/jodit/)
33691
33770
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33698,7 +33777,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
33698
33777
 
33699
33778
 
33700
33779
 
33701
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_4___default()));
33780
+
33781
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
33702
33782
  jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
33703
33783
  name: 'left',
33704
33784
  tooltip: 'Align',
@@ -33707,22 +33787,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
33707
33787
  if (current) {
33708
33788
  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) ||
33709
33789
  editor.editor;
33710
- let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString();
33790
+ let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
33711
33791
  if (control.defaultValue &&
33712
33792
  control.defaultValue.indexOf(currentValue) !== -1) {
33713
33793
  currentValue = 'left';
33714
33794
  }
33715
- if (control.data &&
33716
- control.data.currentValue !== currentValue &&
33717
- control.list &&
33718
- control.list[currentValue]) {
33795
+ const { list, data } = control;
33796
+ if (data &&
33797
+ data.currentValue !== currentValue &&
33798
+ list &&
33799
+ ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
33800
+ ? list[currentValue]
33801
+ : list.includes(currentValue))) {
33719
33802
  if (editor.o.textIcons || control.component === 'select') {
33720
33803
  button.state.text = currentValue;
33721
33804
  }
33722
33805
  else {
33723
33806
  button.state.icon.name = currentValue;
33724
33807
  }
33725
- control.data.currentValue = currentValue;
33808
+ data.currentValue = currentValue;
33726
33809
  }
33727
33810
  }
33728
33811
  },
@@ -33733,7 +33816,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
33733
33816
  }
33734
33817
  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) ||
33735
33818
  editor.editor;
33736
- return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
33819
+ return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
33737
33820
  },
33738
33821
  defaultValue: ['left', 'start', 'inherit'],
33739
33822
  data: {
@@ -33787,7 +33870,7 @@ function justify(editor) {
33787
33870
  if (!currentBox) {
33788
33871
  currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
33789
33872
  }
33790
- (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__/* .alignElement */ .Op)(command, currentBox);
33873
+ (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
33791
33874
  });
33792
33875
  return false;
33793
33876
  };
@@ -33999,9 +34082,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
33999
34082
  "use strict";
34000
34083
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65147);
34001
34084
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
34002
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(223);
34003
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_2__);
34004
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
34085
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
34086
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(223);
34087
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
34005
34088
  /*!
34006
34089
  * Jodit Editor (https://xdsoft.net/jodit/)
34007
34090
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -34011,9 +34094,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
34011
34094
 
34012
34095
 
34013
34096
 
34014
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultLineHeight = null;
34015
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_2___default()));
34016
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.lineHeight = {
34097
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
34098
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
34099
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
34017
34100
  command: 'applyLineHeight',
34018
34101
  tags: ['ol'],
34019
34102
  tooltip: 'Line height',
@@ -34578,12 +34661,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
34578
34661
  "use strict";
34579
34662
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
34580
34663
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
34581
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95032);
34582
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_2__);
34583
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73533);
34584
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__);
34585
- /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21329);
34586
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
34664
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
34665
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95032);
34666
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
34667
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73533);
34668
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
34669
+ /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21329);
34587
34670
  /*!
34588
34671
  * Jodit Editor (https://xdsoft.net/jodit/)
34589
34672
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -34595,8 +34678,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
34595
34678
 
34596
34679
 
34597
34680
 
34598
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
34599
- formTemplate: _template__WEBPACK_IMPORTED_MODULE_4__/* .formTemplate */ .B,
34681
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
34682
+ formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
34600
34683
  followOnDblClick: false,
34601
34684
  processVideoLink: true,
34602
34685
  processPastedLink: true,
@@ -34608,8 +34691,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
34608
34691
  selectOptionsClassName: [],
34609
34692
  hotkeys: ['ctrl+k', 'cmd+k']
34610
34693
  };
34611
- 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()));
34612
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unlink = {
34694
+ 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()));
34695
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
34613
34696
  exec: (editor, current) => {
34614
34697
  const anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
34615
34698
  if (anchor) {
@@ -34620,7 +34703,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
34620
34703
  },
34621
34704
  tooltip: 'Unlink'
34622
34705
  };
34623
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.link = {
34706
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
34624
34707
  isActive: (editor) => {
34625
34708
  const current = editor.s.current();
34626
34709
  return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
@@ -34778,35 +34861,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
34778
34861
  if (link) {
34779
34862
  url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
34780
34863
  if (modeClassName) {
34781
- switch (modeClassName) {
34782
- case 'input':
34783
- if (className_input) {
34784
- className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
34785
- }
34786
- break;
34787
- case 'select':
34788
- if (className_select) {
34789
- for (let i = 0; i < className_select.selectedOptions.length; i++) {
34790
- const option = className_select.options.item(i);
34791
- if (option) {
34792
- option.selected = false;
34793
- }
34794
- }
34795
- const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
34796
- classNames.split(' ').forEach(className => {
34797
- if (className) {
34798
- for (let i = 0; i < className_select.options.length; i++) {
34799
- const option = className_select.options.item(i);
34800
- if ((option === null || option === void 0 ? void 0 : option.value) &&
34801
- option.value === className) {
34802
- option.selected = true;
34803
- }
34804
- }
34805
- }
34806
- });
34807
- }
34808
- break;
34809
- }
34864
+ readClassnames(modeClassName, className_input, link, className_select);
34810
34865
  }
34811
34866
  if (openInNewTabCheckbox && target_checkbox) {
34812
34867
  target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
@@ -34867,44 +34922,10 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
34867
34922
  links = [link];
34868
34923
  }
34869
34924
  links.forEach(a => {
34870
- var _a;
34871
34925
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
34872
- if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
34873
- if (modeClassName === 'input') {
34874
- if (className_input.value === '' &&
34875
- a.hasAttribute('class')) {
34876
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
34877
- }
34878
- if (className_input.value !== '') {
34879
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
34880
- }
34881
- }
34882
- else if (modeClassName === 'select') {
34883
- if (a.hasAttribute('class')) {
34884
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
34885
- }
34886
- for (let i = 0; i < className_select.selectedOptions.length; i++) {
34887
- const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
34888
- if (className) {
34889
- a.classList.add(className);
34890
- }
34891
- }
34892
- }
34893
- }
34926
+ writeClasses(modeClassName, className_input, className_select, a);
34894
34927
  if (!isImageContent) {
34895
- let newContent = a.textContent;
34896
- if (content_input.value.trim().length) {
34897
- if (textWasChanged) {
34898
- newContent = content_input.value;
34899
- }
34900
- }
34901
- else {
34902
- newContent = url_input.value;
34903
- }
34904
- const content = a.textContent;
34905
- if (newContent !== content) {
34906
- a.textContent = newContent;
34907
- }
34928
+ writeImage(a, content_input, textWasChanged, url_input);
34908
34929
  }
34909
34930
  if (openInNewTabCheckbox && target_checkbox) {
34910
34931
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
@@ -34949,6 +34970,75 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
34949
34970
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
34950
34971
  ], link.prototype, "__generateForm", null);
34951
34972
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
34973
+ function writeClasses(modeClassName, className_input, className_select, a) {
34974
+ var _a;
34975
+ if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
34976
+ if (modeClassName === 'input') {
34977
+ if (className_input.value === '' && a.hasAttribute('class')) {
34978
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
34979
+ }
34980
+ if (className_input.value !== '') {
34981
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
34982
+ }
34983
+ }
34984
+ else if (modeClassName === 'select') {
34985
+ if (a.hasAttribute('class')) {
34986
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
34987
+ }
34988
+ for (let i = 0; i < className_select.selectedOptions.length; i++) {
34989
+ const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
34990
+ if (className) {
34991
+ a.classList.add(className);
34992
+ }
34993
+ }
34994
+ }
34995
+ }
34996
+ }
34997
+ function readClassnames(modeClassName, className_input, link, className_select) {
34998
+ switch (modeClassName) {
34999
+ case 'input':
35000
+ if (className_input) {
35001
+ className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35002
+ }
35003
+ break;
35004
+ case 'select':
35005
+ if (className_select) {
35006
+ for (let i = 0; i < className_select.selectedOptions.length; i++) {
35007
+ const option = className_select.options.item(i);
35008
+ if (option) {
35009
+ option.selected = false;
35010
+ }
35011
+ }
35012
+ const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35013
+ classNames.split(' ').forEach(className => {
35014
+ if (className) {
35015
+ for (let i = 0; i < className_select.options.length; i++) {
35016
+ const option = className_select.options.item(i);
35017
+ if ((option === null || option === void 0 ? void 0 : option.value) && option.value === className) {
35018
+ option.selected = true;
35019
+ }
35020
+ }
35021
+ }
35022
+ });
35023
+ }
35024
+ break;
35025
+ }
35026
+ }
35027
+ function writeImage(a, content_input, textWasChanged, url_input) {
35028
+ let newContent = a.textContent;
35029
+ if (content_input.value.trim().length) {
35030
+ if (textWasChanged) {
35031
+ newContent = content_input.value;
35032
+ }
35033
+ }
35034
+ else {
35035
+ newContent = url_input.value;
35036
+ }
35037
+ const content = a.textContent;
35038
+ if (newContent !== content) {
35039
+ a.textContent = newContent;
35040
+ }
35041
+ }
34952
35042
 
34953
35043
 
34954
35044
  /***/ }),
@@ -35158,9 +35248,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
35158
35248
  "use strict";
35159
35249
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
35160
35250
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
35161
- /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97394);
35162
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8809);
35163
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
35251
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
35252
+ /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97394);
35253
+ /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8809);
35164
35254
  /*!
35165
35255
  * Jodit Editor (https://xdsoft.net/jodit/)
35166
35256
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35171,9 +35261,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
35171
35261
 
35172
35262
 
35173
35263
 
35174
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.mobileTapTimeout = 300;
35175
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.toolbarAdaptive = true;
35176
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD = [
35264
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
35265
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
35266
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
35177
35267
  {
35178
35268
  group: 'font-style',
35179
35269
  buttons: []
@@ -35220,7 +35310,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
35220
35310
  '|',
35221
35311
  'dots'
35222
35312
  ];
35223
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM = [
35313
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
35224
35314
  {
35225
35315
  group: 'font-style',
35226
35316
  buttons: []
@@ -35255,7 +35345,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
35255
35345
  '|',
35256
35346
  'dots'
35257
35347
  ];
35258
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS = [
35348
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
35259
35349
  {
35260
35350
  group: 'font-style',
35261
35351
  buttons: []
@@ -35276,17 +35366,17 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
35276
35366
  '---',
35277
35367
  'dots'
35278
35368
  ];
35279
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.dots = {
35369
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
35280
35370
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
35281
35371
  popup: (editor, current, close, button) => {
35282
35372
  let store = button.control.data;
35283
35373
  if (store === undefined) {
35284
35374
  store = {
35285
- toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__/* .makeCollection */ .$K)(editor),
35375
+ toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
35286
35376
  rebuild: () => {
35287
35377
  var _a, _b;
35288
35378
  if (button) {
35289
- const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__/* .ToolbarCollection */ .Q));
35379
+ const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
35290
35380
  if (buttons && store) {
35291
35381
  store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
35292
35382
  const w = ((_b = (_a = editor.toolbar) === null || _a === void 0 ? void 0 : _a.firstButton) === null || _b === void 0 ? void 0 : _b.container.offsetWidth) || 36;
@@ -35395,11 +35485,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
35395
35485
  "use strict";
35396
35486
  /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72197);
35397
35487
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
35398
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40037);
35399
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__);
35400
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83207);
35401
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__);
35402
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
35488
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
35489
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(40037);
35490
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
35491
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83207);
35492
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
35403
35493
  /*!
35404
35494
  * Jodit Editor (https://xdsoft.net/jodit/)
35405
35495
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35417,8 +35507,8 @@ const memoExec = (jodit, _, { control }) => {
35417
35507
  (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
35418
35508
  jodit.execCommand(control.command, false, value === 'default' ? null : value);
35419
35509
  };
35420
- 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()));
35421
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul = {
35510
+ 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()));
35511
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
35422
35512
  command: 'insertUnorderedList',
35423
35513
  tags: ['ul'],
35424
35514
  tooltip: 'Insert Unordered List',
@@ -35430,7 +35520,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
35430
35520
  },
35431
35521
  exec: memoExec
35432
35522
  };
35433
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ol = {
35523
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
35434
35524
  command: 'insertOrderedList',
35435
35525
  tags: ['ol'],
35436
35526
  tooltip: 'Insert Ordered List',
@@ -35806,8 +35896,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
35806
35896
  "use strict";
35807
35897
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
35808
35898
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
35809
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90823);
35810
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
35899
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
35900
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(90823);
35811
35901
  /*!
35812
35902
  * Jodit Editor (https://xdsoft.net/jodit/)
35813
35903
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35817,19 +35907,19 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
35817
35907
 
35818
35908
 
35819
35909
 
35820
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.askBeforePasteHTML = true;
35821
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.processPasteHTML = true;
35822
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.scrollToPastedContent = true;
35823
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
35824
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteHTMLActionList = [
35910
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
35911
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
35912
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
35913
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
35914
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
35825
35915
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
35826
35916
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
35827
35917
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
35828
35918
  ];
35829
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
35830
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.nl2brInPlainText = true;
35919
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
35920
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
35831
35921
  const psKey = 'pasteStorage';
35832
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paste = {
35922
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
35833
35923
  tooltip: 'Paste from clipboard',
35834
35924
  exec(editor_1, _1, _a) {
35835
35925
  return (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__awaiter */ .sH)(this, arguments, void 0, function* (editor, _, { control }) {
@@ -35878,7 +35968,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
35878
35968
  !error && editor.e.fire('afterPaste');
35879
35969
  }
35880
35970
  else if (text.length) {
35881
- (0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .sX)(null, editor, text);
35971
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
35882
35972
  editor.e.fire('afterPaste');
35883
35973
  }
35884
35974
  else {
@@ -36604,10 +36694,10 @@ function generateCriticalCSS(jodit) {
36604
36694
  /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(17527);
36605
36695
  /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98434);
36606
36696
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(931);
36607
- /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11131);
36608
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(59827);
36609
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_6__);
36610
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(36115);
36697
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
36698
+ /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11131);
36699
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59827);
36700
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
36611
36701
  /*!
36612
36702
  * Jodit Editor (https://xdsoft.net/jodit/)
36613
36703
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36622,8 +36712,8 @@ function generateCriticalCSS(jodit) {
36622
36712
 
36623
36713
 
36624
36714
 
36625
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_6___default()));
36626
- jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.print = {
36715
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
36716
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
36627
36717
  exec: (editor) => {
36628
36718
  const iframe = editor.create.element('iframe');
36629
36719
  Object.assign(iframe.style, {
@@ -36634,7 +36724,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
36634
36724
  height: 0,
36635
36725
  border: 0
36636
36726
  });
36637
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T).appendChild(iframe);
36727
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
36638
36728
  const afterFinishPrint = () => {
36639
36729
  editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
36640
36730
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
@@ -36652,7 +36742,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
36652
36742
  myWindow.document.write('<!doctype html><html lang="' +
36653
36743
  (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
36654
36744
  '"><head><title></title></head><style>' +
36655
- (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__/* .generateCriticalCSS */ .Y)(editor) +
36745
+ (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
36656
36746
  '</style><body></body></html>');
36657
36747
  myWindow.document.close();
36658
36748
  (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
@@ -36690,11 +36780,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
36690
36780
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56298);
36691
36781
  /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29866);
36692
36782
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
36693
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34045);
36694
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__);
36695
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39199);
36696
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__);
36697
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
36783
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
36784
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34045);
36785
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
36786
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39199);
36787
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
36698
36788
  /*!
36699
36789
  * Jodit Editor (https://xdsoft.net/jodit/)
36700
36790
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36707,13 +36797,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
36707
36797
 
36708
36798
 
36709
36799
 
36710
- 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()));
36711
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.redo = {
36800
+ 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()));
36801
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
36712
36802
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
36713
36803
  isDisabled: (editor) => !editor.history.canRedo(),
36714
36804
  tooltip: 'Redo'
36715
36805
  };
36716
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.undo = {
36806
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
36717
36807
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
36718
36808
  isDisabled: (editor) => !editor.history.canUndo(),
36719
36809
  tooltip: 'Undo'
@@ -37732,9 +37822,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
37732
37822
 
37733
37823
  "use strict";
37734
37824
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
37735
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21917);
37736
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_1__);
37737
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
37825
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
37826
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21917);
37827
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
37738
37828
  /*!
37739
37829
  * Jodit Editor (https://xdsoft.net/jodit/)
37740
37830
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37744,14 +37834,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
37744
37834
 
37745
37835
 
37746
37836
 
37747
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
37748
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
37837
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
37838
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
37749
37839
  lazyIdleTimeout: 0,
37750
37840
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37751
37841
  useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
37752
37842
  };
37753
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_1___default()));
37754
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
37843
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
37844
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
37755
37845
  tooltip: 'Find',
37756
37846
  icon: 'search',
37757
37847
  exec(jodit, _, { control }) {
@@ -37792,7 +37882,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
37792
37882
  /* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
37793
37883
  /* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
37794
37884
  /* harmony export */ });
37795
- /* unused harmony export isSelectionWrapper */
37796
37885
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55186);
37797
37886
  /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58720);
37798
37887
  /*!
@@ -37814,60 +37903,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
37814
37903
  rng.endContainer.nodeValue == null) {
37815
37904
  return;
37816
37905
  }
37817
- if (jodit.o.search.useCustomHighlightAPI &&
37818
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37819
- typeof window.Highlight !== 'undefined') {
37820
- const ranges = [rng, ...restRanges].map(rng => {
37821
- const range = jodit.selection.createRange();
37822
- range.setStart(rng.startContainer, rng.startOffset);
37823
- range.setEnd(rng.endContainer, rng.endOffset);
37824
- return range;
37825
- });
37826
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37827
- const searchHighlight = new Highlight(...ranges);
37828
- // @ts-ignore
37829
- CSS.highlights.clear();
37830
- // @ts-ignore
37831
- CSS.highlights.set('jodit-search-result', searchHighlight);
37832
- restRanges.length = 0;
37906
+ if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
37833
37907
  return;
37834
37908
  }
37835
37909
  const span = ci.element('span', {
37836
37910
  [TMP_ATTR]: true
37837
37911
  });
37838
37912
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
37839
- const startText = rng.startContainer.nodeValue;
37840
- let diff = 0;
37841
- if (rng.startOffset !== 0) {
37842
- const text = ci.text(startText.substring(0, rng.startOffset));
37843
- rng.startContainer.nodeValue = startText.substring(rng.startOffset);
37844
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
37845
- if (rng.startContainer === rng.endContainer) {
37846
- diff = rng.startOffset;
37847
- rng.endOffset -= diff;
37848
- }
37849
- rng.startOffset = 0;
37850
- }
37851
- const endText = rng.endContainer.nodeValue;
37852
- if (rng.endOffset !== endText.length) {
37853
- const text = ci.text(endText.substring(rng.endOffset));
37854
- rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
37855
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
37856
- for (const range of restRanges) {
37857
- if (range.startContainer === rng.endContainer) {
37858
- range.startContainer = text;
37859
- range.startOffset = range.startOffset - rng.endOffset - diff;
37860
- if (range.endContainer === rng.endContainer) {
37861
- range.endContainer = text;
37862
- range.endOffset = range.endOffset - rng.endOffset - diff;
37863
- }
37864
- }
37865
- else {
37866
- break;
37867
- }
37868
- }
37869
- rng.endOffset = rng.endContainer.nodeValue.length;
37870
- }
37913
+ normalizeRanges(rng, restRanges, ci);
37871
37914
  let next = rng.startContainer;
37872
37915
  do {
37873
37916
  if (!next) {
@@ -37913,6 +37956,61 @@ function clearSelectionWrappersFromHTML(root) {
37913
37956
  function isSelectionWrapper(node) {
37914
37957
  return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
37915
37958
  }
37959
+ function checkNativeSelectionMethod(jodit, rng, restRanges) {
37960
+ if (jodit.o.search.useCustomHighlightAPI &&
37961
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37962
+ typeof window.Highlight !== 'undefined') {
37963
+ const ranges = [rng, ...restRanges].map(rng => {
37964
+ const range = jodit.selection.createRange();
37965
+ range.setStart(rng.startContainer, rng.startOffset);
37966
+ range.setEnd(rng.endContainer, rng.endOffset);
37967
+ return range;
37968
+ });
37969
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37970
+ const searchHighlight = new Highlight(...ranges);
37971
+ // @ts-ignore
37972
+ CSS.highlights.clear();
37973
+ // @ts-ignore
37974
+ CSS.highlights.set('jodit-search-result', searchHighlight);
37975
+ restRanges.length = 0;
37976
+ return true;
37977
+ }
37978
+ return false;
37979
+ }
37980
+ function normalizeRanges(rng, restRanges, ci) {
37981
+ const startText = rng.startContainer.nodeValue;
37982
+ let diff = 0;
37983
+ if (rng.startOffset !== 0) {
37984
+ const text = ci.text(startText.substring(0, rng.startOffset));
37985
+ rng.startContainer.nodeValue = startText.substring(rng.startOffset);
37986
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
37987
+ if (rng.startContainer === rng.endContainer) {
37988
+ diff = rng.startOffset;
37989
+ rng.endOffset -= diff;
37990
+ }
37991
+ rng.startOffset = 0;
37992
+ }
37993
+ const endText = rng.endContainer.nodeValue;
37994
+ if (rng.endOffset !== endText.length) {
37995
+ const text = ci.text(endText.substring(rng.endOffset));
37996
+ rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
37997
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
37998
+ for (const range of restRanges) {
37999
+ if (range.startContainer === rng.endContainer) {
38000
+ range.startContainer = text;
38001
+ range.startOffset = range.startOffset - rng.endOffset - diff;
38002
+ if (range.endContainer === rng.endContainer) {
38003
+ range.endContainer = text;
38004
+ range.endOffset = range.endOffset - rng.endOffset - diff;
38005
+ }
38006
+ }
38007
+ else {
38008
+ break;
38009
+ }
38010
+ }
38011
+ rng.endOffset = rng.endContainer.nodeValue.length;
38012
+ }
38013
+ }
37916
38014
 
37917
38015
 
37918
38016
  /***/ }),
@@ -39375,9 +39473,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
39375
39473
  "use strict";
39376
39474
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17352);
39377
39475
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(931);
39378
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9103);
39379
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_2__);
39380
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36115);
39476
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
39477
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9103);
39478
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
39381
39479
  /*!
39382
39480
  * Jodit Editor (https://xdsoft.net/jodit/)
39383
39481
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -39387,9 +39485,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
39387
39485
 
39388
39486
 
39389
39487
 
39390
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
39391
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor = 'ace';
39392
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
39488
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
39489
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
39490
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
39393
39491
  /**
39394
39492
  * Show gutter
39395
39493
  */
@@ -39411,15 +39509,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
39411
39509
  */
39412
39510
  highlightActiveLine: true
39413
39511
  };
39414
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
39512
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
39415
39513
  'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
39416
39514
  ];
39417
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
39515
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
39418
39516
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
39419
39517
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
39420
39518
  ];
39421
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_2___default()));
39422
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.source = {
39519
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
39520
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
39423
39521
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
39424
39522
  exec: (editor) => {
39425
39523
  editor.toggleMode();
@@ -40229,9 +40327,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
40229
40327
 
40230
40328
  "use strict";
40231
40329
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
40232
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49989);
40233
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__);
40234
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
40330
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
40331
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49989);
40332
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
40235
40333
  /*!
40236
40334
  * Jodit Editor (https://xdsoft.net/jodit/)
40237
40335
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40240,13 +40338,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
40240
40338
 
40241
40339
 
40242
40340
 
40243
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.spellcheck = false;
40244
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()));
40245
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.spellcheck = {
40341
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
40342
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
40343
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
40246
40344
  isActive(e) {
40247
40345
  return e.o.spellcheck;
40248
40346
  },
40249
- icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()),
40347
+ icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
40250
40348
  name: 'spellcheck',
40251
40349
  command: 'toggleSpellcheck',
40252
40350
  tooltip: 'Spellcheck'
@@ -41021,9 +41119,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
41021
41119
 
41022
41120
  "use strict";
41023
41121
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(931);
41024
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81875);
41025
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_1__);
41026
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36115);
41122
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36115);
41123
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81875);
41124
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
41027
41125
  /*!
41028
41126
  * Jodit Editor (https://xdsoft.net/jodit/)
41029
41127
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -41032,8 +41130,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
41032
41130
 
41033
41131
 
41034
41132
 
41035
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
41036
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialCharacters = [
41133
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
41134
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
41037
41135
  '!',
41038
41136
  '&quot;',
41039
41137
  '#',
@@ -41245,8 +41343,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
41245
41343
  '&diams;',
41246
41344
  '&asymp;'
41247
41345
  ];
41248
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_1___default()));
41249
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.symbols = {
41346
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
41347
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
41250
41348
  hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
41251
41349
  tooltip: 'Insert Special Character',
41252
41350
  popup: (editor, current, close) => {
@@ -42128,38 +42226,10 @@ function tableKeyboardNavigation(editor) {
42128
42226
  .off('.tableKeyboardNavigation')
42129
42227
  .on('keydown.tableKeyboardNavigation', (event) => {
42130
42228
  const { key } = event;
42131
- if (!WORK_KEYS.has(key)) {
42132
- return;
42133
- }
42134
- const current = editor.s.current();
42135
- if (!current) {
42136
- return;
42137
- }
42138
- 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);
42229
+ const cell = findCell(editor, key);
42139
42230
  if (!cell) {
42140
42231
  return;
42141
42232
  }
42142
- const { range } = editor.s;
42143
- if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
42144
- const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
42145
- 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
42146
- ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
42147
- : Boolean(elm), cell);
42148
- if ((!isNextDirection &&
42149
- (hasNext ||
42150
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
42151
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42152
- range.startOffset !== 0))) ||
42153
- (isNextDirection &&
42154
- (hasNext ||
42155
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
42156
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42157
- current.nodeValue &&
42158
- range.startOffset !==
42159
- current.nodeValue.length)))) {
42160
- return;
42161
- }
42162
- }
42163
42233
  const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
42164
42234
  const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
42165
42235
  let next = null;
@@ -42217,6 +42287,40 @@ function tableKeyboardNavigation(editor) {
42217
42287
  });
42218
42288
  }
42219
42289
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
42290
+ function findCell(editor, key) {
42291
+ if (!WORK_KEYS.has(key)) {
42292
+ return;
42293
+ }
42294
+ const current = editor.s.current();
42295
+ if (!current) {
42296
+ return;
42297
+ }
42298
+ 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);
42299
+ if (!cell) {
42300
+ return;
42301
+ }
42302
+ const { range } = editor.s;
42303
+ if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
42304
+ const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
42305
+ 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
42306
+ ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
42307
+ : Boolean(elm), cell);
42308
+ if ((!isNextDirection &&
42309
+ (hasNext ||
42310
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
42311
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42312
+ range.startOffset !== 0))) ||
42313
+ (isNextDirection &&
42314
+ (hasNext ||
42315
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
42316
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42317
+ current.nodeValue &&
42318
+ range.startOffset !== current.nodeValue.length)))) {
42319
+ return;
42320
+ }
42321
+ }
42322
+ return cell;
42323
+ }
42220
42324
 
42221
42325
 
42222
42326
  /***/ }),
@@ -42229,9 +42333,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
42229
42333
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65147);
42230
42334
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97369);
42231
42335
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
42232
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67447);
42233
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_4__);
42234
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36115);
42336
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
42337
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67447);
42338
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
42235
42339
  /*!
42236
42340
  * Jodit Editor (https://xdsoft.net/jodit/)
42237
42341
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42243,12 +42347,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
42243
42347
 
42244
42348
 
42245
42349
 
42246
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.table = {
42350
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
42247
42351
  selectionCellStyle: 'border: 1px double #1e88e5 !important;',
42248
42352
  useExtraClassesOptions: false
42249
42353
  };
42250
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_4___default()));
42251
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.table = {
42354
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
42355
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
42252
42356
  data: {
42253
42357
  cols: 10,
42254
42358
  rows: 10,
@@ -42415,10 +42519,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
42415
42519
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35265);
42416
42520
  /* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20703);
42417
42521
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(931);
42418
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16116);
42419
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(36339);
42420
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_5__);
42421
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36115);
42522
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36115);
42523
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16116);
42524
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(36339);
42525
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
42422
42526
  /*!
42423
42527
  * Jodit Editor (https://xdsoft.net/jodit/)
42424
42528
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42431,8 +42535,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
42431
42535
 
42432
42536
 
42433
42537
 
42434
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_5___default()));
42435
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.video = {
42538
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
42539
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
42436
42540
  popup: (editor, current, close) => {
42437
42541
  const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
42438
42542
  new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
@@ -42479,7 +42583,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
42479
42583
  formCode.onSubmit(data => {
42480
42584
  insertCode(data.code);
42481
42585
  });
42482
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs);
42586
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
42483
42587
  },
42484
42588
  tags: ['iframe'],
42485
42589
  tooltip: 'Insert youtube/vimeo video'
@@ -44265,16 +44369,16 @@ var __webpack_exports__ = {};
44265
44369
  __webpack_require__.r(__webpack_exports__);
44266
44370
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44267
44371
  /* harmony export */ CommitMode: function() { return /* binding */ CommitMode; },
44268
- /* harmony export */ Jodit: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_6__.x; }
44372
+ /* harmony export */ Jodit: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
44269
44373
  /* harmony export */ });
44270
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9823);
44271
- /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88222);
44374
+ /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46173);
44375
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9823);
44272
44376
  /* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17352);
44273
44377
  /* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22664);
44274
44378
  /* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37435);
44275
44379
  /* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79721);
44276
- /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46173);
44277
- /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(74470);
44380
+ /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74470);
44381
+ /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(88222);
44278
44382
  /*!
44279
44383
  * Jodit Editor (https://xdsoft.net/jodit/)
44280
44384
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -44285,6 +44389,7 @@ __webpack_require__.r(__webpack_exports__);
44285
44389
  * @packageDocumentation
44286
44390
  * @module jodit
44287
44391
  */
44392
+ // eslint-disable-next-line simple-import-sort/imports
44288
44393
 
44289
44394
 
44290
44395
 
@@ -44297,7 +44402,7 @@ __webpack_require__.r(__webpack_exports__);
44297
44402
 
44298
44403
  // copy constants in Jodit
44299
44404
  Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach((key) => {
44300
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
44405
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
44301
44406
  });
44302
44407
  const esFilter = (key) => key !== '__esModule';
44303
44408
  // Icons
@@ -44313,32 +44418,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
44313
44418
  var _a;
44314
44419
  // @ts-ignore
44315
44420
  const module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
44316
- const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
44421
+ const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
44317
44422
  ? module.prototype.className()
44318
44423
  : key;
44319
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .Kg)(name)) {
44424
+ if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
44320
44425
  console.warn('Module name must be a string', key);
44321
44426
  return;
44322
44427
  }
44323
44428
  // @ts-ignore
44324
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.modules[name] = module;
44429
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
44325
44430
  });
44326
44431
  // Decorators
44327
44432
  Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
44328
44433
  .filter(esFilter)
44329
44434
  .forEach((key) => {
44330
44435
  // @ts-ignore
44331
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
44436
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
44332
44437
  });
44333
44438
  ['Confirm', 'Alert', 'Prompt'].forEach((key) => {
44334
44439
  // @ts-ignore
44335
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
44440
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
44336
44441
  });
44337
44442
  // Languages
44338
- Object.keys(_languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)
44443
+ Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
44339
44444
  .filter(esFilter)
44340
44445
  .forEach((key) => {
44341
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A[key];
44446
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
44342
44447
  });
44343
44448
 
44344
44449
  class CommitMode {