jodit-pro 4.2.12 → 4.2.18

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 (322) hide show
  1. package/es2015/jodit.css +115 -115
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +938 -844
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  9. package/es2015/plugins/backup/backup.css +1 -1
  10. package/es2015/plugins/backup/backup.js +7 -7
  11. package/es2015/plugins/backup/backup.min.js +2 -2
  12. package/es2015/plugins/button-generator/button-generator.css +1 -1
  13. package/es2015/plugins/button-generator/button-generator.js +9 -9
  14. package/es2015/plugins/button-generator/button-generator.min.js +2 -2
  15. package/es2015/plugins/change-case/change-case.js +6 -6
  16. package/es2015/plugins/change-case/change-case.min.js +2 -2
  17. package/es2015/plugins/color-picker/color-picker.css +1 -1
  18. package/es2015/plugins/color-picker/color-picker.js +1 -1
  19. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  20. package/es2015/plugins/emoji/emoji.css +1 -1
  21. package/es2015/plugins/emoji/emoji.js +11 -11
  22. package/es2015/plugins/emoji/emoji.min.js +2 -2
  23. package/es2015/plugins/export-docs/export-docs.js +7 -7
  24. package/es2015/plugins/export-docs/export-docs.min.js +2 -2
  25. package/es2015/plugins/finder/finder.css +1 -1
  26. package/es2015/plugins/finder/finder.js +33 -33
  27. package/es2015/plugins/finder/finder.min.js +2 -2
  28. package/es2015/plugins/google-maps/google-maps.css +1 -1
  29. package/es2015/plugins/google-maps/google-maps.js +2 -2
  30. package/es2015/plugins/google-maps/google-maps.min.js +2 -2
  31. package/es2015/plugins/google-search/google-search.js +6 -6
  32. package/es2015/plugins/google-search/google-search.min.js +2 -2
  33. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  34. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  36. package/es2015/plugins/iframe-editor/iframe-editor.js +8 -8
  37. package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
  38. package/es2015/plugins/keyboard/keyboard.css +1 -1
  39. package/es2015/plugins/keyboard/keyboard.js +15 -15
  40. package/es2015/plugins/keyboard/keyboard.min.js +2 -2
  41. package/es2015/plugins/mobile-view/mobile-view.js +20 -9
  42. package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
  43. package/es2015/plugins/page-break/page-break.js +8 -8
  44. package/es2015/plugins/page-break/page-break.min.js +2 -2
  45. package/es2015/plugins/paste-code/paste-code.css +1 -1
  46. package/es2015/plugins/paste-code/paste-code.js +7 -7
  47. package/es2015/plugins/paste-code/paste-code.min.js +2 -2
  48. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  49. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  50. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  51. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.css +1 -1
  53. package/es2015/plugins/todo-list/todo-list.js +7 -7
  54. package/es2015/plugins/todo-list/todo-list.min.js +2 -2
  55. package/es2015/plugins/translate/translate.css +1 -1
  56. package/es2015/plugins/translate/translate.js +9 -9
  57. package/es2015/plugins/translate/translate.min.js +2 -2
  58. package/es2015/plugins/tune-block/tune-block.css +1 -1
  59. package/es2015/plugins/tune-block/tune-block.js +1 -1
  60. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  61. package/es2018/jodit.css +115 -115
  62. package/es2018/jodit.fat.min.css +1 -1
  63. package/es2018/jodit.fat.min.js +2 -2
  64. package/es2018/jodit.js +938 -846
  65. package/es2018/jodit.min.css +1 -1
  66. package/es2018/jodit.min.js +2 -2
  67. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  68. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  69. package/es2018/plugins/backup/backup.css +1 -1
  70. package/es2018/plugins/backup/backup.js +7 -7
  71. package/es2018/plugins/backup/backup.min.js +2 -2
  72. package/es2018/plugins/button-generator/button-generator.css +1 -1
  73. package/es2018/plugins/button-generator/button-generator.js +9 -9
  74. package/es2018/plugins/button-generator/button-generator.min.js +2 -2
  75. package/es2018/plugins/change-case/change-case.js +6 -6
  76. package/es2018/plugins/change-case/change-case.min.js +2 -2
  77. package/es2018/plugins/color-picker/color-picker.css +1 -1
  78. package/es2018/plugins/color-picker/color-picker.js +1 -1
  79. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  80. package/es2018/plugins/emoji/emoji.css +1 -1
  81. package/es2018/plugins/emoji/emoji.js +11 -11
  82. package/es2018/plugins/emoji/emoji.min.js +2 -2
  83. package/es2018/plugins/export-docs/export-docs.js +7 -7
  84. package/es2018/plugins/export-docs/export-docs.min.js +2 -2
  85. package/es2018/plugins/finder/finder.css +1 -1
  86. package/es2018/plugins/finder/finder.js +33 -33
  87. package/es2018/plugins/finder/finder.min.js +2 -2
  88. package/es2018/plugins/google-maps/google-maps.css +1 -1
  89. package/es2018/plugins/google-maps/google-maps.js +2 -2
  90. package/es2018/plugins/google-maps/google-maps.min.js +2 -2
  91. package/es2018/plugins/google-search/google-search.js +6 -6
  92. package/es2018/plugins/google-search/google-search.min.js +2 -2
  93. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  94. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  95. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  96. package/es2018/plugins/iframe-editor/iframe-editor.js +8 -8
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
  98. package/es2018/plugins/keyboard/keyboard.css +1 -1
  99. package/es2018/plugins/keyboard/keyboard.js +15 -15
  100. package/es2018/plugins/keyboard/keyboard.min.js +2 -2
  101. package/es2018/plugins/mobile-view/mobile-view.js +20 -9
  102. package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
  103. package/es2018/plugins/page-break/page-break.js +8 -8
  104. package/es2018/plugins/page-break/page-break.min.js +2 -2
  105. package/es2018/plugins/paste-code/paste-code.css +1 -1
  106. package/es2018/plugins/paste-code/paste-code.js +7 -7
  107. package/es2018/plugins/paste-code/paste-code.min.js +2 -2
  108. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  109. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  110. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  111. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  112. package/es2018/plugins/todo-list/todo-list.css +1 -1
  113. package/es2018/plugins/todo-list/todo-list.js +7 -7
  114. package/es2018/plugins/todo-list/todo-list.min.js +2 -2
  115. package/es2018/plugins/translate/translate.css +1 -1
  116. package/es2018/plugins/translate/translate.js +9 -9
  117. package/es2018/plugins/translate/translate.min.js +2 -2
  118. package/es2018/plugins/tune-block/tune-block.css +1 -1
  119. package/es2018/plugins/tune-block/tune-block.js +1 -1
  120. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  121. package/es2021/jodit.css +115 -115
  122. package/es2021/jodit.fat.min.css +1 -1
  123. package/es2021/jodit.fat.min.js +2 -2
  124. package/es2021/jodit.js +932 -840
  125. package/es2021/jodit.min.css +1 -1
  126. package/es2021/jodit.min.js +2 -2
  127. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  128. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  129. package/es2021/plugins/backup/backup.css +1 -1
  130. package/es2021/plugins/backup/backup.js +7 -7
  131. package/es2021/plugins/backup/backup.min.js +2 -2
  132. package/es2021/plugins/button-generator/button-generator.css +1 -1
  133. package/es2021/plugins/button-generator/button-generator.js +9 -9
  134. package/es2021/plugins/button-generator/button-generator.min.js +2 -2
  135. package/es2021/plugins/change-case/change-case.js +6 -6
  136. package/es2021/plugins/change-case/change-case.min.js +2 -2
  137. package/es2021/plugins/color-picker/color-picker.css +1 -1
  138. package/es2021/plugins/color-picker/color-picker.js +1 -1
  139. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  140. package/es2021/plugins/emoji/emoji.css +1 -1
  141. package/es2021/plugins/emoji/emoji.js +11 -11
  142. package/es2021/plugins/emoji/emoji.min.js +2 -2
  143. package/es2021/plugins/export-docs/export-docs.js +7 -7
  144. package/es2021/plugins/export-docs/export-docs.min.js +2 -2
  145. package/es2021/plugins/finder/finder.css +1 -1
  146. package/es2021/plugins/finder/finder.js +33 -33
  147. package/es2021/plugins/finder/finder.min.js +2 -2
  148. package/es2021/plugins/google-maps/google-maps.css +1 -1
  149. package/es2021/plugins/google-maps/google-maps.js +2 -2
  150. package/es2021/plugins/google-maps/google-maps.min.js +2 -2
  151. package/es2021/plugins/google-search/google-search.js +6 -6
  152. package/es2021/plugins/google-search/google-search.min.js +2 -2
  153. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  154. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  155. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  156. package/es2021/plugins/iframe-editor/iframe-editor.js +8 -8
  157. package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +15 -15
  160. package/es2021/plugins/keyboard/keyboard.min.js +2 -2
  161. package/es2021/plugins/mobile-view/mobile-view.js +19 -9
  162. package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
  163. package/es2021/plugins/page-break/page-break.js +8 -8
  164. package/es2021/plugins/page-break/page-break.min.js +2 -2
  165. package/es2021/plugins/paste-code/paste-code.css +1 -1
  166. package/es2021/plugins/paste-code/paste-code.js +7 -7
  167. package/es2021/plugins/paste-code/paste-code.min.js +2 -2
  168. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  169. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  170. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  171. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  172. package/es2021/plugins/todo-list/todo-list.css +1 -1
  173. package/es2021/plugins/todo-list/todo-list.js +7 -7
  174. package/es2021/plugins/todo-list/todo-list.min.js +2 -2
  175. package/es2021/plugins/translate/translate.css +1 -1
  176. package/es2021/plugins/translate/translate.js +9 -9
  177. package/es2021/plugins/translate/translate.min.js +2 -2
  178. package/es2021/plugins/tune-block/tune-block.css +1 -1
  179. package/es2021/plugins/tune-block/tune-block.js +1 -1
  180. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  181. package/es2021.en/jodit.css +115 -115
  182. package/es2021.en/jodit.fat.min.css +1 -1
  183. package/es2021.en/jodit.fat.min.js +2 -2
  184. package/es2021.en/jodit.js +932 -840
  185. package/es2021.en/jodit.min.css +1 -1
  186. package/es2021.en/jodit.min.js +2 -2
  187. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  188. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  189. package/es2021.en/plugins/backup/backup.css +1 -1
  190. package/es2021.en/plugins/backup/backup.js +7 -7
  191. package/es2021.en/plugins/backup/backup.min.js +2 -2
  192. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  193. package/es2021.en/plugins/button-generator/button-generator.js +9 -9
  194. package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
  195. package/es2021.en/plugins/change-case/change-case.js +6 -6
  196. package/es2021.en/plugins/change-case/change-case.min.js +2 -2
  197. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  198. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  199. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  200. package/es2021.en/plugins/emoji/emoji.css +1 -1
  201. package/es2021.en/plugins/emoji/emoji.js +11 -11
  202. package/es2021.en/plugins/emoji/emoji.min.js +2 -2
  203. package/es2021.en/plugins/export-docs/export-docs.js +7 -7
  204. package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
  205. package/es2021.en/plugins/finder/finder.css +1 -1
  206. package/es2021.en/plugins/finder/finder.js +33 -33
  207. package/es2021.en/plugins/finder/finder.min.js +2 -2
  208. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  209. package/es2021.en/plugins/google-maps/google-maps.js +2 -2
  210. package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
  211. package/es2021.en/plugins/google-search/google-search.js +6 -6
  212. package/es2021.en/plugins/google-search/google-search.min.js +2 -2
  213. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  214. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  215. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  216. package/es2021.en/plugins/iframe-editor/iframe-editor.js +8 -8
  217. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
  218. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  219. package/es2021.en/plugins/keyboard/keyboard.js +15 -15
  220. package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
  221. package/es2021.en/plugins/mobile-view/mobile-view.js +19 -9
  222. package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
  223. package/es2021.en/plugins/page-break/page-break.js +8 -8
  224. package/es2021.en/plugins/page-break/page-break.min.js +2 -2
  225. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  226. package/es2021.en/plugins/paste-code/paste-code.js +7 -7
  227. package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
  228. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  229. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  230. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  231. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  232. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  233. package/es2021.en/plugins/todo-list/todo-list.js +7 -7
  234. package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
  235. package/es2021.en/plugins/translate/translate.css +1 -1
  236. package/es2021.en/plugins/translate/translate.js +9 -9
  237. package/es2021.en/plugins/translate/translate.min.js +2 -2
  238. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  239. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  240. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  241. package/es5/jodit.css +129 -129
  242. package/es5/jodit.fat.min.css +1 -1
  243. package/es5/jodit.fat.min.js +2 -2
  244. package/es5/jodit.js +961 -866
  245. package/es5/jodit.min.css +3 -3
  246. package/es5/jodit.min.js +2 -2
  247. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  248. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  249. package/es5/plugins/backup/backup.css +1 -1
  250. package/es5/plugins/backup/backup.js +7 -7
  251. package/es5/plugins/backup/backup.min.js +2 -2
  252. package/es5/plugins/button-generator/button-generator.css +1 -1
  253. package/es5/plugins/button-generator/button-generator.js +9 -9
  254. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  255. package/es5/plugins/change-case/change-case.js +6 -6
  256. package/es5/plugins/change-case/change-case.min.js +2 -2
  257. package/es5/plugins/color-picker/color-picker.css +1 -1
  258. package/es5/plugins/color-picker/color-picker.js +1 -1
  259. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  260. package/es5/plugins/emoji/emoji.css +1 -1
  261. package/es5/plugins/emoji/emoji.js +11 -11
  262. package/es5/plugins/emoji/emoji.min.js +2 -2
  263. package/es5/plugins/export-docs/export-docs.js +7 -7
  264. package/es5/plugins/export-docs/export-docs.min.js +2 -2
  265. package/es5/plugins/finder/finder.css +1 -1
  266. package/es5/plugins/finder/finder.js +33 -33
  267. package/es5/plugins/finder/finder.min.js +2 -2
  268. package/es5/plugins/google-maps/google-maps.css +1 -1
  269. package/es5/plugins/google-maps/google-maps.js +2 -2
  270. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  271. package/es5/plugins/google-search/google-search.js +6 -6
  272. package/es5/plugins/google-search/google-search.min.js +2 -2
  273. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  274. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  275. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  276. package/es5/plugins/iframe-editor/iframe-editor.js +8 -8
  277. package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
  278. package/es5/plugins/keyboard/keyboard.css +1 -1
  279. package/es5/plugins/keyboard/keyboard.js +15 -15
  280. package/es5/plugins/keyboard/keyboard.min.js +2 -2
  281. package/es5/plugins/mobile-view/mobile-view.js +20 -9
  282. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  283. package/es5/plugins/page-break/page-break.js +8 -8
  284. package/es5/plugins/page-break/page-break.min.js +2 -2
  285. package/es5/plugins/paste-code/paste-code.css +1 -1
  286. package/es5/plugins/paste-code/paste-code.js +7 -7
  287. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  288. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  289. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  290. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  291. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  292. package/es5/plugins/todo-list/todo-list.css +1 -1
  293. package/es5/plugins/todo-list/todo-list.js +7 -7
  294. package/es5/plugins/todo-list/todo-list.min.js +2 -2
  295. package/es5/plugins/translate/translate.css +1 -1
  296. package/es5/plugins/translate/translate.js +9 -9
  297. package/es5/plugins/translate/translate.min.js +2 -2
  298. package/es5/plugins/tune-block/tune-block.css +1 -1
  299. package/es5/plugins/tune-block/tune-block.js +1 -1
  300. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  301. package/esm/plugins/autocomplete/autocomplete.js +1 -1
  302. package/esm/plugins/backup/config.js +1 -1
  303. package/esm/plugins/button-generator/config.js +1 -1
  304. package/esm/plugins/change-case/config.js +1 -1
  305. package/esm/plugins/emoji/config.js +1 -1
  306. package/esm/plugins/export-docs/config.js +1 -1
  307. package/esm/plugins/finder/browser.js +1 -1
  308. package/esm/plugins/finder/interface.d.ts +69 -0
  309. package/esm/plugins/google-maps/config.js +1 -1
  310. package/esm/plugins/google-maps/interface.d.ts +109 -0
  311. package/esm/plugins/google-search/google-search.js +1 -1
  312. package/esm/plugins/iframe-editor/config.js +1 -1
  313. package/esm/plugins/keyboard/config.js +1 -1
  314. package/esm/plugins/keyboard/keyboard.js +1 -1
  315. package/esm/plugins/mobile-view/config.js +1 -1
  316. package/esm/plugins/page-break/config.js +1 -1
  317. package/esm/plugins/paste-code/config.js +1 -1
  318. package/esm/plugins/todo-list/config.js +1 -1
  319. package/esm/plugins/translate/config.js +1 -1
  320. package/package.json +1 -1
  321. package/types/plugins/finder/interface.d.ts +69 -0
  322. package/types/plugins/google-maps/interface.d.ts +109 -0
package/es2018/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v4.2.12
4
+ * Version: v4.2.18
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -2443,7 +2443,7 @@ __webpack_require__.r(__webpack_exports__);
2443
2443
  * Released under MIT see LICENSE.txt in the project root for license information.
2444
2444
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
2445
2445
  */
2446
- const APP_VERSION = "4.2.12";
2446
+ const APP_VERSION = "4.2.18";
2447
2447
  // prettier-ignore
2448
2448
  const ES = "es2018";
2449
2449
  const IS_ES_MODERN = true;
@@ -8005,6 +8005,8 @@ const appendScriptAsync = cacheLoaders((jodit, url) => {
8005
8005
  }
8006
8006
  const script = jodit.c.element('script', {
8007
8007
  type: 'text/javascript',
8008
+ crossorigin: 'anonymous',
8009
+ referrerpolicy: 'no-referrer',
8008
8010
  async: true,
8009
8011
  src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url)
8010
8012
  });
@@ -8245,9 +8247,9 @@ const completeUrl = (url) => {
8245
8247
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47903);
8246
8248
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
8247
8249
  /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
8250
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91288);
8248
8251
  /* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20368);
8249
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94183);
8250
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
8252
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94183);
8251
8253
  /*!
8252
8254
  * Jodit Editor (https://xdsoft.net/jodit/)
8253
8255
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8295,7 +8297,7 @@ function ConfigProto(options, proto, deep = 0) {
8295
8297
  if (Object.getPrototypeOf(options) !== Object.prototype) {
8296
8298
  return options;
8297
8299
  }
8298
- const def = jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions;
8300
+ const def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
8299
8301
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
8300
8302
  if (def.presets[options.preset] !== undefined) {
8301
8303
  const preset = def.presets[options.preset];
@@ -8325,7 +8327,7 @@ function ConfigProto(options, proto, deep = 0) {
8325
8327
  return newOpt;
8326
8328
  }
8327
8329
  function ConfigFlatten(obj) {
8328
- return (0,_utils__WEBPACK_IMPORTED_MODULE_0__/* .keys */ .HP)(obj, false).reduce((app, key) => {
8330
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce((app, key) => {
8329
8331
  app[key] = obj[key];
8330
8332
  return app;
8331
8333
  }, {});
@@ -10289,9 +10291,9 @@ Plugin.requires = [];
10289
10291
  /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33442);
10290
10292
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
10291
10293
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24839);
10292
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91596);
10294
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
10295
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91596);
10293
10296
  /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85349);
10294
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
10295
10297
  /*!
10296
10298
  * Jodit Editor (https://xdsoft.net/jodit/)
10297
10299
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10309,7 +10311,7 @@ class Ajax {
10309
10311
  className() {
10310
10312
  return 'Ajax';
10311
10313
  }
10312
- constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
10314
+ constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
10313
10315
  this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
10314
10316
  this.__isFulfilled = false;
10315
10317
  this.__activated = false;
@@ -10555,10 +10557,14 @@ class Response {
10555
10557
 
10556
10558
  "use strict";
10557
10559
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10558
- /* harmony export */ W: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__.W; }
10560
+ /* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
10561
+ /* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
10562
+ /* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
10559
10563
  /* harmony export */ });
10560
- /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49967);
10561
- /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13088);
10564
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
10565
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
10566
+ /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49967);
10567
+ /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13088);
10562
10568
  /*!
10563
10569
  * Jodit Editor (https://xdsoft.net/jodit/)
10564
10570
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10571,6 +10577,55 @@ class Response {
10571
10577
 
10572
10578
 
10573
10579
 
10580
+ /**
10581
+ * Check if the cursor is at the edge of the string
10582
+ * @private
10583
+ */
10584
+ function cursorInTheEdgeOfString(container, offset, start, end) {
10585
+ var _a;
10586
+ const text = ((_a = container.nodeValue) === null || _a === void 0 ? void 0 : _a.length) ? container.nodeValue : '';
10587
+ if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
10588
+ return true;
10589
+ }
10590
+ const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
10591
+ return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
10592
+ }
10593
+ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
10594
+ node = range.startContainer.childNodes[range.startOffset];
10595
+ if (!node) {
10596
+ node = range.startContainer.childNodes[range.startOffset - 1];
10597
+ rightMode = true;
10598
+ }
10599
+ if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
10600
+ // test Current method - Cursor in the left of some SPAN
10601
+ if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
10602
+ node = node.previousSibling;
10603
+ }
10604
+ else if (checkChild) {
10605
+ let current = child(node);
10606
+ while (current) {
10607
+ if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
10608
+ node = current;
10609
+ break;
10610
+ }
10611
+ current = child(current);
10612
+ }
10613
+ }
10614
+ }
10615
+ if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
10616
+ let leftChild = node, rightChild = node;
10617
+ do {
10618
+ leftChild = leftChild.firstChild;
10619
+ rightChild = rightChild.lastChild;
10620
+ } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
10621
+ if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
10622
+ node = leftChild;
10623
+ }
10624
+ }
10625
+ return { node, rightMode };
10626
+ }
10627
+
10628
+
10574
10629
  /***/ }),
10575
10630
 
10576
10631
  /***/ 49967:
@@ -10692,7 +10747,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
10692
10747
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10693
10748
  /* harmony export */ L: function() { return /* binding */ Selection; }
10694
10749
  /* harmony export */ });
10695
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
10750
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
10696
10751
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
10697
10752
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53557);
10698
10753
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
@@ -10702,6 +10757,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
10702
10757
  /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__);
10703
10758
  /* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13088);
10704
10759
  /* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11232);
10760
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(92185);
10705
10761
  /*!
10706
10762
  * Jodit Editor (https://xdsoft.net/jodit/)
10707
10763
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10718,6 +10774,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
10718
10774
 
10719
10775
 
10720
10776
 
10777
+
10721
10778
  class Selection {
10722
10779
  constructor(jodit) {
10723
10780
  this.jodit = jodit;
@@ -11103,63 +11160,35 @@ class Selection {
11103
11160
  * Returns the current element under the cursor inside editor
11104
11161
  */
11105
11162
  current(checkChild = true) {
11106
- if (this.j.getRealMode() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
11107
- const sel = this.sel;
11108
- if (!sel || sel.rangeCount === 0) {
11109
- return null;
11110
- }
11111
- const range = sel.getRangeAt(0);
11112
- let node = range.startContainer, rightMode = false;
11113
- const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
11114
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
11115
- return node;
11116
- }
11117
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
11118
- node = range.startContainer.childNodes[range.startOffset];
11119
- if (!node) {
11120
- node =
11121
- range.startContainer.childNodes[range.startOffset - 1];
11122
- rightMode = true;
11123
- }
11124
- if (node && sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
11125
- // test Current method - Cursor in the left of some SPAN
11126
- if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node.previousSibling)) {
11127
- node = node.previousSibling;
11128
- }
11129
- else if (checkChild) {
11130
- let current = child(node);
11131
- while (current) {
11132
- if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
11133
- node = current;
11134
- break;
11135
- }
11136
- current = child(current);
11137
- }
11138
- }
11139
- }
11140
- if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
11141
- let leftChild = node, rightChild = node;
11142
- do {
11143
- leftChild = leftChild.firstChild;
11144
- rightChild = rightChild.lastChild;
11145
- } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
11146
- if (leftChild === rightChild &&
11147
- leftChild &&
11148
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
11149
- node = leftChild;
11150
- }
11151
- }
11152
- }
11153
- // check - cursor inside editor
11154
- if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
11155
- return node;
11156
- }
11163
+ if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
11164
+ return null;
11165
+ }
11166
+ const sel = this.sel;
11167
+ if (!sel || sel.rangeCount === 0) {
11168
+ return null;
11169
+ }
11170
+ const range = sel.getRangeAt(0);
11171
+ let node = range.startContainer;
11172
+ let rightMode = false;
11173
+ const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
11174
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
11175
+ return node;
11176
+ }
11177
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
11178
+ const ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
11179
+ node = ret.node;
11180
+ rightMode = ret.rightMode;
11181
+ }
11182
+ // check - cursor inside editor
11183
+ if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
11184
+ return node;
11157
11185
  }
11158
11186
  return null;
11159
11187
  }
11160
11188
  /**
11161
11189
  * Insert element in editor
11162
11190
  *
11191
+ * @param node - Node for insert
11163
11192
  * @param insertCursorAfter - After insert, cursor will move after element
11164
11193
  * @param fireChange - After insert, editor fire change event. You can prevent this behavior
11165
11194
  */
@@ -11221,6 +11250,7 @@ class Selection {
11221
11250
  * Inserts in the current cursor position some HTML snippet
11222
11251
  *
11223
11252
  * @param html - HTML The text to be inserted into the document
11253
+ * @param insertCursorAfter - After insert, cursor will move after element
11224
11254
  * @example
11225
11255
  * ```javascript
11226
11256
  * parent.s.insertHTML('<img src="image.png"/>');
@@ -11264,6 +11294,7 @@ class Selection {
11264
11294
  *
11265
11295
  * @param url - URL for image, or HTMLImageElement
11266
11296
  * @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
11297
+ * @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
11267
11298
  */
11268
11299
  insertImage(url, styles = null, defaultWidth = null) {
11269
11300
  const image = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .Kg)(url) ? this.j.createInside.element('img') : url;
@@ -11319,74 +11350,81 @@ class Selection {
11319
11350
  eachSelection(callback) {
11320
11351
  var _a;
11321
11352
  const sel = this.sel;
11322
- if (sel && sel.rangeCount) {
11323
- const range = sel.getRangeAt(0);
11324
- let root = range.commonAncestorContainer;
11325
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
11326
- root = root.parentElement;
11327
- }
11328
- const nodes = [], startOffset = range.startOffset, length = root.childNodes.length, elementOffset = startOffset < length ? startOffset : length - 1;
11329
- let start = range.startContainer === this.area
11330
- ? root.childNodes[elementOffset]
11331
- : range.startContainer, end = range.endContainer === this.area
11332
- ? root.childNodes[range.endOffset - 1]
11333
- : range.endContainer;
11334
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
11335
- start === range.startContainer &&
11336
- range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
11337
- start.nextSibling) {
11338
- start = start.nextSibling;
11339
- }
11340
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
11341
- end === range.endContainer &&
11342
- range.endOffset === 0 &&
11343
- end.previousSibling) {
11344
- end = end.previousSibling;
11345
- }
11346
- const checkElm = (node) => {
11347
- if (node &&
11348
- node !== root &&
11349
- !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
11350
- !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
11351
- nodes.push(node);
11352
- }
11353
- };
11354
- checkElm(start);
11355
- if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
11356
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
11357
- checkElm(node);
11358
- // checks parentElement as well because partial selections are not equal to entire element
11359
- return (node === end ||
11360
- (node && node.contains && node.contains(end)));
11361
- }, root, true, false);
11362
- }
11363
- const forEvery = (current) => {
11364
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
11365
- return;
11366
- }
11367
- if (current.nodeName.match(/^(UL|OL)$/)) {
11368
- return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
11353
+ if (!sel || !sel.rangeCount) {
11354
+ return;
11355
+ }
11356
+ const range = sel.getRangeAt(0);
11357
+ let root = range.commonAncestorContainer;
11358
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
11359
+ root = root.parentElement;
11360
+ }
11361
+ const nodes = [];
11362
+ const startOffset = range.startOffset;
11363
+ const length = root.childNodes.length;
11364
+ const elementOffset = startOffset < length ? startOffset : length - 1;
11365
+ let start = range.startContainer === this.area
11366
+ ? root.childNodes[elementOffset]
11367
+ : range.startContainer;
11368
+ let end = range.endContainer === this.area
11369
+ ? root.childNodes[range.endOffset - 1]
11370
+ : range.endContainer;
11371
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
11372
+ start === range.startContainer &&
11373
+ range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
11374
+ start.nextSibling) {
11375
+ start = start.nextSibling;
11376
+ }
11377
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
11378
+ end === range.endContainer &&
11379
+ range.endOffset === 0 &&
11380
+ end.previousSibling) {
11381
+ end = end.previousSibling;
11382
+ }
11383
+ const checkElm = (node) => {
11384
+ if (node &&
11385
+ node !== root &&
11386
+ !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
11387
+ !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
11388
+ nodes.push(node);
11389
+ }
11390
+ };
11391
+ checkElm(start);
11392
+ if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
11393
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
11394
+ checkElm(node);
11395
+ // checks parentElement as well because partial selections are not equal to entire element
11396
+ return (node === end ||
11397
+ (node && node.contains && node.contains(end)));
11398
+ }, root, true, false);
11399
+ }
11400
+ const forEvery = (current) => {
11401
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
11402
+ return;
11403
+ }
11404
+ if (current.nodeName.match(/^(UL|OL)$/)) {
11405
+ return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
11406
+ }
11407
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
11408
+ if (current.firstChild) {
11409
+ current = current.firstChild;
11369
11410
  }
11370
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
11371
- if (current.firstChild) {
11372
- current = current.firstChild;
11373
- }
11374
- else {
11375
- const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
11376
- current.appendChild(currentB);
11377
- current = currentB;
11378
- }
11411
+ else {
11412
+ const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
11413
+ current.appendChild(currentB);
11414
+ current = currentB;
11379
11415
  }
11380
- callback(current);
11381
- };
11382
- if (nodes.length === 0 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
11416
+ }
11417
+ callback(current);
11418
+ };
11419
+ if (nodes.length === 0) {
11420
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
11383
11421
  nodes.push(start);
11384
11422
  }
11385
- if (nodes.length === 0 && start.firstChild) {
11423
+ if (start.firstChild) {
11386
11424
  nodes.push(start.firstChild);
11387
11425
  }
11388
- nodes.forEach(forEvery);
11389
11426
  }
11427
+ nodes.forEach(forEvery);
11390
11428
  }
11391
11429
  /**
11392
11430
  * Checks if the cursor is at the end(start) block
@@ -11398,7 +11436,7 @@ class Selection {
11398
11436
  * @returns true - the cursor is at the end(start) block, null - cursor somewhere outside
11399
11437
  */
11400
11438
  cursorInTheEdge(start, parentBlock, fake = null) {
11401
- var _a, _b;
11439
+ var _a;
11402
11440
  const end = !start, range = (_a = this.sel) === null || _a === void 0 ? void 0 : _a.getRangeAt(0);
11403
11441
  fake !== null && fake !== void 0 ? fake : (fake = this.current(false));
11404
11442
  if (!range || !fake || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(parentBlock, fake, true)) {
@@ -11414,13 +11452,7 @@ class Selection {
11414
11452
  this.j.e.fire('isInvisibleForCursor', elm) === true));
11415
11453
  // check right offset
11416
11454
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
11417
- const text = ((_b = container.nodeValue) === null || _b === void 0 ? void 0 : _b.length) ? container.nodeValue : '';
11418
- if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
11419
- return false;
11420
- }
11421
- const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
11422
- if (start &&
11423
- ((inv && inv[0].length < offset) || (!inv && offset > 0))) {
11455
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
11424
11456
  return false;
11425
11457
  }
11426
11458
  }
@@ -11509,6 +11541,7 @@ class Selection {
11509
11541
  }
11510
11542
  /**
11511
11543
  * Set cursor in the node
11544
+ * @param node - Node element
11512
11545
  * @param inStart - set cursor in start of element
11513
11546
  */
11514
11547
  setCursorIn(node, inStart = false) {
@@ -11569,6 +11602,7 @@ class Selection {
11569
11602
  }
11570
11603
  /**
11571
11604
  * Select node
11605
+ * @param node - Node element
11572
11606
  * @param inward - select all inside
11573
11607
  */
11574
11608
  select(node, inward = false) {
@@ -11843,19 +11877,19 @@ class Selection {
11843
11877
  return this;
11844
11878
  }
11845
11879
  }
11846
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11880
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11847
11881
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11848
11882
  ], Selection.prototype, "createRange", null);
11849
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11883
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11850
11884
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11851
11885
  ], Selection.prototype, "focus", null);
11852
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11886
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11853
11887
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11854
11888
  ], Selection.prototype, "setCursorAfter", null);
11855
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11889
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11856
11890
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11857
11891
  ], Selection.prototype, "setCursorBefore", null);
11858
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11892
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11859
11893
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11860
11894
  ], Selection.prototype, "setCursorIn", null);
11861
11895
 
@@ -15743,7 +15777,6 @@ function getControlType(button, controls) {
15743
15777
  * @private
15744
15778
  */
15745
15779
  function findControlType(path, controls) {
15746
- var _a;
15747
15780
  // eslint-disable-next-line prefer-const
15748
15781
  let [namespaceOrKey, key] = path.split(/\./);
15749
15782
  let store = controls;
@@ -15755,17 +15788,23 @@ function findControlType(path, controls) {
15755
15788
  else {
15756
15789
  key = namespaceOrKey;
15757
15790
  }
15758
- const list = (_a = store[key]) === null || _a === void 0 ? void 0 : _a.list;
15791
+ // const list = store[key]?.list;
15759
15792
  return store[key]
15760
15793
  ? {
15761
15794
  name: key,
15762
- ...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key]),
15763
- list: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isArray)(list)
15764
- ? list.reduce((acc, k) => {
15765
- acc[k] = k;
15766
- return acc;
15767
- }, {})
15768
- : list
15795
+ ...(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
15796
+ // list: isArray(list)
15797
+ // ? (<Array<string>>list).reduce(
15798
+ // (
15799
+ // acc: IDictionary<string | number>,
15800
+ // k: string | number
15801
+ // ) => {
15802
+ // acc[String(k)] = k;
15803
+ // return acc;
15804
+ // },
15805
+ // {}
15806
+ // )
15807
+ // : list
15769
15808
  }
15770
15809
  : undefined;
15771
15810
  }
@@ -15782,8 +15821,8 @@ function findControlType(path, controls) {
15782
15821
  /* harmony export */ });
15783
15822
  /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55010);
15784
15823
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71122);
15785
- /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68600);
15786
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
15824
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
15825
+ /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68600);
15787
15826
  /*!
15788
15827
  * Jodit Editor (https://xdsoft.net/jodit/)
15789
15828
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -15803,7 +15842,7 @@ function getStrongControlTypes(items, controls) {
15803
15842
  const value = items[key] || {};
15804
15843
  return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
15805
15844
  });
15806
- return elements.map(item => (0,_get_control_type__WEBPACK_IMPORTED_MODULE_1__/* .getControlType */ .U)(item, controls || jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.defaultOptions.controls));
15845
+ return elements.map(item => (0,_get_control_type__WEBPACK_IMPORTED_MODULE_2__/* .getControlType */ .U)(item, controls || jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions.controls));
15807
15846
  }
15808
15847
 
15809
15848
 
@@ -16894,17 +16933,17 @@ View.defaultOptions = {
16894
16933
 
16895
16934
  "use strict";
16896
16935
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16897
- /* harmony export */ x: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_6__.x; }
16936
+ /* harmony export */ x: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
16898
16937
  /* harmony export */ });
16899
16938
  /* unused harmony export CommitMode */
16900
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58588);
16901
- /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22743);
16939
+ /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90268);
16940
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58588);
16902
16941
  /* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67259);
16903
16942
  /* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53557);
16904
16943
  /* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35102);
16905
16944
  /* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97186);
16906
- /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(90268);
16907
- /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(459);
16945
+ /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(459);
16946
+ /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(22743);
16908
16947
  /*!
16909
16948
  * Jodit Editor (https://xdsoft.net/jodit/)
16910
16949
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -16915,6 +16954,7 @@ View.defaultOptions = {
16915
16954
  * @packageDocumentation
16916
16955
  * @module jodit
16917
16956
  */
16957
+ // eslint-disable-next-line simple-import-sort/imports
16918
16958
 
16919
16959
 
16920
16960
 
@@ -16927,7 +16967,7 @@ View.defaultOptions = {
16927
16967
 
16928
16968
  // copy constants in Jodit
16929
16969
  Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach((key) => {
16930
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
16970
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
16931
16971
  });
16932
16972
  const esFilter = (key) => key !== '__esModule';
16933
16973
  // Icons
@@ -16943,32 +16983,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
16943
16983
  var _a;
16944
16984
  // @ts-ignore
16945
16985
  const module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
16946
- const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
16986
+ const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
16947
16987
  ? module.prototype.className()
16948
16988
  : key;
16949
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .Kg)(name)) {
16989
+ if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
16950
16990
  console.warn('Module name must be a string', key);
16951
16991
  return;
16952
16992
  }
16953
16993
  // @ts-ignore
16954
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.modules[name] = module;
16994
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
16955
16995
  });
16956
16996
  // Decorators
16957
16997
  Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
16958
16998
  .filter(esFilter)
16959
16999
  .forEach((key) => {
16960
17000
  // @ts-ignore
16961
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
17001
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
16962
17002
  });
16963
17003
  ['Confirm', 'Alert', 'Prompt'].forEach((key) => {
16964
17004
  // @ts-ignore
16965
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
17005
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
16966
17006
  });
16967
17007
  // Languages
16968
- Object.keys(_languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)
17008
+ Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
16969
17009
  .filter(esFilter)
16970
17010
  .forEach((key) => {
16971
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A[key];
17011
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
16972
17012
  });
16973
17013
 
16974
17014
  class CommitMode {
@@ -16991,8 +17031,8 @@ class CommitMode {
16991
17031
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
16992
17032
  /* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49604);
16993
17033
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28190);
16994
- /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35102);
16995
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91288);
17034
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
17035
+ /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35102);
16996
17036
  /*!
16997
17037
  * Jodit Editor (https://xdsoft.net/jodit/)
16998
17038
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -17011,7 +17051,7 @@ var Jodit_1;
17011
17051
 
17012
17052
  const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
17013
17053
  const __defaultClassesKey = 'data-jodit-default-classes';
17014
- let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_6__.ViewWithToolbar {
17054
+ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar {
17015
17055
  /** @override */
17016
17056
  className() {
17017
17057
  return 'Jodit';
@@ -17058,7 +17098,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17058
17098
  get defaultTimeout() {
17059
17099
  return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
17060
17100
  ? this.o.defaultTimeout
17061
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.defaultTimeout;
17101
+ : jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
17062
17102
  }
17063
17103
  /**
17064
17104
  * Method wrap usual Has Object in Object helper for prevent deep object merging in options*
@@ -17084,10 +17124,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17084
17124
  * Default settings
17085
17125
  */
17086
17126
  static get defaultOptions() {
17087
- return jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions;
17127
+ return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
17088
17128
  }
17089
17129
  get createInside() {
17090
- return new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Create(() => this.ed, this.o.createAttributes);
17130
+ return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(() => this.ed, this.o.createAttributes);
17091
17131
  }
17092
17132
  __setPlaceField(field, value) {
17093
17133
  if (!this.currentPlace) {
@@ -17635,8 +17675,8 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17635
17675
  const active = this.od.activeElement;
17636
17676
  if (active &&
17637
17677
  (active === this.iframe ||
17638
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.editor, active) ||
17639
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.toolbar.container, active))) {
17678
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
17679
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
17640
17680
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
17641
17681
  }
17642
17682
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
@@ -17788,7 +17828,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17788
17828
  }
17789
17829
  /** @override **/
17790
17830
  initOptions(options) {
17791
- this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions));
17831
+ this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
17792
17832
  }
17793
17833
  /** @override **/
17794
17834
  initOwners() {
@@ -17833,7 +17873,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17833
17873
  this.destruct();
17834
17874
  throw e;
17835
17875
  }
17836
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeInit);
17876
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
17837
17877
  this.id =
17838
17878
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.resolveElement)(element, this.o.shadowRoot || this.od), 'id') ||
17839
17879
  new Date().getTime().toString();
@@ -17845,7 +17885,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17845
17885
  }
17846
17886
  });
17847
17887
  this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
17848
- this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Selection(this);
17888
+ this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(this);
17849
17889
  const beforeInitHookResult = this.beforeInitHook();
17850
17890
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
17851
17891
  if (this.isInDestruct) {
@@ -17869,7 +17909,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17869
17909
  this.e.fire('afterInit', this);
17870
17910
  }
17871
17911
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
17872
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.ready);
17912
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
17873
17913
  this.e.fire('afterConstructor', this);
17874
17914
  };
17875
17915
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
@@ -17885,7 +17925,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17885
17925
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr) => {
17886
17926
  const name = attr.name;
17887
17927
  let value = attr.value;
17888
- if (jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions[name] !== undefined &&
17928
+ if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
17889
17929
  (!options || options[name] === undefined)) {
17890
17930
  if (['readonly', 'disabled'].indexOf(name) !== -1) {
17891
17931
  value = value === '' || value === 'true';
@@ -17953,11 +17993,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17953
17993
  element,
17954
17994
  container,
17955
17995
  workplace,
17956
- statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.StatusBar(this, container),
17996
+ statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
17957
17997
  options: this.isReady
17958
- ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions)
17998
+ ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
17959
17999
  : this.options,
17960
- history: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.History(this),
18000
+ history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
17961
18001
  editorWindow: this.ow
17962
18002
  };
17963
18003
  this.__elementToPlace.set(editor, currentPlace);
@@ -18048,7 +18088,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
18048
18088
  return;
18049
18089
  }
18050
18090
  if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
18051
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(defaultEditorArea);
18091
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
18052
18092
  }
18053
18093
  addClassNames(this.o.editorClassName, this.editor);
18054
18094
  if (this.o.style) {
@@ -18138,7 +18178,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
18138
18178
  if (this.isInDestruct) {
18139
18179
  return;
18140
18180
  }
18141
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeDestruct);
18181
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
18142
18182
  this.__elementToPlace.clear();
18143
18183
  this.storage.clear();
18144
18184
  this.buffer.clear();
@@ -18179,17 +18219,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
18179
18219
  this.e.off(container);
18180
18220
  this.e.off(element);
18181
18221
  this.e.off(editor);
18182
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(workplace);
18183
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(editor);
18222
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
18223
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
18184
18224
  if (container !== element) {
18185
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(container);
18225
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
18186
18226
  }
18187
18227
  Object.defineProperty(element, 'component', {
18188
18228
  enumerable: false,
18189
18229
  configurable: true,
18190
18230
  value: null
18191
18231
  });
18192
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(iframe);
18232
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
18193
18233
  // inline mode
18194
18234
  if (container === element) {
18195
18235
  element.innerHTML = buffer;
@@ -18211,7 +18251,7 @@ Jodit.constants = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__;
18211
18251
  Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
18212
18252
  Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
18213
18253
  Jodit.core = {
18214
- Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Plugin
18254
+ Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
18215
18255
  };
18216
18256
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
18217
18257
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
@@ -20490,16 +20530,16 @@ async function loadTree(fb) {
20490
20530
  /* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47672);
20491
20531
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28190);
20492
20532
  /* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12148);
20493
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83148);
20533
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91288);
20534
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83148);
20494
20535
  /* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(21310);
20495
- /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64164);
20496
- /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(50067);
20497
- /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(25430);
20498
- /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(34255);
20499
- /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(18714);
20500
- /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24538);
20501
- /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96243);
20502
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(91288);
20536
+ /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(64164);
20537
+ /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50067);
20538
+ /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(25430);
20539
+ /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(34255);
20540
+ /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(18714);
20541
+ /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(24538);
20542
+ /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(96243);
20503
20543
  /*!
20504
20544
  * Jodit Editor (https://xdsoft.net/jodit/)
20505
20545
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -20533,7 +20573,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20533
20573
  return 'FileBrowser';
20534
20574
  }
20535
20575
  get dataProvider() {
20536
- return (0,_factories__WEBPACK_IMPORTED_MODULE_15__/* .makeDataProvider */ .S)(this, this.options);
20576
+ return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
20537
20577
  }
20538
20578
  // eslint-disable-next-line no-unused-vars
20539
20579
  onSelect(callback) {
@@ -20649,7 +20689,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20649
20689
  this.__updateToolbarButtons();
20650
20690
  this._dialog.open(this.browser, header);
20651
20691
  this.e.fire('sort.filebrowser', this.state.sortBy);
20652
- (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__/* .loadTree */ .r)(this)
20692
+ (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(this)
20653
20693
  .then(resolve, reject)
20654
20694
  .finally(() => {
20655
20695
  var _a;
@@ -20686,7 +20726,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20686
20726
  }
20687
20727
  initUploader(editor) {
20688
20728
  var _a;
20689
- const self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.uploader);
20729
+ const self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.uploader);
20690
20730
  const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
20691
20731
  self.uploader = self.getInstance('Uploader', uploaderOptions);
20692
20732
  self.uploader
@@ -20706,11 +20746,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20706
20746
  super(options);
20707
20747
  this.browser = this.c.div(this.componentName);
20708
20748
  this.status_line = this.c.div(this.getFullElName('status'));
20709
- this.tree = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserTree */ .V(this);
20710
- this.files = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserFiles */ .Q(this);
20749
+ this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(this);
20750
+ this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(this);
20711
20751
  this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
20712
20752
  currentPath: '',
20713
- currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_14__/* .DEFAULT_SOURCE_NAME */ .o,
20753
+ currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
20714
20754
  currentBaseUrl: '',
20715
20755
  activeElements: [],
20716
20756
  elements: [],
@@ -20740,7 +20780,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20740
20780
  this.__prevButtons = [];
20741
20781
  this.attachEvents(options);
20742
20782
  const self = this;
20743
- self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.filebrowser);
20783
+ self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
20744
20784
  self.browser.component = this;
20745
20785
  self.container = self.browser;
20746
20786
  if (self.o.showFoldersPanel) {
@@ -20748,9 +20788,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20748
20788
  }
20749
20789
  self.browser.appendChild(self.files.container);
20750
20790
  self.browser.appendChild(self.status_line);
20751
- _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__/* .selfListeners */ .c.call(self);
20752
- _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__/* .nativeListeners */ .nW.call(self);
20753
- _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__/* .stateListeners */ .r.call(self);
20791
+ _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
20792
+ _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
20793
+ _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
20754
20794
  const keys = [
20755
20795
  'getLocalFileByUrl',
20756
20796
  'crop',
@@ -21422,10 +21462,10 @@ class Command {
21422
21462
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
21423
21463
  /* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
21424
21464
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53557);
21465
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
21425
21466
  /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(22180);
21426
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(801);
21467
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(801);
21427
21468
  /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98189);
21428
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
21429
21469
  /*!
21430
21470
  * Jodit Editor (https://xdsoft.net/jodit/)
21431
21471
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21438,7 +21478,7 @@ class Command {
21438
21478
 
21439
21479
 
21440
21480
 
21441
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.history = {
21481
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
21442
21482
  enable: true,
21443
21483
  maxHistoryLength: Infinity,
21444
21484
  timeout: 1000
@@ -21489,7 +21529,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
21489
21529
  set startValue(value) {
21490
21530
  this.__startValue = value;
21491
21531
  }
21492
- constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new _snapshot__WEBPACK_IMPORTED_MODULE_2__/* .Snapshot */ .F(editor)) {
21532
+ constructor(editor, stack = new _stack__WEBPACK_IMPORTED_MODULE_4__/* .Stack */ .B(editor.o.history.maxHistoryLength), snapshot = new _snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F(editor)) {
21493
21533
  super(editor);
21494
21534
  this.updateTick = 0;
21495
21535
  this.__stack = stack;
@@ -21552,7 +21592,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
21552
21592
  */
21553
21593
  updateStack(replace = false) {
21554
21594
  const newValue = this.snapshot.make();
21555
- if (!_snapshot__WEBPACK_IMPORTED_MODULE_2__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
21595
+ if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
21556
21596
  const newCommand = new _command__WEBPACK_IMPORTED_MODULE_5__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
21557
21597
  if (replace) {
21558
21598
  const command = this.__stack.current();
@@ -21886,11 +21926,11 @@ class Stack {
21886
21926
 
21887
21927
  "use strict";
21888
21928
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
21889
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83904);
21890
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__);
21891
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15582);
21892
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__);
21893
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
21929
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
21930
+ /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83904);
21931
+ /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__);
21932
+ /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15582);
21933
+ /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__);
21894
21934
  /*!
21895
21935
  * Jodit Editor (https://xdsoft.net/jodit/)
21896
21936
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21900,7 +21940,7 @@ class Stack {
21900
21940
 
21901
21941
 
21902
21942
 
21903
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor = {
21943
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
21904
21944
  min_width: 20,
21905
21945
  min_height: 20,
21906
21946
  closeAfterSave: false,
@@ -21915,7 +21955,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
21915
21955
  cropDefaultWidth: '70%',
21916
21956
  cropDefaultHeight: '70%'
21917
21957
  };
21918
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icons_crop_svg__WEBPACK_IMPORTED_MODULE_1___default())).set('resize', (_icons_resize_svg__WEBPACK_IMPORTED_MODULE_2___default()));
21958
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('resize', (_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default()));
21919
21959
 
21920
21960
 
21921
21961
  /***/ }),
@@ -21934,9 +21974,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
21934
21974
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33465);
21935
21975
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
21936
21976
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(64962);
21937
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15546);
21938
- /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(73898);
21939
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91288);
21977
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
21978
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15546);
21979
+ /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(73898);
21940
21980
  /*!
21941
21981
  * Jodit Editor (https://xdsoft.net/jodit/)
21942
21982
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -22396,7 +22436,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
22396
22436
  this.options =
22397
22437
  editor && editor.o && editor.o.imageeditor
22398
22438
  ? editor.o.imageeditor
22399
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.imageeditor;
22439
+ : jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
22400
22440
  const o = this.options;
22401
22441
  this.resizeUseRatio = o.resizeUseRatio;
22402
22442
  this.cropUseRatio = o.cropUseRatio;
@@ -22406,7 +22446,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
22406
22446
  saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(this.j, 'save', 'Save as ...')
22407
22447
  };
22408
22448
  this.activeTab = o.resize ? TABS.resize : TABS.crop;
22409
- this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_6__/* .form */ .Z)(this.j, this.options);
22449
+ this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_7__/* .form */ .Z)(this.j, this.options);
22410
22450
  const { resizeBox, cropBox } = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(this.editor);
22411
22451
  this.resize_box = resizeBox;
22412
22452
  this.crop_box = cropBox;
@@ -23158,6 +23198,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23158
23198
  }
23159
23199
  /**
23160
23200
  * Generate formal table martix columns*rows
23201
+ * @param table - Working table
23161
23202
  * @param callback - if return false cycle break
23162
23203
  */
23163
23204
  formalMatrix(table, callback) {
@@ -23227,7 +23268,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23227
23268
  * @param line - Insert a new line after/before this
23228
23269
  * line contains the selected cell
23229
23270
  * @param after - Insert a new line after line contains the selected cell
23230
- * @param create - Instance of Create class
23231
23271
  */
23232
23272
  appendRow(table, line, after) {
23233
23273
  return Table.__appendRow(table, line, after, this.j.createInside);
@@ -23396,13 +23436,36 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23396
23436
  return Table.__getSelectedBound(table, selectedCells);
23397
23437
  }
23398
23438
  static __normalizeTable(table) {
23399
- let i, j, min, not;
23400
23439
  const __marked = [], box = Table.__formalMatrix(table);
23401
- // remove extra colspans
23402
- for (j = 0; j < box[0].length; j += 1) {
23403
- min = 1000000;
23404
- not = false;
23405
- for (i = 0; i < box.length; i += 1) {
23440
+ Table.__removeExtraColspans(box, __marked);
23441
+ Table.__removeExtraRowspans(box, __marked);
23442
+ // remove rowspans and colspans equal 1 and empty class
23443
+ for (let i = 0; i < box.length; i += 1) {
23444
+ for (let j = 0; j < box[i].length; j += 1) {
23445
+ if (box[i][j] === undefined) {
23446
+ continue; // broken table
23447
+ }
23448
+ if (box[i][j].hasAttribute('rowspan') &&
23449
+ box[i][j].rowSpan === 1) {
23450
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
23451
+ }
23452
+ if (box[i][j].hasAttribute('colspan') &&
23453
+ box[i][j].colSpan === 1) {
23454
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
23455
+ }
23456
+ if (box[i][j].hasAttribute('class') &&
23457
+ !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
23458
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
23459
+ }
23460
+ }
23461
+ }
23462
+ Table.__unmark(__marked);
23463
+ }
23464
+ static __removeExtraColspans(box, __marked) {
23465
+ for (let j = 0; j < box[0].length; j += 1) {
23466
+ let min = 1000000;
23467
+ let not = false;
23468
+ for (let i = 0; i < box.length; i += 1) {
23406
23469
  if (box[i][j] === undefined) {
23407
23470
  continue; // broken table
23408
23471
  }
@@ -23413,7 +23476,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23413
23476
  min = Math.min(min, box[i][j].colSpan);
23414
23477
  }
23415
23478
  if (!not) {
23416
- for (i = 0; i < box.length; i += 1) {
23479
+ for (let i = 0; i < box.length; i += 1) {
23417
23480
  if (box[i][j] === undefined) {
23418
23481
  continue; // broken table
23419
23482
  }
@@ -23421,10 +23484,13 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23421
23484
  }
23422
23485
  }
23423
23486
  }
23424
- // remove extra rowspans
23487
+ }
23488
+ static __removeExtraRowspans(box, marked) {
23489
+ let i = 0;
23490
+ let j = 0;
23425
23491
  for (i = 0; i < box.length; i += 1) {
23426
- min = 1000000;
23427
- not = false;
23492
+ let min = 1000000;
23493
+ let not = false;
23428
23494
  for (j = 0; j < box[i].length; j += 1) {
23429
23495
  if (box[i][j] === undefined) {
23430
23496
  continue; // broken table
@@ -23440,31 +23506,10 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23440
23506
  if (box[i][j] === undefined) {
23441
23507
  continue; // broken table
23442
23508
  }
23443
- Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, __marked);
23509
+ Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
23444
23510
  }
23445
23511
  }
23446
23512
  }
23447
- // remove rowspans and colspans equal 1 and empty class
23448
- for (i = 0; i < box.length; i += 1) {
23449
- for (j = 0; j < box[i].length; j += 1) {
23450
- if (box[i][j] === undefined) {
23451
- continue; // broken table
23452
- }
23453
- if (box[i][j].hasAttribute('rowspan') &&
23454
- box[i][j].rowSpan === 1) {
23455
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
23456
- }
23457
- if (box[i][j].hasAttribute('colspan') &&
23458
- box[i][j].colSpan === 1) {
23459
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
23460
- }
23461
- if (box[i][j].hasAttribute('class') &&
23462
- !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
23463
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
23464
- }
23465
- }
23466
- }
23467
- Table.__unmark(__marked);
23468
23513
  }
23469
23514
  /**
23470
23515
  * Try recalculate all coluns and rows after change
@@ -23824,7 +23869,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
23824
23869
  }
23825
23870
  createContainer() {
23826
23871
  const cn = this.componentName;
23827
- const container = this.j.c.span(cn), button = super.createContainer();
23872
+ const container = this.j.c.span(cn);
23873
+ const button = super.createContainer();
23828
23874
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
23829
23875
  button.classList.remove(cn);
23830
23876
  button.classList.add(cn + '__button');
@@ -24221,8 +24267,9 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24221
24267
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24222
24268
  /* harmony export */ q: function() { return /* binding */ ToolbarSelect; }
24223
24269
  /* harmony export */ });
24224
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
24270
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
24225
24271
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53557);
24272
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47903);
24226
24273
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
24227
24274
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72463);
24228
24275
  /*!
@@ -24235,6 +24282,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24235
24282
 
24236
24283
 
24237
24284
 
24285
+
24238
24286
  let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .I {
24239
24287
  className() {
24240
24288
  return 'ToolbarSelect';
@@ -24253,13 +24301,13 @@ let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE
24253
24301
  const keys = Object.keys(list);
24254
24302
  key = keys[0];
24255
24303
  }
24256
- const text = (list[key.toString()] || key).toString();
24304
+ const text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
24257
24305
  this.state.text =
24258
24306
  (_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
24259
24307
  }
24260
24308
  }
24261
24309
  };
24262
- ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
24310
+ ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24263
24311
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
24264
24312
  ], ToolbarSelect);
24265
24313
 
@@ -24390,7 +24438,7 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
24390
24438
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
24391
24439
  ], ToolbarCollection.prototype, "__immediateUpdate", null);
24392
24440
  (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24393
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.debounce)()
24441
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.debounce)(ctx => ctx.j.defaultTimeout, true)
24394
24442
  ], ToolbarCollection.prototype, "update", null);
24395
24443
  (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24396
24444
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.hook)('ready')
@@ -24896,34 +24944,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24896
24944
  }
24897
24945
  const promises = [];
24898
24946
  if (o.insertImageAsBase64URI) {
24899
- let file, i;
24900
- for (i = 0; i < fileList.length; i += 1) {
24901
- file = fileList[i];
24902
- if (file && file.type) {
24903
- const mime = file.type.match(/\/([a-z0-9]+)/i);
24904
- const extension = mime[1] ? mime[1].toLowerCase() : '';
24905
- if (o.imagesExtensions.includes(extension)) {
24906
- const reader = new FileReader();
24907
- promises.push(uploader.j.async.promise((resolve, reject) => {
24908
- reader.onerror = reject;
24909
- reader.onloadend = () => {
24910
- const resp = {
24911
- baseurl: '',
24912
- files: [reader.result],
24913
- isImages: [true]
24914
- };
24915
- const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
24916
- ? handlerSuccess
24917
- : o.defaultHandlerSuccess;
24918
- handler.call(uploader, resp);
24919
- resolve(resp);
24920
- };
24921
- reader.readAsDataURL(file);
24922
- }));
24923
- fileList[i] = null;
24924
- }
24925
- }
24926
- }
24947
+ readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
24927
24948
  }
24928
24949
  fileList = fileList.filter(a => a);
24929
24950
  if (fileList.length) {
@@ -24934,7 +24955,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24934
24955
  for (let i = 0; i < fileList.length; i += 1) {
24935
24956
  file = fileList[i];
24936
24957
  if (file) {
24937
- const hasRealExtension = /\.[\d\w]+$/.test(file.name);
24958
+ const hasRealExtension = /\.\w+$/.test(file.name);
24938
24959
  const mime = file.type.match(/\/([a-z0-9]+)/i);
24939
24960
  const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
24940
24961
  let newName = fileList[i].name ||
@@ -24983,6 +25004,37 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24983
25004
  }
24984
25005
  return Promise.all(promises);
24985
25006
  }
25007
+ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
25008
+ let file, i;
25009
+ for (i = 0; i < fileList.length; i += 1) {
25010
+ file = fileList[i];
25011
+ if (file && file.type) {
25012
+ const mime = file.type.match(/\/([a-z0-9]+)/i);
25013
+ const extension = mime[1] ? mime[1].toLowerCase() : '';
25014
+ if (!imagesExtensions.includes(extension)) {
25015
+ continue;
25016
+ }
25017
+ const reader = new FileReader();
25018
+ promises.push(uploader.j.async.promise((resolve, reject) => {
25019
+ reader.onerror = reject;
25020
+ reader.onloadend = () => {
25021
+ const resp = {
25022
+ baseurl: '',
25023
+ files: [reader.result],
25024
+ isImages: [true]
25025
+ };
25026
+ const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
25027
+ ? handlerSuccess
25028
+ : defaultHandlerSuccess;
25029
+ handler.call(uploader, resp);
25030
+ resolve(resp);
25031
+ };
25032
+ reader.readAsDataURL(file);
25033
+ }));
25034
+ fileList[i] = null;
25035
+ }
25036
+ }
25037
+ }
24986
25038
 
24987
25039
 
24988
25040
  /***/ }),
@@ -25088,9 +25140,9 @@ function send(uploader, data) {
25088
25140
  /* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
25089
25141
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
25090
25142
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
25091
- /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20431);
25092
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50999);
25093
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
25143
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
25144
+ /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20431);
25145
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50999);
25094
25146
  /*!
25095
25147
  * Jodit Editor (https://xdsoft.net/jodit/)
25096
25148
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25162,14 +25214,14 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25162
25214
  }
25163
25215
  };
25164
25216
  // send data on server
25165
- if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(cData)) {
25166
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
25217
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
25218
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
25167
25219
  return false;
25168
25220
  }
25169
25221
  if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
25170
- return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
25222
+ return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
25171
25223
  }
25172
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(cData)) {
25224
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
25173
25225
  const { items } = cData;
25174
25226
  for (i = 0; i < items.length; i += 1) {
25175
25227
  if (items[i].kind === 'file' &&
@@ -25180,7 +25232,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25180
25232
  extension = mime[1]
25181
25233
  ? mime[1].toLowerCase()
25182
25234
  : '';
25183
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
25235
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
25184
25236
  }
25185
25237
  e.preventDefault();
25186
25238
  break;
@@ -25203,30 +25255,30 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25203
25255
  e.preventDefault();
25204
25256
  })
25205
25257
  .on(form, 'dragover', (event) => {
25206
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer) ||
25207
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(event.dataTransfer)) {
25258
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
25259
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
25208
25260
  form.classList.add('jodit_drag_hover');
25209
25261
  event.preventDefault();
25210
25262
  }
25211
25263
  })
25212
25264
  .on(form, 'dragend dragleave', (event) => {
25213
25265
  form.classList.remove('jodit_drag_hover');
25214
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
25266
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
25215
25267
  event.preventDefault();
25216
25268
  }
25217
25269
  })
25218
25270
  .on(form, 'drop', (event) => {
25219
25271
  form.classList.remove('jodit_drag_hover');
25220
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
25272
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
25221
25273
  event.preventDefault();
25222
25274
  event.stopImmediatePropagation();
25223
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
25275
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
25224
25276
  }
25225
25277
  });
25226
25278
  const inputFile = form.querySelector('input[type=file]');
25227
25279
  if (inputFile) {
25228
25280
  self.j.e.on(inputFile, 'change', () => {
25229
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
25281
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
25230
25282
  .then(() => {
25231
25283
  inputFile.value = '';
25232
25284
  if (!/safari/i.test(navigator.userAgent)) {
@@ -25246,7 +25298,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25246
25298
  const handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
25247
25299
  ? handlerError
25248
25300
  : o.defaultHandlerError;
25249
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .send */ .tN)(uploader, {
25301
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
25250
25302
  action: 'fileUploadRemote',
25251
25303
  url
25252
25304
  })
@@ -25266,11 +25318,11 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25266
25318
  super(editor);
25267
25319
  this.path = '';
25268
25320
  this.source = 'default';
25269
- this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.uploader, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(editor) ? editor.o.uploader : {}));
25321
+ this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.uploader, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(editor) ? editor.o.uploader : {}));
25270
25322
  }
25271
25323
  destruct() {
25272
25324
  this.setStatus(jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
25273
- const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .ajaxInstances */ .$j.get(this);
25325
+ const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
25274
25326
  if (instances) {
25275
25327
  instances.forEach(ajax => {
25276
25328
  try {
@@ -25699,9 +25751,9 @@ const TabsWidget = (jodit, tabs, state) => {
25699
25751
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
25700
25752
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
25701
25753
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
25702
- /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46891);
25703
- /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_4__);
25704
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
25754
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
25755
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46891);
25756
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
25705
25757
  /*!
25706
25758
  * Jodit Editor (https://xdsoft.net/jodit/)
25707
25759
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25715,7 +25767,7 @@ const TabsWidget = (jodit, tabs, state) => {
25715
25767
 
25716
25768
 
25717
25769
 
25718
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.about = {
25770
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
25719
25771
  exec: (editor) => {
25720
25772
  const dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
25721
25773
  dialog
@@ -25751,7 +25803,7 @@ function about(editor) {
25751
25803
  });
25752
25804
  }
25753
25805
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('about', about);
25754
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_4___default()));
25806
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
25755
25807
 
25756
25808
 
25757
25809
  /***/ }),
@@ -25994,9 +26046,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
25994
26046
 
25995
26047
  "use strict";
25996
26048
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
25997
- /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3882);
25998
- /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_1__);
25999
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
26049
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
26050
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3882);
26051
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
26000
26052
  /*!
26001
26053
  * Jodit Editor (https://xdsoft.net/jodit/)
26002
26054
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26005,9 +26057,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
26005
26057
 
26006
26058
 
26007
26059
 
26008
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLine = true;
26009
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
26010
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
26060
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
26061
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
26062
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
26011
26063
  'table',
26012
26064
  'iframe',
26013
26065
  'img',
@@ -26015,8 +26067,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
26015
26067
  'pre',
26016
26068
  'jodit'
26017
26069
  ];
26018
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
26019
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_1___default()));
26070
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
26071
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
26020
26072
 
26021
26073
 
26022
26074
  /***/ }),
@@ -26155,11 +26207,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
26155
26207
 
26156
26208
  "use strict";
26157
26209
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
26158
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15627);
26159
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__);
26160
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41500);
26161
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__);
26162
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
26210
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
26211
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15627);
26212
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
26213
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41500);
26214
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
26163
26215
  /*!
26164
26216
  * Jodit Editor (https://xdsoft.net/jodit/)
26165
26217
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26200,10 +26252,10 @@ const aiAssistantDefaults = {
26200
26252
  aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
26201
26253
  aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
26202
26254
  };
26203
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
26204
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default()));
26205
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default()));
26206
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-commands'] = {
26255
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
26256
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
26257
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
26258
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
26207
26259
  isDisabled(editor) {
26208
26260
  return !editor.o.aiAssistant.aiAssistantCallback;
26209
26261
  },
@@ -26241,7 +26293,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
26241
26293
  editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
26242
26294
  }
26243
26295
  };
26244
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-assistant'] = {
26296
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
26245
26297
  isDisabled(editor) {
26246
26298
  return !editor.o.aiAssistant.aiAssistantCallback;
26247
26299
  },
@@ -26602,7 +26654,7 @@ class backspace extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
26602
26654
  if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
26603
26655
  return false;
26604
26656
  }
26605
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
26657
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
26606
26658
  if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some((func) => {
26607
26659
  if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .T)(func) &&
26608
26660
  func(jodit, fakeNode, backspace, mode)) {
@@ -26861,22 +26913,15 @@ function checkNotCollapsed(jodit) {
26861
26913
  * @private
26862
26914
  */
26863
26915
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26864
- var _a, _b, _c;
26916
+ var _a, _b;
26865
26917
  const step = backspace ? -1 : 1;
26866
26918
  const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
26867
- let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace), removeNeighbor = null;
26868
- let charRemoved = false, removed;
26869
- const getNextInlineSibling = (sibling) => {
26870
- let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
26871
- if (!nextSibling &&
26872
- sibling.parentNode &&
26873
- sibling.parentNode !== jodit.editor) {
26874
- nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
26875
- }
26876
- return nextSibling;
26877
- };
26919
+ let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
26920
+ let removeNeighbor = null;
26921
+ let charRemoved = false;
26922
+ let removed;
26878
26923
  if (!sibling) {
26879
- sibling = getNextInlineSibling(fakeNode);
26924
+ sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
26880
26925
  }
26881
26926
  while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
26882
26927
  while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
@@ -26886,57 +26931,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26886
26931
  break;
26887
26932
  }
26888
26933
  if ((_a = sibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) {
26889
- // For Unicode escapes
26890
- let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
26891
- const length = value.length;
26892
- let index = backspace ? length - 1 : 0;
26893
- if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26894
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26895
- index += step;
26896
- }
26897
- }
26898
- removed = value[index];
26899
- if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26900
- index += step;
26901
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26902
- index += step;
26903
- }
26904
- index += backspace ? 1 : -1;
26934
+ removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
26935
+ if (!sibling.nodeValue.length &&
26936
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
26937
+ sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
26905
26938
  }
26906
- if (backspace && index < 0) {
26907
- value = [];
26908
- }
26909
- else {
26910
- value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
26911
- }
26912
- if (!anotherSibling ||
26913
- !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
26914
- (!backspace ? / $/ : /^ /).test((_b = anotherSibling.nodeValue) !== null && _b !== void 0 ? _b : '') ||
26915
- !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
26916
- for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
26917
- if (value[i] === ' ') {
26918
- value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
26919
- }
26920
- else {
26921
- break;
26922
- }
26923
- }
26924
- }
26925
- sibling.nodeValue = value.join('');
26926
26939
  }
26927
- if (!((_c = sibling.nodeValue) === null || _c === void 0 ? void 0 : _c.length)) {
26940
+ if (!((_b = sibling.nodeValue) === null || _b === void 0 ? void 0 : _b.length)) {
26928
26941
  removeNeighbor = sibling;
26929
26942
  }
26930
26943
  if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26944
+ checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
26931
26945
  charRemoved = true;
26932
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before, sibling, fakeNode);
26933
- if (mode === 'sentence' ||
26934
- (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
26935
- checkRemoveChar(jodit, fakeNode, backspace, mode);
26936
- }
26937
26946
  break;
26938
26947
  }
26939
- const nextSibling = getNextInlineSibling(sibling);
26948
+ const nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
26940
26949
  if (removeNeighbor) {
26941
26950
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
26942
26951
  removeNeighbor = null;
@@ -26958,6 +26967,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26958
26967
  }
26959
26968
  return charRemoved;
26960
26969
  }
26970
+ function getNextInlineSibling(sibling, backspace, root) {
26971
+ let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
26972
+ if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
26973
+ nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
26974
+ }
26975
+ return nextSibling;
26976
+ }
26961
26977
  /**
26962
26978
  * Helper removes all empty inline parents
26963
26979
  */
@@ -26982,6 +26998,57 @@ function addBRInsideEmptyBlock(jodit, node) {
26982
26998
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
26983
26999
  }
26984
27000
  }
27001
+ function tryRemoveChar(sibling, backspace, step, anotherSibling) {
27002
+ // For Unicode escapes
27003
+ let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
27004
+ const length = value.length;
27005
+ let index = backspace ? length - 1 : 0;
27006
+ if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
27007
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
27008
+ index += step;
27009
+ }
27010
+ }
27011
+ const removed = value[index];
27012
+ if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
27013
+ index += step;
27014
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
27015
+ index += step;
27016
+ }
27017
+ index += backspace ? 1 : -1;
27018
+ }
27019
+ if (backspace && index < 0) {
27020
+ value = [];
27021
+ }
27022
+ else {
27023
+ value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
27024
+ }
27025
+ replaceSpaceOnNBSP(anotherSibling, backspace, value);
27026
+ sibling.nodeValue = value.join('');
27027
+ return removed;
27028
+ }
27029
+ function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
27030
+ var _a;
27031
+ if (!anotherSibling ||
27032
+ !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
27033
+ (!backspace ? / $/ : /^ /).test((_a = anotherSibling.nodeValue) !== null && _a !== void 0 ? _a : '') ||
27034
+ !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
27035
+ for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
27036
+ if (value[i] === ' ') {
27037
+ value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
27038
+ }
27039
+ else {
27040
+ break;
27041
+ }
27042
+ }
27043
+ }
27044
+ }
27045
+ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
27046
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before, sibling, fakeNode);
27047
+ if (mode === 'sentence' ||
27048
+ (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
27049
+ checkRemoveChar(jodit, fakeNode, backspace, mode);
27050
+ }
27051
+ }
26985
27052
 
26986
27053
 
26987
27054
  /***/ }),
@@ -27019,7 +27086,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
27019
27086
  !jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
27020
27087
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before : jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after, neighbor, fakeNode);
27021
27088
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
27022
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
27089
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
27023
27090
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
27024
27091
  return true;
27025
27092
  }
@@ -27423,20 +27490,20 @@ function getMoveFilter(jodit) {
27423
27490
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51431);
27424
27491
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
27425
27492
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
27426
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94673);
27427
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39586);
27428
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__);
27429
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49463);
27430
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__);
27431
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(10292);
27432
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__);
27433
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(71718);
27434
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__);
27435
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(48397);
27436
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__);
27437
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(46781);
27438
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__);
27439
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(91288);
27493
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
27494
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94673);
27495
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39586);
27496
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
27497
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49463);
27498
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
27499
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10292);
27500
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
27501
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(71718);
27502
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
27503
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48397);
27504
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
27505
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(46781);
27506
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
27440
27507
  /*!
27441
27508
  * Jodit Editor (https://xdsoft.net/jodit/)
27442
27509
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27459,7 +27526,7 @@ function getMoveFilter(jodit) {
27459
27526
  */
27460
27527
  function bold(editor) {
27461
27528
  const callBack = (command) => {
27462
- const control = jodit_config__WEBPACK_IMPORTED_MODULE_10__/* .Config */ .T.defaultOptions.controls[command], cssOptions = {
27529
+ const control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = {
27463
27530
  ...control.css
27464
27531
  };
27465
27532
  let cssRules;
@@ -27513,12 +27580,12 @@ function bold(editor) {
27513
27580
  });
27514
27581
  }
27515
27582
  jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
27516
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default()))
27517
- .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default()))
27518
- .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default()))
27519
- .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default()))
27520
- .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
27521
- .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default()));
27583
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
27584
+ .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
27585
+ .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
27586
+ .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
27587
+ .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
27588
+ .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
27522
27589
 
27523
27590
 
27524
27591
  /***/ }),
@@ -27588,9 +27655,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
27588
27655
  /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94183);
27589
27656
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65564);
27590
27657
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
27591
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14835);
27592
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_5__);
27593
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
27658
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
27659
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(14835);
27660
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
27594
27661
  /*!
27595
27662
  * Jodit Editor (https://xdsoft.net/jodit/)
27596
27663
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27603,7 +27670,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
27603
27670
 
27604
27671
 
27605
27672
 
27606
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.classSpan = {
27673
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
27607
27674
  command: 'applyClassName',
27608
27675
  exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
27609
27676
  list: [
@@ -27691,7 +27758,7 @@ class classSpan extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
27691
27758
  beforeDestruct() { }
27692
27759
  }
27693
27760
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
27694
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_5___default()));
27761
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
27695
27762
 
27696
27763
 
27697
27764
  /***/ }),
@@ -27830,9 +27897,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
27830
27897
 
27831
27898
  "use strict";
27832
27899
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
27833
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(556);
27834
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_1__);
27835
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
27900
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
27901
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(556);
27902
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
27836
27903
  /*!
27837
27904
  * Jodit Editor (https://xdsoft.net/jodit/)
27838
27905
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27841,7 +27908,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
27841
27908
 
27842
27909
 
27843
27910
 
27844
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML = {
27911
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
27845
27912
  timeout: 300,
27846
27913
  removeEmptyElements: true,
27847
27914
  fillEmptyParagraph: true,
@@ -27857,11 +27924,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
27857
27924
  safeJavaScriptLink: true,
27858
27925
  disableCleanFilter: null
27859
27926
  };
27860
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.eraser = {
27927
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
27861
27928
  command: 'removeFormat',
27862
27929
  tooltip: 'Clear Formatting'
27863
27930
  };
27864
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_1___default()));
27931
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
27865
27932
 
27866
27933
 
27867
27934
  /***/ }),
@@ -28530,15 +28597,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
28530
28597
 
28531
28598
  "use strict";
28532
28599
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
28533
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65);
28534
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__);
28535
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4594);
28536
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__);
28537
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(63859);
28538
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__);
28539
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(38808);
28540
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__);
28541
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
28600
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
28601
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65);
28602
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
28603
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4594);
28604
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
28605
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63859);
28606
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
28607
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38808);
28608
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
28542
28609
  /*!
28543
28610
  * Jodit Editor (https://xdsoft.net/jodit/)
28544
28611
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -28550,25 +28617,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
28550
28617
 
28551
28618
 
28552
28619
 
28553
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.cut = {
28620
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
28554
28621
  command: 'cut',
28555
28622
  isDisabled: (editor) => editor.s.isCollapsed(),
28556
28623
  tooltip: 'Cut selection'
28557
28624
  };
28558
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copy = {
28625
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
28559
28626
  command: 'copy',
28560
28627
  isDisabled: (editor) => editor.s.isCollapsed(),
28561
28628
  tooltip: 'Copy selection'
28562
28629
  };
28563
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.selectall = {
28630
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
28564
28631
  icon: 'select-all',
28565
28632
  command: 'selectall',
28566
28633
  tooltip: 'Select all'
28567
28634
  };
28568
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default()))
28569
- .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default()))
28570
- .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default()))
28571
- .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default()));
28635
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
28636
+ .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
28637
+ .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
28638
+ .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
28572
28639
 
28573
28640
 
28574
28641
  /***/ }),
@@ -28640,10 +28707,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
28640
28707
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
28641
28708
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
28642
28709
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
28643
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21391);
28644
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(55370);
28645
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_4__);
28646
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
28710
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
28711
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21391);
28712
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55370);
28713
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
28647
28714
  /*!
28648
28715
  * Jodit Editor (https://xdsoft.net/jodit/)
28649
28716
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -28655,8 +28722,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
28655
28722
 
28656
28723
 
28657
28724
 
28658
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_4___default()));
28659
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brushCell = {
28725
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
28726
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
28660
28727
  isVisible: (editor) => {
28661
28728
  return !editor.o.disablePlugins.includes('color');
28662
28729
  },
@@ -28669,7 +28736,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28669
28736
  if (!selected.length) {
28670
28737
  return false;
28671
28738
  }
28672
- const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28739
+ const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28673
28740
  selected.forEach(cell => {
28674
28741
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
28675
28742
  });
@@ -28678,7 +28745,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28678
28745
  close();
28679
28746
  editor.unlock();
28680
28747
  }, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
28681
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, [
28748
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
28682
28749
  {
28683
28750
  name: 'Background',
28684
28751
  content: makeColorPicker('background-color')
@@ -28689,7 +28756,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28689
28756
  },
28690
28757
  tooltip: 'Background'
28691
28758
  };
28692
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brush = {
28759
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
28693
28760
  isVisible: (editor) => {
28694
28761
  return !editor.o.disablePlugins.includes('color');
28695
28762
  },
@@ -28737,7 +28804,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28737
28804
  }
28738
28805
  }, editor.editor);
28739
28806
  }
28740
- const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28807
+ const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28741
28808
  if (!currentElement) {
28742
28809
  editor.execCommand('background', false, value);
28743
28810
  }
@@ -28748,7 +28815,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28748
28815
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
28749
28816
  close();
28750
28817
  }, bg_color);
28751
- const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28818
+ const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28752
28819
  if (!currentElement) {
28753
28820
  editor.execCommand('forecolor', false, value);
28754
28821
  }
@@ -28772,7 +28839,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28772
28839
  if (editor.o.colorPickerDefaultTab !== 'background') {
28773
28840
  tabs = tabs.reverse();
28774
28841
  }
28775
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
28842
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
28776
28843
  },
28777
28844
  exec(jodit, current, { button }) {
28778
28845
  const mode = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode'), color = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color');
@@ -28811,10 +28878,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28811
28878
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
28812
28879
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
28813
28880
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
28814
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72131);
28815
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_3__);
28816
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18489);
28817
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
28881
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
28882
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72131);
28883
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
28884
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18489);
28818
28885
  /*!
28819
28886
  * Jodit Editor (https://xdsoft.net/jodit/)
28820
28887
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -28872,7 +28939,7 @@ const getStyles = (editor, box, defaultStyles) => {
28872
28939
  }
28873
28940
  return result;
28874
28941
  };
28875
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copyformat = {
28942
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
28876
28943
  exec: (editor, current, { button }) => {
28877
28944
  if (!current) {
28878
28945
  return;
@@ -28922,10 +28989,10 @@ function copyFormat(editor) {
28922
28989
  name: 'copyformat',
28923
28990
  group: 'clipboard'
28924
28991
  });
28925
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_4__);
28992
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
28926
28993
  }
28927
28994
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
28928
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default()));
28995
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
28929
28996
 
28930
28997
 
28931
28998
  /***/ }),
@@ -29881,45 +29948,11 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
29881
29948
  const sel = this.j.s.sel;
29882
29949
  const range = this.bufferRange ||
29883
29950
  (sel && sel.rangeCount ? sel.getRangeAt(0) : null);
29884
- let fragment = null;
29885
- if (!this.draggable && range) {
29886
- fragment = this.isCopyMode
29887
- ? range.cloneContents()
29888
- : range.extractContents();
29889
- }
29890
- else if (this.draggable) {
29891
- if (this.isCopyMode) {
29892
- const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
29893
- ? ['a', 'href']
29894
- : ['img', 'src'];
29895
- fragment = this.j.createInside.element(tagName);
29896
- fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
29897
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
29898
- '');
29899
- if (tagName === 'a') {
29900
- fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
29901
- }
29902
- }
29903
- else {
29904
- fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
29905
- }
29906
- }
29907
- else if (this.getText(event)) {
29908
- fragment = this.j.createInside.fromHTML(this.getText(event));
29909
- }
29951
+ const fragment = this.__getWorkFragment(range, event);
29910
29952
  sel && sel.removeAllRanges();
29911
29953
  this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
29912
29954
  if (fragment) {
29913
- this.j.s.insertNode(fragment, false, false);
29914
- if (range && fragment.firstChild && fragment.lastChild) {
29915
- range.setStartBefore(fragment.firstChild);
29916
- range.setEndAfter(fragment.lastChild);
29917
- this.j.s.selectRange(range);
29918
- this.j.e.fire('synchro');
29919
- }
29920
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
29921
- this.j.e.fire('afterInsertImage', fragment);
29922
- }
29955
+ this.__insertFragment.call(this, fragment, range);
29923
29956
  }
29924
29957
  event.preventDefault();
29925
29958
  event.stopPropagation();
@@ -29927,6 +29960,47 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
29927
29960
  this.isFragmentFromEditor = false;
29928
29961
  this.removeDragListeners();
29929
29962
  }
29963
+ __getWorkFragment(range, event) {
29964
+ let fragment = null;
29965
+ if (!this.draggable && range) {
29966
+ fragment = this.isCopyMode
29967
+ ? range.cloneContents()
29968
+ : range.extractContents();
29969
+ }
29970
+ else if (this.draggable) {
29971
+ if (this.isCopyMode) {
29972
+ const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
29973
+ ? ['a', 'href']
29974
+ : ['img', 'src'];
29975
+ fragment = this.j.createInside.element(tagName);
29976
+ fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
29977
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
29978
+ '');
29979
+ if (tagName === 'a') {
29980
+ fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
29981
+ }
29982
+ }
29983
+ else {
29984
+ fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
29985
+ }
29986
+ }
29987
+ else if (this.getText(event)) {
29988
+ fragment = this.j.createInside.fromHTML(this.getText(event));
29989
+ }
29990
+ return fragment;
29991
+ }
29992
+ __insertFragment(fragment, range) {
29993
+ this.j.s.insertNode(fragment, false, false);
29994
+ if (range && fragment.firstChild && fragment.lastChild) {
29995
+ range.setStartBefore(fragment.firstChild);
29996
+ range.setEndAfter(fragment.lastChild);
29997
+ this.j.s.selectRange(range);
29998
+ this.j.e.fire('synchro');
29999
+ }
30000
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
30001
+ this.j.e.fire('afterInsertImage', fragment);
30002
+ }
30003
+ }
29930
30004
  /** @override */
29931
30005
  beforeDestruct() {
29932
30006
  this.onDragEnd();
@@ -30728,8 +30802,8 @@ function wrapText(fake, jodit) {
30728
30802
  /* unused harmony export file */
30729
30803
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
30730
30804
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
30731
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21391);
30732
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
30805
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
30806
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21391);
30733
30807
  /*!
30734
30808
  * Jodit Editor (https://xdsoft.net/jodit/)
30735
30809
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30739,7 +30813,7 @@ function wrapText(fake, jodit) {
30739
30813
 
30740
30814
 
30741
30815
 
30742
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.file = {
30816
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
30743
30817
  popup: (editor, current, close) => {
30744
30818
  const insert = (url, title = '') => {
30745
30819
  editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
@@ -30752,7 +30826,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
30752
30826
  ? current
30753
30827
  : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
30754
30828
  }
30755
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__/* .FileSelectorWidget */ .kG)(editor, {
30829
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
30756
30830
  filebrowser: (data) => {
30757
30831
  data.files &&
30758
30832
  data.files.forEach(file => insert(data.baseurl + file));
@@ -30875,11 +30949,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
30875
30949
  /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
30876
30950
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
30877
30951
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
30878
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78602);
30879
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_3__);
30880
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84413);
30881
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__);
30882
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
30952
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
30953
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78602);
30954
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
30955
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84413);
30956
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
30883
30957
  /*!
30884
30958
  * Jodit Editor (https://xdsoft.net/jodit/)
30885
30959
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30895,9 +30969,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
30895
30969
  /**
30896
30970
  * Default font-size points
30897
30971
  */
30898
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
30899
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (_icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('fontsize', (_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4___default()));
30900
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize = {
30972
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
30973
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('font', (_icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default())).set('fontsize', (_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default()));
30974
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
30901
30975
  command: 'fontsize',
30902
30976
  data: {
30903
30977
  cssRule: 'font-size',
@@ -30956,8 +31030,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
30956
31030
  return keySet.has(normalize(value.toString()));
30957
31031
  }
30958
31032
  };
30959
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.font = {
30960
- ...jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize,
31033
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = {
31034
+ ...jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize,
30961
31035
  command: 'fontname',
30962
31036
  textTemplate: (j, value) => {
30963
31037
  const [first] = value.split(',');
@@ -31067,11 +31141,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
31067
31141
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
31068
31142
 
31069
31143
  "use strict";
31070
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
31144
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
31145
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47903);
31071
31146
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
31072
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30820);
31073
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_2__);
31074
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
31147
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
31148
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30820);
31149
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
31075
31150
  /*!
31076
31151
  * Jodit Editor (https://xdsoft.net/jodit/)
31077
31152
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -31081,13 +31156,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
31081
31156
 
31082
31157
 
31083
31158
 
31084
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default()));
31085
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.paragraph = {
31159
+
31160
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
31161
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
31086
31162
  command: 'formatBlock',
31087
31163
  value(editor, button) {
31088
31164
  var _a, _b;
31089
31165
  const control = button.control, current = editor.s.current();
31090
- const currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
31166
+ const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
31091
31167
  return (_a = currentBox === null || currentBox === void 0 ? void 0 : currentBox.nodeName.toLowerCase()) !== null && _a !== void 0 ? _a : (_b = control.data) === null || _b === void 0 ? void 0 : _b.currentValue;
31092
31168
  },
31093
31169
  update(editor, button) {
@@ -31096,7 +31172,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
31096
31172
  return false;
31097
31173
  }
31098
31174
  const currentValue = button.state.value, list = control.list;
31099
- if (list && list[currentValue.toString()]) {
31175
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
31100
31176
  if (editor.o.textIcons) {
31101
31177
  button.state.text = list[currentValue.toString()].toString();
31102
31178
  }
@@ -31120,9 +31196,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
31120
31196
  return Boolean(button.state.value === ((_b = (_a = button.control) === null || _a === void 0 ? void 0 : _a.args) === null || _b === void 0 ? void 0 : _b[0]));
31121
31197
  },
31122
31198
  isActive: (editor, button) => {
31123
- var _a;
31124
31199
  return (button.state.value !== editor.o.enter &&
31125
- Boolean((_a = button.control.list) === null || _a === void 0 ? void 0 : _a[button.state.value]));
31200
+ (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
31201
+ Boolean(button.control.list[button.state.value]));
31126
31202
  },
31127
31203
  childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
31128
31204
  tooltip: 'Insert format block'
@@ -31172,11 +31248,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
31172
31248
  "use strict";
31173
31249
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
31174
31250
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
31175
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88708);
31176
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__);
31177
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10099);
31178
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__);
31179
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
31251
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
31252
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88708);
31253
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
31254
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10099);
31255
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
31180
31256
  /*!
31181
31257
  * Jodit Editor (https://xdsoft.net/jodit/)
31182
31258
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -31188,10 +31264,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
31188
31264
 
31189
31265
 
31190
31266
 
31191
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.fullsize = false;
31192
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.globalFullSize = true;
31193
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('shrink', (_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3___default()));
31194
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.fullsize = {
31267
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
31268
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
31269
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('fullsize', (_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('shrink', (_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default()));
31270
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
31195
31271
  exec: (editor) => {
31196
31272
  editor.toggleFullSize();
31197
31273
  },
@@ -31332,19 +31408,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('fulls
31332
31408
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
31333
31409
  */
31334
31410
 
31335
- /**
31336
- * You can redefine hotkeys for some command
31337
- *
31338
- * @example
31339
- * ```js
31340
- * var jodit = Jodit.make('#editor', {
31341
- * commandToHotkeys: {
31342
- * bold: 'ctrl+shift+b',
31343
- * italic: ['ctrl+i', 'ctrl+b'],
31344
- * }
31345
- * })
31346
- * ```
31347
- */
31348
31411
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.commandToHotkeys = {
31349
31412
  removeFormat: ['ctrl+shift+m', 'cmd+shift+m'],
31350
31413
  insertOrderedList: ['ctrl+shift+7', 'cmd+shift+7'],
@@ -31519,9 +31582,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
31519
31582
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
31520
31583
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
31521
31584
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
31522
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75241);
31523
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_3__);
31524
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
31585
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
31586
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75241);
31587
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
31525
31588
  /*!
31526
31589
  * Jodit Editor (https://xdsoft.net/jodit/)
31527
31590
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -31532,8 +31595,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
31532
31595
 
31533
31596
 
31534
31597
 
31535
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_3___default()));
31536
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.hr = {
31598
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
31599
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
31537
31600
  command: 'insertHorizontalRule',
31538
31601
  tags: ['hr'],
31539
31602
  tooltip: 'Insert Horizontal Line'
@@ -32012,6 +32075,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
32012
32075
  * Released under MIT see LICENSE.txt in the project root for license information.
32013
32076
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
32014
32077
  */
32078
+ /**
32079
+ * @module plugins/image-properties
32080
+ */
32015
32081
 
32016
32082
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
32017
32083
  dialogWidth: 600,
@@ -33513,10 +33579,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
33513
33579
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
33514
33580
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
33515
33581
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
33516
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21391);
33517
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15807);
33518
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_5__);
33519
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
33582
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
33583
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21391);
33584
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15807);
33585
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
33520
33586
  /*!
33521
33587
  * Jodit Editor (https://xdsoft.net/jodit/)
33522
33588
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33529,8 +33595,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
33529
33595
 
33530
33596
 
33531
33597
 
33532
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_5___default()));
33533
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.image = {
33598
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
33599
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
33534
33600
  popup: (editor, current, close) => {
33535
33601
  let sourceImage = null;
33536
33602
  if (current &&
@@ -33542,7 +33608,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
33542
33608
  : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
33543
33609
  }
33544
33610
  editor.s.save();
33545
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .FileSelectorWidget */ .kG)(editor, {
33611
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
33546
33612
  filebrowser: (data) => {
33547
33613
  editor.s.restore();
33548
33614
  data.files &&
@@ -33585,12 +33651,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
33585
33651
  "use strict";
33586
33652
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
33587
33653
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
33588
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(96168);
33589
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__);
33590
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45153);
33591
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__);
33592
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63163);
33593
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
33654
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
33655
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(96168);
33656
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
33657
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45153);
33658
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
33659
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63163);
33594
33660
  /*!
33595
33661
  * Jodit Editor (https://xdsoft.net/jodit/)
33596
33662
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33602,17 +33668,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
33602
33668
 
33603
33669
 
33604
33670
 
33605
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (_icons_indent_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('outdent', (_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3___default()));
33606
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.indent = {
33671
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('indent', (_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('outdent', (_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default()));
33672
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
33607
33673
  tooltip: 'Increase Indent'
33608
33674
  };
33609
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.outdent = {
33675
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
33610
33676
  isDisabled: (editor) => {
33611
33677
  const current = editor.s.current();
33612
33678
  if (current) {
33613
33679
  const currentBox = jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor);
33614
33680
  if (currentBox) {
33615
- const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__/* .getKey */ .i)(editor.o.direction, currentBox);
33681
+ const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
33616
33682
  return (!currentBox.style[arrow] ||
33617
33683
  parseInt(currentBox.style[arrow], 10) <= 0);
33618
33684
  }
@@ -33621,7 +33687,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
33621
33687
  },
33622
33688
  tooltip: 'Decrease Indent'
33623
33689
  };
33624
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.indentMargin = 10;
33690
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
33625
33691
 
33626
33692
 
33627
33693
  /***/ }),
@@ -33882,12 +33948,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
33882
33948
 
33883
33949
  "use strict";
33884
33950
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
33885
- /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73625);
33886
- /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69247);
33887
- /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84516);
33888
- /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(79073);
33951
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
33952
+ /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73625);
33953
+ /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69247);
33954
+ /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84516);
33955
+ /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79073);
33889
33956
  /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(3301);
33890
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
33891
33957
  /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48537);
33892
33958
  /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__);
33893
33959
  /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1629);
@@ -33921,10 +33987,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
33921
33987
 
33922
33988
 
33923
33989
 
33924
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInline = true;
33925
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
33926
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
33927
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
33990
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
33991
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
33992
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
33993
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
33928
33994
  jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
33929
33995
  .set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
33930
33996
  .set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
@@ -33932,14 +33998,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
33932
33998
  .set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
33933
33999
  .set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
33934
34000
  .set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
33935
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
33936
- a: _items_a__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,
33937
- img: _items_img__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33938
- cells: _items_cells__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
34001
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
34002
+ a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
34003
+ img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
34004
+ cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33939
34005
  toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
33940
- jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33941
- iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33942
- 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
34006
+ jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
34007
+ iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
34008
+ 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33943
34009
  selection: [
33944
34010
  'bold',
33945
34011
  'underline',
@@ -34551,12 +34617,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
34551
34617
  /* unused harmony export justify */
34552
34618
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
34553
34619
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
34554
- /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26071);
34555
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
34556
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
34557
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77795);
34558
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
34620
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
34621
+ /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26071);
34622
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4401);
34623
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
34559
34624
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
34625
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77795);
34626
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
34560
34627
  /*!
34561
34628
  * Jodit Editor (https://xdsoft.net/jodit/)
34562
34629
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -34569,7 +34636,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
34569
34636
 
34570
34637
 
34571
34638
 
34572
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_4___default()));
34639
+
34640
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
34573
34641
  jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
34574
34642
  name: 'left',
34575
34643
  tooltip: 'Align',
@@ -34578,22 +34646,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
34578
34646
  if (current) {
34579
34647
  const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor) ||
34580
34648
  editor.editor;
34581
- let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString();
34649
+ let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
34582
34650
  if (control.defaultValue &&
34583
34651
  control.defaultValue.indexOf(currentValue) !== -1) {
34584
34652
  currentValue = 'left';
34585
34653
  }
34586
- if (control.data &&
34587
- control.data.currentValue !== currentValue &&
34588
- control.list &&
34589
- control.list[currentValue]) {
34654
+ const { list, data } = control;
34655
+ if (data &&
34656
+ data.currentValue !== currentValue &&
34657
+ list &&
34658
+ ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
34659
+ ? list[currentValue]
34660
+ : list.includes(currentValue))) {
34590
34661
  if (editor.o.textIcons || control.component === 'select') {
34591
34662
  button.state.text = currentValue;
34592
34663
  }
34593
34664
  else {
34594
34665
  button.state.icon.name = currentValue;
34595
34666
  }
34596
- control.data.currentValue = currentValue;
34667
+ data.currentValue = currentValue;
34597
34668
  }
34598
34669
  }
34599
34670
  },
@@ -34604,7 +34675,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
34604
34675
  }
34605
34676
  const currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isBlock, editor.editor) ||
34606
34677
  editor.editor;
34607
- return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
34678
+ return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
34608
34679
  },
34609
34680
  defaultValue: ['left', 'start', 'inherit'],
34610
34681
  data: {
@@ -34658,7 +34729,7 @@ function justify(editor) {
34658
34729
  if (!currentBox) {
34659
34730
  currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
34660
34731
  }
34661
- (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__/* .alignElement */ .Op)(command, currentBox);
34732
+ (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
34662
34733
  });
34663
34734
  return false;
34664
34735
  };
@@ -34870,9 +34941,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
34870
34941
  "use strict";
34871
34942
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9596);
34872
34943
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
34873
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19615);
34874
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_2__);
34875
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
34944
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
34945
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19615);
34946
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
34876
34947
  /*!
34877
34948
  * Jodit Editor (https://xdsoft.net/jodit/)
34878
34949
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -34882,9 +34953,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
34882
34953
 
34883
34954
 
34884
34955
 
34885
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultLineHeight = null;
34886
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_2___default()));
34887
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.lineHeight = {
34956
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
34957
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
34958
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
34888
34959
  command: 'applyLineHeight',
34889
34960
  tags: ['ol'],
34890
34961
  tooltip: 'Line height',
@@ -35449,12 +35520,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
35449
35520
  "use strict";
35450
35521
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
35451
35522
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
35452
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67576);
35453
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_2__);
35454
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73501);
35455
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__);
35456
- /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17660);
35457
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
35523
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
35524
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67576);
35525
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
35526
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73501);
35527
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
35528
+ /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17660);
35458
35529
  /*!
35459
35530
  * Jodit Editor (https://xdsoft.net/jodit/)
35460
35531
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35466,8 +35537,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
35466
35537
 
35467
35538
 
35468
35539
 
35469
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
35470
- formTemplate: _template__WEBPACK_IMPORTED_MODULE_4__/* .formTemplate */ .B,
35540
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
35541
+ formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
35471
35542
  followOnDblClick: false,
35472
35543
  processVideoLink: true,
35473
35544
  processPastedLink: true,
@@ -35479,8 +35550,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
35479
35550
  selectOptionsClassName: [],
35480
35551
  hotkeys: ['ctrl+k', 'cmd+k']
35481
35552
  };
35482
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (_icons_link_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('unlink', (_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3___default()));
35483
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unlink = {
35553
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('link', (_icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('unlink', (_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default()));
35554
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
35484
35555
  exec: (editor, current) => {
35485
35556
  const anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
35486
35557
  if (anchor) {
@@ -35491,7 +35562,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
35491
35562
  },
35492
35563
  tooltip: 'Unlink'
35493
35564
  };
35494
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.link = {
35565
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
35495
35566
  isActive: (editor) => {
35496
35567
  const current = editor.s.current();
35497
35568
  return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
@@ -35649,35 +35720,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
35649
35720
  if (link) {
35650
35721
  url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
35651
35722
  if (modeClassName) {
35652
- switch (modeClassName) {
35653
- case 'input':
35654
- if (className_input) {
35655
- className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35656
- }
35657
- break;
35658
- case 'select':
35659
- if (className_select) {
35660
- for (let i = 0; i < className_select.selectedOptions.length; i++) {
35661
- const option = className_select.options.item(i);
35662
- if (option) {
35663
- option.selected = false;
35664
- }
35665
- }
35666
- const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35667
- classNames.split(' ').forEach(className => {
35668
- if (className) {
35669
- for (let i = 0; i < className_select.options.length; i++) {
35670
- const option = className_select.options.item(i);
35671
- if ((option === null || option === void 0 ? void 0 : option.value) &&
35672
- option.value === className) {
35673
- option.selected = true;
35674
- }
35675
- }
35676
- }
35677
- });
35678
- }
35679
- break;
35680
- }
35723
+ readClassnames(modeClassName, className_input, link, className_select);
35681
35724
  }
35682
35725
  if (openInNewTabCheckbox && target_checkbox) {
35683
35726
  target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
@@ -35738,44 +35781,10 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
35738
35781
  links = [link];
35739
35782
  }
35740
35783
  links.forEach(a => {
35741
- var _a;
35742
35784
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
35743
- if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
35744
- if (modeClassName === 'input') {
35745
- if (className_input.value === '' &&
35746
- a.hasAttribute('class')) {
35747
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
35748
- }
35749
- if (className_input.value !== '') {
35750
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
35751
- }
35752
- }
35753
- else if (modeClassName === 'select') {
35754
- if (a.hasAttribute('class')) {
35755
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
35756
- }
35757
- for (let i = 0; i < className_select.selectedOptions.length; i++) {
35758
- const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
35759
- if (className) {
35760
- a.classList.add(className);
35761
- }
35762
- }
35763
- }
35764
- }
35785
+ writeClasses(modeClassName, className_input, className_select, a);
35765
35786
  if (!isImageContent) {
35766
- let newContent = a.textContent;
35767
- if (content_input.value.trim().length) {
35768
- if (textWasChanged) {
35769
- newContent = content_input.value;
35770
- }
35771
- }
35772
- else {
35773
- newContent = url_input.value;
35774
- }
35775
- const content = a.textContent;
35776
- if (newContent !== content) {
35777
- a.textContent = newContent;
35778
- }
35787
+ writeImage(a, content_input, textWasChanged, url_input);
35779
35788
  }
35780
35789
  if (openInNewTabCheckbox && target_checkbox) {
35781
35790
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
@@ -35820,6 +35829,75 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
35820
35829
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
35821
35830
  ], link.prototype, "__generateForm", null);
35822
35831
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
35832
+ function writeClasses(modeClassName, className_input, className_select, a) {
35833
+ var _a;
35834
+ if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
35835
+ if (modeClassName === 'input') {
35836
+ if (className_input.value === '' && a.hasAttribute('class')) {
35837
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
35838
+ }
35839
+ if (className_input.value !== '') {
35840
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
35841
+ }
35842
+ }
35843
+ else if (modeClassName === 'select') {
35844
+ if (a.hasAttribute('class')) {
35845
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
35846
+ }
35847
+ for (let i = 0; i < className_select.selectedOptions.length; i++) {
35848
+ const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
35849
+ if (className) {
35850
+ a.classList.add(className);
35851
+ }
35852
+ }
35853
+ }
35854
+ }
35855
+ }
35856
+ function readClassnames(modeClassName, className_input, link, className_select) {
35857
+ switch (modeClassName) {
35858
+ case 'input':
35859
+ if (className_input) {
35860
+ className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35861
+ }
35862
+ break;
35863
+ case 'select':
35864
+ if (className_select) {
35865
+ for (let i = 0; i < className_select.selectedOptions.length; i++) {
35866
+ const option = className_select.options.item(i);
35867
+ if (option) {
35868
+ option.selected = false;
35869
+ }
35870
+ }
35871
+ const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35872
+ classNames.split(' ').forEach(className => {
35873
+ if (className) {
35874
+ for (let i = 0; i < className_select.options.length; i++) {
35875
+ const option = className_select.options.item(i);
35876
+ if ((option === null || option === void 0 ? void 0 : option.value) && option.value === className) {
35877
+ option.selected = true;
35878
+ }
35879
+ }
35880
+ }
35881
+ });
35882
+ }
35883
+ break;
35884
+ }
35885
+ }
35886
+ function writeImage(a, content_input, textWasChanged, url_input) {
35887
+ let newContent = a.textContent;
35888
+ if (content_input.value.trim().length) {
35889
+ if (textWasChanged) {
35890
+ newContent = content_input.value;
35891
+ }
35892
+ }
35893
+ else {
35894
+ newContent = url_input.value;
35895
+ }
35896
+ const content = a.textContent;
35897
+ if (newContent !== content) {
35898
+ a.textContent = newContent;
35899
+ }
35900
+ }
35823
35901
 
35824
35902
 
35825
35903
  /***/ }),
@@ -36029,9 +36107,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
36029
36107
  "use strict";
36030
36108
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
36031
36109
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
36032
- /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78167);
36033
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78072);
36034
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
36110
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
36111
+ /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78167);
36112
+ /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78072);
36035
36113
  /*!
36036
36114
  * Jodit Editor (https://xdsoft.net/jodit/)
36037
36115
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36042,9 +36120,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
36042
36120
 
36043
36121
 
36044
36122
 
36045
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.mobileTapTimeout = 300;
36046
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.toolbarAdaptive = true;
36047
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD = [
36123
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
36124
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
36125
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
36048
36126
  {
36049
36127
  group: 'font-style',
36050
36128
  buttons: []
@@ -36091,7 +36169,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
36091
36169
  '|',
36092
36170
  'dots'
36093
36171
  ];
36094
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM = [
36172
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
36095
36173
  {
36096
36174
  group: 'font-style',
36097
36175
  buttons: []
@@ -36126,7 +36204,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
36126
36204
  '|',
36127
36205
  'dots'
36128
36206
  ];
36129
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS = [
36207
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
36130
36208
  {
36131
36209
  group: 'font-style',
36132
36210
  buttons: []
@@ -36147,17 +36225,17 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
36147
36225
  '---',
36148
36226
  'dots'
36149
36227
  ];
36150
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.dots = {
36228
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
36151
36229
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
36152
36230
  popup: (editor, current, close, button) => {
36153
36231
  let store = button.control.data;
36154
36232
  if (store === undefined) {
36155
36233
  store = {
36156
- toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__/* .makeCollection */ .$K)(editor),
36234
+ toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
36157
36235
  rebuild: () => {
36158
36236
  var _a, _b;
36159
36237
  if (button) {
36160
- const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__/* .ToolbarCollection */ .Q));
36238
+ const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
36161
36239
  if (buttons && store) {
36162
36240
  store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
36163
36241
  const w = ((_b = (_a = editor.toolbar) === null || _a === void 0 ? void 0 : _a.firstButton) === null || _b === void 0 ? void 0 : _b.container.offsetWidth) || 36;
@@ -36266,11 +36344,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
36266
36344
  "use strict";
36267
36345
  /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49382);
36268
36346
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
36269
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48421);
36270
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__);
36271
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22791);
36272
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__);
36273
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
36347
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
36348
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48421);
36349
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
36350
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22791);
36351
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
36274
36352
  /*!
36275
36353
  * Jodit Editor (https://xdsoft.net/jodit/)
36276
36354
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36288,8 +36366,8 @@ const memoExec = (jodit, _, { control }) => {
36288
36366
  (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
36289
36367
  jodit.execCommand(control.command, false, value === 'default' ? null : value);
36290
36368
  };
36291
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (_icons_ol_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('ul', (_icons_ul_svg__WEBPACK_IMPORTED_MODULE_3___default()));
36292
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul = {
36369
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('ol', (_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('ul', (_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default()));
36370
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
36293
36371
  command: 'insertUnorderedList',
36294
36372
  tags: ['ul'],
36295
36373
  tooltip: 'Insert Unordered List',
@@ -36301,7 +36379,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
36301
36379
  },
36302
36380
  exec: memoExec
36303
36381
  };
36304
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ol = {
36382
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
36305
36383
  command: 'insertOrderedList',
36306
36384
  tags: ['ol'],
36307
36385
  tooltip: 'Insert Ordered List',
@@ -36678,8 +36756,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
36678
36756
 
36679
36757
  "use strict";
36680
36758
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
36681
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48954);
36682
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
36759
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
36760
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48954);
36683
36761
  /*!
36684
36762
  * Jodit Editor (https://xdsoft.net/jodit/)
36685
36763
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36688,19 +36766,19 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
36688
36766
 
36689
36767
 
36690
36768
 
36691
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.askBeforePasteHTML = true;
36692
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.processPasteHTML = true;
36693
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.scrollToPastedContent = true;
36694
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
36695
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteHTMLActionList = [
36769
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
36770
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
36771
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
36772
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
36773
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
36696
36774
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
36697
36775
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
36698
36776
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
36699
36777
  ];
36700
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
36701
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.nl2brInPlainText = true;
36778
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
36779
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
36702
36780
  const psKey = 'pasteStorage';
36703
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paste = {
36781
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
36704
36782
  tooltip: 'Paste from clipboard',
36705
36783
  async exec(editor, _, { control }) {
36706
36784
  if (control.name === psKey) {
@@ -36748,7 +36826,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
36748
36826
  !error && editor.e.fire('afterPaste');
36749
36827
  }
36750
36828
  else if (text.length) {
36751
- (0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .sX)(null, editor, text);
36829
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
36752
36830
  editor.e.fire('afterPaste');
36753
36831
  }
36754
36832
  else {
@@ -37476,10 +37554,10 @@ function generateCriticalCSS(jodit) {
37476
37554
  /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54614);
37477
37555
  /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85769);
37478
37556
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
37479
- /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(86134);
37480
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(26899);
37481
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_6__);
37482
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91288);
37557
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
37558
+ /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(86134);
37559
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26899);
37560
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
37483
37561
  /*!
37484
37562
  * Jodit Editor (https://xdsoft.net/jodit/)
37485
37563
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37494,8 +37572,8 @@ function generateCriticalCSS(jodit) {
37494
37572
 
37495
37573
 
37496
37574
 
37497
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_6___default()));
37498
- jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.print = {
37575
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
37576
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
37499
37577
  exec: (editor) => {
37500
37578
  const iframe = editor.create.element('iframe');
37501
37579
  Object.assign(iframe.style, {
@@ -37506,7 +37584,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
37506
37584
  height: 0,
37507
37585
  border: 0
37508
37586
  });
37509
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T).appendChild(iframe);
37587
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
37510
37588
  const afterFinishPrint = () => {
37511
37589
  editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
37512
37590
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
@@ -37524,7 +37602,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
37524
37602
  myWindow.document.write('<!doctype html><html lang="' +
37525
37603
  (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
37526
37604
  '"><head><title></title></head><style>' +
37527
- (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__/* .generateCriticalCSS */ .Y)(editor) +
37605
+ (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
37528
37606
  '</style><body></body></html>');
37529
37607
  myWindow.document.close();
37530
37608
  (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
@@ -37562,11 +37640,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
37562
37640
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
37563
37641
  /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67141);
37564
37642
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
37565
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37629);
37566
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__);
37567
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42687);
37568
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__);
37569
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
37643
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
37644
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37629);
37645
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
37646
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42687);
37647
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
37570
37648
  /*!
37571
37649
  * Jodit Editor (https://xdsoft.net/jodit/)
37572
37650
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37579,13 +37657,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
37579
37657
 
37580
37658
 
37581
37659
 
37582
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (_icons_redo_svg__WEBPACK_IMPORTED_MODULE_4___default())).set('undo', (_icons_undo_svg__WEBPACK_IMPORTED_MODULE_5___default()));
37583
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.redo = {
37660
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('redo', (_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default())).set('undo', (_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default()));
37661
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
37584
37662
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
37585
37663
  isDisabled: (editor) => !editor.history.canRedo(),
37586
37664
  tooltip: 'Redo'
37587
37665
  };
37588
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.undo = {
37666
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
37589
37667
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
37590
37668
  isDisabled: (editor) => !editor.history.canUndo(),
37591
37669
  tooltip: 'Undo'
@@ -38604,9 +38682,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
38604
38682
 
38605
38683
  "use strict";
38606
38684
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
38607
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98973);
38608
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_1__);
38609
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
38685
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
38686
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98973);
38687
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
38610
38688
  /*!
38611
38689
  * Jodit Editor (https://xdsoft.net/jodit/)
38612
38690
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38616,14 +38694,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
38616
38694
 
38617
38695
 
38618
38696
 
38619
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
38620
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
38697
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
38698
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
38621
38699
  lazyIdleTimeout: 0,
38622
38700
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38623
38701
  useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
38624
38702
  };
38625
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_1___default()));
38626
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
38703
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
38704
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
38627
38705
  tooltip: 'Find',
38628
38706
  icon: 'search',
38629
38707
  exec(jodit, _, { control }) {
@@ -38664,7 +38742,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
38664
38742
  /* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
38665
38743
  /* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
38666
38744
  /* harmony export */ });
38667
- /* unused harmony export isSelectionWrapper */
38668
38745
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
38669
38746
  /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52989);
38670
38747
  /*!
@@ -38686,60 +38763,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
38686
38763
  rng.endContainer.nodeValue == null) {
38687
38764
  return;
38688
38765
  }
38689
- if (jodit.o.search.useCustomHighlightAPI &&
38690
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38691
- typeof window.Highlight !== 'undefined') {
38692
- const ranges = [rng, ...restRanges].map(rng => {
38693
- const range = jodit.selection.createRange();
38694
- range.setStart(rng.startContainer, rng.startOffset);
38695
- range.setEnd(rng.endContainer, rng.endOffset);
38696
- return range;
38697
- });
38698
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38699
- const searchHighlight = new Highlight(...ranges);
38700
- // @ts-ignore
38701
- CSS.highlights.clear();
38702
- // @ts-ignore
38703
- CSS.highlights.set('jodit-search-result', searchHighlight);
38704
- restRanges.length = 0;
38766
+ if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
38705
38767
  return;
38706
38768
  }
38707
38769
  const span = ci.element('span', {
38708
38770
  [TMP_ATTR]: true
38709
38771
  });
38710
38772
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
38711
- const startText = rng.startContainer.nodeValue;
38712
- let diff = 0;
38713
- if (rng.startOffset !== 0) {
38714
- const text = ci.text(startText.substring(0, rng.startOffset));
38715
- rng.startContainer.nodeValue = startText.substring(rng.startOffset);
38716
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
38717
- if (rng.startContainer === rng.endContainer) {
38718
- diff = rng.startOffset;
38719
- rng.endOffset -= diff;
38720
- }
38721
- rng.startOffset = 0;
38722
- }
38723
- const endText = rng.endContainer.nodeValue;
38724
- if (rng.endOffset !== endText.length) {
38725
- const text = ci.text(endText.substring(rng.endOffset));
38726
- rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
38727
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
38728
- for (const range of restRanges) {
38729
- if (range.startContainer === rng.endContainer) {
38730
- range.startContainer = text;
38731
- range.startOffset = range.startOffset - rng.endOffset - diff;
38732
- if (range.endContainer === rng.endContainer) {
38733
- range.endContainer = text;
38734
- range.endOffset = range.endOffset - rng.endOffset - diff;
38735
- }
38736
- }
38737
- else {
38738
- break;
38739
- }
38740
- }
38741
- rng.endOffset = rng.endContainer.nodeValue.length;
38742
- }
38773
+ normalizeRanges(rng, restRanges, ci);
38743
38774
  let next = rng.startContainer;
38744
38775
  do {
38745
38776
  if (!next) {
@@ -38785,6 +38816,61 @@ function clearSelectionWrappersFromHTML(root) {
38785
38816
  function isSelectionWrapper(node) {
38786
38817
  return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
38787
38818
  }
38819
+ function checkNativeSelectionMethod(jodit, rng, restRanges) {
38820
+ if (jodit.o.search.useCustomHighlightAPI &&
38821
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38822
+ typeof window.Highlight !== 'undefined') {
38823
+ const ranges = [rng, ...restRanges].map(rng => {
38824
+ const range = jodit.selection.createRange();
38825
+ range.setStart(rng.startContainer, rng.startOffset);
38826
+ range.setEnd(rng.endContainer, rng.endOffset);
38827
+ return range;
38828
+ });
38829
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38830
+ const searchHighlight = new Highlight(...ranges);
38831
+ // @ts-ignore
38832
+ CSS.highlights.clear();
38833
+ // @ts-ignore
38834
+ CSS.highlights.set('jodit-search-result', searchHighlight);
38835
+ restRanges.length = 0;
38836
+ return true;
38837
+ }
38838
+ return false;
38839
+ }
38840
+ function normalizeRanges(rng, restRanges, ci) {
38841
+ const startText = rng.startContainer.nodeValue;
38842
+ let diff = 0;
38843
+ if (rng.startOffset !== 0) {
38844
+ const text = ci.text(startText.substring(0, rng.startOffset));
38845
+ rng.startContainer.nodeValue = startText.substring(rng.startOffset);
38846
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
38847
+ if (rng.startContainer === rng.endContainer) {
38848
+ diff = rng.startOffset;
38849
+ rng.endOffset -= diff;
38850
+ }
38851
+ rng.startOffset = 0;
38852
+ }
38853
+ const endText = rng.endContainer.nodeValue;
38854
+ if (rng.endOffset !== endText.length) {
38855
+ const text = ci.text(endText.substring(rng.endOffset));
38856
+ rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
38857
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
38858
+ for (const range of restRanges) {
38859
+ if (range.startContainer === rng.endContainer) {
38860
+ range.startContainer = text;
38861
+ range.startOffset = range.startOffset - rng.endOffset - diff;
38862
+ if (range.endContainer === rng.endContainer) {
38863
+ range.endContainer = text;
38864
+ range.endOffset = range.endOffset - rng.endOffset - diff;
38865
+ }
38866
+ }
38867
+ else {
38868
+ break;
38869
+ }
38870
+ }
38871
+ rng.endOffset = rng.endContainer.nodeValue.length;
38872
+ }
38873
+ }
38788
38874
 
38789
38875
 
38790
38876
  /***/ }),
@@ -40233,9 +40319,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
40233
40319
  "use strict";
40234
40320
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
40235
40321
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
40236
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58671);
40237
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_2__);
40238
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
40322
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
40323
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58671);
40324
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
40239
40325
  /*!
40240
40326
  * Jodit Editor (https://xdsoft.net/jodit/)
40241
40327
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40245,9 +40331,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
40245
40331
 
40246
40332
 
40247
40333
 
40248
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
40249
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor = 'ace';
40250
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
40334
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
40335
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
40336
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
40251
40337
  /**
40252
40338
  * Show gutter
40253
40339
  */
@@ -40269,15 +40355,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
40269
40355
  */
40270
40356
  highlightActiveLine: true
40271
40357
  };
40272
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
40358
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
40273
40359
  'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
40274
40360
  ];
40275
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
40361
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
40276
40362
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
40277
40363
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
40278
40364
  ];
40279
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_2___default()));
40280
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.source = {
40365
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
40366
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
40281
40367
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
40282
40368
  exec: (editor) => {
40283
40369
  editor.toggleMode();
@@ -41087,9 +41173,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
41087
41173
 
41088
41174
  "use strict";
41089
41175
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
41090
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80709);
41091
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__);
41092
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
41176
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
41177
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80709);
41178
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
41093
41179
  /*!
41094
41180
  * Jodit Editor (https://xdsoft.net/jodit/)
41095
41181
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -41098,13 +41184,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
41098
41184
 
41099
41185
 
41100
41186
 
41101
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.spellcheck = false;
41102
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()));
41103
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.spellcheck = {
41187
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
41188
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
41189
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
41104
41190
  isActive(e) {
41105
41191
  return e.o.spellcheck;
41106
41192
  },
41107
- icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()),
41193
+ icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
41108
41194
  name: 'spellcheck',
41109
41195
  command: 'toggleSpellcheck',
41110
41196
  tooltip: 'Spellcheck'
@@ -41879,9 +41965,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
41879
41965
 
41880
41966
  "use strict";
41881
41967
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
41882
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3283);
41883
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_1__);
41884
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
41968
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
41969
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3283);
41970
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
41885
41971
  /*!
41886
41972
  * Jodit Editor (https://xdsoft.net/jodit/)
41887
41973
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -41890,8 +41976,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
41890
41976
 
41891
41977
 
41892
41978
 
41893
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
41894
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialCharacters = [
41979
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
41980
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
41895
41981
  '!',
41896
41982
  '&quot;',
41897
41983
  '#',
@@ -42103,8 +42189,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
42103
42189
  '&diams;',
42104
42190
  '&asymp;'
42105
42191
  ];
42106
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_1___default()));
42107
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.symbols = {
42192
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
42193
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
42108
42194
  hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
42109
42195
  tooltip: 'Insert Special Character',
42110
42196
  popup: (editor, current, close) => {
@@ -42986,38 +43072,10 @@ function tableKeyboardNavigation(editor) {
42986
43072
  .off('.tableKeyboardNavigation')
42987
43073
  .on('keydown.tableKeyboardNavigation', (event) => {
42988
43074
  const { key } = event;
42989
- if (!WORK_KEYS.has(key)) {
42990
- return;
42991
- }
42992
- const current = editor.s.current();
42993
- if (!current) {
42994
- return;
42995
- }
42996
- const cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isCell, editor.editor);
43075
+ const cell = findCell(editor, key);
42997
43076
  if (!cell) {
42998
43077
  return;
42999
43078
  }
43000
- const { range } = editor.s;
43001
- if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
43002
- const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
43003
- const hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.next, current, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
43004
- ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
43005
- : Boolean(elm), cell);
43006
- if ((!isNextDirection &&
43007
- (hasNext ||
43008
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
43009
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
43010
- range.startOffset !== 0))) ||
43011
- (isNextDirection &&
43012
- (hasNext ||
43013
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
43014
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
43015
- current.nodeValue &&
43016
- range.startOffset !==
43017
- current.nodeValue.length)))) {
43018
- return;
43019
- }
43020
- }
43021
43079
  const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
43022
43080
  const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
43023
43081
  let next = null;
@@ -43075,6 +43133,40 @@ function tableKeyboardNavigation(editor) {
43075
43133
  });
43076
43134
  }
43077
43135
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
43136
+ function findCell(editor, key) {
43137
+ if (!WORK_KEYS.has(key)) {
43138
+ return;
43139
+ }
43140
+ const current = editor.s.current();
43141
+ if (!current) {
43142
+ return;
43143
+ }
43144
+ const cell = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.up(current, jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isCell, editor.editor);
43145
+ if (!cell) {
43146
+ return;
43147
+ }
43148
+ const { range } = editor.s;
43149
+ if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
43150
+ const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
43151
+ const hasNext = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(!isNextDirection ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.prev : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.next, current, elm => key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
43152
+ ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
43153
+ : Boolean(elm), cell);
43154
+ if ((!isNextDirection &&
43155
+ (hasNext ||
43156
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
43157
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
43158
+ range.startOffset !== 0))) ||
43159
+ (isNextDirection &&
43160
+ (hasNext ||
43161
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
43162
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
43163
+ current.nodeValue &&
43164
+ range.startOffset !== current.nodeValue.length)))) {
43165
+ return;
43166
+ }
43167
+ }
43168
+ return cell;
43169
+ }
43078
43170
 
43079
43171
 
43080
43172
  /***/ }),
@@ -43087,9 +43179,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
43087
43179
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
43088
43180
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
43089
43181
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
43090
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35863);
43091
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_4__);
43092
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
43182
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
43183
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35863);
43184
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
43093
43185
  /*!
43094
43186
  * Jodit Editor (https://xdsoft.net/jodit/)
43095
43187
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -43101,12 +43193,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
43101
43193
 
43102
43194
 
43103
43195
 
43104
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.table = {
43196
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
43105
43197
  selectionCellStyle: 'border: 1px double #1e88e5 !important;',
43106
43198
  useExtraClassesOptions: false
43107
43199
  };
43108
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_4___default()));
43109
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.table = {
43200
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
43201
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
43110
43202
  data: {
43111
43203
  cols: 10,
43112
43204
  rows: 10,
@@ -43273,10 +43365,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
43273
43365
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64962);
43274
43366
  /* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18716);
43275
43367
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
43276
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21391);
43277
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46035);
43278
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_5__);
43279
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
43368
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
43369
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21391);
43370
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46035);
43371
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
43280
43372
  /*!
43281
43373
  * Jodit Editor (https://xdsoft.net/jodit/)
43282
43374
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -43289,8 +43381,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
43289
43381
 
43290
43382
 
43291
43383
 
43292
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_5___default()));
43293
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.video = {
43384
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
43385
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
43294
43386
  popup: (editor, current, close) => {
43295
43387
  const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
43296
43388
  new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
@@ -43337,7 +43429,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
43337
43429
  formCode.onSubmit(data => {
43338
43430
  insertCode(data.code);
43339
43431
  });
43340
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs);
43432
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
43341
43433
  },
43342
43434
  tags: ['iframe'],
43343
43435
  tooltip: 'Insert youtube/vimeo video'
@@ -43973,9 +44065,9 @@ __webpack_require__.r(__webpack_exports__);
43973
44065
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
43974
44066
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65564);
43975
44067
  /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34138);
43976
- /* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75700);
43977
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(56418);
43978
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91288);
44068
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
44069
+ /* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75700);
44070
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56418);
43979
44071
  /* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25511);
43980
44072
  /*!
43981
44073
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
@@ -43993,7 +44085,7 @@ __webpack_require__.r(__webpack_exports__);
43993
44085
 
43994
44086
 
43995
44087
 
43996
- jodit_config__WEBPACK_IMPORTED_MODULE_8__/* .Config */ .T.prototype.autocomplete = {
44088
+ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.autocomplete = {
43997
44089
  sources: [],
43998
44090
  maxItems: 50,
43999
44091
  isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
@@ -44011,7 +44103,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
44011
44103
  afterInit(jodit) {
44012
44104
  this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .z(jodit);
44013
44105
  this.popup.setMod('padding', false);
44014
- this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_6__/* .Autocomplete */ .j(jodit);
44106
+ this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .j(jodit);
44015
44107
  this.popup.setContent(this.list.container);
44016
44108
  jodit.e
44017
44109
  .on('select.autocomplete', (item) => {
@@ -44022,7 +44114,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
44022
44114
  if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isNode(insertValue)) {
44023
44115
  insertValue = jodit.createInside.fromHTML(insertValue);
44024
44116
  }
44025
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
44117
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
44026
44118
  this.j.s.setCursorAfter(insertValue);
44027
44119
  this.j.synchronizeValues();
44028
44120
  this.popup.close();
@@ -44059,7 +44151,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
44059
44151
  const range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
44060
44152
  ? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
44061
44153
  : null;
44062
- const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
44154
+ const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
44063
44155
  if (query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length) {
44064
44156
  const result = await this.onAutoComplete(query);
44065
44157
  if (result.length) {