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/es2015/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 = "es2015";
2449
2449
  const IS_ES_MODERN = true;
@@ -8007,6 +8007,8 @@ const appendScriptAsync = cacheLoaders((jodit, url) => {
8007
8007
  }
8008
8008
  const script = jodit.c.element('script', {
8009
8009
  type: 'text/javascript',
8010
+ crossorigin: 'anonymous',
8011
+ referrerpolicy: 'no-referrer',
8010
8012
  async: true,
8011
8013
  src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_1__/* .completeUrl */ .X)(url)
8012
8014
  });
@@ -8247,9 +8249,9 @@ const completeUrl = (url) => {
8247
8249
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47903);
8248
8250
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
8249
8251
  /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
8252
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91288);
8250
8253
  /* harmony import */ var _extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20368);
8251
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94183);
8252
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
8254
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94183);
8253
8255
  /*!
8254
8256
  * Jodit Editor (https://xdsoft.net/jodit/)
8255
8257
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8297,7 +8299,7 @@ function ConfigProto(options, proto, deep = 0) {
8297
8299
  if (Object.getPrototypeOf(options) !== Object.prototype) {
8298
8300
  return options;
8299
8301
  }
8300
- const def = jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.defaultOptions;
8302
+ const def = jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.defaultOptions;
8301
8303
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__/* .isString */ .K)(options.preset)) {
8302
8304
  if (def.presets[options.preset] !== undefined) {
8303
8305
  const preset = def.presets[options.preset];
@@ -8327,7 +8329,7 @@ function ConfigProto(options, proto, deep = 0) {
8327
8329
  return newOpt;
8328
8330
  }
8329
8331
  function ConfigFlatten(obj) {
8330
- return (0,_utils__WEBPACK_IMPORTED_MODULE_0__/* .keys */ .HP)(obj, false).reduce((app, key) => {
8332
+ return (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .keys */ .HP)(obj, false).reduce((app, key) => {
8331
8333
  app[key] = obj[key];
8332
8334
  return app;
8333
8335
  }, {});
@@ -10295,9 +10297,9 @@ Plugin.requires = [];
10295
10297
  /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33442);
10296
10298
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
10297
10299
  /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24839);
10298
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91596);
10300
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
10301
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91596);
10299
10302
  /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85349);
10300
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
10301
10303
  /*!
10302
10304
  * Jodit Editor (https://xdsoft.net/jodit/)
10303
10305
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10315,7 +10317,7 @@ class Ajax {
10315
10317
  className() {
10316
10318
  return 'Ajax';
10317
10319
  }
10318
- constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
10320
+ constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
10319
10321
  this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
10320
10322
  this.__isFulfilled = false;
10321
10323
  this.__activated = false;
@@ -10567,10 +10569,14 @@ class Response {
10567
10569
 
10568
10570
  "use strict";
10569
10571
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10570
- /* harmony export */ W: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__.W; }
10572
+ /* harmony export */ Qe: function() { return /* binding */ cursorInTheEdgeOfString; },
10573
+ /* harmony export */ W8: function() { return /* reexport safe */ _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__.W; },
10574
+ /* harmony export */ dY: function() { return /* binding */ findCorrectCurrentNode; }
10571
10575
  /* harmony export */ });
10572
- /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49967);
10573
- /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13088);
10576
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
10577
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
10578
+ /* harmony import */ var _move_node_inside_start__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49967);
10579
+ /* harmony import */ var _move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13088);
10574
10580
  /*!
10575
10581
  * Jodit Editor (https://xdsoft.net/jodit/)
10576
10582
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10583,6 +10589,55 @@ class Response {
10583
10589
 
10584
10590
 
10585
10591
 
10592
+ /**
10593
+ * Check if the cursor is at the edge of the string
10594
+ * @private
10595
+ */
10596
+ function cursorInTheEdgeOfString(container, offset, start, end) {
10597
+ var _a;
10598
+ const text = ((_a = container.nodeValue) === null || _a === void 0 ? void 0 : _a.length) ? container.nodeValue : '';
10599
+ if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
10600
+ return true;
10601
+ }
10602
+ const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
10603
+ return start && ((inv && inv[0].length < offset) || (!inv && offset > 0));
10604
+ }
10605
+ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild, child) {
10606
+ node = range.startContainer.childNodes[range.startOffset];
10607
+ if (!node) {
10608
+ node = range.startContainer.childNodes[range.startOffset - 1];
10609
+ rightMode = true;
10610
+ }
10611
+ if (node && isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
10612
+ // test Current method - Cursor in the left of some SPAN
10613
+ if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node.previousSibling)) {
10614
+ node = node.previousSibling;
10615
+ }
10616
+ else if (checkChild) {
10617
+ let current = child(node);
10618
+ while (current) {
10619
+ if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current)) {
10620
+ node = current;
10621
+ break;
10622
+ }
10623
+ current = child(current);
10624
+ }
10625
+ }
10626
+ }
10627
+ if (node && !isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(node)) {
10628
+ let leftChild = node, rightChild = node;
10629
+ do {
10630
+ leftChild = leftChild.firstChild;
10631
+ rightChild = rightChild.lastChild;
10632
+ } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild));
10633
+ if (leftChild === rightChild && leftChild && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(leftChild)) {
10634
+ node = leftChild;
10635
+ }
10636
+ }
10637
+ return { node, rightMode };
10638
+ }
10639
+
10640
+
10586
10641
  /***/ }),
10587
10642
 
10588
10643
  /***/ 49967:
@@ -10704,7 +10759,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
10704
10759
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10705
10760
  /* harmony export */ L: function() { return /* binding */ Selection; }
10706
10761
  /* harmony export */ });
10707
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
10762
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
10708
10763
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
10709
10764
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53557);
10710
10765
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
@@ -10714,6 +10769,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
10714
10769
  /* 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__);
10715
10770
  /* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13088);
10716
10771
  /* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(11232);
10772
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(92185);
10717
10773
  /*!
10718
10774
  * Jodit Editor (https://xdsoft.net/jodit/)
10719
10775
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10730,6 +10786,7 @@ function moveTheNodeAlongTheEdgeOutward(node, start, root) {
10730
10786
 
10731
10787
 
10732
10788
 
10789
+
10733
10790
  class Selection {
10734
10791
  constructor(jodit) {
10735
10792
  this.jodit = jodit;
@@ -11115,63 +11172,35 @@ class Selection {
11115
11172
  * Returns the current element under the cursor inside editor
11116
11173
  */
11117
11174
  current(checkChild = true) {
11118
- if (this.j.getRealMode() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
11119
- const sel = this.sel;
11120
- if (!sel || sel.rangeCount === 0) {
11121
- return null;
11122
- }
11123
- const range = sel.getRangeAt(0);
11124
- let node = range.startContainer, rightMode = false;
11125
- const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
11126
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
11127
- return node;
11128
- }
11129
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
11130
- node = range.startContainer.childNodes[range.startOffset];
11131
- if (!node) {
11132
- node =
11133
- range.startContainer.childNodes[range.startOffset - 1];
11134
- rightMode = true;
11135
- }
11136
- if (node && sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
11137
- // test Current method - Cursor in the left of some SPAN
11138
- if (!rightMode && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node.previousSibling)) {
11139
- node = node.previousSibling;
11140
- }
11141
- else if (checkChild) {
11142
- let current = child(node);
11143
- while (current) {
11144
- if (current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(current)) {
11145
- node = current;
11146
- break;
11147
- }
11148
- current = child(current);
11149
- }
11150
- }
11151
- }
11152
- if (node && !sel.isCollapsed && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
11153
- let leftChild = node, rightChild = node;
11154
- do {
11155
- leftChild = leftChild.firstChild;
11156
- rightChild = rightChild.lastChild;
11157
- } while (leftChild && rightChild && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild));
11158
- if (leftChild === rightChild &&
11159
- leftChild &&
11160
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(leftChild)) {
11161
- node = leftChild;
11162
- }
11163
- }
11164
- }
11165
- // check - cursor inside editor
11166
- if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
11167
- return node;
11168
- }
11175
+ if (this.j.getRealMode() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG) {
11176
+ return null;
11177
+ }
11178
+ const sel = this.sel;
11179
+ if (!sel || sel.rangeCount === 0) {
11180
+ return null;
11181
+ }
11182
+ const range = sel.getRangeAt(0);
11183
+ let node = range.startContainer;
11184
+ let rightMode = false;
11185
+ const child = (nd) => rightMode ? nd.lastChild : nd.firstChild;
11186
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(node, 'br') && sel.isCollapsed) {
11187
+ return node;
11188
+ }
11189
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(node)) {
11190
+ const ret = (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .findCorrectCurrentNode */ .dY)(node, range, rightMode, sel.isCollapsed, checkChild, child);
11191
+ node = ret.node;
11192
+ rightMode = ret.rightMode;
11193
+ }
11194
+ // check - cursor inside editor
11195
+ if (node && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.area, node)) {
11196
+ return node;
11169
11197
  }
11170
11198
  return null;
11171
11199
  }
11172
11200
  /**
11173
11201
  * Insert element in editor
11174
11202
  *
11203
+ * @param node - Node for insert
11175
11204
  * @param insertCursorAfter - After insert, cursor will move after element
11176
11205
  * @param fireChange - After insert, editor fire change event. You can prevent this behavior
11177
11206
  */
@@ -11233,6 +11262,7 @@ class Selection {
11233
11262
  * Inserts in the current cursor position some HTML snippet
11234
11263
  *
11235
11264
  * @param html - HTML The text to be inserted into the document
11265
+ * @param insertCursorAfter - After insert, cursor will move after element
11236
11266
  * @example
11237
11267
  * ```javascript
11238
11268
  * parent.s.insertHTML('<img src="image.png"/>');
@@ -11276,6 +11306,7 @@ class Selection {
11276
11306
  *
11277
11307
  * @param url - URL for image, or HTMLImageElement
11278
11308
  * @param styles - If specified, it will be applied <code>$(image).css(styles)</code>
11309
+ * @param defaultWidth - If specified, it will be applied <code>css('width', defaultWidth)</code>
11279
11310
  */
11280
11311
  insertImage(url, styles = null, defaultWidth = null) {
11281
11312
  const image = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isString */ .Kg)(url) ? this.j.createInside.element('img') : url;
@@ -11331,74 +11362,81 @@ class Selection {
11331
11362
  eachSelection(callback) {
11332
11363
  var _a;
11333
11364
  const sel = this.sel;
11334
- if (sel && sel.rangeCount) {
11335
- const range = sel.getRangeAt(0);
11336
- let root = range.commonAncestorContainer;
11337
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
11338
- root = root.parentElement;
11339
- }
11340
- const nodes = [], startOffset = range.startOffset, length = root.childNodes.length, elementOffset = startOffset < length ? startOffset : length - 1;
11341
- let start = range.startContainer === this.area
11342
- ? root.childNodes[elementOffset]
11343
- : range.startContainer, end = range.endContainer === this.area
11344
- ? root.childNodes[range.endOffset - 1]
11345
- : range.endContainer;
11346
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
11347
- start === range.startContainer &&
11348
- range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
11349
- start.nextSibling) {
11350
- start = start.nextSibling;
11351
- }
11352
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
11353
- end === range.endContainer &&
11354
- range.endOffset === 0 &&
11355
- end.previousSibling) {
11356
- end = end.previousSibling;
11357
- }
11358
- const checkElm = (node) => {
11359
- if (node &&
11360
- node !== root &&
11361
- !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
11362
- !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
11363
- nodes.push(node);
11364
- }
11365
- };
11366
- checkElm(start);
11367
- if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
11368
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
11369
- checkElm(node);
11370
- // checks parentElement as well because partial selections are not equal to entire element
11371
- return (node === end ||
11372
- (node && node.contains && node.contains(end)));
11373
- }, root, true, false);
11374
- }
11375
- const forEvery = (current) => {
11376
- if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
11377
- return;
11378
- }
11379
- if (current.nodeName.match(/^(UL|OL)$/)) {
11380
- return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
11365
+ if (!sel || !sel.rangeCount) {
11366
+ return;
11367
+ }
11368
+ const range = sel.getRangeAt(0);
11369
+ let root = range.commonAncestorContainer;
11370
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(root)) {
11371
+ root = root.parentElement;
11372
+ }
11373
+ const nodes = [];
11374
+ const startOffset = range.startOffset;
11375
+ const length = root.childNodes.length;
11376
+ const elementOffset = startOffset < length ? startOffset : length - 1;
11377
+ let start = range.startContainer === this.area
11378
+ ? root.childNodes[elementOffset]
11379
+ : range.startContainer;
11380
+ let end = range.endContainer === this.area
11381
+ ? root.childNodes[range.endOffset - 1]
11382
+ : range.endContainer;
11383
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(start) &&
11384
+ start === range.startContainer &&
11385
+ range.startOffset === ((_a = start.nodeValue) === null || _a === void 0 ? void 0 : _a.length) &&
11386
+ start.nextSibling) {
11387
+ start = start.nextSibling;
11388
+ }
11389
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(end) &&
11390
+ end === range.endContainer &&
11391
+ range.endOffset === 0 &&
11392
+ end.previousSibling) {
11393
+ end = end.previousSibling;
11394
+ }
11395
+ const checkElm = (node) => {
11396
+ if (node &&
11397
+ node !== root &&
11398
+ !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(node) &&
11399
+ !(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__/* .isMarker */ .rg)(node)) {
11400
+ nodes.push(node);
11401
+ }
11402
+ };
11403
+ checkElm(start);
11404
+ if (start !== end && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(root, start, true)) {
11405
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.find(start, node => {
11406
+ checkElm(node);
11407
+ // checks parentElement as well because partial selections are not equal to entire element
11408
+ return (node === end ||
11409
+ (node && node.contains && node.contains(end)));
11410
+ }, root, true, false);
11411
+ }
11412
+ const forEvery = (current) => {
11413
+ if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(this.j.editor, current, true)) {
11414
+ return;
11415
+ }
11416
+ if (current.nodeName.match(/^(UL|OL)$/)) {
11417
+ return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(current.childNodes).forEach(forEvery);
11418
+ }
11419
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
11420
+ if (current.firstChild) {
11421
+ current = current.firstChild;
11381
11422
  }
11382
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(current, 'li')) {
11383
- if (current.firstChild) {
11384
- current = current.firstChild;
11385
- }
11386
- else {
11387
- const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
11388
- current.appendChild(currentB);
11389
- current = currentB;
11390
- }
11423
+ else {
11424
+ const currentB = this.j.createInside.text(jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
11425
+ current.appendChild(currentB);
11426
+ current = currentB;
11391
11427
  }
11392
- callback(current);
11393
- };
11394
- if (nodes.length === 0 && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
11428
+ }
11429
+ callback(current);
11430
+ };
11431
+ if (nodes.length === 0) {
11432
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isEmptyTextNode(start)) {
11395
11433
  nodes.push(start);
11396
11434
  }
11397
- if (nodes.length === 0 && start.firstChild) {
11435
+ if (start.firstChild) {
11398
11436
  nodes.push(start.firstChild);
11399
11437
  }
11400
- nodes.forEach(forEvery);
11401
11438
  }
11439
+ nodes.forEach(forEvery);
11402
11440
  }
11403
11441
  /**
11404
11442
  * Checks if the cursor is at the end(start) block
@@ -11410,7 +11448,7 @@ class Selection {
11410
11448
  * @returns true - the cursor is at the end(start) block, null - cursor somewhere outside
11411
11449
  */
11412
11450
  cursorInTheEdge(start, parentBlock, fake = null) {
11413
- var _a, _b;
11451
+ var _a;
11414
11452
  const end = !start, range = (_a = this.sel) === null || _a === void 0 ? void 0 : _a.getRangeAt(0);
11415
11453
  fake !== null && fake !== void 0 ? fake : (fake = this.current(false));
11416
11454
  if (!range || !fake || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isOrContains(parentBlock, fake, true)) {
@@ -11426,13 +11464,7 @@ class Selection {
11426
11464
  this.j.e.fire('isInvisibleForCursor', elm) === true));
11427
11465
  // check right offset
11428
11466
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isText(container)) {
11429
- const text = ((_b = container.nodeValue) === null || _b === void 0 ? void 0 : _b.length) ? container.nodeValue : '';
11430
- if (end && text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_END)(), '').length > offset) {
11431
- return false;
11432
- }
11433
- const inv = (0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP_START)().exec(text);
11434
- if (start &&
11435
- ((inv && inv[0].length < offset) || (!inv && offset > 0))) {
11467
+ if ((0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .cursorInTheEdgeOfString */ .Qe)(container, offset, start, end)) {
11436
11468
  return false;
11437
11469
  }
11438
11470
  }
@@ -11521,6 +11553,7 @@ class Selection {
11521
11553
  }
11522
11554
  /**
11523
11555
  * Set cursor in the node
11556
+ * @param node - Node element
11524
11557
  * @param inStart - set cursor in start of element
11525
11558
  */
11526
11559
  setCursorIn(node, inStart = false) {
@@ -11581,6 +11614,7 @@ class Selection {
11581
11614
  }
11582
11615
  /**
11583
11616
  * Select node
11617
+ * @param node - Node element
11584
11618
  * @param inward - select all inside
11585
11619
  */
11586
11620
  select(node, inward = false) {
@@ -11855,19 +11889,19 @@ class Selection {
11855
11889
  return this;
11856
11890
  }
11857
11891
  }
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, "createRange", null);
11861
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11895
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11862
11896
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11863
11897
  ], Selection.prototype, "focus", null);
11864
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11898
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11865
11899
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11866
11900
  ], Selection.prototype, "setCursorAfter", null);
11867
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11901
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11868
11902
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11869
11903
  ], Selection.prototype, "setCursorBefore", null);
11870
- (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
11904
+ (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
11871
11905
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
11872
11906
  ], Selection.prototype, "setCursorIn", null);
11873
11907
 
@@ -15695,7 +15729,6 @@ function getControlType(button, controls) {
15695
15729
  * @private
15696
15730
  */
15697
15731
  function findControlType(path, controls) {
15698
- var _a;
15699
15732
  // eslint-disable-next-line prefer-const
15700
15733
  let [namespaceOrKey, key] = path.split(/\./);
15701
15734
  let store = controls;
@@ -15707,14 +15740,22 @@ function findControlType(path, controls) {
15707
15740
  else {
15708
15741
  key = namespaceOrKey;
15709
15742
  }
15710
- const list = (_a = store[key]) === null || _a === void 0 ? void 0 : _a.list;
15743
+ // const list = store[key]?.list;
15711
15744
  return store[key]
15712
- ? Object.assign(Object.assign({ name: key }, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])), { list: (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isArray)(list)
15713
- ? list.reduce((acc, k) => {
15714
- acc[k] = k;
15715
- return acc;
15716
- }, {})
15717
- : list }) : undefined;
15745
+ ? Object.assign({ name: key }, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.ConfigFlatten)(store[key])
15746
+ // list: isArray(list)
15747
+ // ? (<Array<string>>list).reduce(
15748
+ // (
15749
+ // acc: IDictionary<string | number>,
15750
+ // k: string | number
15751
+ // ) => {
15752
+ // acc[String(k)] = k;
15753
+ // return acc;
15754
+ // },
15755
+ // {}
15756
+ // )
15757
+ // : list
15758
+ ) : undefined;
15718
15759
  }
15719
15760
 
15720
15761
 
@@ -15729,8 +15770,8 @@ function findControlType(path, controls) {
15729
15770
  /* harmony export */ });
15730
15771
  /* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55010);
15731
15772
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71122);
15732
- /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68600);
15733
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
15773
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
15774
+ /* harmony import */ var _get_control_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68600);
15734
15775
  /*!
15735
15776
  * Jodit Editor (https://xdsoft.net/jodit/)
15736
15777
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -15750,7 +15791,7 @@ function getStrongControlTypes(items, controls) {
15750
15791
  const value = items[key] || {};
15751
15792
  return (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_0__.ConfigProto)({ name: key }, value);
15752
15793
  });
15753
- 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));
15794
+ 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));
15754
15795
  }
15755
15796
 
15756
15797
 
@@ -16837,17 +16878,17 @@ View.defaultOptions = {
16837
16878
 
16838
16879
  "use strict";
16839
16880
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16840
- /* harmony export */ x: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_6__.x; }
16881
+ /* harmony export */ x: function() { return /* reexport safe */ _jodit__WEBPACK_IMPORTED_MODULE_0__.x; }
16841
16882
  /* harmony export */ });
16842
16883
  /* unused harmony export CommitMode */
16843
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58588);
16844
- /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22743);
16884
+ /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90268);
16885
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58588);
16845
16886
  /* harmony import */ var _core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67259);
16846
16887
  /* harmony import */ var _core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53557);
16847
16888
  /* harmony import */ var _modules___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35102);
16848
16889
  /* harmony import */ var _styles_icons___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97186);
16849
- /* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(90268);
16850
- /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(459);
16890
+ /* harmony import */ var _languages__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(459);
16891
+ /* harmony import */ var jodit_plugins_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(22743);
16851
16892
  /*!
16852
16893
  * Jodit Editor (https://xdsoft.net/jodit/)
16853
16894
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -16858,6 +16899,7 @@ View.defaultOptions = {
16858
16899
  * @packageDocumentation
16859
16900
  * @module jodit
16860
16901
  */
16902
+ // eslint-disable-next-line simple-import-sort/imports
16861
16903
 
16862
16904
 
16863
16905
 
@@ -16870,7 +16912,7 @@ View.defaultOptions = {
16870
16912
 
16871
16913
  // copy constants in Jodit
16872
16914
  Object.keys(_core_constants__WEBPACK_IMPORTED_MODULE_2__).forEach((key) => {
16873
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
16915
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _core_constants__WEBPACK_IMPORTED_MODULE_2__[key];
16874
16916
  });
16875
16917
  const esFilter = (key) => key !== '__esModule';
16876
16918
  // Icons
@@ -16886,32 +16928,32 @@ Object.keys(_modules___WEBPACK_IMPORTED_MODULE_4__)
16886
16928
  var _a;
16887
16929
  // @ts-ignore
16888
16930
  const module = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
16889
- const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
16931
+ const name = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isFunction */ .Tn)((_a = module.prototype) === null || _a === void 0 ? void 0 : _a.className)
16890
16932
  ? module.prototype.className()
16891
16933
  : key;
16892
- if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .Kg)(name)) {
16934
+ if (!(0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .Kg)(name)) {
16893
16935
  console.warn('Module name must be a string', key);
16894
16936
  return;
16895
16937
  }
16896
16938
  // @ts-ignore
16897
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.modules[name] = module;
16939
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.modules[name] = module;
16898
16940
  });
16899
16941
  // Decorators
16900
16942
  Object.keys(_core_decorators__WEBPACK_IMPORTED_MODULE_3__)
16901
16943
  .filter(esFilter)
16902
16944
  .forEach((key) => {
16903
16945
  // @ts-ignore
16904
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
16946
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.decorators[key] = _core_decorators__WEBPACK_IMPORTED_MODULE_3__[key];
16905
16947
  });
16906
16948
  ['Confirm', 'Alert', 'Prompt'].forEach((key) => {
16907
16949
  // @ts-ignore
16908
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
16950
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x[key] = _modules___WEBPACK_IMPORTED_MODULE_4__[key];
16909
16951
  });
16910
16952
  // Languages
16911
- Object.keys(_languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)
16953
+ Object.keys(_languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)
16912
16954
  .filter(esFilter)
16913
16955
  .forEach((key) => {
16914
- _jodit__WEBPACK_IMPORTED_MODULE_6__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A[key];
16956
+ _jodit__WEBPACK_IMPORTED_MODULE_0__/* .Jodit */ .x.lang[key] = _languages__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A[key];
16915
16957
  });
16916
16958
 
16917
16959
  class CommitMode {
@@ -16934,8 +16976,8 @@ class CommitMode {
16934
16976
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
16935
16977
  /* harmony import */ var jodit_core_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49604);
16936
16978
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28190);
16937
- /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35102);
16938
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91288);
16979
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
16980
+ /* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35102);
16939
16981
  /*!
16940
16982
  * Jodit Editor (https://xdsoft.net/jodit/)
16941
16983
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -16954,7 +16996,7 @@ var Jodit_1;
16954
16996
 
16955
16997
  const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
16956
16998
  const __defaultClassesKey = 'data-jodit-default-classes';
16957
- let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_6__.ViewWithToolbar {
16999
+ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE_7__.ViewWithToolbar {
16958
17000
  /** @override */
16959
17001
  className() {
16960
17002
  return 'Jodit';
@@ -17001,7 +17043,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17001
17043
  get defaultTimeout() {
17002
17044
  return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isNumber)(this.o.defaultTimeout)
17003
17045
  ? this.o.defaultTimeout
17004
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.defaultTimeout;
17046
+ : jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
17005
17047
  }
17006
17048
  /**
17007
17049
  * Method wrap usual Has Object in Object helper for prevent deep object merging in options*
@@ -17027,10 +17069,10 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17027
17069
  * Default settings
17028
17070
  */
17029
17071
  static get defaultOptions() {
17030
- return jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions;
17072
+ return jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions;
17031
17073
  }
17032
17074
  get createInside() {
17033
- return new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Create(() => this.ed, this.o.createAttributes);
17075
+ return new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Create(() => this.ed, this.o.createAttributes);
17034
17076
  }
17035
17077
  __setPlaceField(field, value) {
17036
17078
  if (!this.currentPlace) {
@@ -17578,8 +17620,8 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17578
17620
  const active = this.od.activeElement;
17579
17621
  if (active &&
17580
17622
  (active === this.iframe ||
17581
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.editor, active) ||
17582
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.toolbar.container, active))) {
17623
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.editor, active) ||
17624
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.isOrContains(this.toolbar.container, active))) {
17583
17625
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG;
17584
17626
  }
17585
17627
  return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE;
@@ -17731,7 +17773,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17731
17773
  }
17732
17774
  /** @override **/
17733
17775
  initOptions(options) {
17734
- this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions));
17776
+ this.options = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions));
17735
17777
  }
17736
17778
  /** @override **/
17737
17779
  initOwners() {
@@ -17776,7 +17818,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17776
17818
  this.destruct();
17777
17819
  throw e;
17778
17820
  }
17779
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeInit);
17821
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeInit);
17780
17822
  this.id =
17781
17823
  (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') ||
17782
17824
  new Date().getTime().toString();
@@ -17788,7 +17830,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17788
17830
  }
17789
17831
  });
17790
17832
  this.e.on('prepareWYSIWYGEditor', this.__prepareWYSIWYGEditor);
17791
- this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Selection(this);
17833
+ this.selection = new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Selection(this);
17792
17834
  const beforeInitHookResult = this.beforeInitHook();
17793
17835
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(beforeInitHookResult, () => {
17794
17836
  if (this.isInDestruct) {
@@ -17812,7 +17854,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17812
17854
  this.e.fire('afterInit', this);
17813
17855
  }
17814
17856
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(this.afterInitHook());
17815
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.ready);
17857
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.ready);
17816
17858
  this.e.fire('afterConstructor', this);
17817
17859
  };
17818
17860
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.callPromise)(addPlaceResult, init);
@@ -17828,7 +17870,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17828
17870
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(element.attributes).forEach((attr) => {
17829
17871
  const name = attr.name;
17830
17872
  let value = attr.value;
17831
- if (jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions[name] !== undefined &&
17873
+ if (jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions[name] !== undefined &&
17832
17874
  (!options || options[name] === undefined)) {
17833
17875
  if (['readonly', 'disabled'].indexOf(name) !== -1) {
17834
17876
  value = value === '' || value === 'true';
@@ -17896,11 +17938,11 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17896
17938
  element,
17897
17939
  container,
17898
17940
  workplace,
17899
- statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.StatusBar(this, container),
17941
+ statusbar: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.StatusBar(this, container),
17900
17942
  options: this.isReady
17901
- ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions)
17943
+ ? (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions)
17902
17944
  : this.options,
17903
- history: new jodit_modules__WEBPACK_IMPORTED_MODULE_6__.History(this),
17945
+ history: new jodit_modules__WEBPACK_IMPORTED_MODULE_7__.History(this),
17904
17946
  editorWindow: this.ow
17905
17947
  };
17906
17948
  this.__elementToPlace.set(editor, currentPlace);
@@ -17991,7 +18033,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17991
18033
  return;
17992
18034
  }
17993
18035
  if (stayDefault === false || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isPromise)(stayDefault)) {
17994
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(defaultEditorArea);
18036
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(defaultEditorArea);
17995
18037
  }
17996
18038
  addClassNames(this.o.editorClassName, this.editor);
17997
18039
  if (this.o.style) {
@@ -18078,7 +18120,7 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
18078
18120
  if (this.isInDestruct) {
18079
18121
  return;
18080
18122
  }
18081
- this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_6__.STATUSES.beforeDestruct);
18123
+ this.setStatus(jodit_modules__WEBPACK_IMPORTED_MODULE_7__.STATUSES.beforeDestruct);
18082
18124
  this.__elementToPlace.clear();
18083
18125
  this.storage.clear();
18084
18126
  this.buffer.clear();
@@ -18119,17 +18161,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
18119
18161
  this.e.off(container);
18120
18162
  this.e.off(element);
18121
18163
  this.e.off(editor);
18122
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(workplace);
18123
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(editor);
18164
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(workplace);
18165
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(editor);
18124
18166
  if (container !== element) {
18125
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(container);
18167
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(container);
18126
18168
  }
18127
18169
  Object.defineProperty(element, 'component', {
18128
18170
  enumerable: false,
18129
18171
  configurable: true,
18130
18172
  value: null
18131
18173
  });
18132
- jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Dom.safeRemove(iframe);
18174
+ jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Dom.safeRemove(iframe);
18133
18175
  // inline mode
18134
18176
  if (container === element) {
18135
18177
  element.innerHTML = buffer;
@@ -18151,7 +18193,7 @@ Jodit.constants = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__;
18151
18193
  Jodit.instances = jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .instances */ .VF;
18152
18194
  Jodit.lang = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.lang;
18153
18195
  Jodit.core = {
18154
- Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_6__.Plugin
18196
+ Plugin: jodit_modules__WEBPACK_IMPORTED_MODULE_7__.Plugin
18155
18197
  };
18156
18198
  (0,tslib__WEBPACK_IMPORTED_MODULE_8__/* .__decorate */ .Cg)([
18157
18199
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.cache
@@ -20422,16 +20464,16 @@ function loadTree(fb) {
20422
20464
  /* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47672);
20423
20465
  /* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28190);
20424
20466
  /* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12148);
20425
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(83148);
20467
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(91288);
20468
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83148);
20426
20469
  /* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(21310);
20427
- /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64164);
20428
- /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(50067);
20429
- /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(25430);
20430
- /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(34255);
20431
- /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(18714);
20432
- /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(24538);
20433
- /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96243);
20434
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(91288);
20470
+ /* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(64164);
20471
+ /* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50067);
20472
+ /* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(25430);
20473
+ /* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(34255);
20474
+ /* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(18714);
20475
+ /* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(24538);
20476
+ /* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(96243);
20435
20477
  /*!
20436
20478
  * Jodit Editor (https://xdsoft.net/jodit/)
20437
20479
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -20465,7 +20507,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20465
20507
  return 'FileBrowser';
20466
20508
  }
20467
20509
  get dataProvider() {
20468
- return (0,_factories__WEBPACK_IMPORTED_MODULE_15__/* .makeDataProvider */ .S)(this, this.options);
20510
+ return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
20469
20511
  }
20470
20512
  // eslint-disable-next-line no-unused-vars
20471
20513
  onSelect(callback) {
@@ -20581,7 +20623,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20581
20623
  this.__updateToolbarButtons();
20582
20624
  this._dialog.open(this.browser, header);
20583
20625
  this.e.fire('sort.filebrowser', this.state.sortBy);
20584
- (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__/* .loadTree */ .r)(this)
20626
+ (0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_11__/* .loadTree */ .r)(this)
20585
20627
  .then(resolve, reject)
20586
20628
  .finally(() => {
20587
20629
  var _a;
@@ -20618,7 +20660,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20618
20660
  }
20619
20661
  initUploader(editor) {
20620
20662
  var _a;
20621
- 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);
20663
+ 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);
20622
20664
  const uploadHandler = () => (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_18__/* .loadItems */ .f)(this);
20623
20665
  self.uploader = self.getInstance('Uploader', uploaderOptions);
20624
20666
  self.uploader
@@ -20638,11 +20680,11 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20638
20680
  super(options);
20639
20681
  this.browser = this.c.div(this.componentName);
20640
20682
  this.status_line = this.c.div(this.getFullElName('status'));
20641
- this.tree = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserTree */ .V(this);
20642
- this.files = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserFiles */ .Q(this);
20683
+ this.tree = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserTree */ .V(this);
20684
+ this.files = new _ui__WEBPACK_IMPORTED_MODULE_17__/* .FileBrowserFiles */ .Q(this);
20643
20685
  this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
20644
20686
  currentPath: '',
20645
- currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_14__/* .DEFAULT_SOURCE_NAME */ .o,
20687
+ currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_15__/* .DEFAULT_SOURCE_NAME */ .o,
20646
20688
  currentBaseUrl: '',
20647
20689
  activeElements: [],
20648
20690
  elements: [],
@@ -20672,7 +20714,7 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20672
20714
  this.__prevButtons = [];
20673
20715
  this.attachEvents(options);
20674
20716
  const self = this;
20675
- self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.filebrowser);
20717
+ self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_9__/* .Config */ .T.defaultOptions.filebrowser);
20676
20718
  self.browser.component = this;
20677
20719
  self.container = self.browser;
20678
20720
  if (self.o.showFoldersPanel) {
@@ -20680,9 +20722,9 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20680
20722
  }
20681
20723
  self.browser.appendChild(self.files.container);
20682
20724
  self.browser.appendChild(self.status_line);
20683
- _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__/* .selfListeners */ .c.call(self);
20684
- _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__/* .nativeListeners */ .nW.call(self);
20685
- _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__/* .stateListeners */ .r.call(self);
20725
+ _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_13__/* .selfListeners */ .c.call(self);
20726
+ _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_12__/* .nativeListeners */ .nW.call(self);
20727
+ _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_14__/* .stateListeners */ .r.call(self);
20686
20728
  const keys = [
20687
20729
  'getLocalFileByUrl',
20688
20730
  'crop',
@@ -21354,10 +21396,10 @@ class Command {
21354
21396
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
21355
21397
  /* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
21356
21398
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53557);
21399
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
21357
21400
  /* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(22180);
21358
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(801);
21401
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(801);
21359
21402
  /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98189);
21360
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
21361
21403
  /*!
21362
21404
  * Jodit Editor (https://xdsoft.net/jodit/)
21363
21405
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21370,7 +21412,7 @@ class Command {
21370
21412
 
21371
21413
 
21372
21414
 
21373
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.history = {
21415
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.history = {
21374
21416
  enable: true,
21375
21417
  maxHistoryLength: Infinity,
21376
21418
  timeout: 1000
@@ -21421,7 +21463,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
21421
21463
  set startValue(value) {
21422
21464
  this.__startValue = value;
21423
21465
  }
21424
- 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)) {
21466
+ 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)) {
21425
21467
  super(editor);
21426
21468
  this.updateTick = 0;
21427
21469
  this.__stack = stack;
@@ -21484,7 +21526,7 @@ class History extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewC
21484
21526
  */
21485
21527
  updateStack(replace = false) {
21486
21528
  const newValue = this.snapshot.make();
21487
- if (!_snapshot__WEBPACK_IMPORTED_MODULE_2__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
21529
+ if (!_snapshot__WEBPACK_IMPORTED_MODULE_3__/* .Snapshot */ .F.equal(newValue, this.startValue)) {
21488
21530
  const newCommand = new _command__WEBPACK_IMPORTED_MODULE_5__/* .Command */ .u(this.startValue, newValue, this, this.updateTick);
21489
21531
  if (replace) {
21490
21532
  const command = this.__stack.current();
@@ -21818,11 +21860,11 @@ class Stack {
21818
21860
 
21819
21861
  "use strict";
21820
21862
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
21821
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83904);
21822
- /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_1__);
21823
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15582);
21824
- /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_2__);
21825
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
21863
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
21864
+ /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83904);
21865
+ /* harmony import */ var _icons_crop_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_crop_svg__WEBPACK_IMPORTED_MODULE_2__);
21866
+ /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15582);
21867
+ /* harmony import */ var _icons_resize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_resize_svg__WEBPACK_IMPORTED_MODULE_3__);
21826
21868
  /*!
21827
21869
  * Jodit Editor (https://xdsoft.net/jodit/)
21828
21870
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -21832,7 +21874,7 @@ class Stack {
21832
21874
 
21833
21875
 
21834
21876
 
21835
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor = {
21877
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.imageeditor = {
21836
21878
  min_width: 20,
21837
21879
  min_height: 20,
21838
21880
  closeAfterSave: false,
@@ -21847,7 +21889,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.imageeditor
21847
21889
  cropDefaultWidth: '70%',
21848
21890
  cropDefaultHeight: '70%'
21849
21891
  };
21850
- 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()));
21892
+ 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()));
21851
21893
 
21852
21894
 
21853
21895
  /***/ }),
@@ -21866,9 +21908,9 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('crop', (_icon
21866
21908
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33465);
21867
21909
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
21868
21910
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(64962);
21869
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15546);
21870
- /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(73898);
21871
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91288);
21911
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
21912
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15546);
21913
+ /* harmony import */ var _templates_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(73898);
21872
21914
  /*!
21873
21915
  * Jodit Editor (https://xdsoft.net/jodit/)
21874
21916
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -22328,7 +22370,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
22328
22370
  this.options =
22329
22371
  editor && editor.o && editor.o.imageeditor
22330
22372
  ? editor.o.imageeditor
22331
- : jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.defaultOptions.imageeditor;
22373
+ : jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.defaultOptions.imageeditor;
22332
22374
  const o = this.options;
22333
22375
  this.resizeUseRatio = o.resizeUseRatio;
22334
22376
  this.cropUseRatio = o.cropUseRatio;
@@ -22338,7 +22380,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends jodit_core_component
22338
22380
  saveas: (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_4__/* .Button */ .$n)(this.j, 'save', 'Save as ...')
22339
22381
  };
22340
22382
  this.activeTab = o.resize ? TABS.resize : TABS.crop;
22341
- this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_6__/* .form */ .Z)(this.j, this.options);
22383
+ this.editor = (0,_templates_form__WEBPACK_IMPORTED_MODULE_7__/* .form */ .Z)(this.j, this.options);
22342
22384
  const { resizeBox, cropBox } = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.refs)(this.editor);
22343
22385
  this.resize_box = resizeBox;
22344
22386
  this.crop_box = cropBox;
@@ -23090,6 +23132,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23090
23132
  }
23091
23133
  /**
23092
23134
  * Generate formal table martix columns*rows
23135
+ * @param table - Working table
23093
23136
  * @param callback - if return false cycle break
23094
23137
  */
23095
23138
  formalMatrix(table, callback) {
@@ -23159,7 +23202,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23159
23202
  * @param line - Insert a new line after/before this
23160
23203
  * line contains the selected cell
23161
23204
  * @param after - Insert a new line after line contains the selected cell
23162
- * @param create - Instance of Create class
23163
23205
  */
23164
23206
  appendRow(table, line, after) {
23165
23207
  return Table.__appendRow(table, line, after, this.j.createInside);
@@ -23328,13 +23370,36 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23328
23370
  return Table.__getSelectedBound(table, selectedCells);
23329
23371
  }
23330
23372
  static __normalizeTable(table) {
23331
- let i, j, min, not;
23332
23373
  const __marked = [], box = Table.__formalMatrix(table);
23333
- // remove extra colspans
23334
- for (j = 0; j < box[0].length; j += 1) {
23335
- min = 1000000;
23336
- not = false;
23337
- for (i = 0; i < box.length; i += 1) {
23374
+ Table.__removeExtraColspans(box, __marked);
23375
+ Table.__removeExtraRowspans(box, __marked);
23376
+ // remove rowspans and colspans equal 1 and empty class
23377
+ for (let i = 0; i < box.length; i += 1) {
23378
+ for (let j = 0; j < box[i].length; j += 1) {
23379
+ if (box[i][j] === undefined) {
23380
+ continue; // broken table
23381
+ }
23382
+ if (box[i][j].hasAttribute('rowspan') &&
23383
+ box[i][j].rowSpan === 1) {
23384
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
23385
+ }
23386
+ if (box[i][j].hasAttribute('colspan') &&
23387
+ box[i][j].colSpan === 1) {
23388
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
23389
+ }
23390
+ if (box[i][j].hasAttribute('class') &&
23391
+ !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
23392
+ (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
23393
+ }
23394
+ }
23395
+ }
23396
+ Table.__unmark(__marked);
23397
+ }
23398
+ static __removeExtraColspans(box, __marked) {
23399
+ for (let j = 0; j < box[0].length; j += 1) {
23400
+ let min = 1000000;
23401
+ let not = false;
23402
+ for (let i = 0; i < box.length; i += 1) {
23338
23403
  if (box[i][j] === undefined) {
23339
23404
  continue; // broken table
23340
23405
  }
@@ -23345,7 +23410,7 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23345
23410
  min = Math.min(min, box[i][j].colSpan);
23346
23411
  }
23347
23412
  if (!not) {
23348
- for (i = 0; i < box.length; i += 1) {
23413
+ for (let i = 0; i < box.length; i += 1) {
23349
23414
  if (box[i][j] === undefined) {
23350
23415
  continue; // broken table
23351
23416
  }
@@ -23353,10 +23418,13 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23353
23418
  }
23354
23419
  }
23355
23420
  }
23356
- // remove extra rowspans
23421
+ }
23422
+ static __removeExtraRowspans(box, marked) {
23423
+ let i = 0;
23424
+ let j = 0;
23357
23425
  for (i = 0; i < box.length; i += 1) {
23358
- min = 1000000;
23359
- not = false;
23426
+ let min = 1000000;
23427
+ let not = false;
23360
23428
  for (j = 0; j < box[i].length; j += 1) {
23361
23429
  if (box[i][j] === undefined) {
23362
23430
  continue; // broken table
@@ -23372,31 +23440,10 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23372
23440
  if (box[i][j] === undefined) {
23373
23441
  continue; // broken table
23374
23442
  }
23375
- Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, __marked);
23443
+ Table.__mark(box[i][j], 'rowspan', box[i][j].rowSpan - min + 1, marked);
23376
23444
  }
23377
23445
  }
23378
23446
  }
23379
- // remove rowspans and colspans equal 1 and empty class
23380
- for (i = 0; i < box.length; i += 1) {
23381
- for (j = 0; j < box[i].length; j += 1) {
23382
- if (box[i][j] === undefined) {
23383
- continue; // broken table
23384
- }
23385
- if (box[i][j].hasAttribute('rowspan') &&
23386
- box[i][j].rowSpan === 1) {
23387
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'rowspan', null);
23388
- }
23389
- if (box[i][j].hasAttribute('colspan') &&
23390
- box[i][j].colSpan === 1) {
23391
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'colspan', null);
23392
- }
23393
- if (box[i][j].hasAttribute('class') &&
23394
- !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class')) {
23395
- (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.attr)(box[i][j], 'class', null);
23396
- }
23397
- }
23398
- }
23399
- Table.__unmark(__marked);
23400
23447
  }
23401
23448
  /**
23402
23449
  * Try recalculate all coluns and rows after change
@@ -23756,7 +23803,8 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
23756
23803
  }
23757
23804
  createContainer() {
23758
23805
  const cn = this.componentName;
23759
- const container = this.j.c.span(cn), button = super.createContainer();
23806
+ const container = this.j.c.span(cn);
23807
+ const button = super.createContainer();
23760
23808
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(container, 'role', 'listitem');
23761
23809
  button.classList.remove(cn);
23762
23810
  button.classList.add(cn + '__button');
@@ -24138,8 +24186,9 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24138
24186
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24139
24187
  /* harmony export */ q: function() { return /* binding */ ToolbarSelect; }
24140
24188
  /* harmony export */ });
24141
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
24189
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
24142
24190
  /* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(53557);
24191
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47903);
24143
24192
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
24144
24193
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72463);
24145
24194
  /*!
@@ -24152,6 +24201,7 @@ ToolbarContent = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24152
24201
 
24153
24202
 
24154
24203
 
24204
+
24155
24205
  let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE_1__/* .ToolbarButton */ .I {
24156
24206
  className() {
24157
24207
  return 'ToolbarSelect';
@@ -24170,13 +24220,13 @@ let ToolbarSelect = class ToolbarSelect extends _button__WEBPACK_IMPORTED_MODULE
24170
24220
  const keys = Object.keys(list);
24171
24221
  key = keys[0];
24172
24222
  }
24173
- const text = (list[key.toString()] || key).toString();
24223
+ const text = ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_3__/* .isPlainObject */ .Q)(list) ? list[key.toString()] || key : key).toString();
24174
24224
  this.state.text =
24175
24225
  (_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
24176
24226
  }
24177
24227
  }
24178
24228
  };
24179
- ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
24229
+ ToolbarSelect = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24180
24230
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.component
24181
24231
  ], ToolbarSelect);
24182
24232
 
@@ -24307,7 +24357,7 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
24307
24357
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
24308
24358
  ], ToolbarCollection.prototype, "__immediateUpdate", null);
24309
24359
  (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24310
- (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.debounce)()
24360
+ (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.debounce)(ctx => ctx.j.defaultTimeout, true)
24311
24361
  ], ToolbarCollection.prototype, "update", null);
24312
24362
  (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
24313
24363
  (0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.hook)('ready')
@@ -24813,34 +24863,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24813
24863
  }
24814
24864
  const promises = [];
24815
24865
  if (o.insertImageAsBase64URI) {
24816
- let file, i;
24817
- for (i = 0; i < fileList.length; i += 1) {
24818
- file = fileList[i];
24819
- if (file && file.type) {
24820
- const mime = file.type.match(/\/([a-z0-9]+)/i);
24821
- const extension = mime[1] ? mime[1].toLowerCase() : '';
24822
- if (o.imagesExtensions.includes(extension)) {
24823
- const reader = new FileReader();
24824
- promises.push(uploader.j.async.promise((resolve, reject) => {
24825
- reader.onerror = reject;
24826
- reader.onloadend = () => {
24827
- const resp = {
24828
- baseurl: '',
24829
- files: [reader.result],
24830
- isImages: [true]
24831
- };
24832
- const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
24833
- ? handlerSuccess
24834
- : o.defaultHandlerSuccess;
24835
- handler.call(uploader, resp);
24836
- resolve(resp);
24837
- };
24838
- reader.readAsDataURL(file);
24839
- }));
24840
- fileList[i] = null;
24841
- }
24842
- }
24843
- }
24866
+ readImagesWithReader(fileList, o.imagesExtensions, promises, uploader, handlerSuccess, o.defaultHandlerSuccess);
24844
24867
  }
24845
24868
  fileList = fileList.filter(a => a);
24846
24869
  if (fileList.length) {
@@ -24851,7 +24874,7 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24851
24874
  for (let i = 0; i < fileList.length; i += 1) {
24852
24875
  file = fileList[i];
24853
24876
  if (file) {
24854
- const hasRealExtension = /\.[\d\w]+$/.test(file.name);
24877
+ const hasRealExtension = /\.\w+$/.test(file.name);
24855
24878
  const mime = file.type.match(/\/([a-z0-9]+)/i);
24856
24879
  const extension = mime && mime[1] ? mime[1].toLowerCase() : '';
24857
24880
  let newName = fileList[i].name ||
@@ -24900,6 +24923,37 @@ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
24900
24923
  }
24901
24924
  return Promise.all(promises);
24902
24925
  }
24926
+ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
24927
+ let file, i;
24928
+ for (i = 0; i < fileList.length; i += 1) {
24929
+ file = fileList[i];
24930
+ if (file && file.type) {
24931
+ const mime = file.type.match(/\/([a-z0-9]+)/i);
24932
+ const extension = mime[1] ? mime[1].toLowerCase() : '';
24933
+ if (!imagesExtensions.includes(extension)) {
24934
+ continue;
24935
+ }
24936
+ const reader = new FileReader();
24937
+ promises.push(uploader.j.async.promise((resolve, reject) => {
24938
+ reader.onerror = reject;
24939
+ reader.onloadend = () => {
24940
+ const resp = {
24941
+ baseurl: '',
24942
+ files: [reader.result],
24943
+ isImages: [true]
24944
+ };
24945
+ const handler = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess)
24946
+ ? handlerSuccess
24947
+ : defaultHandlerSuccess;
24948
+ handler.call(uploader, resp);
24949
+ resolve(resp);
24950
+ };
24951
+ reader.readAsDataURL(file);
24952
+ }));
24953
+ fileList[i] = null;
24954
+ }
24955
+ }
24956
+ }
24903
24957
 
24904
24958
 
24905
24959
  /***/ }),
@@ -25005,9 +25059,9 @@ function send(uploader, data) {
25005
25059
  /* harmony import */ var jodit_core_component___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79834);
25006
25060
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
25007
25061
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
25008
- /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20431);
25009
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50999);
25010
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
25062
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
25063
+ /* harmony import */ var jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20431);
25064
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50999);
25011
25065
  /*!
25012
25066
  * Jodit Editor (https://xdsoft.net/jodit/)
25013
25067
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25079,14 +25133,14 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25079
25133
  }
25080
25134
  };
25081
25135
  // send data on server
25082
- if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(cData)) {
25083
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
25136
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(cData)) {
25137
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
25084
25138
  return false;
25085
25139
  }
25086
25140
  if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
25087
- return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
25141
+ return (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .processOldBrowserDrag */ .dT)(self, cData, handlerSuccess, handlerError, onFinally);
25088
25142
  }
25089
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(cData)) {
25143
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(cData)) {
25090
25144
  const { items } = cData;
25091
25145
  for (i = 0; i < items.length; i += 1) {
25092
25146
  if (items[i].kind === 'file' &&
@@ -25097,7 +25151,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25097
25151
  extension = mime[1]
25098
25152
  ? mime[1].toLowerCase()
25099
25153
  : '';
25100
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
25154
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, [file], handlerSuccess, handlerError, processData).finally(onFinally);
25101
25155
  }
25102
25156
  e.preventDefault();
25103
25157
  break;
@@ -25120,30 +25174,30 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25120
25174
  e.preventDefault();
25121
25175
  })
25122
25176
  .on(form, 'dragover', (event) => {
25123
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer) ||
25124
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasItems */ .Pb)(event.dataTransfer)) {
25177
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer) ||
25178
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasItems */ .Pb)(event.dataTransfer)) {
25125
25179
  form.classList.add('jodit_drag_hover');
25126
25180
  event.preventDefault();
25127
25181
  }
25128
25182
  })
25129
25183
  .on(form, 'dragend dragleave', (event) => {
25130
25184
  form.classList.remove('jodit_drag_hover');
25131
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
25185
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
25132
25186
  event.preventDefault();
25133
25187
  }
25134
25188
  })
25135
25189
  .on(form, 'drop', (event) => {
25136
25190
  form.classList.remove('jodit_drag_hover');
25137
- if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .hasFiles */ .YQ)(event.dataTransfer)) {
25191
+ if ((0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .hasFiles */ .YQ)(event.dataTransfer)) {
25138
25192
  event.preventDefault();
25139
25193
  event.stopImmediatePropagation();
25140
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
25194
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
25141
25195
  }
25142
25196
  });
25143
25197
  const inputFile = form.querySelector('input[type=file]');
25144
25198
  if (inputFile) {
25145
25199
  self.j.e.on(inputFile, 'change', () => {
25146
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
25200
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .sendFiles */ ._9)(self, inputFile.files, handlerSuccess, handlerError)
25147
25201
  .then(() => {
25148
25202
  inputFile.value = '';
25149
25203
  if (!/safari/i.test(navigator.userAgent)) {
@@ -25163,7 +25217,7 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25163
25217
  const handlerE = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(handlerError)
25164
25218
  ? handlerError
25165
25219
  : o.defaultHandlerError;
25166
- (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .send */ .tN)(uploader, {
25220
+ (0,jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .send */ .tN)(uploader, {
25167
25221
  action: 'fileUploadRemote',
25168
25222
  url
25169
25223
  })
@@ -25183,11 +25237,11 @@ class Uploader extends jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .Vie
25183
25237
  super(editor);
25184
25238
  this.path = '';
25185
25239
  this.source = 'default';
25186
- 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 : {}));
25240
+ 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 : {}));
25187
25241
  }
25188
25242
  destruct() {
25189
25243
  this.setStatus(jodit_core_component___WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
25190
- const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_3__/* .ajaxInstances */ .$j.get(this);
25244
+ const instances = jodit_modules_uploader_helpers__WEBPACK_IMPORTED_MODULE_4__/* .ajaxInstances */ .$j.get(this);
25191
25245
  if (instances) {
25192
25246
  instances.forEach(ajax => {
25193
25247
  try {
@@ -25616,9 +25670,9 @@ const TabsWidget = (jodit, tabs, state) => {
25616
25670
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
25617
25671
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
25618
25672
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
25619
- /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46891);
25620
- /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_4__);
25621
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
25673
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
25674
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46891);
25675
+ /* harmony import */ var _about_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_about_svg__WEBPACK_IMPORTED_MODULE_5__);
25622
25676
  /*!
25623
25677
  * Jodit Editor (https://xdsoft.net/jodit/)
25624
25678
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25632,7 +25686,7 @@ const TabsWidget = (jodit, tabs, state) => {
25632
25686
 
25633
25687
 
25634
25688
 
25635
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.about = {
25689
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.about = {
25636
25690
  exec: (editor) => {
25637
25691
  const dialog = editor.dlg({ closeOnClickOverlay: true }), i = editor.i18n.bind(editor);
25638
25692
  dialog
@@ -25668,7 +25722,7 @@ function about(editor) {
25668
25722
  });
25669
25723
  }
25670
25724
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('about', about);
25671
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_4___default()));
25725
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('about', (_about_svg__WEBPACK_IMPORTED_MODULE_5___default()));
25672
25726
 
25673
25727
 
25674
25728
  /***/ }),
@@ -25911,9 +25965,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
25911
25965
 
25912
25966
  "use strict";
25913
25967
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
25914
- /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3882);
25915
- /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_1__);
25916
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
25968
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
25969
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3882);
25970
+ /* harmony import */ var _enter_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_enter_svg__WEBPACK_IMPORTED_MODULE_2__);
25917
25971
  /*!
25918
25972
  * Jodit Editor (https://xdsoft.net/jodit/)
25919
25973
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -25922,9 +25976,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('addNe
25922
25976
 
25923
25977
 
25924
25978
 
25925
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLine = true;
25926
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
25927
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
25979
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLine = true;
25980
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineOnDBLClick = true;
25981
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineTagsTriggers = [
25928
25982
  'table',
25929
25983
  'iframe',
25930
25984
  'img',
@@ -25932,8 +25986,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineTa
25932
25986
  'pre',
25933
25987
  'jodit'
25934
25988
  ];
25935
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
25936
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_1___default()));
25989
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.addNewLineDeltaShow = 20;
25990
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('enter', (_enter_svg__WEBPACK_IMPORTED_MODULE_2___default()));
25937
25991
 
25938
25992
 
25939
25993
  /***/ }),
@@ -26072,11 +26126,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('ai-as
26072
26126
 
26073
26127
  "use strict";
26074
26128
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
26075
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15627);
26076
- /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1__);
26077
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41500);
26078
- /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2__);
26079
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
26129
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
26130
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15627);
26131
+ /* harmony import */ var _ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
26132
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41500);
26133
+ /* harmony import */ var _chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3__);
26080
26134
  /*!
26081
26135
  * Jodit Editor (https://xdsoft.net/jodit/)
26082
26136
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -26117,10 +26171,10 @@ const aiAssistantDefaults = {
26117
26171
  aiTranslateToRussianPrompt: 'Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.',
26118
26172
  aiTranslateToArabicPrompt: 'Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning.'
26119
26173
  };
26120
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
26121
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_2___default()));
26122
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_1___default()));
26123
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-commands'] = {
26174
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.aiAssistant = aiAssistantDefaults;
26175
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-assistant', (_chat_bot_svg__WEBPACK_IMPORTED_MODULE_3___default()));
26176
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('ai-commands', (_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default()));
26177
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-commands'] = {
26124
26178
  isDisabled(editor) {
26125
26179
  return !editor.o.aiAssistant.aiAssistantCallback;
26126
26180
  },
@@ -26158,7 +26212,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai
26158
26212
  editor.e.fire('generateAiAssistantForm.ai-assistant', control.name);
26159
26213
  }
26160
26214
  };
26161
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls['ai-assistant'] = {
26215
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls['ai-assistant'] = {
26162
26216
  isDisabled(editor) {
26163
26217
  return !editor.o.aiAssistant.aiAssistantCallback;
26164
26218
  },
@@ -26519,7 +26573,7 @@ class backspace extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
26519
26573
  if (jodit.e.fire('backSpaceBeforeCases', backspace, fakeNode)) {
26520
26574
  return false;
26521
26575
  }
26522
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
26576
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_4__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
26523
26577
  if (_cases__WEBPACK_IMPORTED_MODULE_6__/* .cases */ .C.some((func) => {
26524
26578
  if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_8__/* .isFunction */ .T)(func) &&
26525
26579
  func(jodit, fakeNode, backspace, mode)) {
@@ -26778,22 +26832,15 @@ function checkNotCollapsed(jodit) {
26778
26832
  * @private
26779
26833
  */
26780
26834
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26781
- var _a, _b, _c;
26835
+ var _a, _b;
26782
26836
  const step = backspace ? -1 : 1;
26783
26837
  const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
26784
- let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace), removeNeighbor = null;
26785
- let charRemoved = false, removed;
26786
- const getNextInlineSibling = (sibling) => {
26787
- let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
26788
- if (!nextSibling &&
26789
- sibling.parentNode &&
26790
- sibling.parentNode !== jodit.editor) {
26791
- nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, jodit.editor, true);
26792
- }
26793
- return nextSibling;
26794
- };
26838
+ let sibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, backspace);
26839
+ let removeNeighbor = null;
26840
+ let charRemoved = false;
26841
+ let removed;
26795
26842
  if (!sibling) {
26796
- sibling = getNextInlineSibling(fakeNode);
26843
+ sibling = getNextInlineSibling(fakeNode, backspace, jodit.editor);
26797
26844
  }
26798
26845
  while (sibling && (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(sibling) || jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling))) {
26799
26846
  while (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling)) {
@@ -26803,57 +26850,21 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26803
26850
  break;
26804
26851
  }
26805
26852
  if ((_a = sibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) {
26806
- // For Unicode escapes
26807
- let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
26808
- const length = value.length;
26809
- let index = backspace ? length - 1 : 0;
26810
- if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26811
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26812
- index += step;
26813
- }
26814
- }
26815
- removed = value[index];
26816
- if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26817
- index += step;
26818
- while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26819
- index += step;
26820
- }
26821
- index += backspace ? 1 : -1;
26853
+ removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
26854
+ if (!sibling.nodeValue.length &&
26855
+ jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isInlineBlock(sibling.parentNode)) {
26856
+ sibling.nodeValue = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
26822
26857
  }
26823
- if (backspace && index < 0) {
26824
- value = [];
26825
- }
26826
- else {
26827
- value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
26828
- }
26829
- if (!anotherSibling ||
26830
- !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
26831
- (!backspace ? / $/ : /^ /).test((_b = anotherSibling.nodeValue) !== null && _b !== void 0 ? _b : '') ||
26832
- !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
26833
- for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
26834
- if (value[i] === ' ') {
26835
- value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
26836
- }
26837
- else {
26838
- break;
26839
- }
26840
- }
26841
- }
26842
- sibling.nodeValue = value.join('');
26843
26858
  }
26844
- if (!((_c = sibling.nodeValue) === null || _c === void 0 ? void 0 : _c.length)) {
26859
+ if (!((_b = sibling.nodeValue) === null || _b === void 0 ? void 0 : _b.length)) {
26845
26860
  removeNeighbor = sibling;
26846
26861
  }
26847
26862
  if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isVoid)(removed) && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26863
+ checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit);
26848
26864
  charRemoved = true;
26849
- (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);
26850
- if (mode === 'sentence' ||
26851
- (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
26852
- checkRemoveChar(jodit, fakeNode, backspace, mode);
26853
- }
26854
26865
  break;
26855
26866
  }
26856
- const nextSibling = getNextInlineSibling(sibling);
26867
+ const nextSibling = getNextInlineSibling(sibling, backspace, jodit.editor);
26857
26868
  if (removeNeighbor) {
26858
26869
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(removeNeighbor);
26859
26870
  removeNeighbor = null;
@@ -26875,6 +26886,13 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26875
26886
  }
26876
26887
  return charRemoved;
26877
26888
  }
26889
+ function getNextInlineSibling(sibling, backspace, root) {
26890
+ let nextSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(sibling, backspace);
26891
+ if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
26892
+ nextSibling = (0,jodit_plugins_backspace_helpers__WEBPACK_IMPORTED_MODULE_3__/* .findMostNestedNeighbor */ .s)(sibling, !backspace, root, true);
26893
+ }
26894
+ return nextSibling;
26895
+ }
26878
26896
  /**
26879
26897
  * Helper removes all empty inline parents
26880
26898
  */
@@ -26899,6 +26917,57 @@ function addBRInsideEmptyBlock(jodit, node) {
26899
26917
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(node, jodit.createInside.element('br'));
26900
26918
  }
26901
26919
  }
26920
+ function tryRemoveChar(sibling, backspace, step, anotherSibling) {
26921
+ // For Unicode escapes
26922
+ let value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.toArray)(sibling.nodeValue);
26923
+ const length = value.length;
26924
+ let index = backspace ? length - 1 : 0;
26925
+ if (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26926
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26927
+ index += step;
26928
+ }
26929
+ }
26930
+ const removed = value[index];
26931
+ if (value[index + step] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26932
+ index += step;
26933
+ while (value[index] === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE) {
26934
+ index += step;
26935
+ }
26936
+ index += backspace ? 1 : -1;
26937
+ }
26938
+ if (backspace && index < 0) {
26939
+ value = [];
26940
+ }
26941
+ else {
26942
+ value = value.slice(backspace ? 0 : index + 1, backspace ? index : length);
26943
+ }
26944
+ replaceSpaceOnNBSP(anotherSibling, backspace, value);
26945
+ sibling.nodeValue = value.join('');
26946
+ return removed;
26947
+ }
26948
+ function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
26949
+ var _a;
26950
+ if (!anotherSibling ||
26951
+ !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(anotherSibling) ||
26952
+ (!backspace ? / $/ : /^ /).test((_a = anotherSibling.nodeValue) !== null && _a !== void 0 ? _a : '') ||
26953
+ !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.trimInv)(anotherSibling.nodeValue || '').length) {
26954
+ for (let i = backspace ? value.length - 1 : 0; backspace ? i >= 0 : i < value.length; i += backspace ? -1 : 1) {
26955
+ if (value[i] === ' ') {
26956
+ value[i] = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
26957
+ }
26958
+ else {
26959
+ break;
26960
+ }
26961
+ }
26962
+ }
26963
+ }
26964
+ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
26965
+ (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);
26966
+ if (mode === 'sentence' ||
26967
+ (mode === 'word' && removed !== ' ' && removed !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE)) {
26968
+ checkRemoveChar(jodit, fakeNode, backspace, mode);
26969
+ }
26970
+ }
26902
26971
 
26903
26972
 
26904
26973
  /***/ }),
@@ -26936,7 +27005,7 @@ function checkRemoveContentNotEditable(jodit, fakeNode, backspace) {
26936
27005
  !jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isContentEditable(neighbor, jodit.editor)) {
26937
27006
  (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);
26938
27007
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(neighbor);
26939
- (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W)(jodit, fakeNode, backspace);
27008
+ (0,jodit_core_selection_helpers__WEBPACK_IMPORTED_MODULE_2__/* .moveNodeInsideStart */ .W8)(jodit, fakeNode, backspace);
26940
27009
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.call)(backspace ? jodit.s.setCursorBefore : jodit.s.setCursorAfter, fakeNode);
26941
27010
  return true;
26942
27011
  }
@@ -27340,20 +27409,20 @@ function getMoveFilter(jodit) {
27340
27409
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51431);
27341
27410
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
27342
27411
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
27343
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94673);
27344
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(39586);
27345
- /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4__);
27346
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49463);
27347
- /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5__);
27348
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(10292);
27349
- /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6__);
27350
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(71718);
27351
- /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7__);
27352
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(48397);
27353
- /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8__);
27354
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(46781);
27355
- /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9__);
27356
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(91288);
27412
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
27413
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94673);
27414
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39586);
27415
+ /* harmony import */ var _icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5__);
27416
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49463);
27417
+ /* harmony import */ var _icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6__);
27418
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10292);
27419
+ /* harmony import */ var _icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7__);
27420
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(71718);
27421
+ /* harmony import */ var _icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8__);
27422
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48397);
27423
+ /* harmony import */ var _icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9__);
27424
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(46781);
27425
+ /* harmony import */ var _icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10__);
27357
27426
  /*!
27358
27427
  * Jodit Editor (https://xdsoft.net/jodit/)
27359
27428
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27376,7 +27445,7 @@ function getMoveFilter(jodit) {
27376
27445
  */
27377
27446
  function bold(editor) {
27378
27447
  const callBack = (command) => {
27379
- const control = jodit_config__WEBPACK_IMPORTED_MODULE_10__/* .Config */ .T.defaultOptions.controls[command], cssOptions = Object.assign({}, control.css);
27448
+ const control = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.defaultOptions.controls[command], cssOptions = Object.assign({}, control.css);
27380
27449
  let cssRules;
27381
27450
  Object.keys(cssOptions).forEach((key) => {
27382
27451
  if (!cssRules) {
@@ -27428,12 +27497,12 @@ function bold(editor) {
27428
27497
  });
27429
27498
  }
27430
27499
  jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('bold', bold);
27431
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_4___default()))
27432
- .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_5___default()))
27433
- .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_6___default()))
27434
- .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_7___default()))
27435
- .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
27436
- .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_9___default()));
27500
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('bold', (_icons_bold_svg__WEBPACK_IMPORTED_MODULE_5___default()))
27501
+ .set('italic', (_icons_italic_svg__WEBPACK_IMPORTED_MODULE_6___default()))
27502
+ .set('strikethrough', (_icons_strikethrough_svg__WEBPACK_IMPORTED_MODULE_7___default()))
27503
+ .set('subscript', (_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_8___default()))
27504
+ .set('superscript', (_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_9___default()))
27505
+ .set('underline', (_icons_underline_svg__WEBPACK_IMPORTED_MODULE_10___default()));
27437
27506
 
27438
27507
 
27439
27508
  /***/ }),
@@ -27503,9 +27572,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
27503
27572
  /* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94183);
27504
27573
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65564);
27505
27574
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
27506
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14835);
27507
- /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_5__);
27508
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
27575
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
27576
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(14835);
27577
+ /* harmony import */ var _class_span_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_class_span_svg__WEBPACK_IMPORTED_MODULE_6__);
27509
27578
  /*!
27510
27579
  * Jodit Editor (https://xdsoft.net/jodit/)
27511
27580
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27518,7 +27587,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.controls.str
27518
27587
 
27519
27588
 
27520
27589
 
27521
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.classSpan = {
27590
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.classSpan = {
27522
27591
  command: 'applyClassName',
27523
27592
  exec: jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_2__/* .memorizeExec */ .qN,
27524
27593
  list: [
@@ -27606,7 +27675,7 @@ class classSpan extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plugin
27606
27675
  beforeDestruct() { }
27607
27676
  }
27608
27677
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('classSpan', classSpan);
27609
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_5___default()));
27678
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('class-span', (_class_span_svg__WEBPACK_IMPORTED_MODULE_6___default()));
27610
27679
 
27611
27680
 
27612
27681
  /***/ }),
@@ -27745,9 +27814,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
27745
27814
 
27746
27815
  "use strict";
27747
27816
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
27748
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(556);
27749
- /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_1__);
27750
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
27817
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
27818
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(556);
27819
+ /* harmony import */ var _eraser_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_eraser_svg__WEBPACK_IMPORTED_MODULE_2__);
27751
27820
  /*!
27752
27821
  * Jodit Editor (https://xdsoft.net/jodit/)
27753
27822
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -27756,7 +27825,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('clean
27756
27825
 
27757
27826
 
27758
27827
 
27759
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML = {
27828
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.cleanHTML = {
27760
27829
  timeout: 300,
27761
27830
  removeEmptyElements: true,
27762
27831
  fillEmptyParagraph: true,
@@ -27772,11 +27841,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.cleanHTML =
27772
27841
  safeJavaScriptLink: true,
27773
27842
  disableCleanFilter: null
27774
27843
  };
27775
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.eraser = {
27844
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.eraser = {
27776
27845
  command: 'removeFormat',
27777
27846
  tooltip: 'Clear Formatting'
27778
27847
  };
27779
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_1___default()));
27848
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('eraser', (_eraser_svg__WEBPACK_IMPORTED_MODULE_2___default()));
27780
27849
 
27781
27850
 
27782
27851
  /***/ }),
@@ -28445,15 +28514,15 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
28445
28514
 
28446
28515
  "use strict";
28447
28516
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
28448
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65);
28449
- /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1__);
28450
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4594);
28451
- /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2__);
28452
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(63859);
28453
- /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3__);
28454
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(38808);
28455
- /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4__);
28456
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
28517
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
28518
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65);
28519
+ /* harmony import */ var _icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2__);
28520
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4594);
28521
+ /* harmony import */ var _icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3__);
28522
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63859);
28523
+ /* harmony import */ var _icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4__);
28524
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38808);
28525
+ /* harmony import */ var _icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5__);
28457
28526
  /*!
28458
28527
  * Jodit Editor (https://xdsoft.net/jodit/)
28459
28528
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -28465,25 +28534,25 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('clipb
28465
28534
 
28466
28535
 
28467
28536
 
28468
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.cut = {
28537
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.cut = {
28469
28538
  command: 'cut',
28470
28539
  isDisabled: (editor) => editor.s.isCollapsed(),
28471
28540
  tooltip: 'Cut selection'
28472
28541
  };
28473
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copy = {
28542
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.copy = {
28474
28543
  command: 'copy',
28475
28544
  isDisabled: (editor) => editor.s.isCollapsed(),
28476
28545
  tooltip: 'Copy selection'
28477
28546
  };
28478
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.selectall = {
28547
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.selectall = {
28479
28548
  icon: 'select-all',
28480
28549
  command: 'selectall',
28481
28550
  tooltip: 'Select all'
28482
28551
  };
28483
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_1___default()))
28484
- .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_2___default()))
28485
- .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_3___default()))
28486
- .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_4___default()));
28552
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('copy', (_icons_copy_svg__WEBPACK_IMPORTED_MODULE_2___default()))
28553
+ .set('cut', (_icons_cut_svg__WEBPACK_IMPORTED_MODULE_3___default()))
28554
+ .set('paste', (_icons_paste_svg__WEBPACK_IMPORTED_MODULE_4___default()))
28555
+ .set('select-all', (_icons_select_all_svg__WEBPACK_IMPORTED_MODULE_5___default()));
28487
28556
 
28488
28557
 
28489
28558
  /***/ }),
@@ -28555,10 +28624,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
28555
28624
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
28556
28625
  /* harmony import */ var jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
28557
28626
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
28558
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21391);
28559
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(55370);
28560
- /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_4__);
28561
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
28627
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
28628
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21391);
28629
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(55370);
28630
+ /* harmony import */ var _brush_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_brush_svg__WEBPACK_IMPORTED_MODULE_5__);
28562
28631
  /*!
28563
28632
  * Jodit Editor (https://xdsoft.net/jodit/)
28564
28633
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -28570,8 +28639,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('color
28570
28639
 
28571
28640
 
28572
28641
 
28573
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_4___default()));
28574
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brushCell = {
28642
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('brush', (_brush_svg__WEBPACK_IMPORTED_MODULE_5___default()));
28643
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brushCell = {
28575
28644
  isVisible: (editor) => {
28576
28645
  return !editor.o.disablePlugins.includes('color');
28577
28646
  },
@@ -28584,7 +28653,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28584
28653
  if (!selected.length) {
28585
28654
  return false;
28586
28655
  }
28587
- const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28656
+ const makeColorPicker = (key) => (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28588
28657
  selected.forEach(cell => {
28589
28658
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(cell, key, value);
28590
28659
  });
@@ -28593,7 +28662,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28593
28662
  close();
28594
28663
  editor.unlock();
28595
28664
  }, (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.css)(selected[0], key));
28596
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, [
28665
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, [
28597
28666
  {
28598
28667
  name: 'Background',
28599
28668
  content: makeColorPicker('background-color')
@@ -28604,7 +28673,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28604
28673
  },
28605
28674
  tooltip: 'Background'
28606
28675
  };
28607
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.brush = {
28676
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.brush = {
28608
28677
  isVisible: (editor) => {
28609
28678
  return !editor.o.disablePlugins.includes('color');
28610
28679
  },
@@ -28652,7 +28721,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28652
28721
  }
28653
28722
  }, editor.editor);
28654
28723
  }
28655
- const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28724
+ const backgroundTag = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28656
28725
  if (!currentElement) {
28657
28726
  editor.execCommand('background', false, value);
28658
28727
  }
@@ -28663,7 +28732,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28663
28732
  (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_1__.dataBind)(button, 'color-mode', 'background');
28664
28733
  close();
28665
28734
  }, bg_color);
28666
- const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28735
+ const colorTab = (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .ColorPickerWidget */ .Kn)(editor, (value) => {
28667
28736
  if (!currentElement) {
28668
28737
  editor.execCommand('forecolor', false, value);
28669
28738
  }
@@ -28687,7 +28756,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28687
28756
  if (editor.o.colorPickerDefaultTab !== 'background') {
28688
28757
  tabs = tabs.reverse();
28689
28758
  }
28690
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
28759
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs, currentElement);
28691
28760
  },
28692
28761
  exec(jodit, current, { button }) {
28693
28762
  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');
@@ -28726,10 +28795,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.bru
28726
28795
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
28727
28796
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
28728
28797
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
28729
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72131);
28730
- /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_3__);
28731
- /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18489);
28732
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
28798
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
28799
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72131);
28800
+ /* harmony import */ var _copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_copy_format_svg__WEBPACK_IMPORTED_MODULE_4__);
28801
+ /* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18489);
28733
28802
  /*!
28734
28803
  * Jodit Editor (https://xdsoft.net/jodit/)
28735
28804
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -28787,7 +28856,7 @@ const getStyles = (editor, box, defaultStyles) => {
28787
28856
  }
28788
28857
  return result;
28789
28858
  };
28790
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.copyformat = {
28859
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.copyformat = {
28791
28860
  exec: (editor, current, { button }) => {
28792
28861
  if (!current) {
28793
28862
  return;
@@ -28837,10 +28906,10 @@ function copyFormat(editor) {
28837
28906
  name: 'copyformat',
28838
28907
  group: 'clipboard'
28839
28908
  });
28840
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_4__);
28909
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_5__);
28841
28910
  }
28842
28911
  jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('copyformat', copyFormat);
28843
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_3___default()));
28912
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('copyformat', (_copy_format_svg__WEBPACK_IMPORTED_MODULE_4___default()));
28844
28913
 
28845
28914
 
28846
28915
  /***/ }),
@@ -29796,45 +29865,11 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
29796
29865
  const sel = this.j.s.sel;
29797
29866
  const range = this.bufferRange ||
29798
29867
  (sel && sel.rangeCount ? sel.getRangeAt(0) : null);
29799
- let fragment = null;
29800
- if (!this.draggable && range) {
29801
- fragment = this.isCopyMode
29802
- ? range.cloneContents()
29803
- : range.extractContents();
29804
- }
29805
- else if (this.draggable) {
29806
- if (this.isCopyMode) {
29807
- const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
29808
- ? ['a', 'href']
29809
- : ['img', 'src'];
29810
- fragment = this.j.createInside.element(tagName);
29811
- fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
29812
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
29813
- '');
29814
- if (tagName === 'a') {
29815
- fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
29816
- }
29817
- }
29818
- else {
29819
- fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
29820
- }
29821
- }
29822
- else if (this.getText(event)) {
29823
- fragment = this.j.createInside.fromHTML(this.getText(event));
29824
- }
29868
+ const fragment = this.__getWorkFragment(range, event);
29825
29869
  sel && sel.removeAllRanges();
29826
29870
  this.j.s.insertCursorAtPoint(event.clientX, event.clientY);
29827
29871
  if (fragment) {
29828
- this.j.s.insertNode(fragment, false, false);
29829
- if (range && fragment.firstChild && fragment.lastChild) {
29830
- range.setStartBefore(fragment.firstChild);
29831
- range.setEndAfter(fragment.lastChild);
29832
- this.j.s.selectRange(range);
29833
- this.j.e.fire('synchro');
29834
- }
29835
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
29836
- this.j.e.fire('afterInsertImage', fragment);
29837
- }
29872
+ this.__insertFragment.call(this, fragment, range);
29838
29873
  }
29839
29874
  event.preventDefault();
29840
29875
  event.stopPropagation();
@@ -29842,6 +29877,47 @@ class dragAndDrop extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plug
29842
29877
  this.isFragmentFromEditor = false;
29843
29878
  this.removeDragListeners();
29844
29879
  }
29880
+ __getWorkFragment(range, event) {
29881
+ let fragment = null;
29882
+ if (!this.draggable && range) {
29883
+ fragment = this.isCopyMode
29884
+ ? range.cloneContents()
29885
+ : range.extractContents();
29886
+ }
29887
+ else if (this.draggable) {
29888
+ if (this.isCopyMode) {
29889
+ const [tagName, field] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, '-is-file') === '1'
29890
+ ? ['a', 'href']
29891
+ : ['img', 'src'];
29892
+ fragment = this.j.createInside.element(tagName);
29893
+ fragment.setAttribute(field, (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'data-src') ||
29894
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(this.draggable, 'src') ||
29895
+ '');
29896
+ if (tagName === 'a') {
29897
+ fragment.textContent = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.attr)(fragment, field) || '';
29898
+ }
29899
+ }
29900
+ else {
29901
+ fragment = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.dataBind)(this.draggable, 'target');
29902
+ }
29903
+ }
29904
+ else if (this.getText(event)) {
29905
+ fragment = this.j.createInside.fromHTML(this.getText(event));
29906
+ }
29907
+ return fragment;
29908
+ }
29909
+ __insertFragment(fragment, range) {
29910
+ this.j.s.insertNode(fragment, false, false);
29911
+ if (range && fragment.firstChild && fragment.lastChild) {
29912
+ range.setStartBefore(fragment.firstChild);
29913
+ range.setEndAfter(fragment.lastChild);
29914
+ this.j.s.selectRange(range);
29915
+ this.j.e.fire('synchro');
29916
+ }
29917
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isTag(fragment, 'img') && this.j.events) {
29918
+ this.j.e.fire('afterInsertImage', fragment);
29919
+ }
29920
+ }
29845
29921
  /** @override */
29846
29922
  beforeDestruct() {
29847
29923
  this.onDragEnd();
@@ -30643,8 +30719,8 @@ function wrapText(fake, jodit) {
30643
30719
  /* unused harmony export file */
30644
30720
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
30645
30721
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
30646
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21391);
30647
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
30722
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
30723
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21391);
30648
30724
  /*!
30649
30725
  * Jodit Editor (https://xdsoft.net/jodit/)
30650
30726
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30654,7 +30730,7 @@ function wrapText(fake, jodit) {
30654
30730
 
30655
30731
 
30656
30732
 
30657
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.file = {
30733
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.file = {
30658
30734
  popup: (editor, current, close) => {
30659
30735
  const insert = (url, title = '') => {
30660
30736
  editor.s.insertNode(editor.createInside.fromHTML(`<a href="${url}" title="${title}">${title || url}</a>`));
@@ -30667,7 +30743,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
30667
30743
  ? current
30668
30744
  : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
30669
30745
  }
30670
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_2__/* .FileSelectorWidget */ .kG)(editor, {
30746
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_3__/* .FileSelectorWidget */ .kG)(editor, {
30671
30747
  filebrowser: (data) => {
30672
30748
  data.files &&
30673
30749
  data.files.forEach(file => insert(data.baseurl + file));
@@ -30790,11 +30866,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
30790
30866
  /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
30791
30867
  /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
30792
30868
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
30793
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78602);
30794
- /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_3__);
30795
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84413);
30796
- /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_4__);
30797
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
30869
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
30870
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78602);
30871
+ /* harmony import */ var _icons_font_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_font_svg__WEBPACK_IMPORTED_MODULE_4__);
30872
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84413);
30873
+ /* harmony import */ var _icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_fontsize_svg__WEBPACK_IMPORTED_MODULE_5__);
30798
30874
  /*!
30799
30875
  * Jodit Editor (https://xdsoft.net/jodit/)
30800
30876
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30810,9 +30886,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('focus
30810
30886
  /**
30811
30887
  * Default font-size points
30812
30888
  */
30813
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
30814
- 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()));
30815
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize = {
30889
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultFontSizePoints = 'px';
30890
+ 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()));
30891
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize = {
30816
30892
  command: 'fontsize',
30817
30893
  data: {
30818
30894
  cssRule: 'font-size',
@@ -30871,7 +30947,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fon
30871
30947
  return keySet.has(normalize(value.toString()));
30872
30948
  }
30873
30949
  };
30874
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.font = Object.assign(Object.assign({}, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.fontsize), { command: 'fontname', textTemplate: (j, value) => {
30950
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.font = Object.assign(Object.assign({}, jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fontsize), { command: 'fontname', textTemplate: (j, value) => {
30875
30951
  const [first] = value.split(',');
30876
30952
  return (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trimChars */ .Gd)(first, '"\'');
30877
30953
  }, list: {
@@ -30974,11 +31050,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
30974
31050
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
30975
31051
 
30976
31052
  "use strict";
30977
- /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
31053
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
31054
+ /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47903);
30978
31055
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
30979
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30820);
30980
- /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_2__);
30981
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
31056
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
31057
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30820);
31058
+ /* harmony import */ var _paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_paragraph_svg__WEBPACK_IMPORTED_MODULE_3__);
30982
31059
  /*!
30983
31060
  * Jodit Editor (https://xdsoft.net/jodit/)
30984
31061
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -30988,13 +31065,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('font'
30988
31065
 
30989
31066
 
30990
31067
 
30991
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_2___default()));
30992
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.paragraph = {
31068
+
31069
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('paragraph', (_paragraph_svg__WEBPACK_IMPORTED_MODULE_3___default()));
31070
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paragraph = {
30993
31071
  command: 'formatBlock',
30994
31072
  value(editor, button) {
30995
31073
  var _a, _b;
30996
31074
  const control = button.control, current = editor.s.current();
30997
- 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);
31075
+ 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);
30998
31076
  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;
30999
31077
  },
31000
31078
  update(editor, button) {
@@ -31003,7 +31081,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
31003
31081
  return false;
31004
31082
  }
31005
31083
  const currentValue = button.state.value, list = control.list;
31006
- if (list && list[currentValue.toString()]) {
31084
+ if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(list) && list[currentValue.toString()]) {
31007
31085
  if (editor.o.textIcons) {
31008
31086
  button.state.text = list[currentValue.toString()].toString();
31009
31087
  }
@@ -31027,9 +31105,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.par
31027
31105
  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]));
31028
31106
  },
31029
31107
  isActive: (editor, button) => {
31030
- var _a;
31031
31108
  return (button.state.value !== editor.o.enter &&
31032
- Boolean((_a = button.control.list) === null || _a === void 0 ? void 0 : _a[button.state.value]));
31109
+ (0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__/* .isPlainObject */ .Q)(button.control.list) &&
31110
+ Boolean(button.control.list[button.state.value]));
31033
31111
  },
31034
31112
  childTemplate: (e, key, value) => `<${key} style="margin:0;padding:0"><span>${e.i18n(value)}</span></${key}>`,
31035
31113
  tooltip: 'Insert format block'
@@ -31079,11 +31157,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
31079
31157
  "use strict";
31080
31158
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
31081
31159
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
31082
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88708);
31083
- /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_2__);
31084
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10099);
31085
- /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_3__);
31086
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
31160
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
31161
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88708);
31162
+ /* harmony import */ var _icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_fullsize_svg__WEBPACK_IMPORTED_MODULE_3__);
31163
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10099);
31164
+ /* harmony import */ var _icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_shrink_svg__WEBPACK_IMPORTED_MODULE_4__);
31087
31165
  /*!
31088
31166
  * Jodit Editor (https://xdsoft.net/jodit/)
31089
31167
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -31095,10 +31173,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('forma
31095
31173
 
31096
31174
 
31097
31175
 
31098
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.fullsize = false;
31099
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.globalFullSize = true;
31100
- 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()));
31101
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.fullsize = {
31176
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.fullsize = false;
31177
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.globalFullSize = true;
31178
+ 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()));
31179
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fullsize = {
31102
31180
  exec: (editor) => {
31103
31181
  editor.toggleFullSize();
31104
31182
  },
@@ -31239,19 +31317,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('fulls
31239
31317
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
31240
31318
  */
31241
31319
 
31242
- /**
31243
- * You can redefine hotkeys for some command
31244
- *
31245
- * @example
31246
- * ```js
31247
- * var jodit = Jodit.make('#editor', {
31248
- * commandToHotkeys: {
31249
- * bold: 'ctrl+shift+b',
31250
- * italic: ['ctrl+i', 'ctrl+b'],
31251
- * }
31252
- * })
31253
- * ```
31254
- */
31255
31320
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.commandToHotkeys = {
31256
31321
  removeFormat: ['ctrl+shift+m', 'cmd+shift+m'],
31257
31322
  insertOrderedList: ['ctrl+shift+7', 'cmd+shift+7'],
@@ -31426,9 +31491,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
31426
31491
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
31427
31492
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
31428
31493
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80004);
31429
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75241);
31430
- /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_3__);
31431
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
31494
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
31495
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(75241);
31496
+ /* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_4__);
31432
31497
  /*!
31433
31498
  * Jodit Editor (https://xdsoft.net/jodit/)
31434
31499
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -31439,8 +31504,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('hotke
31439
31504
 
31440
31505
 
31441
31506
 
31442
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_3___default()));
31443
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.hr = {
31507
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_2__/* .Icon */ .I.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_4___default()));
31508
+ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.hr = {
31444
31509
  command: 'insertHorizontalRule',
31445
31510
  tags: ['hr'],
31446
31511
  tooltip: 'Insert Horizontal Line'
@@ -31921,6 +31986,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
31921
31986
  * Released under MIT see LICENSE.txt in the project root for license information.
31922
31987
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
31923
31988
  */
31989
+ /**
31990
+ * @module plugins/image-properties
31991
+ */
31924
31992
 
31925
31993
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.image = {
31926
31994
  dialogWidth: 600,
@@ -33437,10 +33505,10 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
33437
33505
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
33438
33506
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
33439
33507
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
33440
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21391);
33441
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15807);
33442
- /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_5__);
33443
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
33508
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
33509
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21391);
33510
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(15807);
33511
+ /* harmony import */ var _image_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_image_svg__WEBPACK_IMPORTED_MODULE_6__);
33444
33512
  /*!
33445
33513
  * Jodit Editor (https://xdsoft.net/jodit/)
33446
33514
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33454,8 +33522,8 @@ function applySize(image, imageWidth, imageHeight, sizeIsLocked) {
33454
33522
 
33455
33523
 
33456
33524
 
33457
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_5___default()));
33458
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.image = {
33525
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('image', (_image_svg__WEBPACK_IMPORTED_MODULE_6___default()));
33526
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.image = {
33459
33527
  popup: (editor, current, close) => {
33460
33528
  let sourceImage = null;
33461
33529
  if (current &&
@@ -33467,7 +33535,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.ima
33467
33535
  : (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.$$)('img', current)[0];
33468
33536
  }
33469
33537
  editor.s.save();
33470
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .FileSelectorWidget */ .kG)(editor, {
33538
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .FileSelectorWidget */ .kG)(editor, {
33471
33539
  filebrowser: (data) => {
33472
33540
  editor.s.restore();
33473
33541
  data.files &&
@@ -33510,12 +33578,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
33510
33578
  "use strict";
33511
33579
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33465);
33512
33580
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
33513
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(96168);
33514
- /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_2__);
33515
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45153);
33516
- /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_3__);
33517
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63163);
33518
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
33581
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
33582
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(96168);
33583
+ /* harmony import */ var _icons_indent_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_indent_svg__WEBPACK_IMPORTED_MODULE_3__);
33584
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(45153);
33585
+ /* harmony import */ var _icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_4__);
33586
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63163);
33519
33587
  /*!
33520
33588
  * Jodit Editor (https://xdsoft.net/jodit/)
33521
33589
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33527,17 +33595,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('image
33527
33595
 
33528
33596
 
33529
33597
 
33530
- 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()));
33531
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.indent = {
33598
+ 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()));
33599
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.indent = {
33532
33600
  tooltip: 'Increase Indent'
33533
33601
  };
33534
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.outdent = {
33602
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.outdent = {
33535
33603
  isDisabled: (editor) => {
33536
33604
  const current = editor.s.current();
33537
33605
  if (current) {
33538
33606
  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);
33539
33607
  if (currentBox) {
33540
- const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_4__/* .getKey */ .i)(editor.o.direction, currentBox);
33608
+ const arrow = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__/* .getKey */ .i)(editor.o.direction, currentBox);
33541
33609
  return (!currentBox.style[arrow] ||
33542
33610
  parseInt(currentBox.style[arrow], 10) <= 0);
33543
33611
  }
@@ -33546,7 +33614,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.out
33546
33614
  },
33547
33615
  tooltip: 'Decrease Indent'
33548
33616
  };
33549
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.indentMargin = 10;
33617
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.indentMargin = 10;
33550
33618
 
33551
33619
 
33552
33620
  /***/ }),
@@ -33807,12 +33875,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
33807
33875
 
33808
33876
  "use strict";
33809
33877
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
33810
- /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73625);
33811
- /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69247);
33812
- /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84516);
33813
- /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(79073);
33878
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
33879
+ /* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73625);
33880
+ /* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69247);
33881
+ /* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84516);
33882
+ /* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79073);
33814
33883
  /* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(3301);
33815
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
33816
33884
  /* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(48537);
33817
33885
  /* 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__);
33818
33886
  /* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1629);
@@ -33846,10 +33914,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
33846
33914
 
33847
33915
 
33848
33916
 
33849
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInline = true;
33850
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
33851
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
33852
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
33917
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInline = true;
33918
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineForSelection = false;
33919
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisableFor = [];
33920
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.toolbarInlineDisabledButtons = ['source'];
33853
33921
  jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_6___default()))
33854
33922
  .set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_7___default()))
33855
33923
  .set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_8___default()))
@@ -33857,14 +33925,14 @@ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('addcolumn', (
33857
33925
  .set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_9___default()))
33858
33926
  .set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_10___default()))
33859
33927
  .set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_12___default()));
33860
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.popup = {
33861
- a: _items_a__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,
33862
- img: _items_img__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33863
- cells: _items_cells__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
33928
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.popup = {
33929
+ a: _items_a__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
33930
+ img: _items_img__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,
33931
+ cells: _items_cells__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33864
33932
  toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A,
33865
- jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33866
- iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33867
- 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
33933
+ jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33934
+ iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33935
+ 'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,
33868
33936
  selection: [
33869
33937
  'bold',
33870
33938
  'underline',
@@ -34476,12 +34544,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
34476
34544
  /* unused harmony export justify */
34477
34545
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
34478
34546
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
34479
- /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26071);
34480
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4401);
34481
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
34482
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77795);
34483
- /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_4__);
34547
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
34548
+ /* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26071);
34549
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4401);
34550
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
34484
34551
  /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
34552
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77795);
34553
+ /* harmony import */ var _justify_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_justify_svg__WEBPACK_IMPORTED_MODULE_6__);
34485
34554
  /*!
34486
34555
  * Jodit Editor (https://xdsoft.net/jodit/)
34487
34556
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -34494,7 +34563,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inlin
34494
34563
 
34495
34564
 
34496
34565
 
34497
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_4___default()));
34566
+
34567
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('justify', (_justify_svg__WEBPACK_IMPORTED_MODULE_6___default()));
34498
34568
  jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.align = {
34499
34569
  name: 'left',
34500
34570
  tooltip: 'Align',
@@ -34503,22 +34573,25 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
34503
34573
  if (current) {
34504
34574
  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) ||
34505
34575
  editor.editor;
34506
- let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString();
34576
+ let currentValue = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString();
34507
34577
  if (control.defaultValue &&
34508
34578
  control.defaultValue.indexOf(currentValue) !== -1) {
34509
34579
  currentValue = 'left';
34510
34580
  }
34511
- if (control.data &&
34512
- control.data.currentValue !== currentValue &&
34513
- control.list &&
34514
- control.list[currentValue]) {
34581
+ const { list, data } = control;
34582
+ if (data &&
34583
+ data.currentValue !== currentValue &&
34584
+ list &&
34585
+ ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(list)
34586
+ ? list[currentValue]
34587
+ : list.includes(currentValue))) {
34515
34588
  if (editor.o.textIcons || control.component === 'select') {
34516
34589
  button.state.text = currentValue;
34517
34590
  }
34518
34591
  else {
34519
34592
  button.state.icon.name = currentValue;
34520
34593
  }
34521
- control.data.currentValue = currentValue;
34594
+ data.currentValue = currentValue;
34522
34595
  }
34523
34596
  }
34524
34597
  },
@@ -34529,7 +34602,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.ali
34529
34602
  }
34530
34603
  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) ||
34531
34604
  editor.editor;
34532
- return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
34605
+ return (btn.control.defaultValue.indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(currentBox, 'text-align').toString()) === -1);
34533
34606
  },
34534
34607
  defaultValue: ['left', 'start', 'inherit'],
34535
34608
  data: {
@@ -34583,7 +34656,7 @@ function justify(editor) {
34583
34656
  if (!currentBox) {
34584
34657
  currentBox = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrapInline(current, editor.o.enterBlock, editor);
34585
34658
  }
34586
- (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_2__/* .alignElement */ .Op)(command, currentBox);
34659
+ (0,jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_3__/* .alignElement */ .Op)(command, currentBox);
34587
34660
  });
34588
34661
  return false;
34589
34662
  };
@@ -34795,9 +34868,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
34795
34868
  "use strict";
34796
34869
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9596);
34797
34870
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
34798
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19615);
34799
- /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_2__);
34800
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
34871
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
34872
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19615);
34873
+ /* harmony import */ var _line_height_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_line_height_svg__WEBPACK_IMPORTED_MODULE_3__);
34801
34874
  /*!
34802
34875
  * Jodit Editor (https://xdsoft.net/jodit/)
34803
34876
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -34807,9 +34880,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('limit
34807
34880
 
34808
34881
 
34809
34882
 
34810
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultLineHeight = null;
34811
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_2___default()));
34812
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.lineHeight = {
34883
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.defaultLineHeight = null;
34884
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('line-height', (_line_height_svg__WEBPACK_IMPORTED_MODULE_3___default()));
34885
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.lineHeight = {
34813
34886
  command: 'applyLineHeight',
34814
34887
  tags: ['ol'],
34815
34888
  tooltip: 'Line height',
@@ -35374,12 +35447,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
35374
35447
  "use strict";
35375
35448
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
35376
35449
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
35377
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67576);
35378
- /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_2__);
35379
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(73501);
35380
- /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_3__);
35381
- /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17660);
35382
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
35450
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
35451
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67576);
35452
+ /* harmony import */ var _icons_link_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_link_svg__WEBPACK_IMPORTED_MODULE_3__);
35453
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73501);
35454
+ /* harmony import */ var _icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_unlink_svg__WEBPACK_IMPORTED_MODULE_4__);
35455
+ /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17660);
35383
35456
  /*!
35384
35457
  * Jodit Editor (https://xdsoft.net/jodit/)
35385
35458
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35391,8 +35464,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('lineH
35391
35464
 
35392
35465
 
35393
35466
 
35394
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
35395
- formTemplate: _template__WEBPACK_IMPORTED_MODULE_4__/* .formTemplate */ .B,
35467
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.link = {
35468
+ formTemplate: _template__WEBPACK_IMPORTED_MODULE_5__/* .formTemplate */ .B,
35396
35469
  followOnDblClick: false,
35397
35470
  processVideoLink: true,
35398
35471
  processPastedLink: true,
@@ -35404,8 +35477,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.link = {
35404
35477
  selectOptionsClassName: [],
35405
35478
  hotkeys: ['ctrl+k', 'cmd+k']
35406
35479
  };
35407
- 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()));
35408
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unlink = {
35480
+ 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()));
35481
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.unlink = {
35409
35482
  exec: (editor, current) => {
35410
35483
  const anchor = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor);
35411
35484
  if (anchor) {
@@ -35416,7 +35489,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.unl
35416
35489
  },
35417
35490
  tooltip: 'Unlink'
35418
35491
  };
35419
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.link = {
35492
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.link = {
35420
35493
  isActive: (editor) => {
35421
35494
  const current = editor.s.current();
35422
35495
  return Boolean(current && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.closest(current, 'a', editor.editor));
@@ -35574,35 +35647,7 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
35574
35647
  if (link) {
35575
35648
  url_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
35576
35649
  if (modeClassName) {
35577
- switch (modeClassName) {
35578
- case 'input':
35579
- if (className_input) {
35580
- className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35581
- }
35582
- break;
35583
- case 'select':
35584
- if (className_select) {
35585
- for (let i = 0; i < className_select.selectedOptions.length; i++) {
35586
- const option = className_select.options.item(i);
35587
- if (option) {
35588
- option.selected = false;
35589
- }
35590
- }
35591
- const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35592
- classNames.split(' ').forEach(className => {
35593
- if (className) {
35594
- for (let i = 0; i < className_select.options.length; i++) {
35595
- const option = className_select.options.item(i);
35596
- if ((option === null || option === void 0 ? void 0 : option.value) &&
35597
- option.value === className) {
35598
- option.selected = true;
35599
- }
35600
- }
35601
- }
35602
- });
35603
- }
35604
- break;
35605
- }
35650
+ readClassnames(modeClassName, className_input, link, className_select);
35606
35651
  }
35607
35652
  if (openInNewTabCheckbox && target_checkbox) {
35608
35653
  target_checkbox.checked = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
@@ -35663,44 +35708,10 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
35663
35708
  links = [link];
35664
35709
  }
35665
35710
  links.forEach(a => {
35666
- var _a;
35667
35711
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
35668
- if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
35669
- if (modeClassName === 'input') {
35670
- if (className_input.value === '' &&
35671
- a.hasAttribute('class')) {
35672
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
35673
- }
35674
- if (className_input.value !== '') {
35675
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
35676
- }
35677
- }
35678
- else if (modeClassName === 'select') {
35679
- if (a.hasAttribute('class')) {
35680
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
35681
- }
35682
- for (let i = 0; i < className_select.selectedOptions.length; i++) {
35683
- const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
35684
- if (className) {
35685
- a.classList.add(className);
35686
- }
35687
- }
35688
- }
35689
- }
35712
+ writeClasses(modeClassName, className_input, className_select, a);
35690
35713
  if (!isImageContent) {
35691
- let newContent = a.textContent;
35692
- if (content_input.value.trim().length) {
35693
- if (textWasChanged) {
35694
- newContent = content_input.value;
35695
- }
35696
- }
35697
- else {
35698
- newContent = url_input.value;
35699
- }
35700
- const content = a.textContent;
35701
- if (newContent !== content) {
35702
- a.textContent = newContent;
35703
- }
35714
+ writeImage(a, content_input, textWasChanged, url_input);
35704
35715
  }
35705
35716
  if (openInNewTabCheckbox && target_checkbox) {
35706
35717
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
@@ -35745,6 +35756,75 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
35745
35756
  jodit_core_decorators__WEBPACK_IMPORTED_MODULE_0__.autobind
35746
35757
  ], link.prototype, "__generateForm", null);
35747
35758
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('link', link);
35759
+ function writeClasses(modeClassName, className_input, className_select, a) {
35760
+ var _a;
35761
+ if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
35762
+ if (modeClassName === 'input') {
35763
+ if (className_input.value === '' && a.hasAttribute('class')) {
35764
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
35765
+ }
35766
+ if (className_input.value !== '') {
35767
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
35768
+ }
35769
+ }
35770
+ else if (modeClassName === 'select') {
35771
+ if (a.hasAttribute('class')) {
35772
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
35773
+ }
35774
+ for (let i = 0; i < className_select.selectedOptions.length; i++) {
35775
+ const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
35776
+ if (className) {
35777
+ a.classList.add(className);
35778
+ }
35779
+ }
35780
+ }
35781
+ }
35782
+ }
35783
+ function readClassnames(modeClassName, className_input, link, className_select) {
35784
+ switch (modeClassName) {
35785
+ case 'input':
35786
+ if (className_input) {
35787
+ className_input.value = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35788
+ }
35789
+ break;
35790
+ case 'select':
35791
+ if (className_select) {
35792
+ for (let i = 0; i < className_select.selectedOptions.length; i++) {
35793
+ const option = className_select.options.item(i);
35794
+ if (option) {
35795
+ option.selected = false;
35796
+ }
35797
+ }
35798
+ const classNames = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
35799
+ classNames.split(' ').forEach(className => {
35800
+ if (className) {
35801
+ for (let i = 0; i < className_select.options.length; i++) {
35802
+ const option = className_select.options.item(i);
35803
+ if ((option === null || option === void 0 ? void 0 : option.value) && option.value === className) {
35804
+ option.selected = true;
35805
+ }
35806
+ }
35807
+ }
35808
+ });
35809
+ }
35810
+ break;
35811
+ }
35812
+ }
35813
+ function writeImage(a, content_input, textWasChanged, url_input) {
35814
+ let newContent = a.textContent;
35815
+ if (content_input.value.trim().length) {
35816
+ if (textWasChanged) {
35817
+ newContent = content_input.value;
35818
+ }
35819
+ }
35820
+ else {
35821
+ newContent = url_input.value;
35822
+ }
35823
+ const content = a.textContent;
35824
+ if (newContent !== content) {
35825
+ a.textContent = newContent;
35826
+ }
35827
+ }
35748
35828
 
35749
35829
 
35750
35830
  /***/ }),
@@ -35954,9 +36034,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
35954
36034
  "use strict";
35955
36035
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
35956
36036
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
35957
- /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78167);
35958
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78072);
35959
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
36037
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
36038
+ /* harmony import */ var jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78167);
36039
+ /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78072);
35960
36040
  /*!
35961
36041
  * Jodit Editor (https://xdsoft.net/jodit/)
35962
36042
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -35967,9 +36047,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('media
35967
36047
 
35968
36048
 
35969
36049
 
35970
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.mobileTapTimeout = 300;
35971
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.toolbarAdaptive = true;
35972
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD = [
36050
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.mobileTapTimeout = 300;
36051
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.toolbarAdaptive = true;
36052
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsMD = [
35973
36053
  {
35974
36054
  group: 'font-style',
35975
36055
  buttons: []
@@ -36016,7 +36096,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsMD =
36016
36096
  '|',
36017
36097
  'dots'
36018
36098
  ];
36019
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM = [
36099
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsSM = [
36020
36100
  {
36021
36101
  group: 'font-style',
36022
36102
  buttons: []
@@ -36051,7 +36131,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsSM =
36051
36131
  '|',
36052
36132
  'dots'
36053
36133
  ];
36054
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS = [
36134
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.buttonsXS = [
36055
36135
  {
36056
36136
  group: 'font-style',
36057
36137
  buttons: []
@@ -36072,17 +36152,17 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.buttonsXS =
36072
36152
  '---',
36073
36153
  'dots'
36074
36154
  ];
36075
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.dots = {
36155
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.dots = {
36076
36156
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SOURCE + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_WYSIWYG,
36077
36157
  popup: (editor, current, close, button) => {
36078
36158
  let store = button.control.data;
36079
36159
  if (store === undefined) {
36080
36160
  store = {
36081
- toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_3__/* .makeCollection */ .$K)(editor),
36161
+ toolbar: (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_4__/* .makeCollection */ .$K)(editor),
36082
36162
  rebuild: () => {
36083
36163
  var _a, _b;
36084
36164
  if (button) {
36085
- const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_2__/* .ToolbarCollection */ .Q));
36165
+ const buttons = editor.e.fire('getDiffButtons.mobile', button.closest(jodit_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_3__/* .ToolbarCollection */ .Q));
36086
36166
  if (buttons && store) {
36087
36167
  store.toolbar.build((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.splitArray)(buttons));
36088
36168
  const w = ((_b = (_a = editor.toolbar) === null || _a === void 0 ? void 0 : _a.firstButton) === null || _b === void 0 ? void 0 : _b.container.offsetWidth) || 36;
@@ -36191,11 +36271,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('mobil
36191
36271
  "use strict";
36192
36272
  /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49382);
36193
36273
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
36194
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48421);
36195
- /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_2__);
36196
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22791);
36197
- /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_3__);
36198
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
36274
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
36275
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48421);
36276
+ /* harmony import */ var _icons_ol_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ol_svg__WEBPACK_IMPORTED_MODULE_3__);
36277
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22791);
36278
+ /* harmony import */ var _icons_ul_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_ul_svg__WEBPACK_IMPORTED_MODULE_4__);
36199
36279
  /*!
36200
36280
  * Jodit Editor (https://xdsoft.net/jodit/)
36201
36281
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36213,8 +36293,8 @@ const memoExec = (jodit, _, { control }) => {
36213
36293
  (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_0__/* .dataBind */ .m)(jodit, key, value);
36214
36294
  jodit.execCommand(control.command, false, value === 'default' ? null : value);
36215
36295
  };
36216
- 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()));
36217
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul = {
36296
+ 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()));
36297
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ul = {
36218
36298
  command: 'insertUnorderedList',
36219
36299
  tags: ['ul'],
36220
36300
  tooltip: 'Insert Unordered List',
@@ -36226,7 +36306,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ul
36226
36306
  },
36227
36307
  exec: memoExec
36228
36308
  };
36229
- jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.ol = {
36309
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.ol = {
36230
36310
  command: 'insertOrderedList',
36231
36311
  tags: ['ol'],
36232
36312
  tooltip: 'Insert Ordered List',
@@ -36604,8 +36684,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
36604
36684
  "use strict";
36605
36685
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
36606
36686
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
36607
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48954);
36608
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
36687
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
36688
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48954);
36609
36689
  /*!
36610
36690
  * Jodit Editor (https://xdsoft.net/jodit/)
36611
36691
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36615,19 +36695,19 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('paste
36615
36695
 
36616
36696
 
36617
36697
 
36618
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.askBeforePasteHTML = true;
36619
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.processPasteHTML = true;
36620
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.scrollToPastedContent = true;
36621
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
36622
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.pasteHTMLActionList = [
36698
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.askBeforePasteHTML = true;
36699
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.processPasteHTML = true;
36700
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.scrollToPastedContent = true;
36701
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteExcludeStripTags = ['br', 'hr'];
36702
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteHTMLActionList = [
36623
36703
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_HTML, text: 'Keep' },
36624
36704
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_AS_TEXT, text: 'Insert as Text' },
36625
36705
  { value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INSERT_ONLY_TEXT, text: 'Insert only Text' }
36626
36706
  ];
36627
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
36628
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.nl2brInPlainText = true;
36707
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.memorizeChoiceWhenPasteFragment = false;
36708
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.nl2brInPlainText = true;
36629
36709
  const psKey = 'pasteStorage';
36630
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.paste = {
36710
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.paste = {
36631
36711
  tooltip: 'Paste from clipboard',
36632
36712
  exec(editor_1, _1, _a) {
36633
36713
  return (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__awaiter */ .sH)(this, arguments, void 0, function* (editor, _, { control }) {
@@ -36676,7 +36756,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.pas
36676
36756
  !error && editor.e.fire('afterPaste');
36677
36757
  }
36678
36758
  else if (text.length) {
36679
- (0,_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pasteInsertHtml */ .sX)(null, editor, text);
36759
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_2__/* .pasteInsertHtml */ .sX)(null, editor, text);
36680
36760
  editor.e.fire('afterPaste');
36681
36761
  }
36682
36762
  else {
@@ -37405,10 +37485,10 @@ function generateCriticalCSS(jodit) {
37405
37485
  /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54614);
37406
37486
  /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85769);
37407
37487
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
37408
- /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(86134);
37409
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(26899);
37410
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_6__);
37411
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91288);
37488
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
37489
+ /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(86134);
37490
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26899);
37491
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
37412
37492
  /*!
37413
37493
  * Jodit Editor (https://xdsoft.net/jodit/)
37414
37494
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37423,8 +37503,8 @@ function generateCriticalCSS(jodit) {
37423
37503
 
37424
37504
 
37425
37505
 
37426
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_6___default()));
37427
- jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.print = {
37506
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
37507
+ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
37428
37508
  exec: (editor) => {
37429
37509
  const iframe = editor.create.element('iframe');
37430
37510
  Object.assign(iframe.style, {
@@ -37435,7 +37515,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
37435
37515
  height: 0,
37436
37516
  border: 0
37437
37517
  });
37438
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T).appendChild(iframe);
37518
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
37439
37519
  const afterFinishPrint = () => {
37440
37520
  editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
37441
37521
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
@@ -37453,7 +37533,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__/* .Config */ .T.prototype.controls.pri
37453
37533
  myWindow.document.write('<!doctype html><html lang="' +
37454
37534
  (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
37455
37535
  '"><head><title></title></head><style>' +
37456
- (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_5__/* .generateCriticalCSS */ .Y)(editor) +
37536
+ (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
37457
37537
  '</style><body></body></html>');
37458
37538
  myWindow.document.close();
37459
37539
  (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
@@ -37491,11 +37571,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
37491
37571
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
37492
37572
  /* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67141);
37493
37573
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
37494
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37629);
37495
- /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_4__);
37496
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42687);
37497
- /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_5__);
37498
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
37574
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
37575
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37629);
37576
+ /* harmony import */ var _icons_redo_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_redo_svg__WEBPACK_IMPORTED_MODULE_5__);
37577
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42687);
37578
+ /* harmony import */ var _icons_undo_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_undo_svg__WEBPACK_IMPORTED_MODULE_6__);
37499
37579
  /*!
37500
37580
  * Jodit Editor (https://xdsoft.net/jodit/)
37501
37581
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37508,13 +37588,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('print
37508
37588
 
37509
37589
 
37510
37590
 
37511
- 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()));
37512
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.redo = {
37591
+ 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()));
37592
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.redo = {
37513
37593
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
37514
37594
  isDisabled: (editor) => !editor.history.canRedo(),
37515
37595
  tooltip: 'Redo'
37516
37596
  };
37517
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.undo = {
37597
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.undo = {
37518
37598
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
37519
37599
  isDisabled: (editor) => !editor.history.canUndo(),
37520
37600
  tooltip: 'Undo'
@@ -38533,9 +38613,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
38533
38613
 
38534
38614
  "use strict";
38535
38615
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
38536
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98973);
38537
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_1__);
38538
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
38616
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
38617
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98973);
38618
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
38539
38619
  /*!
38540
38620
  * Jodit Editor (https://xdsoft.net/jodit/)
38541
38621
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38545,14 +38625,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
38545
38625
 
38546
38626
 
38547
38627
 
38548
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
38549
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
38628
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
38629
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
38550
38630
  lazyIdleTimeout: 0,
38551
38631
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38552
38632
  useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
38553
38633
  };
38554
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_1___default()));
38555
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
38634
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
38635
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
38556
38636
  tooltip: 'Find',
38557
38637
  icon: 'search',
38558
38638
  exec(jodit, _, { control }) {
@@ -38593,7 +38673,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.fin
38593
38673
  /* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
38594
38674
  /* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
38595
38675
  /* harmony export */ });
38596
- /* unused harmony export isSelectionWrapper */
38597
38676
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
38598
38677
  /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52989);
38599
38678
  /*!
@@ -38615,60 +38694,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
38615
38694
  rng.endContainer.nodeValue == null) {
38616
38695
  return;
38617
38696
  }
38618
- if (jodit.o.search.useCustomHighlightAPI &&
38619
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38620
- typeof window.Highlight !== 'undefined') {
38621
- const ranges = [rng, ...restRanges].map(rng => {
38622
- const range = jodit.selection.createRange();
38623
- range.setStart(rng.startContainer, rng.startOffset);
38624
- range.setEnd(rng.endContainer, rng.endOffset);
38625
- return range;
38626
- });
38627
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38628
- const searchHighlight = new Highlight(...ranges);
38629
- // @ts-ignore
38630
- CSS.highlights.clear();
38631
- // @ts-ignore
38632
- CSS.highlights.set('jodit-search-result', searchHighlight);
38633
- restRanges.length = 0;
38697
+ if (checkNativeSelectionMethod(jodit, rng, restRanges)) {
38634
38698
  return;
38635
38699
  }
38636
38700
  const span = ci.element('span', {
38637
38701
  [TMP_ATTR]: true
38638
38702
  });
38639
38703
  jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
38640
- const startText = rng.startContainer.nodeValue;
38641
- let diff = 0;
38642
- if (rng.startOffset !== 0) {
38643
- const text = ci.text(startText.substring(0, rng.startOffset));
38644
- rng.startContainer.nodeValue = startText.substring(rng.startOffset);
38645
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
38646
- if (rng.startContainer === rng.endContainer) {
38647
- diff = rng.startOffset;
38648
- rng.endOffset -= diff;
38649
- }
38650
- rng.startOffset = 0;
38651
- }
38652
- const endText = rng.endContainer.nodeValue;
38653
- if (rng.endOffset !== endText.length) {
38654
- const text = ci.text(endText.substring(rng.endOffset));
38655
- rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
38656
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
38657
- for (const range of restRanges) {
38658
- if (range.startContainer === rng.endContainer) {
38659
- range.startContainer = text;
38660
- range.startOffset = range.startOffset - rng.endOffset - diff;
38661
- if (range.endContainer === rng.endContainer) {
38662
- range.endContainer = text;
38663
- range.endOffset = range.endOffset - rng.endOffset - diff;
38664
- }
38665
- }
38666
- else {
38667
- break;
38668
- }
38669
- }
38670
- rng.endOffset = rng.endContainer.nodeValue.length;
38671
- }
38704
+ normalizeRanges(rng, restRanges, ci);
38672
38705
  let next = rng.startContainer;
38673
38706
  do {
38674
38707
  if (!next) {
@@ -38714,6 +38747,61 @@ function clearSelectionWrappersFromHTML(root) {
38714
38747
  function isSelectionWrapper(node) {
38715
38748
  return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
38716
38749
  }
38750
+ function checkNativeSelectionMethod(jodit, rng, restRanges) {
38751
+ if (jodit.o.search.useCustomHighlightAPI &&
38752
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38753
+ typeof window.Highlight !== 'undefined') {
38754
+ const ranges = [rng, ...restRanges].map(rng => {
38755
+ const range = jodit.selection.createRange();
38756
+ range.setStart(rng.startContainer, rng.startOffset);
38757
+ range.setEnd(rng.endContainer, rng.endOffset);
38758
+ return range;
38759
+ });
38760
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38761
+ const searchHighlight = new Highlight(...ranges);
38762
+ // @ts-ignore
38763
+ CSS.highlights.clear();
38764
+ // @ts-ignore
38765
+ CSS.highlights.set('jodit-search-result', searchHighlight);
38766
+ restRanges.length = 0;
38767
+ return true;
38768
+ }
38769
+ return false;
38770
+ }
38771
+ function normalizeRanges(rng, restRanges, ci) {
38772
+ const startText = rng.startContainer.nodeValue;
38773
+ let diff = 0;
38774
+ if (rng.startOffset !== 0) {
38775
+ const text = ci.text(startText.substring(0, rng.startOffset));
38776
+ rng.startContainer.nodeValue = startText.substring(rng.startOffset);
38777
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
38778
+ if (rng.startContainer === rng.endContainer) {
38779
+ diff = rng.startOffset;
38780
+ rng.endOffset -= diff;
38781
+ }
38782
+ rng.startOffset = 0;
38783
+ }
38784
+ const endText = rng.endContainer.nodeValue;
38785
+ if (rng.endOffset !== endText.length) {
38786
+ const text = ci.text(endText.substring(rng.endOffset));
38787
+ rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
38788
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
38789
+ for (const range of restRanges) {
38790
+ if (range.startContainer === rng.endContainer) {
38791
+ range.startContainer = text;
38792
+ range.startOffset = range.startOffset - rng.endOffset - diff;
38793
+ if (range.endContainer === rng.endContainer) {
38794
+ range.endContainer = text;
38795
+ range.endOffset = range.endOffset - rng.endOffset - diff;
38796
+ }
38797
+ }
38798
+ else {
38799
+ break;
38800
+ }
38801
+ }
38802
+ rng.endOffset = rng.endContainer.nodeValue.length;
38803
+ }
38804
+ }
38717
38805
 
38718
38806
 
38719
38807
  /***/ }),
@@ -40176,9 +40264,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
40176
40264
  "use strict";
40177
40265
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
40178
40266
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
40179
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58671);
40180
- /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_2__);
40181
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
40267
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
40268
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58671);
40269
+ /* harmony import */ var _source_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_source_svg__WEBPACK_IMPORTED_MODULE_3__);
40182
40270
  /*!
40183
40271
  * Jodit Editor (https://xdsoft.net/jodit/)
40184
40272
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -40188,9 +40276,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('size'
40188
40276
 
40189
40277
 
40190
40278
 
40191
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
40192
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor = 'ace';
40193
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
40279
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTML = !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_IE;
40280
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditor = 'ace';
40281
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorNativeOptions = {
40194
40282
  /**
40195
40283
  * Show gutter
40196
40284
  */
@@ -40212,15 +40300,15 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditor
40212
40300
  */
40213
40301
  highlightActiveLine: true
40214
40302
  };
40215
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
40303
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.sourceEditorCDNUrlsJS = [
40216
40304
  'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js'
40217
40305
  ];
40218
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
40306
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.beautifyHTMLCDNUrlsJS = [
40219
40307
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js',
40220
40308
  'https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js'
40221
40309
  ];
40222
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_2___default()));
40223
- jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.source = {
40310
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('source', (_source_svg__WEBPACK_IMPORTED_MODULE_3___default()));
40311
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.source = {
40224
40312
  mode: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MODE_SPLIT,
40225
40313
  exec: (editor) => {
40226
40314
  editor.toggleMode();
@@ -41030,9 +41118,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
41030
41118
 
41031
41119
  "use strict";
41032
41120
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
41033
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80709);
41034
- /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1__);
41035
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
41121
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
41122
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80709);
41123
+ /* harmony import */ var _spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2__);
41036
41124
  /*!
41037
41125
  * Jodit Editor (https://xdsoft.net/jodit/)
41038
41126
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -41041,13 +41129,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('sourc
41041
41129
 
41042
41130
 
41043
41131
 
41044
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.spellcheck = false;
41045
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()));
41046
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.spellcheck = {
41132
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.spellcheck = false;
41133
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('spellcheck', (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()));
41134
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.spellcheck = {
41047
41135
  isActive(e) {
41048
41136
  return e.o.spellcheck;
41049
41137
  },
41050
- icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_1___default()),
41138
+ icon: (_spellcheck_svg__WEBPACK_IMPORTED_MODULE_2___default()),
41051
41139
  name: 'spellcheck',
41052
41140
  command: 'toggleSpellcheck',
41053
41141
  tooltip: 'Spellcheck'
@@ -41822,9 +41910,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
41822
41910
 
41823
41911
  "use strict";
41824
41912
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
41825
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3283);
41826
- /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_1__);
41827
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
41913
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
41914
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3283);
41915
+ /* harmony import */ var _symbols_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_symbols_svg__WEBPACK_IMPORTED_MODULE_2__);
41828
41916
  /*!
41829
41917
  * Jodit Editor (https://xdsoft.net/jodit/)
41830
41918
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -41833,8 +41921,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('stick
41833
41921
 
41834
41922
 
41835
41923
 
41836
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
41837
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialCharacters = [
41924
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.usePopupForSpecialCharacters = false;
41925
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.specialCharacters = [
41838
41926
  '!',
41839
41927
  '&quot;',
41840
41928
  '#',
@@ -42046,8 +42134,8 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.specialChara
42046
42134
  '&diams;',
42047
42135
  '&asymp;'
42048
42136
  ];
42049
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_1___default()));
42050
- jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.symbols = {
42137
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('symbols', (_symbols_svg__WEBPACK_IMPORTED_MODULE_2___default()));
42138
+ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.symbols = {
42051
42139
  hotkeys: ['ctrl+shift+i', 'cmd+shift+i'],
42052
42140
  tooltip: 'Insert Special Character',
42053
42141
  popup: (editor, current, close) => {
@@ -42929,38 +43017,10 @@ function tableKeyboardNavigation(editor) {
42929
43017
  .off('.tableKeyboardNavigation')
42930
43018
  .on('keydown.tableKeyboardNavigation', (event) => {
42931
43019
  const { key } = event;
42932
- if (!WORK_KEYS.has(key)) {
42933
- return;
42934
- }
42935
- const current = editor.s.current();
42936
- if (!current) {
42937
- return;
42938
- }
42939
- 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);
43020
+ const cell = findCell(editor, key);
42940
43021
  if (!cell) {
42941
43022
  return;
42942
43023
  }
42943
- const { range } = editor.s;
42944
- if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
42945
- const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
42946
- 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
42947
- ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
42948
- : Boolean(elm), cell);
42949
- if ((!isNextDirection &&
42950
- (hasNext ||
42951
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
42952
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42953
- range.startOffset !== 0))) ||
42954
- (isNextDirection &&
42955
- (hasNext ||
42956
- (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
42957
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
42958
- current.nodeValue &&
42959
- range.startOffset !==
42960
- current.nodeValue.length)))) {
42961
- return;
42962
- }
42963
- }
42964
43024
  const tableModule = editor.getInstance(jodit_modules_table_table__WEBPACK_IMPORTED_MODULE_4__/* .Table */ .X, editor.o);
42965
43025
  const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(cell, 'table', editor.editor);
42966
43026
  let next = null;
@@ -43018,6 +43078,40 @@ function tableKeyboardNavigation(editor) {
43018
43078
  });
43019
43079
  }
43020
43080
  jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('tableKeyboardNavigation', tableKeyboardNavigation);
43081
+ function findCell(editor, key) {
43082
+ if (!WORK_KEYS.has(key)) {
43083
+ return;
43084
+ }
43085
+ const current = editor.s.current();
43086
+ if (!current) {
43087
+ return;
43088
+ }
43089
+ 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);
43090
+ if (!cell) {
43091
+ return;
43092
+ }
43093
+ const { range } = editor.s;
43094
+ if (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && current !== cell) {
43095
+ const isNextDirection = key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN;
43096
+ 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
43097
+ ? jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'br')
43098
+ : Boolean(elm), cell);
43099
+ if ((!isNextDirection &&
43100
+ (hasNext ||
43101
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP &&
43102
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
43103
+ range.startOffset !== 0))) ||
43104
+ (isNextDirection &&
43105
+ (hasNext ||
43106
+ (key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN &&
43107
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(current) &&
43108
+ current.nodeValue &&
43109
+ range.startOffset !== current.nodeValue.length)))) {
43110
+ return;
43111
+ }
43112
+ }
43113
+ return cell;
43114
+ }
43021
43115
 
43022
43116
 
43023
43117
  /***/ }),
@@ -43030,9 +43124,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
43030
43124
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
43031
43125
  /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
43032
43126
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
43033
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35863);
43034
- /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_4__);
43035
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
43127
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
43128
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35863);
43129
+ /* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_table_svg__WEBPACK_IMPORTED_MODULE_5__);
43036
43130
  /*!
43037
43131
  * Jodit Editor (https://xdsoft.net/jodit/)
43038
43132
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -43044,12 +43138,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('table
43044
43138
 
43045
43139
 
43046
43140
 
43047
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.table = {
43141
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.table = {
43048
43142
  selectionCellStyle: 'border: 1px double #1e88e5 !important;',
43049
43143
  useExtraClassesOptions: false
43050
43144
  };
43051
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_4___default()));
43052
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.table = {
43145
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('table', (_table_svg__WEBPACK_IMPORTED_MODULE_5___default()));
43146
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.table = {
43053
43147
  data: {
43054
43148
  cols: 10,
43055
43149
  rows: 10,
@@ -43216,10 +43310,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
43216
43310
  /* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64962);
43217
43311
  /* harmony import */ var jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18716);
43218
43312
  /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80004);
43219
- /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21391);
43220
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(46035);
43221
- /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_5__);
43222
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
43313
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
43314
+ /* harmony import */ var jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21391);
43315
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46035);
43316
+ /* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_video_svg__WEBPACK_IMPORTED_MODULE_6__);
43223
43317
  /*!
43224
43318
  * Jodit Editor (https://xdsoft.net/jodit/)
43225
43319
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -43232,8 +43326,8 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
43232
43326
 
43233
43327
 
43234
43328
 
43235
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_5___default()));
43236
- jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.video = {
43329
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
43330
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
43237
43331
  popup: (editor, current, close) => {
43238
43332
  const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
43239
43333
  new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
@@ -43280,7 +43374,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.vid
43280
43374
  formCode.onSubmit(data => {
43281
43375
  insertCode(data.code);
43282
43376
  });
43283
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_4__/* .TabsWidget */ .Zg)(editor, tabs);
43377
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
43284
43378
  },
43285
43379
  tags: ['iframe'],
43286
43380
  tooltip: 'Insert youtube/vimeo video'
@@ -43915,9 +44009,9 @@ __webpack_require__.r(__webpack_exports__);
43915
44009
  /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9596);
43916
44010
  /* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65564);
43917
44011
  /* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(34138);
43918
- /* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75700);
43919
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(56418);
43920
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91288);
44012
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
44013
+ /* harmony import */ var _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75700);
44014
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56418);
43921
44015
  /* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25511);
43922
44016
  /*!
43923
44017
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
@@ -43935,7 +44029,7 @@ __webpack_require__.r(__webpack_exports__);
43935
44029
 
43936
44030
 
43937
44031
 
43938
- jodit_config__WEBPACK_IMPORTED_MODULE_8__/* .Config */ .T.prototype.autocomplete = {
44032
+ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.autocomplete = {
43939
44033
  sources: [],
43940
44034
  maxItems: 50,
43941
44035
  isMatchedQuery: (query, value) => value.toLowerCase().indexOf(query.toLowerCase()) === 0,
@@ -43953,7 +44047,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
43953
44047
  afterInit(jodit) {
43954
44048
  this.popup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_5__/* .Popup */ .z(jodit);
43955
44049
  this.popup.setMod('padding', false);
43956
- this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_6__/* .Autocomplete */ .j(jodit);
44050
+ this.list = new _ui_autocomplete__WEBPACK_IMPORTED_MODULE_7__/* .Autocomplete */ .j(jodit);
43957
44051
  this.popup.setContent(this.list.container);
43958
44052
  jodit.e
43959
44053
  .on('select.autocomplete', (item) => {
@@ -43964,7 +44058,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
43964
44058
  if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isNode(insertValue)) {
43965
44059
  insertValue = jodit.createInside.fromHTML(insertValue);
43966
44060
  }
43967
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
44061
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .replaceTextLeftOfCursorAfterSpace */ .s)(jodit.s.range, insertValue);
43968
44062
  this.j.s.setCursorAfter(insertValue);
43969
44063
  this.j.synchronizeValues();
43970
44064
  this.popup.close();
@@ -44002,7 +44096,7 @@ class autocomplete extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plu
44002
44096
  const range = ((_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.rangeCount)
44003
44097
  ? (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.getRangeAt(0)
44004
44098
  : null;
44005
- const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
44099
+ const query = range && (0,_helpers__WEBPACK_IMPORTED_MODULE_8__/* .getTextLeftOfCursor */ .I)(range).split(' ').pop();
44006
44100
  if (query && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(query).length) {
44007
44101
  const result = yield this.onAutoComplete(query);
44008
44102
  if (result.length) {