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
@@ -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);
@@ -20664,7 +20721,6 @@ ContextMenu = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__._)([
20664
20721
  /* harmony import */ var jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22852);
20665
20722
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(93640);
20666
20723
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(28712);
20667
- /* 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__);
20668
20724
  /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4099);
20669
20725
  /* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35099);
20670
20726
  /* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2222);
@@ -22089,6 +22145,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.filebrowser
22089
22145
 
22090
22146
  "use strict";
22091
22147
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22148
+ /* harmony export */ DEFAULT_SOURCE_NAME: function() { return /* binding */ DEFAULT_SOURCE_NAME; },
22092
22149
  /* harmony export */ "default": function() { return /* binding */ DataProvider; }
22093
22150
  /* harmony export */ });
22094
22151
  /* unused harmony export assertSourcesAnswer */
@@ -22530,7 +22587,7 @@ class DataProvider {
22530
22587
  this.progressHandler = (ignore)=>{};
22531
22588
  }
22532
22589
  }
22533
-
22590
+ ;
22534
22591
  ;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._)([
22535
22592
  jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
22536
22593
  ], DataProvider.prototype, "onProgress", null);
@@ -22586,10 +22643,6 @@ class DataProvider {
22586
22643
  jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
22587
22644
  ], DataProvider.prototype, "destruct", null);
22588
22645
 
22589
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
22590
- /* harmony export */ "DEFAULT_SOURCE_NAME", 0, /* binding */ DEFAULT_SOURCE_NAME
22591
- /* harmony export */ ]);
22592
-
22593
22646
 
22594
22647
  /***/ }),
22595
22648
 
@@ -26009,7 +26062,6 @@ const instance = (j)=>j.getInstance('Table', j.o);
26009
26062
  /* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86878);
26010
26063
  /* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(57821);
26011
26064
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(28712);
26012
- /* 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__);
26013
26065
  /* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(7909);
26014
26066
  /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(71125);
26015
26067
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59400);
@@ -27738,6 +27790,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
27738
27790
 
27739
27791
  "use strict";
27740
27792
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27793
+ /* harmony export */ ajaxInstances: function() { return /* binding */ ajaxInstances; },
27741
27794
  /* harmony export */ send: function() { return /* binding */ send; }
27742
27795
  /* harmony export */ });
27743
27796
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65946);
@@ -27819,10 +27872,6 @@ function send(uploader, data) {
27819
27872
  return sendData(requestData, showProgress);
27820
27873
  }
27821
27874
 
27822
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
27823
- /* harmony export */ "ajaxInstances", 0, /* binding */ ajaxInstances
27824
- /* harmony export */ ]);
27825
-
27826
27875
 
27827
27876
  /***/ }),
27828
27877
 
@@ -36822,12 +36871,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hotkeys', hotke
36822
36871
 
36823
36872
  "use strict";
36824
36873
  /* unused harmony export hr */
36825
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
36826
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28077);
36827
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29434);
36828
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5266);
36829
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89097);
36830
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
36874
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
36875
+ /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27795);
36876
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28077);
36877
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65946);
36878
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
36879
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
36880
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89097);
36881
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_6__);
36831
36882
  /*!
36832
36883
  * Jodit Editor (https://xdsoft.net/jodit/)
36833
36884
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36841,8 +36892,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hotkeys', hotke
36841
36892
 
36842
36893
 
36843
36894
 
36844
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
36845
- jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
36895
+
36896
+
36897
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_6___default()));
36898
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.hr = {
36846
36899
  command: 'insertHorizontalRule',
36847
36900
  tooltip: 'Insert Horizontal Line'
36848
36901
  };
@@ -36854,36 +36907,291 @@ function hr(editor) {
36854
36907
  editor.registerCommand('insertHorizontalRule', ()=>{
36855
36908
  const elm = editor.createInside.element('hr');
36856
36909
  editor.s.insertNode(elm, false, false);
36857
- const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(elm.parentElement, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock, editor.editor);
36910
+ const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(elm.parentElement, jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
36858
36911
  // A block that holds other blocks, such as a list item or a table
36859
36912
  // cell, keeps the line
36860
- if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(block) && block !== editor.editor && !editor.o.dtd?.blockLimits[block.nodeName.toLowerCase()]) {
36861
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.after(block, elm);
36862
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(block);
36913
+ if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(block) && block !== editor.editor && !editor.o.dtd?.blockLimits[block.nodeName.toLowerCase()]) {
36914
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(block, elm);
36915
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(block);
36863
36916
  }
36864
- const next = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.findNotEmptySibling(elm, false);
36865
- if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(next)) {
36917
+ const next = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(elm, false);
36918
+ if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(next)) {
36866
36919
  editor.s.setCursorIn(next, true);
36867
36920
  return false;
36868
36921
  }
36869
36922
  // In a list item or a table cell the text goes on after the line, as
36870
36923
  // it does with the browsers' own command
36871
- 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))) {
36924
+ 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))) {
36872
36925
  editor.s.setCursorAfter(elm);
36873
36926
  return false;
36874
36927
  }
36875
36928
  const p = editor.createInside.element(editor.o.enter);
36876
36929
  // As Enter's new line has, so it keeps its height without clean-html's
36877
36930
  // fillEmptyParagraph (#1807)
36878
- if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(p, 'br')) {
36879
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(p, editor.createInside.element('br'));
36931
+ if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(p, 'br')) {
36932
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.append(p, editor.createInside.element('br'));
36880
36933
  }
36881
- jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.after(elm, p);
36934
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(elm, p);
36882
36935
  editor.s.setCursorIn(p);
36883
36936
  return false;
36884
36937
  });
36938
+ // A horizontal line is selected whole, as an image is: by a click on it,
36939
+ // or by an arrow key that comes to it (#1802)
36940
+ const nearest = (node, forward)=>{
36941
+ while(node && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyTextNode(node)){
36942
+ node = forward ? node.nextSibling : node.previousSibling;
36943
+ }
36944
+ return node;
36945
+ };
36946
+ const beside = (node, forward)=>nearest(forward ? node.nextSibling : node.previousSibling, forward);
36947
+ // A line between blocks, where the caret beside it isn't in a line of
36948
+ // text, as it is in a list item or a table cell (#1606)
36949
+ 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;
36950
+ // The line a range holds, and nothing else
36951
+ const lineIn = (range)=>{
36952
+ const { startContainer: box, startOffset } = range;
36953
+ const node = box.childNodes[startOffset];
36954
+ 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;
36955
+ };
36956
+ // The browsers don't draw a selection round a line, so a rule in the
36957
+ // editor's document frames it, as the table module marks cells
36958
+ let framed = null;
36959
+ const frame = (line)=>{
36960
+ if (line === framed) {
36961
+ return;
36962
+ }
36963
+ framed = line;
36964
+ const path = line && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.cssPath)(line);
36965
+ (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}` : '';
36966
+ };
36967
+ const editable = ()=>!editor.o.readonly && !editor.isLocked;
36968
+ const plain = (e)=>!e.shiftKey && !e.ctrlKey && !e.metaKey && !e.altKey;
36969
+ const newLine = (node, after)=>{
36970
+ const p = editor.createInside.element(editor.o.enter);
36971
+ const br = editor.createInside.element('br');
36972
+ p.appendChild(br);
36973
+ after ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(node, p) : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.before(node, p);
36974
+ editor.s.setCursorBefore(br);
36975
+ };
36976
+ // On from a line the way an arrow key goes: to the next line in a row,
36977
+ // which is selected in turn, or into the text beyond, or into a new
36978
+ // paragraph at the start or end of the content
36979
+ const pass = (line, forward)=>{
36980
+ const next = beside(line, forward);
36981
+ if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(next, 'hr')) {
36982
+ editor.s.select(next);
36983
+ } else if (next) {
36984
+ editor.s.setCursorIn(next, forward);
36985
+ } else {
36986
+ newLine(line, forward);
36987
+ }
36988
+ };
36989
+ // Only the line goes, without joining the lines either side. Backspace
36990
+ // leaves the caret at the end of the line before, Delete at the start of
36991
+ // the line after, or the other side at the start or end of the content
36992
+ const remove = (line, forward)=>{
36993
+ const before = beside(line, false);
36994
+ const after = beside(line, true);
36995
+ const next = forward ? after ?? before : before ?? after;
36996
+ if (!next) {
36997
+ newLine(line, true);
36998
+ }
36999
+ editor.s.removeNode(line);
37000
+ if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(next, 'hr')) {
37001
+ editor.s.select(next);
37002
+ } else if (next) {
37003
+ editor.s.setCursorIn(next, next === after);
37004
+ }
37005
+ };
37006
+ // The nodes either side of a caret left beside a line in the editor
37007
+ // itself, outside any line of text, as a click beside the line, Jodit's
37008
+ // own delete or a paste leaves it
37009
+ const around = (range)=>{
37010
+ const { startContainer: box, startOffset } = range;
37011
+ if (!range.collapsed || box !== editor.editor) {
37012
+ return null;
37013
+ }
37014
+ const before = nearest(box.childNodes[startOffset - 1] ?? null, false);
37015
+ const after = nearest(box.childNodes[startOffset] ?? null, true);
37016
+ return isLoose(before) || isLoose(after) ? [
37017
+ before,
37018
+ after
37019
+ ] : null;
37020
+ };
37021
+ // After a click beside a line, off it, the caret goes to the nearest line
37022
+ // of text: the one above for a click above the line, the one below for a
37023
+ // click below
37024
+ const leave = ()=>{
37025
+ const sides = around(editor.s.range);
37026
+ if (!sides || !editable()) {
37027
+ return;
37028
+ }
37029
+ const [before, after] = sides;
37030
+ const forward = !isLoose(after);
37031
+ let edge = forward ? before : after;
37032
+ let next = forward ? after : before;
37033
+ while(isLoose(next)){
37034
+ edge = next;
37035
+ next = beside(next, forward);
37036
+ }
37037
+ if (next) {
37038
+ editor.s.setCursorIn(next, forward);
37039
+ } else if (edge) {
37040
+ newLine(edge, forward);
37041
+ editor.synchronizeValues();
37042
+ }
37043
+ };
37044
+ // The browsers stop the caret beside a line, so an arrow key that takes
37045
+ // the caret out of a block towards a line selects the line instead
37046
+ const arriveAt = (from, forward)=>{
37047
+ const top = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.up(from.startContainer, (node)=>node?.parentNode === editor.editor, editor.editor);
37048
+ const next = top && beside(top, forward);
37049
+ if (!top || !isLoose(next)) {
37050
+ return;
37051
+ }
37052
+ // Once the browser has moved the caret
37053
+ editor.async.setTimeout(()=>{
37054
+ const { range } = editor.s;
37055
+ if (range.collapsed && !top.contains(range.startContainer) && editor.editor.contains(next)) {
37056
+ editor.s.select(next);
37057
+ }
37058
+ }, 1);
37059
+ };
37060
+ // Delete or Backspace in an empty block next to a line removes the block
37061
+ // and selects the line, as it was before Enter on it. Jodit's own delete
37062
+ // would leave the caret beside the line
37063
+ const deleteEmpty = (range, forward)=>{
37064
+ const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(range.startContainer, jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
37065
+ const next = block && beside(block, forward);
37066
+ if (!block || block.parentNode !== editor.editor || !isLoose(next) || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(block)) {
37067
+ return false;
37068
+ }
37069
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(block);
37070
+ editor.s.select(next);
37071
+ return true;
37072
+ };
37073
+ // A key with the caret in a line of text, or beside a line: an arrow
37074
+ // key, Delete or Backspace that goes to a line selects it
37075
+ const atCaret = (e, range)=>{
37076
+ const deleting = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE;
37077
+ 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;
37078
+ 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;
37079
+ if (!range.collapsed || !plain(e) || !(arrow || deleting)) {
37080
+ return false;
37081
+ }
37082
+ const sides = around(range);
37083
+ if (!sides) {
37084
+ if (arrow) {
37085
+ arriveAt(range, forward);
37086
+ return false;
37087
+ }
37088
+ return deleteEmpty(range, forward);
37089
+ }
37090
+ const [before, after] = sides;
37091
+ const next = forward ? after : before;
37092
+ if (isLoose(next)) {
37093
+ editor.s.select(next);
37094
+ } else if (deleting) {
37095
+ return false;
37096
+ } else if (next) {
37097
+ editor.s.setCursorIn(next, forward);
37098
+ } else {
37099
+ newLine(forward ? before : after, forward);
37100
+ }
37101
+ return true;
37102
+ };
37103
+ // A key with a line selected
37104
+ const onLine = (e, line)=>{
37105
+ const back = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT;
37106
+ 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)) {
37107
+ pass(line, !back);
37108
+ } else if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE) {
37109
+ remove(line, e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE);
37110
+ } else {
37111
+ // Typing starts a new paragraph after the line, and the browser
37112
+ // types the letter into it
37113
+ if (e.key?.length === 1 && !e.ctrlKey && !e.metaKey) {
37114
+ newLine(line, true);
37115
+ }
37116
+ return false;
37117
+ }
37118
+ return true;
37119
+ };
37120
+ // Enter with a line selected adds a paragraph after the line, and
37121
+ // Shift+Enter one before it, between the Enter plugin's own events. The
37122
+ // plugin itself would delete the line
37123
+ const enter = (e, line)=>{
37124
+ const result = editor.e.fire('beforeEnter', e);
37125
+ if (result !== undefined) {
37126
+ return result;
37127
+ }
37128
+ editor.history.snapshot.transaction(()=>{
37129
+ newLine(line, !e.shiftKey);
37130
+ editor.e.fire('afterEnter', e);
37131
+ });
37132
+ editor.synchronizeValues();
37133
+ return false;
37134
+ };
37135
+ // How far above or below a line a click still selects it
37136
+ const slack = 6;
37137
+ // The press that selected a line, for its click to open the popup
37138
+ let pressed = null;
37139
+ editor.e.on('afterInit', ()=>{
37140
+ editor.e.on(editor.ed, 'selectionchange', ()=>{
37141
+ const { sel } = editor.s;
37142
+ frame(sel?.rangeCount ? lineIn(sel.getRangeAt(0)) : null);
37143
+ });
37144
+ }).on('keydown', (e)=>{
37145
+ if (!editable() || e.isComposing) {
37146
+ return;
37147
+ }
37148
+ const { range } = editor.s;
37149
+ const line = lineIn(range);
37150
+ if (line && e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER) {
37151
+ editor.e.stopPropagation('keydown');
37152
+ return enter(e, line);
37153
+ }
37154
+ if (line ? !onLine(e, line) : !atCaret(e, range)) {
37155
+ return;
37156
+ }
37157
+ editor.e.stopPropagation('keydown');
37158
+ editor.synchronizeValues();
37159
+ return false;
37160
+ }, {
37161
+ top: true
37162
+ }).on('mousedown', (e)=>{
37163
+ pressed = null;
37164
+ if (!editable() || e.button !== 0 || e.shiftKey) {
37165
+ return;
37166
+ }
37167
+ const line = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(editor.editor.getElementsByTagName('hr')).find((line)=>{
37168
+ if (e.target !== line && e.target !== line.parentNode) {
37169
+ return false;
37170
+ }
37171
+ const box = line.getBoundingClientRect();
37172
+ return e.clientX >= box.left && e.clientX <= box.right && e.clientY >= box.top - slack && e.clientY <= box.bottom + slack;
37173
+ });
37174
+ if (line) {
37175
+ // The browser's own press would put the caret beside the line
37176
+ e.preventDefault();
37177
+ pressed = line;
37178
+ editor.s.select(line);
37179
+ }
37180
+ }).on('click', ()=>{
37181
+ const line = pressed;
37182
+ pressed = null;
37183
+ // After the click's own handlers, which close the popups
37184
+ line && editor.async.setTimeout(()=>editor.e.fire('showPopup', line, ()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(line, editor), 'hr'), 1);
37185
+ }).on('mouseup', ()=>{
37186
+ editor.async.setTimeout(leave, 1);
37187
+ }).on('deleteHorizontalRule', (line)=>{
37188
+ if (editable()) {
37189
+ remove(line, true);
37190
+ editor.synchronizeValues();
37191
+ }
37192
+ });
36885
37193
  }
36886
- jodit_core_global__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hr', hr);
37194
+ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hr', hr);
36887
37195
 
36888
37196
 
36889
37197
  /***/ }),
@@ -40248,27 +40556,28 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
40248
40556
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5266);
40249
40557
  /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70235);
40250
40558
  /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17849);
40251
- /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(466);
40252
- /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75711);
40253
- /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(59399);
40254
- /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38681);
40255
- /* 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__);
40256
- /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(64637);
40257
- /* 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__);
40258
- /* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(92148);
40259
- /* 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__);
40260
- /* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(20115);
40261
- /* 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__);
40262
- /* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(94190);
40263
- /* 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__);
40264
- /* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(51957);
40265
- /* 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__);
40266
- /* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(71940);
40267
- /* 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__);
40268
- /* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(43218);
40269
- /* 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__);
40270
- /* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(48007);
40271
- /* 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__);
40559
+ /* harmony import */ var _items_hr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85732);
40560
+ /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(466);
40561
+ /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75711);
40562
+ /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59399);
40563
+ /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38681);
40564
+ /* 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__);
40565
+ /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64637);
40566
+ /* 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__);
40567
+ /* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92148);
40568
+ /* 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__);
40569
+ /* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(20115);
40570
+ /* 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__);
40571
+ /* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(94190);
40572
+ /* 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__);
40573
+ /* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51957);
40574
+ /* 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__);
40575
+ /* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(71940);
40576
+ /* 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__);
40577
+ /* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(43218);
40578
+ /* 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__);
40579
+ /* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(48007);
40580
+ /* 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__);
40272
40581
  /*!
40273
40582
  * Jodit Editor (https://xdsoft.net/jodit/)
40274
40583
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40292,6 +40601,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
40292
40601
 
40293
40602
 
40294
40603
 
40604
+
40295
40605
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
40296
40606
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
40297
40607
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
@@ -40299,7 +40609,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableF
40299
40609
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
40300
40610
  'source'
40301
40611
  ];
40302
- 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()));
40612
+ 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()));
40303
40613
  // Register cell popup buttons as global controls so they can be
40304
40614
  // referenced by name in custom popup configurations.
40305
40615
  // Skip buttons that already exist in controls (e.g. 'align' from justify plugin).
@@ -40310,12 +40620,13 @@ _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"].forEach((item)=>{
40310
40620
  });
40311
40621
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.popup = {
40312
40622
  a: _items_a__WEBPACK_IMPORTED_MODULE_3__["default"],
40313
- img: _items_img__WEBPACK_IMPORTED_MODULE_6__["default"],
40623
+ img: _items_img__WEBPACK_IMPORTED_MODULE_7__["default"],
40314
40624
  cells: _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"],
40315
- toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_7__["default"],
40316
- jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
40317
- iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
40318
- 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_5__["default"],
40625
+ hr: _items_hr__WEBPACK_IMPORTED_MODULE_5__["default"],
40626
+ toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_8__["default"],
40627
+ jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
40628
+ iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
40629
+ 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
40319
40630
  selection: [
40320
40631
  'bold',
40321
40632
  'underline',
@@ -40503,6 +40814,30 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
40503
40814
  ]);
40504
40815
 
40505
40816
 
40817
+ /***/ }),
40818
+
40819
+ /***/ 85732:
40820
+ /***/ (function(__unused_webpack_module, __webpack_exports__) {
40821
+
40822
+ "use strict";
40823
+ /*!
40824
+ * Jodit Editor (https://xdsoft.net/jodit/)
40825
+ * Released under MIT see LICENSE.txt in the project root for license information.
40826
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
40827
+ */ /**
40828
+ * @module plugins/inline-popup
40829
+ */ /* harmony default export */ __webpack_exports__["default"] = ([
40830
+ {
40831
+ name: 'delete',
40832
+ icon: 'bin',
40833
+ tooltip: 'Delete',
40834
+ exec: (editor, line)=>{
40835
+ line && editor.e.fire('deleteHorizontalRule', line);
40836
+ }
40837
+ }
40838
+ ]);
40839
+
40840
+
40506
40841
  /***/ }),
40507
40842
 
40508
40843
  /***/ 466:
@@ -41305,7 +41640,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('justify', justi
41305
41640
  if (endContainer.nodeValue?.length === endOffset) {
41306
41641
  const { parentNode } = endContainer;
41307
41642
  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)) {
41308
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.after(parentNode, this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.NBSP_SPACE));
41643
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.after(parentNode, this.j.createInside.fake());
41309
41644
  }
41310
41645
  }
41311
41646
  }
@@ -41691,6 +42026,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.link = {
41691
42026
  preventReadOnlyNavigation: true,
41692
42027
  selectSizeClassName: 3,
41693
42028
  selectOptionsClassName: [],
42029
+ selectKeepOtherClassNames: false,
41694
42030
  hotkeys: [
41695
42031
  'ctrl+k',
41696
42032
  'cmd+k'
@@ -41738,11 +42074,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
41738
42074
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
41739
42075
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
41740
42076
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
41741
- /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(96007);
41742
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29434);
41743
- /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(51116);
41744
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(65230);
41745
- /* harmony import */ var _typed_link__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(99763);
42077
+ /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59400);
42078
+ /* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(96007);
42079
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29434);
42080
+ /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(51116);
42081
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(65230);
42082
+ /* harmony import */ var _typed_link__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(99763);
41746
42083
  /*!
41747
42084
  * Jodit Editor (https://xdsoft.net/jodit/)
41748
42085
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -41765,6 +42102,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
41765
42102
 
41766
42103
 
41767
42104
 
42105
+
41768
42106
  /**
41769
42107
  * Process link. Insert, dblclick or remove format
41770
42108
  */ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
@@ -41848,7 +42186,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
41848
42186
  __generateForm(current, close) {
41849
42187
  const { jodit } = this;
41850
42188
  const i18n = jodit.i18n.bind(jodit);
41851
- const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName, contentMode } = jodit.o.link;
42189
+ const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName, contentMode, selectKeepOtherClassNames } = jodit.o.link;
41852
42190
  const html = formTemplate(jodit);
41853
42191
  const form = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.isString)(html) ? jodit.c.fromHTML(html, {
41854
42192
  target_checkbox_box: openInNewTabCheckbox,
@@ -41904,7 +42242,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
41904
42242
  if (noFollowCheckbox && nofollow_checkbox) {
41905
42243
  nofollow_checkbox.checked = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
41906
42244
  }
41907
- insert.textContent = i18n('Update');
42245
+ // Through the button's state, so its text keeps its own element and styles
42246
+ const insertButton = jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(insert, jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UIButton);
42247
+ if (insertButton) {
42248
+ insertButton.state.text = 'Update';
42249
+ } else {
42250
+ insert.textContent = i18n('Update');
42251
+ }
41908
42252
  } else {
41909
42253
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.hide(unlink);
41910
42254
  if (jodit.o.link.deriveUrlFromText && url_input && !isImageContent && !url_input.value.trim()) {
@@ -41969,7 +42313,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
41969
42313
  }
41970
42314
  links.forEach((a)=>{
41971
42315
  ;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'href', url_input.value);
41972
- writeClasses(modeClassName, className_input, className_select, a);
42316
+ writeClasses(modeClassName, className_input, className_select, a, selectKeepOtherClassNames);
41973
42317
  if (!isImageContent) {
41974
42318
  writeContent(jodit, a, content_input.value, contentWasChanged, url_input.value, contentMode);
41975
42319
  }
@@ -42077,7 +42421,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
42077
42421
  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)) {
42078
42422
  return;
42079
42423
  }
42080
- const found = (0,_typed_link__WEBPACK_IMPORTED_MODULE_12__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
42424
+ const found = (0,_typed_link__WEBPACK_IMPORTED_MODULE_13__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
42081
42425
  if (!found) {
42082
42426
  return;
42083
42427
  }
@@ -42176,7 +42520,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
42176
42520
  */ function addAnchorList(jodit, url, content, isImage) {
42177
42521
  const anchors = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchors)(jodit.editor);
42178
42522
  const field = url?.closest('.jodit-ui-input__wrapper');
42179
- const input = field && jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement.closestElement(field, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElement);
42523
+ const input = field && jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(field, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement);
42180
42524
  if (!field || !input || !anchors.length) {
42181
42525
  return;
42182
42526
  }
@@ -42195,13 +42539,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
42195
42539
  role: 'group',
42196
42540
  'aria-labelledby': heading.id
42197
42541
  });
42198
- const icon = (name)=>jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_9__.Icon.makeIcon(jodit, {
42542
+ const icon = (name)=>jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__.Icon.makeIcon(jodit, {
42199
42543
  name,
42200
42544
  iconURL: '',
42201
42545
  fill: '',
42202
42546
  scale: undefined
42203
42547
  }) ?? c.span();
42204
- const dropdown = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_10__.Popup(jodit).setMod('padding', false);
42548
+ const dropdown = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_11__.Popup(jodit).setMod('padding', false);
42205
42549
  const items = [];
42206
42550
  let filled = '';
42207
42551
  const open = ()=>{
@@ -42312,7 +42656,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
42312
42656
  return value;
42313
42657
  }
42314
42658
  // email address -> mailto:
42315
- if (_typed_link__WEBPACK_IMPORTED_MODULE_12__.EMAIL.test(value)) {
42659
+ if (_typed_link__WEBPACK_IMPORTED_MODULE_13__.EMAIL.test(value)) {
42316
42660
  return `mailto:${value}`;
42317
42661
  }
42318
42662
  // bare domain like example.com or www.example.com/path -> https://
@@ -42321,7 +42665,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
42321
42665
  }
42322
42666
  return '';
42323
42667
  }
42324
- function writeClasses(modeClassName, className_input, className_select, a) {
42668
+ function writeClasses(modeClassName, className_input, className_select, a, keepOtherClassNames) {
42325
42669
  if (modeClassName && (className_input ?? className_select)) {
42326
42670
  if (modeClassName === 'input') {
42327
42671
  if (className_input.value === '' && a.hasAttribute('class')) {
@@ -42331,16 +42675,15 @@ function writeClasses(modeClassName, className_input, className_select, a) {
42331
42675
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', className_input.value);
42332
42676
  }
42333
42677
  } else if (modeClassName === 'select') {
42334
- if (a.hasAttribute('class')) {
42678
+ const classes = (option)=>option.value.split(/\s+/).filter((cn)=>cn.trim().length > 0);
42679
+ if (keepOtherClassNames) {
42680
+ Array.from(className_select.options).forEach((option)=>classes(option).forEach((cn)=>a.classList.remove(cn)));
42681
+ } else {
42335
42682
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', null);
42336
42683
  }
42337
- for(let i = 0; i < className_select.selectedOptions.length; i++){
42338
- const className = className_select.selectedOptions.item(i)?.value;
42339
- if (className) {
42340
- className.split(/\s+/).filter((cn)=>cn.trim().length > 0).forEach((cn)=>{
42341
- a.classList.add(cn);
42342
- });
42343
- }
42684
+ Array.from(className_select.selectedOptions).forEach((option)=>classes(option).forEach((cn)=>a.classList.add(cn)));
42685
+ if (!a.classList.length) {
42686
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', null);
42344
42687
  }
42345
42688
  }
42346
42689
  }
@@ -42554,6 +42897,7 @@ const formTemplate = (editor)=>{
42554
42897
 
42555
42898
  "use strict";
42556
42899
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42900
+ /* harmony export */ EMAIL: function() { return /* binding */ EMAIL; },
42557
42901
  /* harmony export */ findTypedLink: function() { return /* binding */ findTypedLink; }
42558
42902
  /* harmony export */ });
42559
42903
  /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91764);
@@ -42652,10 +42996,6 @@ function typedLinkHref(address, tlds, fileEndings) {
42652
42996
  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]);
42653
42997
  }
42654
42998
 
42655
- /* harmony export */ __webpack_require__.d(__webpack_exports__, [
42656
- /* harmony export */ "EMAIL", 0, /* binding */ EMAIL
42657
- /* harmony export */ ]);
42658
-
42659
42999
 
42660
43000
  /***/ }),
42661
43001
 
@@ -43435,12 +43775,12 @@ class pasteFromWord extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugi
43435
43775
  }
43436
43776
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_AS_TEXT:
43437
43777
  {
43438
- html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html);
43778
+ html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html, this.j.o.pasteKeepAttributes);
43439
43779
  break;
43440
43780
  }
43441
43781
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_ONLY_TEXT:
43442
43782
  {
43443
- 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);
43783
+ 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);
43444
43784
  break;
43445
43785
  }
43446
43786
  }
@@ -43659,6 +43999,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteExcludeStripTags
43659
43999
  'br',
43660
44000
  'hr'
43661
44001
  ];
44002
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteKeepAttributes = [
44003
+ ...jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.PASTE_KEEP_ATTRIBUTES
44004
+ ];
43662
44005
  jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.pasteHTMLActionList = [
43663
44006
  {
43664
44007
  value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML,
@@ -44022,7 +44365,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.paste = {
44022
44365
  this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.CLIPBOARD_ID, html);
44023
44366
  switch(action){
44024
44367
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_CLEAR_HTML:
44025
- html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.cleanFromWord)((0,_helpers__WEBPACK_IMPORTED_MODULE_9__.removeGoogleDocsWrapper)(html));
44368
+ html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.cleanFromWord)((0,_helpers__WEBPACK_IMPORTED_MODULE_9__.removeGoogleDocsWrapper)(html), this.j.o.pasteKeepAttributes);
44026
44369
  break;
44027
44370
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_ONLY_TEXT:
44028
44371
  html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.stripTags)(html, this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
@@ -49582,6 +49925,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('sticky', sticky
49582
49925
 
49583
49926
 
49584
49927
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.usePopupForSpecialCharacters = false;
49928
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.specialCharactersColumns = 17;
49585
49929
  jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.specialCharacters = [
49586
49930
  '!',
49587
49931
  '&quot;',
@@ -49893,10 +50237,11 @@ __webpack_require__.r(__webpack_exports__);
49893
50237
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
49894
50238
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23211);
49895
50239
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28077);
49896
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(93640);
49897
- /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18855);
49898
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18993);
49899
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91017);
50240
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28686);
50241
+ /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93640);
50242
+ /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18855);
50243
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18993);
50244
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91017);
49900
50245
  /*!
49901
50246
  * Jodit Editor (https://xdsoft.net/jodit/)
49902
50247
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -49914,11 +50259,14 @@ __webpack_require__.r(__webpack_exports__);
49914
50259
 
49915
50260
 
49916
50261
 
50262
+
49917
50263
  /**
49918
50264
  * The plugin inserts characters that are not part of the standard keyboard.
49919
- */ class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_5__.Plugin {
50265
+ */ class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin {
49920
50266
  afterInit(jodit) {
49921
50267
  jodit.e.on('generateSpecialCharactersTable.symbols', ()=>{
50268
+ const { specialCharactersColumns } = jodit.o;
50269
+ const columns = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isInt)(specialCharactersColumns) && specialCharactersColumns > 0 ? Number(specialCharactersColumns) : 17;
49922
50270
  const container = jodit.c.fromHTML(`<div class="jodit-symbols__container">
49923
50271
  <div class="jodit-symbols__container_table">
49924
50272
  <table class="jodit-symbols__table"><tbody></tbody></table>
@@ -49927,13 +50275,14 @@ __webpack_require__.r(__webpack_exports__);
49927
50275
  <div class="jodit-symbols__preview"></div>
49928
50276
  </div>
49929
50277
  </div>`);
50278
+ container.style.setProperty('--jd-symbols-columns', String(columns));
49930
50279
  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'));
49931
50280
  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'));
49932
50281
  const body = table.tBodies[0];
49933
50282
  const chars = [];
49934
50283
  for(let i = 0; i < jodit.o.specialCharacters.length;){
49935
50284
  const tr = jodit.c.element('tr');
49936
- for(let j = 0; j < this.__countInRow && i < jodit.o.specialCharacters.length; j += 1, i += 1){
50285
+ for(let j = 0; j < columns && i < jodit.o.specialCharacters.length; j += 1, i += 1){
49937
50286
  const td = jodit.c.element('td'), a = jodit.c.fromHTML(`<a
49938
50287
  data-index="${i}"
49939
50288
  data-index-j="${j}"
@@ -49946,7 +50295,6 @@ __webpack_require__.r(__webpack_exports__);
49946
50295
  }
49947
50296
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(body, tr);
49948
50297
  }
49949
- const self = this;
49950
50298
  jodit.e.on(chars, 'focus', function() {
49951
50299
  preview.innerHTML = this.innerHTML;
49952
50300
  }).on(chars, 'mousedown', function(e) {
@@ -49966,16 +50314,16 @@ __webpack_require__.r(__webpack_exports__);
49966
50314
  }).on(chars, 'keydown', (e)=>{
49967
50315
  const target = e.target;
49968
50316
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(target, 'a')) {
49969
- 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);
50317
+ 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);
49970
50318
  let newIndex;
49971
50319
  switch(e.key){
49972
50320
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP:
49973
50321
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN:
49974
- newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? index - self.__countInRow : index + self.__countInRow;
50322
+ newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? index - columns : index + columns;
49975
50323
  if (chars[newIndex] === undefined) {
49976
- newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? Math.floor(chars.length / self.__countInRow) * self.__countInRow + jIndex : jIndex;
50324
+ newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? Math.floor(chars.length / columns) * columns + jIndex : jIndex;
49977
50325
  if (newIndex > chars.length - 1) {
49978
- newIndex -= self.__countInRow;
50326
+ newIndex -= columns;
49979
50327
  }
49980
50328
  }
49981
50329
  chars[newIndex] && chars[newIndex].focus();
@@ -50008,8 +50356,8 @@ __webpack_require__.r(__webpack_exports__);
50008
50356
  name: 'symbols',
50009
50357
  group: 'insert'
50010
50358
  }
50011
- ]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__countInRow", 17);
50012
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_7__);
50359
+ ]);
50360
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_8__);
50013
50361
  }
50014
50362
  }
50015
50363
  jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('symbols', symbols);
@@ -50050,7 +50398,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('symbols', symbo
50050
50398
  /* harmony export */ });
50051
50399
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
50052
50400
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
50053
- /* 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__);
50054
50401
  /*!
50055
50402
  * Jodit Editor (https://xdsoft.net/jodit/)
50056
50403
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -53122,7 +53469,7 @@ function _define_property(obj, key, value) {
53122
53469
  } else obj[key] = value;
53123
53470
  return obj;
53124
53471
  }
53125
-
53472
+ ;
53126
53473
 
53127
53474
 
53128
53475
  /***/ }),
@@ -53147,7 +53494,7 @@ function _ts_decorate(decorators, target, key, desc) {
53147
53494
  }
53148
53495
  return c > 3 && r && Object.defineProperty(target, key, r), r;
53149
53496
  }
53150
-
53497
+ ;
53151
53498
 
53152
53499
 
53153
53500
  /***/ })
@@ -53240,7 +53587,7 @@ function _ts_decorate(decorators, target, key, desc) {
53240
53587
  /******/ }
53241
53588
  /******/ var ns = Object.create(null);
53242
53589
  /******/ __webpack_require__.r(ns);
53243
- /******/ var def = {};
53590
+ /******/ var def = Object.create(null);
53244
53591
  /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
53245
53592
  /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
53246
53593
  /******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
@@ -53259,7 +53606,7 @@ function _ts_decorate(decorators, target, key, desc) {
53259
53606
  /******/ while(i < definition.length) {
53260
53607
  /******/ var key = definition[i++];
53261
53608
  /******/ var binding = definition[i++];
53262
- /******/ var descriptor = binding === 0 ? { enumerable: true, value: definition[i++] } : { enumerable: true, get: binding };
53609
+ /******/ var descriptor = binding ? { enumerable: true, get: binding } : { enumerable: true, value: definition[i++] };
53263
53610
  /******/ if(!__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, descriptor);
53264
53611
  /******/ }
53265
53612
  /******/ } else {
@@ -53333,7 +53680,7 @@ function _ts_decorate(decorators, target, key, desc) {
53333
53680
  /******/ return __webpack_require__.O(result);
53334
53681
  /******/ }
53335
53682
  /******/
53336
- /******/ var chunkLoadingGlobal = self["webpackChunkjodit"] = self["webpackChunkjodit"] || [];
53683
+ /******/ var chunkLoadingGlobal = Array.isArray(self["webpackChunkjodit"]) ? self["webpackChunkjodit"] : (self["webpackChunkjodit"] = []);
53337
53684
  /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
53338
53685
  /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
53339
53686
  /******/ }();