jodit 4.20.5 → 4.21.1

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 (90) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +0 -1
  3. package/es2015/jodit.css +2 -2
  4. package/es2015/jodit.fat.min.css +1 -1
  5. package/es2015/jodit.fat.min.js +12 -12
  6. package/es2015/jodit.js +558 -210
  7. package/es2015/jodit.min.css +1 -1
  8. package/es2015/jodit.min.js +12 -12
  9. package/es2015/plugins/debug/debug.css +1 -1
  10. package/es2015/plugins/debug/debug.js +2 -2
  11. package/es2015/plugins/debug/debug.min.js +2 -2
  12. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.js +2 -2
  14. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  15. package/es2018/jodit.fat.min.css +1 -1
  16. package/es2018/jodit.fat.min.js +12 -12
  17. package/es2018/jodit.min.css +1 -1
  18. package/es2018/jodit.min.js +12 -12
  19. package/es2018/plugins/debug/debug.min.js +2 -2
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
  21. package/es2021/jodit.css +2 -2
  22. package/es2021/jodit.fat.min.css +1 -1
  23. package/es2021/jodit.fat.min.js +17 -17
  24. package/es2021/jodit.js +550 -203
  25. package/es2021/jodit.min.css +1 -1
  26. package/es2021/jodit.min.js +17 -17
  27. package/es2021/plugins/debug/debug.css +1 -1
  28. package/es2021/plugins/debug/debug.js +2 -2
  29. package/es2021/plugins/debug/debug.min.js +2 -2
  30. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.js +2 -2
  32. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  33. package/es2021.en/jodit.css +2 -2
  34. package/es2021.en/jodit.fat.min.css +1 -1
  35. package/es2021.en/jodit.fat.min.js +17 -17
  36. package/es2021.en/jodit.js +550 -203
  37. package/es2021.en/jodit.min.css +1 -1
  38. package/es2021.en/jodit.min.js +32 -32
  39. package/es2021.en/plugins/debug/debug.css +1 -1
  40. package/es2021.en/plugins/debug/debug.js +2 -2
  41. package/es2021.en/plugins/debug/debug.min.js +2 -2
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.js +2 -2
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  45. package/es5/jodit.css +3 -3
  46. package/es5/jodit.fat.min.css +1 -1
  47. package/es5/jodit.fat.min.js +2 -2
  48. package/es5/jodit.js +595 -177
  49. package/es5/jodit.min.css +3 -3
  50. package/es5/jodit.min.js +2 -2
  51. package/es5/plugins/debug/debug.css +1 -1
  52. package/es5/plugins/debug/debug.js +2 -2
  53. package/es5/plugins/debug/debug.min.js +2 -2
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +2 -2
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  57. package/es5/polyfills.fat.min.js +2 -2
  58. package/es5/polyfills.js +1 -29
  59. package/es5/polyfills.min.js +2 -2
  60. package/esm/config.d.ts +18 -0
  61. package/esm/core/constants.d.ts +6 -0
  62. package/esm/core/constants.js +18 -1
  63. package/esm/core/helpers/html/clean-from-word.d.ts +3 -1
  64. package/esm/core/helpers/html/clean-from-word.js +87 -11
  65. package/esm/core/helpers/utils/selector.js +4 -3
  66. package/esm/plugins/hr/hr.js +290 -1
  67. package/esm/plugins/inline-popup/config/config.js +2 -0
  68. package/esm/plugins/inline-popup/config/items/hr.d.ts +11 -0
  69. package/esm/plugins/inline-popup/config/items/hr.js +15 -0
  70. package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
  71. package/esm/plugins/link/config.d.ts +7 -0
  72. package/esm/plugins/link/config.js +1 -0
  73. package/esm/plugins/link/link.js +20 -16
  74. package/esm/plugins/paste/config.d.ts +5 -0
  75. package/esm/plugins/paste/config.js +2 -1
  76. package/esm/plugins/paste/paste.js +1 -1
  77. package/esm/plugins/paste-from-word/paste-from-word.js +2 -2
  78. package/esm/plugins/symbols/config.d.ts +6 -0
  79. package/esm/plugins/symbols/config.js +1 -0
  80. package/esm/plugins/symbols/symbols.d.ts +0 -1
  81. package/esm/plugins/symbols/symbols.js +12 -10
  82. package/package.json +1 -1
  83. package/types/config.d.ts +18 -0
  84. package/types/core/constants.d.ts +6 -0
  85. package/types/core/helpers/html/clean-from-word.d.ts +3 -1
  86. package/types/plugins/inline-popup/config/items/hr.d.ts +11 -0
  87. package/types/plugins/link/config.d.ts +7 -0
  88. package/types/plugins/paste/config.d.ts +5 -0
  89. package/types/plugins/symbols/config.d.ts +6 -0
  90. package/types/plugins/symbols/symbols.d.ts +0 -1
package/es2021/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.20.5
4
+ * Version: v4.21.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1137,7 +1137,6 @@ Config.prototype.controls = {};
1137
1137
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(85932);
1138
1138
  /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(18303);
1139
1139
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(28712);
1140
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__);
1141
1140
  /* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(14228);
1142
1141
  /*!
1143
1142
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -1809,6 +1808,34 @@ class ViewComponent extends _component__WEBPACK_IMPORTED_MODULE_1__.Component {
1809
1808
  "use strict";
1810
1809
  __webpack_require__.r(__webpack_exports__);
1811
1810
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1811
+ /* harmony export */ ACCURACY: function() { return /* binding */ ACCURACY; },
1812
+ /* harmony export */ APP_VERSION: function() { return /* binding */ APP_VERSION; },
1813
+ /* harmony export */ BASE_PATH: function() { return /* binding */ BASE_PATH; },
1814
+ /* harmony export */ BASE_PATH_IS_MIN: function() { return /* binding */ BASE_PATH_IS_MIN; },
1815
+ /* harmony export */ BR: function() { return /* binding */ BR; },
1816
+ /* harmony export */ CLIPBOARD_ID: function() { return /* binding */ CLIPBOARD_ID; },
1817
+ /* harmony export */ COMMAND_KEYS: function() { return /* binding */ COMMAND_KEYS; },
1818
+ /* harmony export */ EMULATE_DBLCLICK_TIMEOUT: function() { return /* binding */ EMULATE_DBLCLICK_TIMEOUT; },
1819
+ /* harmony export */ ERROR_CODE_CONFLICT: function() { return /* binding */ ERROR_CODE_CONFLICT; },
1820
+ /* harmony export */ ES: function() { return /* binding */ ES; },
1821
+ /* harmony export */ FAT_MODE: function() { return /* binding */ FAT_MODE; },
1822
+ /* harmony export */ HOMEPAGE: function() { return /* binding */ HOMEPAGE; },
1823
+ /* harmony export */ INSEPARABLE_TAGS: function() { return /* binding */ INSEPARABLE_TAGS; },
1824
+ /* harmony export */ INSERT_AS_HTML: function() { return /* binding */ INSERT_AS_HTML; },
1825
+ /* harmony export */ INSERT_AS_TEXT: function() { return /* binding */ INSERT_AS_TEXT; },
1826
+ /* harmony export */ INSERT_CLEAR_HTML: function() { return /* binding */ INSERT_CLEAR_HTML; },
1827
+ /* harmony export */ INSERT_ONLY_TEXT: function() { return /* binding */ INSERT_ONLY_TEXT; },
1828
+ /* harmony export */ INVISIBLE_SPACE: function() { return /* binding */ INVISIBLE_SPACE; },
1829
+ /* harmony export */ INVISIBLE_SPACE_REG_EXP: function() { return /* binding */ INVISIBLE_SPACE_REG_EXP; },
1830
+ /* harmony export */ INVISIBLE_SPACE_REG_EXP_END: function() { return /* binding */ INVISIBLE_SPACE_REG_EXP_END; },
1831
+ /* harmony export */ INVISIBLE_SPACE_REG_EXP_START: function() { return /* binding */ INVISIBLE_SPACE_REG_EXP_START; },
1832
+ /* harmony export */ IS_BLOCK: function() { return /* binding */ IS_BLOCK; },
1833
+ /* harmony export */ IS_ES_MODERN: function() { return /* binding */ IS_ES_MODERN; },
1834
+ /* harmony export */ IS_ES_NEXT: function() { return /* binding */ IS_ES_NEXT; },
1835
+ /* harmony export */ IS_IE: function() { return /* binding */ IS_IE; },
1836
+ /* harmony export */ IS_INLINE: function() { return /* binding */ IS_INLINE; },
1837
+ /* harmony export */ IS_MAC: function() { return /* binding */ IS_MAC; },
1838
+ /* harmony export */ IS_PROD: function() { return /* binding */ IS_PROD; },
1812
1839
  /* harmony export */ IS_TEST: function() { return /* binding */ IS_TEST; }
1813
1840
  /* harmony export */ });
1814
1841
  /*!
@@ -1824,7 +1851,7 @@ __webpack_require__.r(__webpack_exports__);
1824
1851
  * ```
1825
1852
  * @packageDocumentation
1826
1853
  * @module constants
1827
- */ const APP_VERSION = "4.20.5";
1854
+ */ const APP_VERSION = "4.21.1";
1828
1855
  // prettier-ignore
1829
1856
  const ES = "es2021";
1830
1857
  const IS_ES_MODERN = true;
@@ -1962,6 +1989,22 @@ const EMULATE_DBLCLICK_TIMEOUT = 300;
1962
1989
  * test
1963
1990
  * ```
1964
1991
  */ const INSERT_ONLY_TEXT = 'insert_only_text';
1992
+ /**
1993
+ * The attributes a clean paste ([[INSERT_CLEAR_HTML]], and Clean for HTML from
1994
+ * Word) keeps by default: what links and media need, and what carries a table's
1995
+ * structure or the meaning of an image or a link
1996
+ */ const PASTE_KEEP_ATTRIBUTES = [
1997
+ 'src',
1998
+ 'href',
1999
+ 'rel',
2000
+ 'content',
2001
+ 'alt',
2002
+ 'title',
2003
+ 'colspan',
2004
+ 'rowspan',
2005
+ 'scope',
2006
+ 'target'
2007
+ ];
1965
2008
  const SAFE_COUNT_CHANGE_CALL = 10;
1966
2009
  // Connector answer code for a file name that is already taken (same as the HTTP status)
1967
2010
  const ERROR_CODE_CONFLICT = 409;
@@ -2040,34 +2083,6 @@ const PASSIVE_EVENTS = new Set([
2040
2083
  ]);
2041
2084
 
2042
2085
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
2043
- /* harmony export */ "ACCURACY", 0, /* binding */ ACCURACY,
2044
- /* harmony export */ "APP_VERSION", 0, /* binding */ APP_VERSION,
2045
- /* harmony export */ "BASE_PATH", 0, /* binding */ BASE_PATH,
2046
- /* harmony export */ "BASE_PATH_IS_MIN", 0, /* binding */ BASE_PATH_IS_MIN,
2047
- /* harmony export */ "BR", 0, /* binding */ BR,
2048
- /* harmony export */ "CLIPBOARD_ID", 0, /* binding */ CLIPBOARD_ID,
2049
- /* harmony export */ "COMMAND_KEYS", 0, /* binding */ COMMAND_KEYS,
2050
- /* harmony export */ "EMULATE_DBLCLICK_TIMEOUT", 0, /* binding */ EMULATE_DBLCLICK_TIMEOUT,
2051
- /* harmony export */ "ERROR_CODE_CONFLICT", 0, /* binding */ ERROR_CODE_CONFLICT,
2052
- /* harmony export */ "ES", 0, /* binding */ ES,
2053
- /* harmony export */ "FAT_MODE", 0, /* binding */ FAT_MODE,
2054
- /* harmony export */ "HOMEPAGE", 0, /* binding */ HOMEPAGE,
2055
- /* harmony export */ "INSEPARABLE_TAGS", 0, /* binding */ INSEPARABLE_TAGS,
2056
- /* harmony export */ "INSERT_AS_HTML", 0, /* binding */ INSERT_AS_HTML,
2057
- /* harmony export */ "INSERT_AS_TEXT", 0, /* binding */ INSERT_AS_TEXT,
2058
- /* harmony export */ "INSERT_CLEAR_HTML", 0, /* binding */ INSERT_CLEAR_HTML,
2059
- /* harmony export */ "INSERT_ONLY_TEXT", 0, /* binding */ INSERT_ONLY_TEXT,
2060
- /* harmony export */ "INVISIBLE_SPACE", 0, /* binding */ INVISIBLE_SPACE,
2061
- /* harmony export */ "INVISIBLE_SPACE_REG_EXP", 0, /* binding */ INVISIBLE_SPACE_REG_EXP,
2062
- /* harmony export */ "INVISIBLE_SPACE_REG_EXP_END", 0, /* binding */ INVISIBLE_SPACE_REG_EXP_END,
2063
- /* harmony export */ "INVISIBLE_SPACE_REG_EXP_START", 0, /* binding */ INVISIBLE_SPACE_REG_EXP_START,
2064
- /* harmony export */ "IS_BLOCK", 0, /* binding */ IS_BLOCK,
2065
- /* harmony export */ "IS_ES_MODERN", 0, /* binding */ IS_ES_MODERN,
2066
- /* harmony export */ "IS_ES_NEXT", 0, /* binding */ IS_ES_NEXT,
2067
- /* harmony export */ "IS_IE", 0, /* binding */ IS_IE,
2068
- /* harmony export */ "IS_INLINE", 0, /* binding */ IS_INLINE,
2069
- /* harmony export */ "IS_MAC", 0, /* binding */ IS_MAC,
2070
- /* harmony export */ "IS_PROD", 0, /* binding */ IS_PROD,
2071
2086
  /* harmony export */ "KEY_ALIASES", 0, /* binding */ KEY_ALIASES,
2072
2087
  /* harmony export */ "KEY_ALT", 0, /* binding */ KEY_ALT,
2073
2088
  /* harmony export */ "KEY_BACKSPACE", 0, /* binding */ KEY_BACKSPACE,
@@ -2094,6 +2109,7 @@ const PASSIVE_EVENTS = new Set([
2094
2109
  /* harmony export */ "NO_EMPTY_TAGS", 0, /* binding */ NO_EMPTY_TAGS,
2095
2110
  /* harmony export */ "PARAGRAPH", 0, /* binding */ PARAGRAPH,
2096
2111
  /* harmony export */ "PASSIVE_EVENTS", 0, /* binding */ PASSIVE_EVENTS,
2112
+ /* harmony export */ "PASTE_KEEP_ATTRIBUTES", 0, /* binding */ PASTE_KEEP_ATTRIBUTES,
2097
2113
  /* harmony export */ "SAFE_COUNT_CHANGE_CALL", 0, /* binding */ SAFE_COUNT_CHANGE_CALL,
2098
2114
  /* harmony export */ "SET_TEST", 0, /* binding */ SET_TEST,
2099
2115
  /* harmony export */ "SOURCE_CONSUMER", 0, /* binding */ SOURCE_CONSUMER,
@@ -2125,7 +2141,6 @@ const PASSIVE_EVENTS = new Set([
2125
2141
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23211);
2126
2142
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65946);
2127
2143
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
2128
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
2129
2144
  /*!
2130
2145
  * Jodit Editor (https://xdsoft.net/jodit/)
2131
2146
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -2618,7 +2633,6 @@ function getComponentClass(name) {
2618
2633
  /* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16964);
2619
2634
  /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28686);
2620
2635
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
2621
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
2622
2636
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33201);
2623
2637
  /*!
2624
2638
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -3089,7 +3103,6 @@ function wait(condition) {
3089
3103
  /* harmony import */ var jodit_core_helpers_html_tag_scan__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81910);
3090
3104
  /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4040);
3091
3105
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(28712);
3092
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__);
3093
3106
  /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7909);
3094
3107
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(80991);
3095
3108
  /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(36400);
@@ -4690,7 +4703,6 @@ function isObservableObject(obj) {
4690
4703
  /* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
4691
4704
  /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88475);
4692
4705
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
4693
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
4694
4706
  /*!
4695
4707
  * Jodit Editor (https://xdsoft.net/jodit/)
4696
4708
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -4775,8 +4787,13 @@ class EventHandlersStore {
4775
4787
 
4776
4788
  "use strict";
4777
4789
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4790
+ /* harmony export */ eventEmitter: function() { return /* binding */ eventEmitter; },
4791
+ /* harmony export */ extendLang: function() { return /* binding */ extendLang; },
4778
4792
  /* harmony export */ getContainer: function() { return /* binding */ getContainer; },
4779
4793
  /* harmony export */ getPopupViewRoot: function() { return /* binding */ getPopupViewRoot; },
4794
+ /* harmony export */ instances: function() { return /* binding */ instances; },
4795
+ /* harmony export */ modules: function() { return /* binding */ modules; },
4796
+ /* harmony export */ pluginSystem: function() { return /* binding */ pluginSystem; },
4780
4797
  /* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
4781
4798
  /* harmony export */ });
4782
4799
  /* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24497);
@@ -4910,14 +4927,6 @@ const boxes = new WeakMap();
4910
4927
  * @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
4911
4928
  */ const eventEmitter = _event_emitter_global__WEBPACK_IMPORTED_MODULE_10__.eventEmitter;
4912
4929
 
4913
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
4914
- /* harmony export */ "eventEmitter", 0, /* binding */ eventEmitter,
4915
- /* harmony export */ "extendLang", 0, /* binding */ extendLang,
4916
- /* harmony export */ "instances", 0, /* binding */ instances,
4917
- /* harmony export */ "modules", 0, /* binding */ modules,
4918
- /* harmony export */ "pluginSystem", 0, /* binding */ pluginSystem
4919
- /* harmony export */ ]);
4920
-
4921
4930
 
4922
4931
  /***/ }),
4923
4932
 
@@ -6182,10 +6191,90 @@ function normalizeCSS(s) {
6182
6191
 
6183
6192
 
6184
6193
 
6194
+ /**
6195
+ * Google Docs marks bold, italic, underline and strikethrough with styles on
6196
+ * spans, where Word uses tags, so they become the tags before the styles go
6197
+ */ function formattedSpansToTags(root) {
6198
+ (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(root.querySelectorAll('span[style]')).forEach((span)=>{
6199
+ const { fontWeight, fontStyle } = span.style;
6200
+ const lines = span.style.textDecorationLine || span.style.textDecoration;
6201
+ const tags = [
6202
+ (fontWeight === 'bold' || fontWeight === 'bolder' || parseInt(fontWeight, 10) >= 600) && 'strong',
6203
+ /^(italic|oblique)/.test(fontStyle) && 'em',
6204
+ /underline/.test(lines) && 'u',
6205
+ /line-through/.test(lines) && 's'
6206
+ ].filter((tag)=>Boolean(tag));
6207
+ if (!tags.length) {
6208
+ return;
6209
+ }
6210
+ const elements = tags.map((tag)=>span.ownerDocument.createElement(tag));
6211
+ // The outermost takes the span's attributes, which the cleaning
6212
+ // that follows filters as it would the span's
6213
+ (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(span.attributes).forEach(({ name, value })=>elements[0].setAttribute(name, value));
6214
+ elements.reduce((parent, child)=>parent.appendChild(child));
6215
+ const innermost = elements[elements.length - 1];
6216
+ while(span.firstChild){
6217
+ innermost.appendChild(span.firstChild);
6218
+ }
6219
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.before(span, elements[0]);
6220
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(span);
6221
+ });
6222
+ }
6223
+ /**
6224
+ * Takes `node` out of `format`, which stays around the rest of its content
6225
+ */ function liftOut(node, format) {
6226
+ const range = node.ownerDocument.createRange();
6227
+ const wrap = ()=>{
6228
+ if (!range.collapsed) {
6229
+ range.surroundContents(format.cloneNode());
6230
+ }
6231
+ };
6232
+ for(let child = node; child !== format; child = child.parentNode){
6233
+ range.selectNodeContents(child.parentNode);
6234
+ range.setEndBefore(child);
6235
+ wrap();
6236
+ range.selectNodeContents(child.parentNode);
6237
+ range.setStartAfter(child);
6238
+ wrap();
6239
+ }
6240
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(format);
6241
+ }
6242
+ /**
6243
+ * An element styled with a normal weight or style comes out of the bold or
6244
+ * italic tags around it, which would make it bold or italic once the styles go.
6245
+ * CSS can't take an ancestor's underline or strikethrough off, so they have no
6246
+ * such reset
6247
+ */ function liftOutNormalFormatting(root) {
6248
+ const liftOutOf = (element, tags)=>{
6249
+ let format = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(element.parentNode, tags, root);
6250
+ while(format){
6251
+ liftOut(element, format);
6252
+ format = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(element.parentNode, tags, root);
6253
+ }
6254
+ };
6255
+ (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(root.querySelectorAll('[style]')).forEach((element)=>{
6256
+ const { fontWeight, fontStyle } = element.style;
6257
+ if (fontWeight === 'normal' || fontWeight === 'lighter' || parseInt(fontWeight, 10) < 600) {
6258
+ liftOutOf(element, [
6259
+ 'strong',
6260
+ 'b'
6261
+ ]);
6262
+ }
6263
+ if (fontStyle === 'normal') {
6264
+ liftOutOf(element, [
6265
+ 'em',
6266
+ 'i'
6267
+ ]);
6268
+ }
6269
+ });
6270
+ }
6185
6271
  /**
6186
6272
  * The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
6187
6273
  * content that matches the look and feel of the site.
6188
- */ function cleanFromWord(html) {
6274
+ *
6275
+ * @param keepAttributes - The attributes to keep; every other attribute, and every style, is removed
6276
+ */ function cleanFromWord(html, keepAttributes = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.PASTE_KEEP_ATTRIBUTES) {
6277
+ const keep = new Set(keepAttributes.map((name)=>name.toLowerCase()));
6189
6278
  if (html.indexOf('<html ') !== -1) {
6190
6279
  html = html.substring(html.indexOf('<html '), html.length);
6191
6280
  html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
@@ -6196,6 +6285,8 @@ function normalizeCSS(s) {
6196
6285
  div.innerHTML = html;
6197
6286
  const marks = [];
6198
6287
  const listItems = (0,jodit_core_helpers_html_word_lists__WEBPACK_IMPORTED_MODULE_4__.readWordListItems)(div);
6288
+ formattedSpansToTags(div);
6289
+ liftOutNormalFormatting(div);
6199
6290
  if (div.firstChild) {
6200
6291
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.each(div, (node)=>{
6201
6292
  if (!node) {
@@ -6225,12 +6316,7 @@ function normalizeCSS(s) {
6225
6316
  break;
6226
6317
  }
6227
6318
  ;(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(node.attributes).forEach((attribute)=>{
6228
- if ([
6229
- 'src',
6230
- 'href',
6231
- 'rel',
6232
- 'content'
6233
- ].indexOf(attribute.name.toLowerCase()) === -1) {
6319
+ if (!keep.has(attribute.name.toLowerCase())) {
6234
6320
  // `attrRaw`: SVG keeps camelCase names
6235
6321
  // (`viewBox`), `attr()` would kebab-case
6236
6322
  // them and silently skip the removal
@@ -7383,6 +7469,7 @@ __webpack_require__.r(__webpack_exports__);
7383
7469
 
7384
7470
  "use strict";
7385
7471
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7472
+ /* harmony export */ NUMBER_FIELDS_REG: function() { return /* binding */ NUMBER_FIELDS_REG; },
7386
7473
  /* harmony export */ normalizeCssNumericValue: function() { return /* binding */ normalizeCssNumericValue; },
7387
7474
  /* harmony export */ normalizeCssValue: function() { return /* binding */ normalizeCssValue; }
7388
7475
  /* harmony export */ });
@@ -7429,10 +7516,6 @@ function normalizeCssValue(key, value) {
7429
7516
  return value;
7430
7517
  }
7431
7518
 
7432
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
7433
- /* harmony export */ "NUMBER_FIELDS_REG", 0, /* binding */ NUMBER_FIELDS_REG
7434
- /* harmony export */ ]);
7435
-
7436
7519
 
7437
7520
  /***/ }),
7438
7521
 
@@ -8544,6 +8627,9 @@ function alignElement(command, box) {
8544
8627
 
8545
8628
  "use strict";
8546
8629
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8630
+ /* harmony export */ alreadyLoadedList: function() { return /* binding */ alreadyLoadedList; },
8631
+ /* harmony export */ appendScriptAsync: function() { return /* binding */ appendScriptAsync; },
8632
+ /* harmony export */ appendStyleAsync: function() { return /* binding */ appendStyleAsync; },
8547
8633
  /* harmony export */ loadNext: function() { return /* binding */ loadNext; },
8548
8634
  /* harmony export */ loadNextStyle: function() { return /* binding */ loadNextStyle; }
8549
8635
  /* harmony export */ });
@@ -8631,12 +8717,6 @@ function loadNextStyle(jodit, urls, i = 0) {
8631
8717
  return appendStyleAsync(jodit, urls[i]).then(()=>loadNextStyle(jodit, urls, i + 1));
8632
8718
  }
8633
8719
 
8634
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
8635
- /* harmony export */ "alreadyLoadedList", 0, /* binding */ alreadyLoadedList,
8636
- /* harmony export */ "appendScriptAsync", 0, /* binding */ appendScriptAsync,
8637
- /* harmony export */ "appendStyleAsync", 0, /* binding */ appendStyleAsync
8638
- /* harmony export */ ]);
8639
-
8640
8720
 
8641
8721
  /***/ }),
8642
8722
 
@@ -9085,6 +9165,7 @@ function ConfigDeepFlatten(obj) {
9085
9165
 
9086
9166
  "use strict";
9087
9167
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9168
+ /* harmony export */ clearCenterAlign: function() { return /* binding */ clearCenterAlign; },
9088
9169
  /* harmony export */ css: function() { return /* binding */ css; },
9089
9170
  /* harmony export */ cssInline: function() { return /* binding */ cssInline; }
9090
9171
  /* harmony export */ });
@@ -9176,10 +9257,6 @@ const clearCenterAlign = (image)=>{
9176
9257
  }
9177
9258
  };
9178
9259
 
9179
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
9180
- /* harmony export */ "clearCenterAlign", 0, /* binding */ clearCenterAlign
9181
- /* harmony export */ ]);
9182
-
9183
9260
 
9184
9261
  /***/ }),
9185
9262
 
@@ -9865,6 +9942,7 @@ __webpack_require__.r(__webpack_exports__);
9865
9942
 
9866
9943
  "use strict";
9867
9944
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9945
+ /* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* binding */ UNSAFE_PROTO_KEYS; },
9868
9946
  /* harmony export */ isUnsafeProtoKey: function() { return /* binding */ isUnsafeProtoKey; }
9869
9947
  /* harmony export */ });
9870
9948
  /*!
@@ -9888,10 +9966,6 @@ __webpack_require__.r(__webpack_exports__);
9888
9966
  return UNSAFE_PROTO_KEYS.indexOf(key) !== -1;
9889
9967
  }
9890
9968
 
9891
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
9892
- /* harmony export */ "UNSAFE_PROTO_KEYS", 0, /* binding */ UNSAFE_PROTO_KEYS
9893
- /* harmony export */ ]);
9894
-
9895
9969
 
9896
9970
  /***/ }),
9897
9971
 
@@ -9900,6 +9974,7 @@ __webpack_require__.r(__webpack_exports__);
9900
9974
 
9901
9975
  "use strict";
9902
9976
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9977
+ /* harmony export */ cns: function() { return /* binding */ cns; },
9903
9978
  /* harmony export */ markDeprecated: function() { return /* binding */ markDeprecated; }
9904
9979
  /* harmony export */ });
9905
9980
  /*!
@@ -9923,10 +9998,6 @@ __webpack_require__.r(__webpack_exports__);
9923
9998
  };
9924
9999
  }
9925
10000
 
9926
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
9927
- /* harmony export */ "cns", 0, /* binding */ cns
9928
- /* harmony export */ ]);
9929
-
9930
10001
 
9931
10002
  /***/ }),
9932
10003
 
@@ -10395,6 +10466,9 @@ const map = {};
10395
10466
  "use strict";
10396
10467
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10397
10468
  /* harmony export */ $$: function() { return /* binding */ $$; },
10469
+ /* harmony export */ cssPath: function() { return /* binding */ cssPath; },
10470
+ /* harmony export */ getXPathByElement: function() { return /* binding */ getXPathByElement; },
10471
+ /* harmony export */ refs: function() { return /* binding */ refs; },
10398
10472
  /* harmony export */ resolveElement: function() { return /* binding */ resolveElement; }
10399
10473
  /* harmony export */ });
10400
10474
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
@@ -10481,16 +10555,17 @@ const $$temp = ()=>{
10481
10555
  const path = [];
10482
10556
  let start = el;
10483
10557
  while(start && start.nodeType === Node.ELEMENT_NODE){
10484
- let selector = start.nodeName.toLowerCase();
10558
+ const tag = start.nodeName.toLowerCase();
10559
+ let selector = CSS.escape(tag);
10485
10560
  if (start.id) {
10486
- selector += '#' + start.id;
10561
+ selector += '#' + CSS.escape(start.id);
10487
10562
  path.unshift(selector);
10488
10563
  break;
10489
10564
  } else {
10490
10565
  let sib = start, nth = 1;
10491
10566
  do {
10492
10567
  sib = sib.previousElementSibling;
10493
- if (sib && sib.nodeName.toLowerCase() === selector) {
10568
+ if (sib && sib.nodeName.toLowerCase() === tag) {
10494
10569
  nth++;
10495
10570
  }
10496
10571
  }while (sib)
@@ -10519,12 +10594,6 @@ const $$temp = ()=>{
10519
10594
  return resolved;
10520
10595
  }
10521
10596
 
10522
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
10523
- /* harmony export */ "cssPath", 0, /* binding */ cssPath,
10524
- /* harmony export */ "getXPathByElement", 0, /* binding */ getXPathByElement,
10525
- /* harmony export */ "refs", 0, /* binding */ refs
10526
- /* harmony export */ ]);
10527
-
10528
10597
 
10529
10598
  /***/ }),
10530
10599
 
@@ -10635,7 +10704,10 @@ class LimitedStack {
10635
10704
  /* harmony export */ call: function() { return /* binding */ call; },
10636
10705
  /* harmony export */ callPromise: function() { return /* binding */ callPromise; },
10637
10706
  /* harmony export */ callThis: function() { return /* binding */ callThis; },
10707
+ /* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
10638
10708
  /* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
10709
+ /* harmony export */ keys: function() { return /* binding */ keys; },
10710
+ /* harmony export */ loadImage: function() { return /* binding */ loadImage; },
10639
10711
  /* harmony export */ markOwner: function() { return /* binding */ markOwner; }
10640
10712
  /* harmony export */ });
10641
10713
  /* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52100);
@@ -10750,9 +10822,6 @@ function getPropertyDescriptor(obj, prop) {
10750
10822
  }
10751
10823
 
10752
10824
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
10753
- /* harmony export */ "getDataTransfer", 0, /* binding */ getDataTransfer,
10754
- /* harmony export */ "keys", 0, /* binding */ keys,
10755
- /* harmony export */ "loadImage", 0, /* binding */ loadImage,
10756
10825
  /* harmony export */ "memorizeExec", 0, /* binding */ memorizeExec
10757
10826
  /* harmony export */ ]);
10758
10827
 
@@ -11936,7 +12005,6 @@ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild,
11936
12005
  /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28686);
11937
12006
  /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(16849);
11938
12007
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(28712);
11939
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_8__);
11940
12008
  /* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7470);
11941
12009
  /* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84578);
11942
12010
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(42259);
@@ -13420,7 +13488,6 @@ class Selection {
13420
13488
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
13421
13489
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
13422
13490
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28712);
13423
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_3__);
13424
13491
  /*!
13425
13492
  * Jodit Editor (https://xdsoft.net/jodit/)
13426
13493
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -13581,7 +13648,6 @@ class Selection {
13581
13648
  /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18303);
13582
13649
  /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19147);
13583
13650
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
13584
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
13585
13651
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80991);
13586
13652
  /*!
13587
13653
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -13761,7 +13827,6 @@ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
13761
13827
  /* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18073);
13762
13828
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93640);
13763
13829
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
13764
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
13765
13830
  /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7909);
13766
13831
  /* harmony import */ var _has_same_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9703);
13767
13832
  /*!
@@ -13891,7 +13956,6 @@ function elementsEqualAttributes(elm1, elm2) {
13891
13956
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
13892
13957
  /* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18073);
13893
13958
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
13894
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
13895
13959
  /* harmony import */ var jodit_core_selection_style_api_extract__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17481);
13896
13960
  /* harmony import */ var jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95971);
13897
13961
  /* harmony import */ var jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(82794);
@@ -14392,6 +14456,7 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
14392
14456
 
14393
14457
  "use strict";
14394
14458
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14459
+ /* harmony export */ WRAP_NODES: function() { return /* binding */ WRAP_NODES; },
14395
14460
  /* harmony export */ wrap: function() { return /* binding */ wrap; }
14396
14461
  /* harmony export */ });
14397
14462
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
@@ -14463,10 +14528,6 @@ const WRAP_NODES = new Set([
14463
14528
  return Array.from(node.childNodes).some((child)=>jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(child));
14464
14529
  }
14465
14530
 
14466
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
14467
- /* harmony export */ "WRAP_NODES", 0, /* binding */ WRAP_NODES
14468
- /* harmony export */ ]);
14469
-
14470
14531
 
14471
14532
  /***/ }),
14472
14533
 
@@ -14678,7 +14739,6 @@ class CommitStyle {
14678
14739
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
14679
14740
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
14680
14741
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
14681
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
14682
14742
  /* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51640);
14683
14743
  /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98394);
14684
14744
  /*!
@@ -15646,7 +15706,6 @@ class Mods {
15646
15706
  /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91565);
15647
15707
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(85932);
15648
15708
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
15649
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__);
15650
15709
  /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
15651
15710
  /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(96007);
15652
15711
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(29434);
@@ -15957,7 +16016,6 @@ function Button(jodit, stateOrText, text, variant) {
15957
16016
  /* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91672);
15958
16017
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
15959
16018
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
15960
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
15961
16019
  /* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53681);
15962
16020
  /* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63468);
15963
16021
  /*!
@@ -18065,7 +18123,6 @@ class Icon {
18065
18123
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
18066
18124
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
18067
18125
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28712);
18068
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_7__);
18069
18126
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(80991);
18070
18127
  /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(96007);
18071
18128
  /* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(63468);
@@ -20688,7 +20745,6 @@ ContextMenu = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__._)([
20688
20745
  /* harmony import */ var jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22852);
20689
20746
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(93640);
20690
20747
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(28712);
20691
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__);
20692
20748
  /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4099);
20693
20749
  /* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35099);
20694
20750
  /* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2222);
@@ -22113,6 +22169,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.filebrowser
22113
22169
 
22114
22170
  "use strict";
22115
22171
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22172
+ /* harmony export */ DEFAULT_SOURCE_NAME: function() { return /* binding */ DEFAULT_SOURCE_NAME; },
22116
22173
  /* harmony export */ "default": function() { return /* binding */ DataProvider; }
22117
22174
  /* harmony export */ });
22118
22175
  /* unused harmony export assertSourcesAnswer */
@@ -22554,7 +22611,7 @@ class DataProvider {
22554
22611
  this.progressHandler = (ignore)=>{};
22555
22612
  }
22556
22613
  }
22557
-
22614
+ ;
22558
22615
  ;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
22559
22616
  jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
22560
22617
  ], DataProvider.prototype, "onProgress", null);
@@ -22610,10 +22667,6 @@ class DataProvider {
22610
22667
  jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
22611
22668
  ], DataProvider.prototype, "destruct", null);
22612
22669
 
22613
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
22614
- /* harmony export */ "DEFAULT_SOURCE_NAME", 0, /* binding */ DEFAULT_SOURCE_NAME
22615
- /* harmony export */ ]);
22616
-
22617
22670
 
22618
22671
  /***/ }),
22619
22672
 
@@ -26033,7 +26086,6 @@ const instance = (j)=>j.getInstance('Table', j.o);
26033
26086
  /* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86878);
26034
26087
  /* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(57821);
26035
26088
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(28712);
26036
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__);
26037
26089
  /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(7909);
26038
26090
  /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(71125);
26039
26091
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59400);
@@ -27762,6 +27814,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
27762
27814
 
27763
27815
  "use strict";
27764
27816
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27817
+ /* harmony export */ ajaxInstances: function() { return /* binding */ ajaxInstances; },
27765
27818
  /* harmony export */ send: function() { return /* binding */ send; }
27766
27819
  /* harmony export */ });
27767
27820
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65946);
@@ -27843,10 +27896,6 @@ function send(uploader, data) {
27843
27896
  return sendData(requestData, showProgress);
27844
27897
  }
27845
27898
 
27846
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
27847
- /* harmony export */ "ajaxInstances", 0, /* binding */ ajaxInstances
27848
- /* harmony export */ ]);
27849
-
27850
27899
 
27851
27900
  /***/ }),
27852
27901
 
@@ -37209,12 +37258,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hotkeys', hotke
37209
37258
 
37210
37259
  "use strict";
37211
37260
  /* unused harmony export hr */
37212
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
37213
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28077);
37214
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29434);
37215
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5266);
37216
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89097);
37217
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
37261
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
37262
+ /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27795);
37263
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28077);
37264
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65946);
37265
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
37266
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
37267
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89097);
37268
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_6__);
37218
37269
  /*!
37219
37270
  * Jodit Editor (https://xdsoft.net/jodit/)
37220
37271
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37228,8 +37279,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hotkeys', hotke
37228
37279
 
37229
37280
 
37230
37281
 
37231
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
37232
- jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
37282
+
37283
+
37284
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_6___default()));
37285
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.hr = {
37233
37286
  command: 'insertHorizontalRule',
37234
37287
  tooltip: 'Insert Horizontal Line'
37235
37288
  };
@@ -37241,36 +37294,291 @@ function hr(editor) {
37241
37294
  editor.registerCommand('insertHorizontalRule', ()=>{
37242
37295
  const elm = editor.createInside.element('hr');
37243
37296
  editor.s.insertNode(elm, false, false);
37244
- const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(elm.parentElement, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock, editor.editor);
37297
+ const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(elm.parentElement, jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
37245
37298
  // A block that holds other blocks, such as a list item or a table
37246
37299
  // cell, keeps the line
37247
- if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(block) && block !== editor.editor && !editor.o.dtd?.blockLimits[block.nodeName.toLowerCase()]) {
37248
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.after(block, elm);
37249
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(block);
37300
+ if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(block) && block !== editor.editor && !editor.o.dtd?.blockLimits[block.nodeName.toLowerCase()]) {
37301
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(block, elm);
37302
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(block);
37250
37303
  }
37251
- const next = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.findNotEmptySibling(elm, false);
37252
- if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(next)) {
37304
+ const next = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(elm, false);
37305
+ if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(next)) {
37253
37306
  editor.s.setCursorIn(next, true);
37254
37307
  return false;
37255
37308
  }
37256
37309
  // In a list item or a table cell the text goes on after the line, as
37257
37310
  // it does with the browsers' own command
37258
- if (next || elm.parentNode !== editor.editor && !jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.findNotEmptySibling(elm, true))) {
37311
+ if (next || elm.parentNode !== editor.editor && !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(elm, true))) {
37259
37312
  editor.s.setCursorAfter(elm);
37260
37313
  return false;
37261
37314
  }
37262
37315
  const p = editor.createInside.element(editor.o.enter);
37263
37316
  // As Enter's new line has, so it keeps its height without clean-html's
37264
37317
  // fillEmptyParagraph (#1807)
37265
- if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(p, 'br')) {
37266
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(p, editor.createInside.element('br'));
37318
+ if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(p, 'br')) {
37319
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.append(p, editor.createInside.element('br'));
37267
37320
  }
37268
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.after(elm, p);
37321
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(elm, p);
37269
37322
  editor.s.setCursorIn(p);
37270
37323
  return false;
37271
37324
  });
37325
+ // A horizontal line is selected whole, as an image is: by a click on it,
37326
+ // or by an arrow key that comes to it (#1802)
37327
+ const nearest = (node, forward)=>{
37328
+ while(node && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyTextNode(node)){
37329
+ node = forward ? node.nextSibling : node.previousSibling;
37330
+ }
37331
+ return node;
37332
+ };
37333
+ const beside = (node, forward)=>nearest(forward ? node.nextSibling : node.previousSibling, forward);
37334
+ // A line between blocks, where the caret beside it isn't in a line of
37335
+ // text, as it is in a list item or a table cell (#1606)
37336
+ const isLoose = (node)=>jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'hr') && node.parentNode === editor.editor && editor.o.enter.toLowerCase() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR;
37337
+ // The line a range holds, and nothing else
37338
+ const lineIn = (range)=>{
37339
+ const { startContainer: box, startOffset } = range;
37340
+ const node = box.childNodes[startOffset];
37341
+ return box === range.endContainer && range.endOffset === startOffset + 1 && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'hr') && editor.editor.contains(node) ? node : null;
37342
+ };
37343
+ // The browsers don't draw a selection round a line, so a rule in the
37344
+ // editor's document frames it, as the table module marks cells
37345
+ let framed = null;
37346
+ const frame = (line)=>{
37347
+ if (line === framed) {
37348
+ return;
37349
+ }
37350
+ framed = line;
37351
+ const path = line && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.cssPath)(line);
37352
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.getContainer)(editor, 'hr', 'style', true).innerHTML = path ? `${path}{outline:3px solid var(--jd-resizer-border-color,#98c1f1);outline-offset:3px}` : '';
37353
+ };
37354
+ const editable = ()=>!editor.o.readonly && !editor.isLocked;
37355
+ const plain = (e)=>!e.shiftKey && !e.ctrlKey && !e.metaKey && !e.altKey;
37356
+ const newLine = (node, after)=>{
37357
+ const p = editor.createInside.element(editor.o.enter);
37358
+ const br = editor.createInside.element('br');
37359
+ p.appendChild(br);
37360
+ after ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(node, p) : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.before(node, p);
37361
+ editor.s.setCursorBefore(br);
37362
+ };
37363
+ // On from a line the way an arrow key goes: to the next line in a row,
37364
+ // which is selected in turn, or into the text beyond, or into a new
37365
+ // paragraph at the start or end of the content
37366
+ const pass = (line, forward)=>{
37367
+ const next = beside(line, forward);
37368
+ if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(next, 'hr')) {
37369
+ editor.s.select(next);
37370
+ } else if (next) {
37371
+ editor.s.setCursorIn(next, forward);
37372
+ } else {
37373
+ newLine(line, forward);
37374
+ }
37375
+ };
37376
+ // Only the line goes, without joining the lines either side. Backspace
37377
+ // leaves the caret at the end of the line before, Delete at the start of
37378
+ // the line after, or the other side at the start or end of the content
37379
+ const remove = (line, forward)=>{
37380
+ const before = beside(line, false);
37381
+ const after = beside(line, true);
37382
+ const next = forward ? after ?? before : before ?? after;
37383
+ if (!next) {
37384
+ newLine(line, true);
37385
+ }
37386
+ editor.s.removeNode(line);
37387
+ if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(next, 'hr')) {
37388
+ editor.s.select(next);
37389
+ } else if (next) {
37390
+ editor.s.setCursorIn(next, next === after);
37391
+ }
37392
+ };
37393
+ // The nodes either side of a caret left beside a line in the editor
37394
+ // itself, outside any line of text, as a click beside the line, Jodit's
37395
+ // own delete or a paste leaves it
37396
+ const around = (range)=>{
37397
+ const { startContainer: box, startOffset } = range;
37398
+ if (!range.collapsed || box !== editor.editor) {
37399
+ return null;
37400
+ }
37401
+ const before = nearest(box.childNodes[startOffset - 1] ?? null, false);
37402
+ const after = nearest(box.childNodes[startOffset] ?? null, true);
37403
+ return isLoose(before) || isLoose(after) ? [
37404
+ before,
37405
+ after
37406
+ ] : null;
37407
+ };
37408
+ // After a click beside a line, off it, the caret goes to the nearest line
37409
+ // of text: the one above for a click above the line, the one below for a
37410
+ // click below
37411
+ const leave = ()=>{
37412
+ const sides = around(editor.s.range);
37413
+ if (!sides || !editable()) {
37414
+ return;
37415
+ }
37416
+ const [before, after] = sides;
37417
+ const forward = !isLoose(after);
37418
+ let edge = forward ? before : after;
37419
+ let next = forward ? after : before;
37420
+ while(isLoose(next)){
37421
+ edge = next;
37422
+ next = beside(next, forward);
37423
+ }
37424
+ if (next) {
37425
+ editor.s.setCursorIn(next, forward);
37426
+ } else if (edge) {
37427
+ newLine(edge, forward);
37428
+ editor.synchronizeValues();
37429
+ }
37430
+ };
37431
+ // The browsers stop the caret beside a line, so an arrow key that takes
37432
+ // the caret out of a block towards a line selects the line instead
37433
+ const arriveAt = (from, forward)=>{
37434
+ const top = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.up(from.startContainer, (node)=>node?.parentNode === editor.editor, editor.editor);
37435
+ const next = top && beside(top, forward);
37436
+ if (!top || !isLoose(next)) {
37437
+ return;
37438
+ }
37439
+ // Once the browser has moved the caret
37440
+ editor.async.setTimeout(()=>{
37441
+ const { range } = editor.s;
37442
+ if (range.collapsed && !top.contains(range.startContainer) && editor.editor.contains(next)) {
37443
+ editor.s.select(next);
37444
+ }
37445
+ }, 1);
37446
+ };
37447
+ // Delete or Backspace in an empty block next to a line removes the block
37448
+ // and selects the line, as it was before Enter on it. Jodit's own delete
37449
+ // would leave the caret beside the line
37450
+ const deleteEmpty = (range, forward)=>{
37451
+ const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(range.startContainer, jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
37452
+ const next = block && beside(block, forward);
37453
+ if (!block || block.parentNode !== editor.editor || !isLoose(next) || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(block)) {
37454
+ return false;
37455
+ }
37456
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(block);
37457
+ editor.s.select(next);
37458
+ return true;
37459
+ };
37460
+ // A key with the caret in a line of text, or beside a line: an arrow
37461
+ // key, Delete or Backspace that goes to a line selects it
37462
+ const atCaret = (e, range)=>{
37463
+ const deleting = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE;
37464
+ const forward = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE;
37465
+ const arrow = forward ? e.key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE : e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT;
37466
+ if (!range.collapsed || !plain(e) || !(arrow || deleting)) {
37467
+ return false;
37468
+ }
37469
+ const sides = around(range);
37470
+ if (!sides) {
37471
+ if (arrow) {
37472
+ arriveAt(range, forward);
37473
+ return false;
37474
+ }
37475
+ return deleteEmpty(range, forward);
37476
+ }
37477
+ const [before, after] = sides;
37478
+ const next = forward ? after : before;
37479
+ if (isLoose(next)) {
37480
+ editor.s.select(next);
37481
+ } else if (deleting) {
37482
+ return false;
37483
+ } else if (next) {
37484
+ editor.s.setCursorIn(next, forward);
37485
+ } else {
37486
+ newLine(forward ? before : after, forward);
37487
+ }
37488
+ return true;
37489
+ };
37490
+ // A key with a line selected
37491
+ const onLine = (e, line)=>{
37492
+ const back = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT;
37493
+ if (plain(e) && (back || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT)) {
37494
+ pass(line, !back);
37495
+ } else if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE) {
37496
+ remove(line, e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE);
37497
+ } else {
37498
+ // Typing starts a new paragraph after the line, and the browser
37499
+ // types the letter into it
37500
+ if (e.key?.length === 1 && !e.ctrlKey && !e.metaKey) {
37501
+ newLine(line, true);
37502
+ }
37503
+ return false;
37504
+ }
37505
+ return true;
37506
+ };
37507
+ // Enter with a line selected adds a paragraph after the line, and
37508
+ // Shift+Enter one before it, between the Enter plugin's own events. The
37509
+ // plugin itself would delete the line
37510
+ const enter = (e, line)=>{
37511
+ const result = editor.e.fire('beforeEnter', e);
37512
+ if (result !== undefined) {
37513
+ return result;
37514
+ }
37515
+ editor.history.snapshot.transaction(()=>{
37516
+ newLine(line, !e.shiftKey);
37517
+ editor.e.fire('afterEnter', e);
37518
+ });
37519
+ editor.synchronizeValues();
37520
+ return false;
37521
+ };
37522
+ // How far above or below a line a click still selects it
37523
+ const slack = 6;
37524
+ // The press that selected a line, for its click to open the popup
37525
+ let pressed = null;
37526
+ editor.e.on('afterInit', ()=>{
37527
+ editor.e.on(editor.ed, 'selectionchange', ()=>{
37528
+ const { sel } = editor.s;
37529
+ frame(sel?.rangeCount ? lineIn(sel.getRangeAt(0)) : null);
37530
+ });
37531
+ }).on('keydown', (e)=>{
37532
+ if (!editable() || e.isComposing) {
37533
+ return;
37534
+ }
37535
+ const { range } = editor.s;
37536
+ const line = lineIn(range);
37537
+ if (line && e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER) {
37538
+ editor.e.stopPropagation('keydown');
37539
+ return enter(e, line);
37540
+ }
37541
+ if (line ? !onLine(e, line) : !atCaret(e, range)) {
37542
+ return;
37543
+ }
37544
+ editor.e.stopPropagation('keydown');
37545
+ editor.synchronizeValues();
37546
+ return false;
37547
+ }, {
37548
+ top: true
37549
+ }).on('mousedown', (e)=>{
37550
+ pressed = null;
37551
+ if (!editable() || e.button !== 0 || e.shiftKey) {
37552
+ return;
37553
+ }
37554
+ const line = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(editor.editor.getElementsByTagName('hr')).find((line)=>{
37555
+ if (e.target !== line && e.target !== line.parentNode) {
37556
+ return false;
37557
+ }
37558
+ const box = line.getBoundingClientRect();
37559
+ return e.clientX >= box.left && e.clientX <= box.right && e.clientY >= box.top - slack && e.clientY <= box.bottom + slack;
37560
+ });
37561
+ if (line) {
37562
+ // The browser's own press would put the caret beside the line
37563
+ e.preventDefault();
37564
+ pressed = line;
37565
+ editor.s.select(line);
37566
+ }
37567
+ }).on('click', ()=>{
37568
+ const line = pressed;
37569
+ pressed = null;
37570
+ // After the click's own handlers, which close the popups
37571
+ line && editor.async.setTimeout(()=>editor.e.fire('showPopup', line, ()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(line, editor), 'hr'), 1);
37572
+ }).on('mouseup', ()=>{
37573
+ editor.async.setTimeout(leave, 1);
37574
+ }).on('deleteHorizontalRule', (line)=>{
37575
+ if (editable()) {
37576
+ remove(line, true);
37577
+ editor.synchronizeValues();
37578
+ }
37579
+ });
37272
37580
  }
37273
- jodit_core_global__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hr', hr);
37581
+ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hr', hr);
37274
37582
 
37275
37583
 
37276
37584
  /***/ }),
@@ -40635,27 +40943,28 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
40635
40943
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5266);
40636
40944
  /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70235);
40637
40945
  /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17849);
40638
- /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(466);
40639
- /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75711);
40640
- /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59399);
40641
- /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38681);
40642
- /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8__);
40643
- /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(64637);
40644
- /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9__);
40645
- /* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(92148);
40646
- /* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_10__);
40647
- /* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(20115);
40648
- /* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_11__);
40649
- /* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(94190);
40650
- /* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_12__);
40651
- /* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(51957);
40652
- /* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_13__);
40653
- /* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(71940);
40654
- /* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_14__);
40655
- /* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(43218);
40656
- /* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_15__);
40657
- /* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(48007);
40658
- /* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_16__);
40946
+ /* harmony import */ var _items_hr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85732);
40947
+ /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(466);
40948
+ /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75711);
40949
+ /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59399);
40950
+ /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38681);
40951
+ /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9__);
40952
+ /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64637);
40953
+ /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10__);
40954
+ /* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92148);
40955
+ /* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11__);
40956
+ /* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(20115);
40957
+ /* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12__);
40958
+ /* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(94190);
40959
+ /* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13__);
40960
+ /* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51957);
40961
+ /* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14__);
40962
+ /* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(71940);
40963
+ /* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15__);
40964
+ /* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(43218);
40965
+ /* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16__);
40966
+ /* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(48007);
40967
+ /* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17__);
40659
40968
  /*!
40660
40969
  * Jodit Editor (https://xdsoft.net/jodit/)
40661
40970
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40679,6 +40988,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
40679
40988
 
40680
40989
 
40681
40990
 
40991
+
40682
40992
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
40683
40993
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
40684
40994
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
@@ -40686,7 +40996,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableF
40686
40996
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
40687
40997
  'source'
40688
40998
  ];
40689
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__.Icon.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8___default())).set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9___default())).set('caption', (jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_10___default())).set('headerrow', (jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_11___default())).set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_12___default())).set('th', (jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_15___default())).set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_13___default())).set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_14___default())).set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_16___default()));
40999
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__.Icon.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9___default())).set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10___default())).set('caption', (jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11___default())).set('headerrow', (jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12___default())).set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13___default())).set('th', (jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16___default())).set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14___default())).set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15___default())).set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17___default()));
40690
41000
  // Register cell popup buttons as global controls so they can be
40691
41001
  // referenced by name in custom popup configurations.
40692
41002
  // Skip buttons that already exist in controls (e.g. 'align' from justify plugin).
@@ -40697,12 +41007,13 @@ _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"].forEach((item)=>{
40697
41007
  });
40698
41008
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.popup = {
40699
41009
  a: _items_a__WEBPACK_IMPORTED_MODULE_3__["default"],
40700
- img: _items_img__WEBPACK_IMPORTED_MODULE_6__["default"],
41010
+ img: _items_img__WEBPACK_IMPORTED_MODULE_7__["default"],
40701
41011
  cells: _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"],
40702
- toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_7__["default"],
40703
- jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
40704
- iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
40705
- 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
41012
+ hr: _items_hr__WEBPACK_IMPORTED_MODULE_5__["default"],
41013
+ toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_8__["default"],
41014
+ jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
41015
+ iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
41016
+ 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
40706
41017
  selection: [
40707
41018
  'bold',
40708
41019
  'underline',
@@ -40890,6 +41201,30 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
40890
41201
  ]);
40891
41202
 
40892
41203
 
41204
+ /***/ }),
41205
+
41206
+ /***/ 85732:
41207
+ /***/ (function(__unused_webpack_module, __webpack_exports__) {
41208
+
41209
+ "use strict";
41210
+ /*!
41211
+ * Jodit Editor (https://xdsoft.net/jodit/)
41212
+ * Released under MIT see LICENSE.txt in the project root for license information.
41213
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
41214
+ */ /**
41215
+ * @module plugins/inline-popup
41216
+ */ /* harmony default export */ __webpack_exports__["default"] = ([
41217
+ {
41218
+ name: 'delete',
41219
+ icon: 'bin',
41220
+ tooltip: 'Delete',
41221
+ exec: (editor, line)=>{
41222
+ line && editor.e.fire('deleteHorizontalRule', line);
41223
+ }
41224
+ }
41225
+ ]);
41226
+
41227
+
40893
41228
  /***/ }),
40894
41229
 
40895
41230
  /***/ 466:
@@ -41692,7 +42027,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('justify', justi
41692
42027
  if (endContainer.nodeValue?.length === endOffset) {
41693
42028
  const { parentNode } = endContainer;
41694
42029
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isInlineBlock(parentNode) && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.findNotEmptyNeighbor(parentNode, false, this.j.editor)) {
41695
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.after(parentNode, this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.NBSP_SPACE));
42030
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.after(parentNode, this.j.createInside.fake());
41696
42031
  }
41697
42032
  }
41698
42033
  }
@@ -42444,6 +42779,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.link = {
42444
42779
  preventReadOnlyNavigation: true,
42445
42780
  selectSizeClassName: 3,
42446
42781
  selectOptionsClassName: [],
42782
+ selectKeepOtherClassNames: false,
42447
42783
  hotkeys: [
42448
42784
  'ctrl+k',
42449
42785
  'cmd+k'
@@ -42491,11 +42827,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
42491
42827
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
42492
42828
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
42493
42829
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
42494
- /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(96007);
42495
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29434);
42496
- /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(51116);
42497
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(65230);
42498
- /* harmony import */ var _typed_link__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(99763);
42830
+ /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59400);
42831
+ /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(96007);
42832
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29434);
42833
+ /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(51116);
42834
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(65230);
42835
+ /* harmony import */ var _typed_link__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(99763);
42499
42836
  /*!
42500
42837
  * Jodit Editor (https://xdsoft.net/jodit/)
42501
42838
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42518,6 +42855,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
42518
42855
 
42519
42856
 
42520
42857
 
42858
+
42521
42859
  /**
42522
42860
  * Process link. Insert, dblclick or remove format
42523
42861
  */ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
@@ -42601,7 +42939,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
42601
42939
  __generateForm(current, close) {
42602
42940
  const { jodit } = this;
42603
42941
  const i18n = jodit.i18n.bind(jodit);
42604
- const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName, contentMode } = jodit.o.link;
42942
+ const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName, contentMode, selectKeepOtherClassNames } = jodit.o.link;
42605
42943
  const html = formTemplate(jodit);
42606
42944
  const form = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.isString)(html) ? jodit.c.fromHTML(html, {
42607
42945
  target_checkbox_box: openInNewTabCheckbox,
@@ -42657,7 +42995,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
42657
42995
  if (noFollowCheckbox && nofollow_checkbox) {
42658
42996
  nofollow_checkbox.checked = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
42659
42997
  }
42660
- insert.textContent = i18n('Update');
42998
+ // Through the button's state, so its text keeps its own element and styles
42999
+ const insertButton = jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(insert, jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UIButton);
43000
+ if (insertButton) {
43001
+ insertButton.state.text = 'Update';
43002
+ } else {
43003
+ insert.textContent = i18n('Update');
43004
+ }
42661
43005
  } else {
42662
43006
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.hide(unlink);
42663
43007
  if (jodit.o.link.deriveUrlFromText && url_input && !isImageContent && !url_input.value.trim()) {
@@ -42722,7 +43066,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
42722
43066
  }
42723
43067
  links.forEach((a)=>{
42724
43068
  ;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'href', url_input.value);
42725
- writeClasses(modeClassName, className_input, className_select, a);
43069
+ writeClasses(modeClassName, className_input, className_select, a, selectKeepOtherClassNames);
42726
43070
  if (!isImageContent) {
42727
43071
  writeContent(jodit, a, content_input.value, contentWasChanged, url_input.value, contentMode);
42728
43072
  }
@@ -42830,7 +43174,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
42830
43174
  if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(node) || !node.isConnected || end < 0 || end > node.length || jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(node, NO_TYPED_LINKS, jodit.editor)) {
42831
43175
  return;
42832
43176
  }
42833
- const found = (0,_typed_link__WEBPACK_IMPORTED_MODULE_12__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
43177
+ const found = (0,_typed_link__WEBPACK_IMPORTED_MODULE_13__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
42834
43178
  if (!found) {
42835
43179
  return;
42836
43180
  }
@@ -42929,7 +43273,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
42929
43273
  */ function addAnchorList(jodit, url, content, isImage) {
42930
43274
  const anchors = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchors)(jodit.editor);
42931
43275
  const field = url?.closest('.jodit-ui-input__wrapper');
42932
- const input = field && jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement.closestElement(field, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement);
43276
+ const input = field && jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(field, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement);
42933
43277
  if (!field || !input || !anchors.length) {
42934
43278
  return;
42935
43279
  }
@@ -42948,13 +43292,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
42948
43292
  role: 'group',
42949
43293
  'aria-labelledby': heading.id
42950
43294
  });
42951
- const icon = (name)=>jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_9__.Icon.makeIcon(jodit, {
43295
+ const icon = (name)=>jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__.Icon.makeIcon(jodit, {
42952
43296
  name,
42953
43297
  iconURL: '',
42954
43298
  fill: '',
42955
43299
  scale: undefined
42956
43300
  }) ?? c.span();
42957
- const dropdown = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_10__.Popup(jodit).setMod('padding', false);
43301
+ const dropdown = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_11__.Popup(jodit).setMod('padding', false);
42958
43302
  const items = [];
42959
43303
  let filled = '';
42960
43304
  const open = ()=>{
@@ -43065,7 +43409,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
43065
43409
  return value;
43066
43410
  }
43067
43411
  // email address -> mailto:
43068
- if (_typed_link__WEBPACK_IMPORTED_MODULE_12__.EMAIL.test(value)) {
43412
+ if (_typed_link__WEBPACK_IMPORTED_MODULE_13__.EMAIL.test(value)) {
43069
43413
  return `mailto:${value}`;
43070
43414
  }
43071
43415
  // bare domain like example.com or www.example.com/path -> https://
@@ -43074,7 +43418,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
43074
43418
  }
43075
43419
  return '';
43076
43420
  }
43077
- function writeClasses(modeClassName, className_input, className_select, a) {
43421
+ function writeClasses(modeClassName, className_input, className_select, a, keepOtherClassNames) {
43078
43422
  if (modeClassName && (className_input ?? className_select)) {
43079
43423
  if (modeClassName === 'input') {
43080
43424
  if (className_input.value === '' && a.hasAttribute('class')) {
@@ -43084,16 +43428,15 @@ function writeClasses(modeClassName, className_input, className_select, a) {
43084
43428
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', className_input.value);
43085
43429
  }
43086
43430
  } else if (modeClassName === 'select') {
43087
- if (a.hasAttribute('class')) {
43431
+ const classes = (option)=>option.value.split(/\s+/).filter((cn)=>cn.trim().length > 0);
43432
+ if (keepOtherClassNames) {
43433
+ Array.from(className_select.options).forEach((option)=>classes(option).forEach((cn)=>a.classList.remove(cn)));
43434
+ } else {
43088
43435
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', null);
43089
43436
  }
43090
- for(let i = 0; i < className_select.selectedOptions.length; i++){
43091
- const className = className_select.selectedOptions.item(i)?.value;
43092
- if (className) {
43093
- className.split(/\s+/).filter((cn)=>cn.trim().length > 0).forEach((cn)=>{
43094
- a.classList.add(cn);
43095
- });
43096
- }
43437
+ Array.from(className_select.selectedOptions).forEach((option)=>classes(option).forEach((cn)=>a.classList.add(cn)));
43438
+ if (!a.classList.length) {
43439
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', null);
43097
43440
  }
43098
43441
  }
43099
43442
  }
@@ -43307,6 +43650,7 @@ const formTemplate = (editor)=>{
43307
43650
 
43308
43651
  "use strict";
43309
43652
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
43653
+ /* harmony export */ EMAIL: function() { return /* binding */ EMAIL; },
43310
43654
  /* harmony export */ findTypedLink: function() { return /* binding */ findTypedLink; }
43311
43655
  /* harmony export */ });
43312
43656
  /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91764);
@@ -43405,10 +43749,6 @@ function typedLinkHref(address, tlds, fileEndings) {
43405
43749
  return labels.length > 1 && labels.every((label)=>LABEL.test(label) && !label.endsWith('-')) && (_tlds__WEBPACK_IMPORTED_MODULE_1__.TLDS.has(ending) || tlds.includes(ending)) && !fileEndings.includes(ending) && /[a-z]/i.test(labels[0]);
43406
43750
  }
43407
43751
 
43408
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
43409
- /* harmony export */ "EMAIL", 0, /* binding */ EMAIL
43410
- /* harmony export */ ]);
43411
-
43412
43752
 
43413
43753
  /***/ }),
43414
43754
 
@@ -44188,12 +44528,12 @@ class pasteFromWord extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugi
44188
44528
  }
44189
44529
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_AS_TEXT:
44190
44530
  {
44191
- html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html);
44531
+ html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html, this.j.o.pasteKeepAttributes);
44192
44532
  break;
44193
44533
  }
44194
44534
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_ONLY_TEXT:
44195
44535
  {
44196
- html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.stripTags)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html), this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
44536
+ html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.stripTags)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html, this.j.o.pasteKeepAttributes), this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
44197
44537
  break;
44198
44538
  }
44199
44539
  }
@@ -44412,6 +44752,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteExcludeStripTags
44412
44752
  'br',
44413
44753
  'hr'
44414
44754
  ];
44755
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteKeepAttributes = [
44756
+ ...jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.PASTE_KEEP_ATTRIBUTES
44757
+ ];
44415
44758
  jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteHTMLActionList = [
44416
44759
  {
44417
44760
  value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML,
@@ -44775,7 +45118,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paste = {
44775
45118
  this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.CLIPBOARD_ID, html);
44776
45119
  switch(action){
44777
45120
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_CLEAR_HTML:
44778
- html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.cleanFromWord)((0,_helpers__WEBPACK_IMPORTED_MODULE_9__.removeGoogleDocsWrapper)(html));
45121
+ html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.cleanFromWord)((0,_helpers__WEBPACK_IMPORTED_MODULE_9__.removeGoogleDocsWrapper)(html), this.j.o.pasteKeepAttributes);
44779
45122
  break;
44780
45123
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_ONLY_TEXT:
44781
45124
  html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.stripTags)(html, this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
@@ -50717,6 +51060,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('sticky', sticky
50717
51060
 
50718
51061
 
50719
51062
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.usePopupForSpecialCharacters = false;
51063
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.specialCharactersColumns = 17;
50720
51064
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.specialCharacters = [
50721
51065
  '!',
50722
51066
  '&quot;',
@@ -51378,10 +51722,11 @@ __webpack_require__.r(__webpack_exports__);
51378
51722
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
51379
51723
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23211);
51380
51724
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28077);
51381
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(93640);
51382
- /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18855);
51383
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18993);
51384
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91017);
51725
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28686);
51726
+ /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93640);
51727
+ /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18855);
51728
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18993);
51729
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91017);
51385
51730
  /*!
51386
51731
  * Jodit Editor (https://xdsoft.net/jodit/)
51387
51732
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -51399,11 +51744,14 @@ __webpack_require__.r(__webpack_exports__);
51399
51744
 
51400
51745
 
51401
51746
 
51747
+
51402
51748
  /**
51403
51749
  * The plugin inserts characters that are not part of the standard keyboard.
51404
- */ class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__.Plugin {
51750
+ */ class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin {
51405
51751
  afterInit(jodit) {
51406
51752
  jodit.e.on('generateSpecialCharactersTable.symbols', ()=>{
51753
+ const { specialCharactersColumns } = jodit.o;
51754
+ const columns = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isInt)(specialCharactersColumns) && specialCharactersColumns > 0 ? Number(specialCharactersColumns) : 17;
51407
51755
  const container = jodit.c.fromHTML(`<div class="jodit-symbols__container">
51408
51756
  <div class="jodit-symbols__container_table">
51409
51757
  <table class="jodit-symbols__table"><tbody></tbody></table>
@@ -51412,13 +51760,14 @@ __webpack_require__.r(__webpack_exports__);
51412
51760
  <div class="jodit-symbols__preview"></div>
51413
51761
  </div>
51414
51762
  </div>`);
51763
+ container.style.setProperty('--jd-symbols-columns', String(columns));
51415
51764
  const preview = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.first(container, (node)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isHTMLElement(node) && node.classList.contains('jodit-symbols__preview'));
51416
51765
  const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.first(container, (node)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'table'));
51417
51766
  const body = table.tBodies[0];
51418
51767
  const chars = [];
51419
51768
  for(let i = 0; i < jodit.o.specialCharacters.length;){
51420
51769
  const tr = jodit.c.element('tr');
51421
- for(let j = 0; j < this.__countInRow && i < jodit.o.specialCharacters.length; j += 1, i += 1){
51770
+ for(let j = 0; j < columns && i < jodit.o.specialCharacters.length; j += 1, i += 1){
51422
51771
  const td = jodit.c.element('td'), a = jodit.c.fromHTML(`<a
51423
51772
  data-index="${i}"
51424
51773
  data-index-j="${j}"
@@ -51431,7 +51780,6 @@ __webpack_require__.r(__webpack_exports__);
51431
51780
  }
51432
51781
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(body, tr);
51433
51782
  }
51434
- const self = this;
51435
51783
  jodit.e.on(chars, 'focus', function() {
51436
51784
  preview.innerHTML = this.innerHTML;
51437
51785
  }).on(chars, 'mousedown', function(e) {
@@ -51451,16 +51799,16 @@ __webpack_require__.r(__webpack_exports__);
51451
51799
  }).on(chars, 'keydown', (e)=>{
51452
51800
  const target = e.target;
51453
51801
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(target, 'a')) {
51454
- const index = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(target, '-index') || '0', 10), jIndex = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(target, 'data-index-j') || '0', 10);
51802
+ const index = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(target, '-index') || '0', 10), jIndex = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(target, 'data-index-j') || '0', 10);
51455
51803
  let newIndex;
51456
51804
  switch(e.key){
51457
51805
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP:
51458
51806
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN:
51459
- newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? index - self.__countInRow : index + self.__countInRow;
51807
+ newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? index - columns : index + columns;
51460
51808
  if (chars[newIndex] === undefined) {
51461
- newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? Math.floor(chars.length / self.__countInRow) * self.__countInRow + jIndex : jIndex;
51809
+ newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? Math.floor(chars.length / columns) * columns + jIndex : jIndex;
51462
51810
  if (newIndex > chars.length - 1) {
51463
- newIndex -= self.__countInRow;
51811
+ newIndex -= columns;
51464
51812
  }
51465
51813
  }
51466
51814
  chars[newIndex] && chars[newIndex].focus();
@@ -51493,8 +51841,8 @@ __webpack_require__.r(__webpack_exports__);
51493
51841
  name: 'symbols',
51494
51842
  group: 'insert'
51495
51843
  }
51496
- ]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__countInRow", 17);
51497
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_7__);
51844
+ ]);
51845
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_8__);
51498
51846
  }
51499
51847
  }
51500
51848
  jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('symbols', symbols);
@@ -51535,7 +51883,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('symbols', symbo
51535
51883
  /* harmony export */ });
51536
51884
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
51537
51885
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
51538
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__);
51539
51886
  /*!
51540
51887
  * Jodit Editor (https://xdsoft.net/jodit/)
51541
51888
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -54781,7 +55128,7 @@ function _define_property(obj, key, value) {
54781
55128
  } else obj[key] = value;
54782
55129
  return obj;
54783
55130
  }
54784
-
55131
+ ;
54785
55132
 
54786
55133
 
54787
55134
  /***/ }),
@@ -54806,7 +55153,7 @@ function _ts_decorate(decorators, target, key, desc) {
54806
55153
  }
54807
55154
  return c > 3 && r && Object.defineProperty(target, key, r), r;
54808
55155
  }
54809
-
55156
+ ;
54810
55157
 
54811
55158
 
54812
55159
  /***/ })
@@ -54899,7 +55246,7 @@ function _ts_decorate(decorators, target, key, desc) {
54899
55246
  /******/ }
54900
55247
  /******/ var ns = Object.create(null);
54901
55248
  /******/ __webpack_require__.r(ns);
54902
- /******/ var def = {};
55249
+ /******/ var def = Object.create(null);
54903
55250
  /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
54904
55251
  /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
54905
55252
  /******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
@@ -54918,7 +55265,7 @@ function _ts_decorate(decorators, target, key, desc) {
54918
55265
  /******/ while(i < definition.length) {
54919
55266
  /******/ var key = definition[i++];
54920
55267
  /******/ var binding = definition[i++];
54921
- /******/ var descriptor = binding === 0 ? { enumerable: true, value: definition[i++] } : { enumerable: true, get: binding };
55268
+ /******/ var descriptor = binding ? { enumerable: true, get: binding } : { enumerable: true, value: definition[i++] };
54922
55269
  /******/ if(!__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, descriptor);
54923
55270
  /******/ }
54924
55271
  /******/ } else {
@@ -54992,7 +55339,7 @@ function _ts_decorate(decorators, target, key, desc) {
54992
55339
  /******/ return __webpack_require__.O(result);
54993
55340
  /******/ }
54994
55341
  /******/
54995
- /******/ var chunkLoadingGlobal = self["webpackChunkjodit"] = self["webpackChunkjodit"] || [];
55342
+ /******/ var chunkLoadingGlobal = Array.isArray(self["webpackChunkjodit"]) ? self["webpackChunkjodit"] : (self["webpackChunkjodit"] = []);
54996
55343
  /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
54997
55344
  /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
54998
55345
  /******/ }();