jodit-pro 4.2.24 → 4.2.31

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 (353) hide show
  1. package/.nvmrc +1 -1
  2. package/es2015/889.fat.min.js +10 -0
  3. package/es2015/889.js +58 -0
  4. package/es2015/889.min.js +10 -0
  5. package/es2015/jodit.css +11 -1
  6. package/es2015/jodit.fat.min.css +1 -1
  7. package/es2015/jodit.fat.min.js +2 -2
  8. package/es2015/jodit.js +474 -246
  9. package/es2015/jodit.min.css +1 -1
  10. package/es2015/jodit.min.js +2 -2
  11. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  12. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  13. package/es2015/plugins/backup/backup.css +1 -1
  14. package/es2015/plugins/backup/backup.js +1 -1
  15. package/es2015/plugins/backup/backup.min.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.css +1 -1
  17. package/es2015/plugins/button-generator/button-generator.js +1 -1
  18. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  19. package/es2015/plugins/change-case/change-case.js +1 -1
  20. package/es2015/plugins/change-case/change-case.min.js +1 -1
  21. package/es2015/plugins/color-picker/color-picker.css +1 -1
  22. package/es2015/plugins/color-picker/color-picker.js +1 -1
  23. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  24. package/es2015/plugins/emoji/emoji.css +1 -1
  25. package/es2015/plugins/emoji/emoji.js +1 -1
  26. package/es2015/plugins/emoji/emoji.min.js +1 -1
  27. package/es2015/plugins/export-docs/export-docs.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  29. package/es2015/plugins/finder/finder.css +1 -1
  30. package/es2015/plugins/finder/finder.js +2 -56
  31. package/es2015/plugins/finder/finder.min.js +2 -2
  32. package/es2015/plugins/google-maps/google-maps.css +1 -1
  33. package/es2015/plugins/google-maps/google-maps.js +7 -3
  34. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  35. package/es2015/plugins/google-search/google-search.js +1 -1
  36. package/es2015/plugins/google-search/google-search.min.js +1 -1
  37. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  39. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  42. package/es2015/plugins/keyboard/keyboard.css +1 -1
  43. package/es2015/plugins/keyboard/keyboard.js +1 -1
  44. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  45. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  46. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  47. package/es2015/plugins/page-break/page-break.js +1 -1
  48. package/es2015/plugins/page-break/page-break.min.js +1 -1
  49. package/es2015/plugins/paste-code/paste-code.css +1 -1
  50. package/es2015/plugins/paste-code/paste-code.js +47 -43
  51. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  52. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  53. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  54. package/es2015/plugins/show-blocks/show-blocks.js +77 -39
  55. package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
  56. package/es2015/plugins/todo-list/todo-list.css +1 -1
  57. package/es2015/plugins/todo-list/todo-list.js +1 -1
  58. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  59. package/es2015/plugins/translate/translate.css +1 -1
  60. package/es2015/plugins/translate/translate.js +18 -18
  61. package/es2015/plugins/translate/translate.min.js +1 -1
  62. package/es2015/plugins/tune-block/tune-block.css +1 -1
  63. package/es2015/plugins/tune-block/tune-block.js +1 -1
  64. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  65. package/es2018/889.fat.min.js +10 -0
  66. package/es2018/889.js +58 -0
  67. package/es2018/889.min.js +10 -0
  68. package/es2018/jodit.css +11 -1
  69. package/es2018/jodit.fat.min.css +1 -1
  70. package/es2018/jodit.fat.min.js +2 -2
  71. package/es2018/jodit.js +467 -239
  72. package/es2018/jodit.min.css +1 -1
  73. package/es2018/jodit.min.js +2 -2
  74. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  75. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  76. package/es2018/plugins/backup/backup.css +1 -1
  77. package/es2018/plugins/backup/backup.js +1 -1
  78. package/es2018/plugins/backup/backup.min.js +1 -1
  79. package/es2018/plugins/button-generator/button-generator.css +1 -1
  80. package/es2018/plugins/button-generator/button-generator.js +1 -1
  81. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  82. package/es2018/plugins/change-case/change-case.js +1 -1
  83. package/es2018/plugins/change-case/change-case.min.js +1 -1
  84. package/es2018/plugins/color-picker/color-picker.css +1 -1
  85. package/es2018/plugins/color-picker/color-picker.js +1 -1
  86. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  87. package/es2018/plugins/emoji/emoji.css +1 -1
  88. package/es2018/plugins/emoji/emoji.js +1 -1
  89. package/es2018/plugins/emoji/emoji.min.js +1 -1
  90. package/es2018/plugins/export-docs/export-docs.js +1 -1
  91. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  92. package/es2018/plugins/finder/finder.css +1 -1
  93. package/es2018/plugins/finder/finder.js +2 -56
  94. package/es2018/plugins/finder/finder.min.js +2 -2
  95. package/es2018/plugins/google-maps/google-maps.css +1 -1
  96. package/es2018/plugins/google-maps/google-maps.js +7 -3
  97. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  98. package/es2018/plugins/google-search/google-search.js +1 -1
  99. package/es2018/plugins/google-search/google-search.min.js +1 -1
  100. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  101. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  102. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  103. package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
  104. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  105. package/es2018/plugins/keyboard/keyboard.css +1 -1
  106. package/es2018/plugins/keyboard/keyboard.js +1 -1
  107. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  108. package/es2018/plugins/mobile-view/mobile-view.js +1 -1
  109. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  110. package/es2018/plugins/page-break/page-break.js +1 -1
  111. package/es2018/plugins/page-break/page-break.min.js +1 -1
  112. package/es2018/plugins/paste-code/paste-code.css +1 -1
  113. package/es2018/plugins/paste-code/paste-code.js +40 -36
  114. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  115. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  116. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  117. package/es2018/plugins/show-blocks/show-blocks.js +77 -39
  118. package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
  119. package/es2018/plugins/todo-list/todo-list.css +1 -1
  120. package/es2018/plugins/todo-list/todo-list.js +1 -1
  121. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  122. package/es2018/plugins/translate/translate.css +1 -1
  123. package/es2018/plugins/translate/translate.js +18 -18
  124. package/es2018/plugins/translate/translate.min.js +1 -1
  125. package/es2018/plugins/tune-block/tune-block.css +1 -1
  126. package/es2018/plugins/tune-block/tune-block.js +1 -1
  127. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  128. package/es2021/889.fat.min.js +10 -0
  129. package/es2021/889.js +58 -0
  130. package/es2021/889.min.js +10 -0
  131. package/es2021/jodit.css +11 -1
  132. package/es2021/jodit.fat.min.css +1 -1
  133. package/es2021/jodit.fat.min.js +2 -2
  134. package/es2021/jodit.js +467 -239
  135. package/es2021/jodit.min.css +1 -1
  136. package/es2021/jodit.min.js +2 -2
  137. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  138. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  139. package/es2021/plugins/backup/backup.css +1 -1
  140. package/es2021/plugins/backup/backup.js +1 -1
  141. package/es2021/plugins/backup/backup.min.js +1 -1
  142. package/es2021/plugins/button-generator/button-generator.css +1 -1
  143. package/es2021/plugins/button-generator/button-generator.js +1 -1
  144. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  145. package/es2021/plugins/change-case/change-case.js +1 -1
  146. package/es2021/plugins/change-case/change-case.min.js +1 -1
  147. package/es2021/plugins/color-picker/color-picker.css +1 -1
  148. package/es2021/plugins/color-picker/color-picker.js +1 -1
  149. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  150. package/es2021/plugins/emoji/emoji.css +1 -1
  151. package/es2021/plugins/emoji/emoji.js +1 -1
  152. package/es2021/plugins/emoji/emoji.min.js +1 -1
  153. package/es2021/plugins/export-docs/export-docs.js +1 -1
  154. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  155. package/es2021/plugins/finder/finder.css +1 -1
  156. package/es2021/plugins/finder/finder.js +2 -56
  157. package/es2021/plugins/finder/finder.min.js +2 -2
  158. package/es2021/plugins/google-maps/google-maps.css +1 -1
  159. package/es2021/plugins/google-maps/google-maps.js +7 -3
  160. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  161. package/es2021/plugins/google-search/google-search.js +1 -1
  162. package/es2021/plugins/google-search/google-search.min.js +1 -1
  163. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  164. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  165. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  166. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  167. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  168. package/es2021/plugins/keyboard/keyboard.css +1 -1
  169. package/es2021/plugins/keyboard/keyboard.js +1 -1
  170. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  171. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  172. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  173. package/es2021/plugins/page-break/page-break.js +1 -1
  174. package/es2021/plugins/page-break/page-break.min.js +1 -1
  175. package/es2021/plugins/paste-code/paste-code.css +1 -1
  176. package/es2021/plugins/paste-code/paste-code.js +40 -36
  177. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  178. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  179. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  180. package/es2021/plugins/show-blocks/show-blocks.js +77 -39
  181. package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
  182. package/es2021/plugins/todo-list/todo-list.css +1 -1
  183. package/es2021/plugins/todo-list/todo-list.js +1 -1
  184. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  185. package/es2021/plugins/translate/translate.css +1 -1
  186. package/es2021/plugins/translate/translate.js +18 -18
  187. package/es2021/plugins/translate/translate.min.js +1 -1
  188. package/es2021/plugins/tune-block/tune-block.css +1 -1
  189. package/es2021/plugins/tune-block/tune-block.js +1 -1
  190. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  191. package/es2021.en/889.fat.min.js +10 -0
  192. package/es2021.en/889.js +24 -0
  193. package/es2021.en/889.min.js +10 -0
  194. package/es2021.en/jodit.css +11 -1
  195. package/es2021.en/jodit.fat.min.css +1 -1
  196. package/es2021.en/jodit.fat.min.js +2 -2
  197. package/es2021.en/jodit.js +442 -233
  198. package/es2021.en/jodit.min.css +1 -1
  199. package/es2021.en/jodit.min.js +2 -2
  200. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  201. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  202. package/es2021.en/plugins/backup/backup.css +1 -1
  203. package/es2021.en/plugins/backup/backup.js +1 -1
  204. package/es2021.en/plugins/backup/backup.min.js +1 -1
  205. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  206. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  207. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  208. package/es2021.en/plugins/change-case/change-case.js +1 -1
  209. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  210. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  211. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  212. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  213. package/es2021.en/plugins/emoji/emoji.css +1 -1
  214. package/es2021.en/plugins/emoji/emoji.js +1 -1
  215. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  216. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  217. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  218. package/es2021.en/plugins/finder/finder.css +1 -1
  219. package/es2021.en/plugins/finder/finder.js +2 -21
  220. package/es2021.en/plugins/finder/finder.min.js +2 -2
  221. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  222. package/es2021.en/plugins/google-maps/google-maps.js +7 -3
  223. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  224. package/es2021.en/plugins/google-search/google-search.js +1 -1
  225. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  226. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  227. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  228. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  229. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  230. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  231. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  232. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  233. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  234. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  235. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  236. package/es2021.en/plugins/page-break/page-break.js +1 -1
  237. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  238. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  239. package/es2021.en/plugins/paste-code/paste-code.js +40 -36
  240. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  241. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  242. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  243. package/es2021.en/plugins/show-blocks/show-blocks.js +41 -39
  244. package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
  245. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  246. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  247. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  248. package/es2021.en/plugins/translate/translate.css +1 -1
  249. package/es2021.en/plugins/translate/translate.js +18 -18
  250. package/es2021.en/plugins/translate/translate.min.js +1 -1
  251. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  252. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  253. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  254. package/es5/292.fat.min.js +10 -0
  255. package/es5/292.js +5011 -0
  256. package/es5/292.min.js +10 -0
  257. package/es5/889.fat.min.js +10 -0
  258. package/es5/889.js +58 -0
  259. package/es5/889.min.js +10 -0
  260. package/es5/jodit.css +12 -2
  261. package/es5/jodit.fat.min.css +1 -1
  262. package/es5/jodit.fat.min.js +2 -2
  263. package/es5/jodit.js +765 -5675
  264. package/es5/jodit.min.css +3 -3
  265. package/es5/jodit.min.js +2 -2
  266. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  267. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  268. package/es5/plugins/backup/backup.css +1 -1
  269. package/es5/plugins/backup/backup.js +1 -1
  270. package/es5/plugins/backup/backup.min.js +1 -1
  271. package/es5/plugins/button-generator/button-generator.css +1 -1
  272. package/es5/plugins/button-generator/button-generator.js +1 -1
  273. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  274. package/es5/plugins/change-case/change-case.js +1 -1
  275. package/es5/plugins/change-case/change-case.min.js +1 -1
  276. package/es5/plugins/color-picker/color-picker.css +1 -1
  277. package/es5/plugins/color-picker/color-picker.js +1 -1
  278. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  279. package/es5/plugins/emoji/emoji.css +1 -1
  280. package/es5/plugins/emoji/emoji.js +1 -1
  281. package/es5/plugins/emoji/emoji.min.js +1 -1
  282. package/es5/plugins/export-docs/export-docs.js +1 -1
  283. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  284. package/es5/plugins/finder/finder.css +1 -1
  285. package/es5/plugins/finder/finder.js +2 -56
  286. package/es5/plugins/finder/finder.min.js +2 -2
  287. package/es5/plugins/google-maps/google-maps.css +1 -1
  288. package/es5/plugins/google-maps/google-maps.js +7 -3
  289. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  290. package/es5/plugins/google-search/google-search.js +1 -1
  291. package/es5/plugins/google-search/google-search.min.js +1 -1
  292. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  293. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  294. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  295. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  296. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  297. package/es5/plugins/keyboard/keyboard.css +1 -1
  298. package/es5/plugins/keyboard/keyboard.js +1 -1
  299. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  300. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  301. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  302. package/es5/plugins/page-break/page-break.js +1 -1
  303. package/es5/plugins/page-break/page-break.min.js +1 -1
  304. package/es5/plugins/paste-code/paste-code.css +1 -1
  305. package/es5/plugins/paste-code/paste-code.js +50 -46
  306. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  307. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  308. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  309. package/es5/plugins/show-blocks/show-blocks.js +77 -39
  310. package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
  311. package/es5/plugins/todo-list/todo-list.css +1 -1
  312. package/es5/plugins/todo-list/todo-list.js +1 -1
  313. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  314. package/es5/plugins/translate/translate.css +1 -1
  315. package/es5/plugins/translate/translate.js +24 -24
  316. package/es5/plugins/translate/translate.min.js +1 -1
  317. package/es5/plugins/tune-block/tune-block.css +1 -1
  318. package/es5/plugins/tune-block/tune-block.js +1 -1
  319. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  320. package/esm/plugins/finder/config.js +1 -1
  321. package/esm/plugins/finder/langs/index.d.ts +1 -1
  322. package/esm/plugins/finder/langs/index.js +6 -0
  323. package/esm/plugins/finder/langs/ru.js +6 -0
  324. package/esm/plugins/google-maps/helpers/helpers.d.ts +0 -1
  325. package/esm/plugins/google-maps/ui/map/map.d.ts +0 -1
  326. package/esm/plugins/paste-from-word/element/render.js +1 -1
  327. package/esm/plugins/paste-from-word/element/style.js +1 -1
  328. package/esm/plugins/show-blocks/langs/ar.js +6 -0
  329. package/esm/plugins/show-blocks/langs/cs_cz.js +6 -0
  330. package/esm/plugins/show-blocks/langs/de.js +6 -0
  331. package/esm/plugins/show-blocks/langs/es.js +6 -0
  332. package/esm/plugins/show-blocks/langs/fa.js +6 -0
  333. package/esm/plugins/show-blocks/langs/fr.js +6 -0
  334. package/esm/plugins/show-blocks/langs/he.js +6 -0
  335. package/esm/plugins/show-blocks/langs/hu.js +6 -0
  336. package/esm/plugins/show-blocks/langs/id.js +6 -0
  337. package/esm/plugins/show-blocks/langs/index.d.ts +19 -19
  338. package/esm/plugins/show-blocks/langs/index.js +1 -1
  339. package/esm/plugins/show-blocks/langs/it.js +6 -0
  340. package/esm/plugins/show-blocks/langs/ja.js +6 -0
  341. package/esm/plugins/show-blocks/langs/ko.js +6 -0
  342. package/esm/plugins/show-blocks/langs/nl.js +6 -0
  343. package/esm/plugins/show-blocks/langs/pl.js +6 -0
  344. package/esm/plugins/show-blocks/langs/pt_br.js +6 -0
  345. package/esm/plugins/show-blocks/langs/ru.js +6 -0
  346. package/esm/plugins/show-blocks/langs/tr.js +6 -0
  347. package/esm/plugins/show-blocks/langs/zh_cn.js +6 -0
  348. package/esm/plugins/show-blocks/langs/zh_tw.js +6 -0
  349. package/package.json +1 -1
  350. package/types/plugins/finder/langs/index.d.ts +1 -1
  351. package/types/plugins/google-maps/helpers/helpers.d.ts +0 -1
  352. package/types/plugins/google-maps/ui/map/map.d.ts +0 -1
  353. package/types/plugins/show-blocks/langs/index.d.ts +19 -19
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.24
4
+ * Version: v4.2.31
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -961,16 +961,12 @@ class Config {
961
961
  showPlaceholder: false
962
962
  }
963
963
  };
964
- this.ownerDocument = (typeof document !== 'undefined'
965
- ? document
966
- : null);
964
+ this.ownerDocument = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
967
965
  /**
968
966
  * Allows you to specify the window in which the editor will be created. Default - window
969
967
  * This is necessary if you are creating the editor inside an iframe but the code is running in the parent window
970
968
  */
971
- this.ownerWindow = (typeof window !== 'undefined'
972
- ? window
973
- : null);
969
+ this.ownerWindow = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow;
974
970
  /**
975
971
  * Shadow root if Jodit was created in it
976
972
  *
@@ -1744,16 +1740,16 @@ Config.prototype.controls = {};
1744
1740
  /* harmony export */ j: function() { return /* binding */ Async; }
1745
1741
  /* harmony export */ });
1746
1742
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
1747
- /* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98761);
1743
+ /* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61239);
1748
1744
  /* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54306);
1749
1745
  /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41959);
1750
- /* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72558);
1746
+ /* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72558);
1751
1747
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(47903);
1752
1748
  /* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75138);
1753
1749
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26986);
1754
- /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(74197);
1755
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
1756
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__);
1750
+ /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
1751
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
1752
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
1757
1753
  /* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(30126);
1758
1754
  /*!
1759
1755
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -1803,17 +1799,18 @@ class Async {
1803
1799
  return 0;
1804
1800
  }
1805
1801
  let options = {};
1806
- if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__/* .isVoid */ .R)(timeout)) {
1802
+ if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(timeout)) {
1807
1803
  timeout = 0;
1808
1804
  }
1809
- if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__/* .isNumber */ .E)(timeout)) {
1805
+ if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__/* .isNumber */ .E)(timeout)) {
1810
1806
  options = timeout;
1811
1807
  timeout = options.timeout || 0;
1812
1808
  }
1813
1809
  if (options.label) {
1814
1810
  this.clearLabel(options.label);
1815
1811
  }
1816
- const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .setTimeout */ .w)(callback, timeout, ...args), key = options.label || timer;
1812
+ const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .setTimeout */ .w)(callback, timeout, ...args);
1813
+ const key = options.label || timer;
1817
1814
  this.timers.set(key, timer);
1818
1815
  this.__callbacks.set(key, callback);
1819
1816
  return timer;
@@ -1829,7 +1826,7 @@ class Async {
1829
1826
  }
1830
1827
  clearLabel(label) {
1831
1828
  if (label && this.timers.has(label)) {
1832
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .D)(this.timers.get(label));
1829
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(label));
1833
1830
  this.timers.delete(label);
1834
1831
  this.__callbacks.delete(label);
1835
1832
  }
@@ -1838,7 +1835,7 @@ class Async {
1838
1835
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .K)(timerOrLabel)) {
1839
1836
  return this.clearLabel(timerOrLabel);
1840
1837
  }
1841
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .D)(timerOrLabel);
1838
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timerOrLabel);
1842
1839
  this.timers.delete(timerOrLabel);
1843
1840
  this.__callbacks.delete(timerOrLabel);
1844
1841
  }
@@ -1880,7 +1877,7 @@ class Async {
1880
1877
  if (!timer && firstCallImmediately) {
1881
1878
  callFn(...args);
1882
1879
  }
1883
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .D)(timer);
1880
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timer);
1884
1881
  timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .T)(timeout) ? timeout() : timeout);
1885
1882
  this.timers.set(fn, timer);
1886
1883
  }
@@ -2034,7 +2031,7 @@ class Async {
2034
2031
  clear() {
2035
2032
  this.requestsIdle.forEach(key => this.cancelIdleCallback(key));
2036
2033
  this.requestsRaf.forEach(key => this.cancelAnimationFrame(key));
2037
- this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .D)(this.timers.get(key)));
2034
+ this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(key)));
2038
2035
  this.timers.clear();
2039
2036
  this.promisesRejections.forEach(reject => reject());
2040
2037
  this.promisesRejections.clear();
@@ -2443,6 +2440,8 @@ __webpack_require__.r(__webpack_exports__);
2443
2440
  /* harmony export */ TEXT_PLAIN: function() { return /* binding */ TEXT_PLAIN; },
2444
2441
  /* harmony export */ TEXT_RTF: function() { return /* binding */ TEXT_RTF; },
2445
2442
  /* harmony export */ TOKENS: function() { return /* binding */ TOKENS; },
2443
+ /* harmony export */ globalDocument: function() { return /* binding */ globalDocument; },
2444
+ /* harmony export */ globalWindow: function() { return /* binding */ globalWindow; },
2446
2445
  /* harmony export */ lang: function() { return /* binding */ lang; }
2447
2446
  /* harmony export */ });
2448
2447
  /*!
@@ -2450,7 +2449,7 @@ __webpack_require__.r(__webpack_exports__);
2450
2449
  * Released under MIT see LICENSE.txt in the project root for license information.
2451
2450
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
2452
2451
  */
2453
- const APP_VERSION = "4.2.24";
2452
+ const APP_VERSION = "4.2.31";
2454
2453
  // prettier-ignore
2455
2454
  const ES = "es2015";
2456
2455
  const IS_ES_MODERN = true;
@@ -2469,6 +2468,10 @@ const INVISIBLE_SPACE_REG_EXP_START = () => /^[\uFEFF]+/g;
2469
2468
  const SPACE_REG_EXP = () => /[\s\n\t\r\uFEFF\u200b]+/g;
2470
2469
  const SPACE_REG_EXP_START = () => /^[\s\n\t\r\uFEFF\u200b]+/g;
2471
2470
  const SPACE_REG_EXP_END = () => /[\s\n\t\r\uFEFF\u200b]+$/g;
2471
+ const globalWindow = typeof window !== 'undefined' ? window : undefined;
2472
+ const globalDocument = typeof document !== 'undefined'
2473
+ ? document
2474
+ : undefined;
2472
2475
  const IS_BLOCK = /^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i;
2473
2476
  const IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
2474
2477
  const LIST_TAGS = new Set(['ul', 'ol']);
@@ -2593,8 +2596,8 @@ const INSERT_AS_TEXT = 'insert_as_text';
2593
2596
  */
2594
2597
  const INSERT_ONLY_TEXT = 'insert_only_text';
2595
2598
  const SAFE_COUNT_CHANGE_CALL = 10;
2596
- const IS_MAC = typeof window !== 'undefined' &&
2597
- /Mac|iPod|iPhone|iPad/.test(window.navigator.platform);
2599
+ const IS_MAC = typeof globalWindow !== 'undefined' &&
2600
+ /Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
2598
2601
  const KEY_ALIASES = {
2599
2602
  add: '+',
2600
2603
  break: 'pause',
@@ -2622,7 +2625,7 @@ const BASE_PATH = (() => {
2622
2625
  if (typeof document === 'undefined') {
2623
2626
  return '';
2624
2627
  }
2625
- const script = document.currentScript, removeScriptName = (s) => {
2628
+ const script = globalDocument.currentScript, removeScriptName = (s) => {
2626
2629
  const parts = s.split('/');
2627
2630
  if (/\.js/.test(parts[parts.length - 1])) {
2628
2631
  return parts.slice(0, parts.length - 1).join('/') + '/';
@@ -2632,11 +2635,11 @@ const BASE_PATH = (() => {
2632
2635
  if (script) {
2633
2636
  return removeScriptName(script.src);
2634
2637
  }
2635
- const scripts = document.querySelectorAll('script[src]');
2638
+ const scripts = globalDocument.querySelectorAll('script[src]');
2636
2639
  if (scripts && scripts.length) {
2637
2640
  return removeScriptName(scripts[scripts.length - 1].src);
2638
2641
  }
2639
- return window.location.href;
2642
+ return globalWindow.location.href;
2640
2643
  })();
2641
2644
  const TEMP_ATTR = 'data-jodit-temp';
2642
2645
  const lang = {};
@@ -3384,7 +3387,6 @@ function watch(observeFields, opts) {
3384
3387
  const [objectPath, eventName] = field.split(':');
3385
3388
  let ctx = context;
3386
3389
  if (objectPath.length) {
3387
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3388
3390
  ctx = component.get(objectPath);
3389
3391
  }
3390
3392
  if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__/* .isFunction */ .T)(ctx)) {
@@ -4049,7 +4051,7 @@ class Dom {
4049
4051
  * Move all content to another element
4050
4052
  */
4051
4053
  static moveContent(from, to, inStart = false, filter = () => true) {
4052
- const fragment = (from.ownerDocument || document).createDocumentFragment();
4054
+ const fragment = (from.ownerDocument || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument).createDocumentFragment();
4053
4055
  (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(from.childNodes)
4054
4056
  .filter(elm => {
4055
4057
  if (filter(elm)) {
@@ -4510,7 +4512,7 @@ class EventEmitter {
4510
4512
  passive: true,
4511
4513
  capture: (_a = options === null || options === void 0 ? void 0 : options.capture) !== null && _a !== void 0 ? _a : false
4512
4514
  }
4513
- : (_b = options === null || options === void 0 ? void 0 : options.capture) !== null && _b !== void 0 ? _b : false;
4515
+ : ((_b = options === null || options === void 0 ? void 0 : options.capture) !== null && _b !== void 0 ? _b : false);
4514
4516
  syntheticCallback.options = eOpts;
4515
4517
  subject.addEventListener(event, syntheticCallback, eOpts);
4516
4518
  this.__memoryDOMSubjectToHandler(subject, syntheticCallback);
@@ -4742,7 +4744,7 @@ class EventEmitter {
4742
4744
  this.__domEventsMap = new Map();
4743
4745
  this.__mutedEvents = new Set();
4744
4746
  this.__key = '__JoditEventEmitterNamespaces';
4745
- this.__doc = document;
4747
+ this.__doc = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
4746
4748
  this.__prepareEvent = (e) => {
4747
4749
  if (e.cancelBubble) {
4748
4750
  return;
@@ -5239,9 +5241,19 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
5239
5241
  const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
5240
5242
  if (!data[key]) {
5241
5243
  let c = view.c;
5242
- let body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot
5243
- ? jodit.o.shadowRoot
5244
- : jodit.od.body;
5244
+ let body;
5245
+ if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot) {
5246
+ body = jodit.o.shadowRoot;
5247
+ }
5248
+ else {
5249
+ body = jodit.od.body;
5250
+ if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit)) {
5251
+ const dialog = _dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.closest(jodit.container, 'dialog', jodit.od.body);
5252
+ if (dialog) {
5253
+ body = dialog;
5254
+ }
5255
+ }
5256
+ }
5245
5257
  if (createInsideEditor &&
5246
5258
  (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) &&
5247
5259
  jodit.od !== jodit.ed) {
@@ -5396,7 +5408,7 @@ const toArray = function toArray(...args) {
5396
5408
  var _a;
5397
5409
  const func = (0,jodit_core_helpers_checker_is_native_function__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from)
5398
5410
  ? Array.from
5399
- : (_a = (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from')) !== null && _a !== void 0 ? _a : Array.from;
5411
+ : ((_a = (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from')) !== null && _a !== void 0 ? _a : Array.from);
5400
5412
  return func.apply(Array, args);
5401
5413
  };
5402
5414
 
@@ -5433,6 +5445,7 @@ const toArray = function toArray(...args) {
5433
5445
  /* harmony export */ D: function() { return /* binding */ clearTimeout; },
5434
5446
  /* harmony export */ w: function() { return /* binding */ setTimeout; }
5435
5447
  /* harmony export */ });
5448
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
5436
5449
  /*!
5437
5450
  * Jodit Editor (https://xdsoft.net/jodit/)
5438
5451
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -5441,6 +5454,7 @@ const toArray = function toArray(...args) {
5441
5454
  /**
5442
5455
  * @module helpers/async
5443
5456
  */
5457
+
5444
5458
  /**
5445
5459
  * Create async callback if set timeout value - else call function immediately
5446
5460
  */
@@ -5449,7 +5463,7 @@ function setTimeout(callback, timeout, ...args) {
5449
5463
  callback.call(null, ...args);
5450
5464
  }
5451
5465
  else {
5452
- return window.setTimeout(callback, timeout, ...args);
5466
+ return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.setTimeout(callback, timeout, ...args);
5453
5467
  }
5454
5468
  return 0;
5455
5469
  }
@@ -5457,7 +5471,7 @@ function setTimeout(callback, timeout, ...args) {
5457
5471
  * Clear timeout
5458
5472
  */
5459
5473
  function clearTimeout(timer) {
5460
- window.clearTimeout(timer);
5474
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.clearTimeout(timer);
5461
5475
  }
5462
5476
 
5463
5477
 
@@ -5470,6 +5484,7 @@ function clearTimeout(timer) {
5470
5484
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5471
5485
  /* harmony export */ k: function() { return /* binding */ hasBrowserColorPicker; }
5472
5486
  /* harmony export */ });
5487
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
5473
5488
  /*!
5474
5489
  * Jodit Editor (https://xdsoft.net/jodit/)
5475
5490
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -5478,13 +5493,14 @@ function clearTimeout(timer) {
5478
5493
  /**
5479
5494
  * @module helpers/checker
5480
5495
  */
5496
+
5481
5497
  /**
5482
5498
  * Check if browser has a color picker (a new HTML5 attribute for input tag)
5483
5499
  */
5484
5500
  function hasBrowserColorPicker() {
5485
5501
  let supportsColor = true;
5486
5502
  try {
5487
- const a = document.createElement('input');
5503
+ const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
5488
5504
  a.type = 'color';
5489
5505
  a.value = '!';
5490
5506
  supportsColor = a.type === 'color' && a.value !== '!';
@@ -6134,6 +6150,7 @@ function isStringArray(value) {
6134
6150
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6135
6151
  /* harmony export */ m: function() { return /* binding */ isURL; }
6136
6152
  /* harmony export */ });
6153
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
6137
6154
  /*!
6138
6155
  * Jodit Editor (https://xdsoft.net/jodit/)
6139
6156
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -6142,6 +6159,7 @@ function isStringArray(value) {
6142
6159
  /**
6143
6160
  * @module helpers/checker
6144
6161
  */
6162
+
6145
6163
  /**
6146
6164
  * Check if a string is an url
6147
6165
  */
@@ -6158,7 +6176,7 @@ function isURL(str) {
6158
6176
  return false;
6159
6177
  }
6160
6178
  }
6161
- const a = document.createElement('a');
6179
+ const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
6162
6180
  a.href = str;
6163
6181
  return Boolean(a.hostname);
6164
6182
  }
@@ -6393,9 +6411,9 @@ function applyStyles(html) {
6393
6411
  }
6394
6412
  html = html.substring(html.indexOf('<html '), html.length);
6395
6413
  html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
6396
- const iframe = document.createElement('iframe');
6414
+ const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
6397
6415
  iframe.style.display = 'none';
6398
- document.body.appendChild(iframe);
6416
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
6399
6417
  let convertedString = '', collection = [];
6400
6418
  try {
6401
6419
  const iframeDoc = iframe.contentDocument ||
@@ -6466,9 +6484,10 @@ function applyStyles(html) {
6466
6484
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6467
6485
  /* harmony export */ w: function() { return /* binding */ cleanFromWord; }
6468
6486
  /* harmony export */ });
6469
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
6470
- /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7773);
6471
- /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22718);
6487
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
6488
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
6489
+ /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7773);
6490
+ /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22718);
6472
6491
  /*!
6473
6492
  * Jodit Editor (https://xdsoft.net/jodit/)
6474
6493
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -6480,6 +6499,7 @@ function applyStyles(html) {
6480
6499
 
6481
6500
 
6482
6501
 
6502
+
6483
6503
  /**
6484
6504
  * The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
6485
6505
  * content that matches the look and feel of the site.
@@ -6491,11 +6511,11 @@ function cleanFromWord(html) {
6491
6511
  }
6492
6512
  let convertedString = '';
6493
6513
  try {
6494
- const div = document.createElement('div');
6514
+ const div = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
6495
6515
  div.innerHTML = html;
6496
6516
  const marks = [];
6497
6517
  if (div.firstChild) {
6498
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.each(div, node => {
6518
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.each(div, node => {
6499
6519
  if (!node) {
6500
6520
  return;
6501
6521
  }
@@ -6510,10 +6530,10 @@ function cleanFromWord(html) {
6510
6530
  case 'W:SDT':
6511
6531
  case 'W:SDTPR':
6512
6532
  case 'FONT':
6513
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(node);
6533
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(node);
6514
6534
  break;
6515
6535
  default:
6516
- (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(node.attributes).forEach((attr) => {
6536
+ (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(node.attributes).forEach((attr) => {
6517
6537
  if ([
6518
6538
  'src',
6519
6539
  'href',
@@ -6532,14 +6552,14 @@ function cleanFromWord(html) {
6532
6552
  }
6533
6553
  });
6534
6554
  }
6535
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove.apply(null, marks);
6555
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove.apply(null, marks);
6536
6556
  convertedString = div.innerHTML;
6537
6557
  }
6538
6558
  catch (e) { }
6539
6559
  if (convertedString) {
6540
6560
  html = convertedString;
6541
6561
  }
6542
- html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .Bq).join('\n');
6562
+ html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq).join('\n');
6543
6563
  return html
6544
6564
  .replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
6545
6565
  .replace(/<!--[^>]*>/g, '');
@@ -6555,6 +6575,7 @@ function cleanFromWord(html) {
6555
6575
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6556
6576
  /* harmony export */ G: function() { return /* binding */ htmlspecialchars; }
6557
6577
  /* harmony export */ });
6578
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
6558
6579
  /*!
6559
6580
  * Jodit Editor (https://xdsoft.net/jodit/)
6560
6581
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -6563,11 +6584,12 @@ function cleanFromWord(html) {
6563
6584
  /**
6564
6585
  * @module helpers/html
6565
6586
  */
6587
+
6566
6588
  /**
6567
6589
  * Convert special characters to HTML entities
6568
6590
  */
6569
6591
  function htmlspecialchars(html) {
6570
- const tmp = document.createElement('div');
6592
+ const tmp = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
6571
6593
  tmp.textContent = html;
6572
6594
  return tmp.innerHTML;
6573
6595
  }
@@ -7288,8 +7310,9 @@ const getContentWidth = (element, win) => {
7288
7310
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7289
7311
  /* harmony export */ m: function() { return /* binding */ getScrollParent; }
7290
7312
  /* harmony export */ });
7291
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
7292
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71122);
7313
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
7314
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
7315
+ /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
7293
7316
  /*!
7294
7317
  * Jodit Editor (https://xdsoft.net/jodit/)
7295
7318
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -7297,19 +7320,20 @@ const getContentWidth = (element, win) => {
7297
7320
  */
7298
7321
 
7299
7322
 
7323
+
7300
7324
  function getScrollParent(node) {
7301
7325
  if (!node) {
7302
7326
  return null;
7303
7327
  }
7304
- const isElement = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isHTMLElement(node);
7305
- const overflowY = isElement && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.css)(node, 'overflowY');
7328
+ const isElement = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(node);
7329
+ const overflowY = isElement && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__.css)(node, 'overflowY');
7306
7330
  const isScrollable = isElement && overflowY !== 'visible' && overflowY !== 'hidden';
7307
7331
  if (isScrollable && node.scrollHeight >= node.clientHeight) {
7308
7332
  return node;
7309
7333
  }
7310
7334
  return (getScrollParent(node.parentNode) ||
7311
- document.scrollingElement ||
7312
- document.body);
7335
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.scrollingElement ||
7336
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body);
7313
7337
  }
7314
7338
 
7315
7339
 
@@ -7992,9 +8016,9 @@ function alignElement(command, box) {
7992
8016
  /* harmony export */ w4: function() { return /* binding */ appendScriptAsync; },
7993
8017
  /* harmony export */ x_: function() { return /* binding */ loadNextStyle; }
7994
8018
  /* harmony export */ });
7995
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
8019
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
7996
8020
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26986);
7997
- /* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5151);
8021
+ /* harmony import */ var _complete_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5151);
7998
8022
  /*!
7999
8023
  * Jodit Editor (https://xdsoft.net/jodit/)
8000
8024
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8005,7 +8029,7 @@ function alignElement(command, box) {
8005
8029
 
8006
8030
  const alreadyLoadedList = new Map();
8007
8031
  const cacheLoaders = (loader) => {
8008
- return (jodit, url) => (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__awaiter */ .sH)(void 0, void 0, void 0, function* () {
8032
+ return (jodit, url) => (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__awaiter */ .sH)(void 0, void 0, void 0, function* () {
8009
8033
  if (alreadyLoadedList.has(url)) {
8010
8034
  return alreadyLoadedList.get(url);
8011
8035
  }
@@ -8027,7 +8051,7 @@ const appendScriptAsync = cacheLoaders((jodit, url) => {
8027
8051
  crossorigin: 'anonymous',
8028
8052
  referrerpolicy: 'no-referrer',
8029
8053
  async: true,
8030
- src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_1__/* .completeUrl */ .X)(url)
8054
+ src: (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url)
8031
8055
  });
8032
8056
  jodit.od.body.appendChild(script);
8033
8057
  jodit.e.on(script, 'error', reject).on(script, 'load', resolve);
@@ -8048,7 +8072,7 @@ const appendStyleAsync = cacheLoaders((jodit, url) => {
8048
8072
  const callback = () => resolve(link);
8049
8073
  !jodit.isInDestruct &&
8050
8074
  jodit.e.on(link, 'load', callback).on(link, 'error', reject);
8051
- link.href = (0,_complete_url__WEBPACK_IMPORTED_MODULE_1__/* .completeUrl */ .X)(url);
8075
+ link.href = (0,_complete_url__WEBPACK_IMPORTED_MODULE_0__/* .completeUrl */ .X)(url);
8052
8076
  if (jodit.o.shadowRoot) {
8053
8077
  jodit.o.shadowRoot.appendChild(link);
8054
8078
  }
@@ -8236,16 +8260,18 @@ const buildQuery = (data, prefix) => {
8236
8260
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8237
8261
  /* harmony export */ X: function() { return /* binding */ completeUrl; }
8238
8262
  /* harmony export */ });
8263
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8239
8264
  /*!
8240
8265
  * Jodit Editor (https://xdsoft.net/jodit/)
8241
8266
  * Released under MIT see LICENSE.txt in the project root for license information.
8242
8267
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
8243
8268
  */
8269
+
8244
8270
  /**
8245
8271
  * @module helpers/utils
8246
8272
  */
8247
8273
  const completeUrl = (url) => {
8248
- if (window.location.protocol === 'file:' && /^\/\//.test(url)) {
8274
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
8249
8275
  url = 'https:' + url;
8250
8276
  }
8251
8277
  return url;
@@ -8362,8 +8388,9 @@ function ConfigFlatten(obj) {
8362
8388
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8363
8389
  /* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
8364
8390
  /* harmony export */ });
8365
- /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
8366
- /* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15896);
8391
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8392
+ /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
8393
+ /* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15896);
8367
8394
  /*!
8368
8395
  * Jodit Editor (https://xdsoft.net/jodit/)
8369
8396
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8374,14 +8401,15 @@ function ConfigFlatten(obj) {
8374
8401
  */
8375
8402
 
8376
8403
 
8404
+
8377
8405
  /**
8378
8406
  * Javascript url pattern converter replace youtube/vimeo url in embed code.
8379
8407
  */
8380
8408
  const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
8381
- if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__/* .isURL */ .m)(url)) {
8409
+ if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
8382
8410
  return url;
8383
8411
  }
8384
- const parser = document.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
8412
+ const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
8385
8413
  parser.href = url;
8386
8414
  if (!width) {
8387
8415
  width = 400;
@@ -8407,7 +8435,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
8407
8435
  case 'youtu.be':
8408
8436
  case 'www.youtu.be': {
8409
8437
  const query = parser.search
8410
- ? (0,_parse_query__WEBPACK_IMPORTED_MODULE_1__/* .parseQuery */ .m)(parser.search)
8438
+ ? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
8411
8439
  : { v: parser.pathname.substr(1) };
8412
8440
  return query.v
8413
8441
  ? '<iframe width="' +
@@ -8601,7 +8629,8 @@ const dataBind = (elm, key, value) => {
8601
8629
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8602
8630
  /* harmony export */ e: function() { return /* binding */ defaultLanguage; }
8603
8631
  /* harmony export */ });
8604
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26986);
8632
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8633
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26986);
8605
8634
  /*!
8606
8635
  * Jodit Editor (https://xdsoft.net/jodit/)
8607
8636
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8611,15 +8640,16 @@ const dataBind = (elm, key, value) => {
8611
8640
  * @module helpers/utils
8612
8641
  */
8613
8642
 
8643
+
8614
8644
  /**
8615
8645
  * Try define user language
8616
8646
  */
8617
8647
  const defaultLanguage = (language, defaultLanguage = 'en') => {
8618
- if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .K)(language)) {
8648
+ if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
8619
8649
  return language;
8620
8650
  }
8621
- if (document.documentElement && document.documentElement.lang) {
8622
- return document.documentElement.lang;
8651
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang) {
8652
+ return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang;
8623
8653
  }
8624
8654
  if (navigator.language) {
8625
8655
  return navigator.language.substring(0, 2);
@@ -9373,10 +9403,10 @@ const map = {};
9373
9403
  function reset(key) {
9374
9404
  var _a, _b;
9375
9405
  if (!(key in map)) {
9376
- const iframe = document.createElement('iframe');
9406
+ const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
9377
9407
  try {
9378
9408
  iframe.src = 'about:blank';
9379
- document.body.appendChild(iframe);
9409
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
9380
9410
  if (!iframe.contentWindow) {
9381
9411
  return null;
9382
9412
  }
@@ -10309,14 +10339,15 @@ Plugin.requires = [];
10309
10339
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10310
10340
  /* harmony export */ d: function() { return /* binding */ Ajax; }
10311
10341
  /* harmony export */ });
10312
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
10342
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
10313
10343
  /* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61341);
10314
- /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33442);
10315
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
10316
- /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24839);
10317
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
10318
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91596);
10319
- /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85349);
10344
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
10345
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33442);
10346
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
10347
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24839);
10348
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
10349
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91596);
10350
+ /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(85349);
10320
10351
  /*!
10321
10352
  * Jodit Editor (https://xdsoft.net/jodit/)
10322
10353
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10330,33 +10361,34 @@ Plugin.requires = [];
10330
10361
 
10331
10362
 
10332
10363
 
10364
+
10333
10365
  class Ajax {
10334
10366
  className() {
10335
10367
  return 'Ajax';
10336
10368
  }
10337
- constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
10369
+ constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
10338
10370
  this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
10339
10371
  this.__isFulfilled = false;
10340
10372
  this.__activated = false;
10341
10373
  this.__isDestructed = false;
10342
- this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(options || {}, defaultAjaxOptions);
10374
+ this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
10343
10375
  this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
10344
10376
  }
10345
10377
  __buildParams(obj, prefix) {
10346
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(obj) &&
10378
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
10347
10379
  this.options.contentType &&
10348
10380
  this.options.contentType.includes('application/json')) {
10349
10381
  return JSON.stringify(obj);
10350
10382
  }
10351
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(this.o.queryBuild)) {
10383
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
10352
10384
  return this.o.queryBuild.call(this, obj, prefix);
10353
10385
  }
10354
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isString)(obj) ||
10355
- obj instanceof window.FormData ||
10356
- (typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(obj.append))) {
10386
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(obj) ||
10387
+ obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.globalWindow.FormData ||
10388
+ (typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(obj.append))) {
10357
10389
  return obj;
10358
10390
  }
10359
- return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)(obj);
10391
+ return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
10360
10392
  }
10361
10393
  get o() {
10362
10394
  return this.options;
@@ -10376,20 +10408,20 @@ class Ajax {
10376
10408
  this.__activated = true;
10377
10409
  const { xhr, o } = this;
10378
10410
  const request = this.prepareRequest();
10379
- return this.__async.promise((resolve, reject) => (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__awaiter */ .sH)(this, void 0, void 0, function* () {
10411
+ return this.__async.promise((resolve, reject) => (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__awaiter */ .sH)(this, void 0, void 0, function* () {
10380
10412
  var _a;
10381
10413
  const onReject = () => {
10382
10414
  this.__isFulfilled = true;
10383
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .connection */ .FI('Connection error'));
10415
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
10384
10416
  };
10385
10417
  const onResolve = () => {
10386
10418
  this.__isFulfilled = true;
10387
- resolve(new _response__WEBPACK_IMPORTED_MODULE_6__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
10419
+ resolve(new _response__WEBPACK_IMPORTED_MODULE_7__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
10388
10420
  };
10389
10421
  xhr.onload = onResolve;
10390
10422
  xhr.onabort = () => {
10391
10423
  this.__isFulfilled = true;
10392
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .abort */ .h2('Abort connection'));
10424
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
10393
10425
  };
10394
10426
  xhr.onerror = onReject;
10395
10427
  xhr.ontimeout = onReject;
@@ -10413,7 +10445,7 @@ class Ajax {
10413
10445
  }
10414
10446
  else if (xhr.statusText) {
10415
10447
  this.__isFulfilled = true;
10416
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .connection */ .FI(xhr.statusText));
10448
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
10417
10449
  }
10418
10450
  }
10419
10451
  };
@@ -10424,7 +10456,7 @@ class Ajax {
10424
10456
  xhr.setRequestHeader('Content-type', o.contentType);
10425
10457
  }
10426
10458
  let { headers } = o;
10427
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(headers)) {
10459
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
10428
10460
  headers = yield headers.call(this);
10429
10461
  }
10430
10462
  if (headers && xhr.setRequestHeader) {
@@ -10440,22 +10472,22 @@ class Ajax {
10440
10472
  }
10441
10473
  prepareRequest() {
10442
10474
  if (!this.o.url) {
10443
- throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .error */ .z3('Need URL for AJAX request');
10475
+ throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
10444
10476
  }
10445
10477
  let url = this.o.url;
10446
10478
  const data = this.o.data;
10447
10479
  const method = (this.o.method || 'get').toLowerCase();
10448
- if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(data)) {
10480
+ if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
10449
10481
  const qIndex = url.indexOf('?');
10450
10482
  if (qIndex !== -1) {
10451
- const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.parseQuery)(url);
10483
+ const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
10452
10484
  url =
10453
10485
  url.substring(0, qIndex) +
10454
10486
  '?' +
10455
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)(Object.assign(Object.assign({}, urlData), data));
10487
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(Object.assign(Object.assign({}, urlData), data));
10456
10488
  }
10457
10489
  else {
10458
- url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)(this.o.data);
10490
+ url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
10459
10491
  }
10460
10492
  }
10461
10493
  const request = {
@@ -10479,8 +10511,8 @@ class Ajax {
10479
10511
  }
10480
10512
  }
10481
10513
  Ajax.log = [];
10482
- (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
10483
- jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Ay
10514
+ (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
10515
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
10484
10516
  ], Ajax.prototype, "destruct", null);
10485
10517
 
10486
10518
 
@@ -11376,6 +11408,7 @@ class Selection {
11376
11408
  /**
11377
11409
  * Call callback for all selection node
11378
11410
  */
11411
+ // eslint-disable-next-line complexity
11379
11412
  eachSelection(callback) {
11380
11413
  var _a;
11381
11414
  const sel = this.sel;
@@ -12160,12 +12193,13 @@ function getSuitParent(style, node, root) {
12160
12193
  /* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
12161
12194
  /* harmony export */ g: function() { return /* binding */ hasSameStyle; }
12162
12195
  /* harmony export */ });
12163
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
12164
- /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
12165
- /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43581);
12166
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
12167
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__);
12168
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4401);
12196
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
12197
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
12198
+ /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74197);
12199
+ /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43581);
12200
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
12201
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
12202
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4401);
12169
12203
  /*!
12170
12204
  * Jodit Editor (https://xdsoft.net/jodit/)
12171
12205
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -12176,48 +12210,53 @@ function getSuitParent(style, node, root) {
12176
12210
 
12177
12211
 
12178
12212
 
12213
+
12179
12214
  /**
12180
12215
  * Element has the same styles as in the commit
12181
12216
  * @private
12182
12217
  */
12183
12218
  function hasSameStyle(elm, rules) {
12184
- return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isTag(elm, 'font') &&
12185
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isHTMLElement(elm) &&
12219
+ return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
12220
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
12186
12221
  Object.keys(rules).every(property => {
12187
- const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(elm, property, true);
12222
+ const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
12188
12223
  if (value === '' &&
12189
12224
  (rules[property] === '' || rules[property] == null)) {
12190
12225
  return true;
12191
12226
  }
12192
- return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(value) &&
12227
+ return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
12193
12228
  value !== '' &&
12194
- !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(rules[property]) &&
12195
- (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_4__/* .normalizeCssValue */ .iy)(property, rules[property])
12229
+ !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(rules[property]) &&
12230
+ (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__/* .normalizeCssValue */ .iy)(property, rules[property])
12196
12231
  .toString()
12197
12232
  .toLowerCase() === value.toString().toLowerCase());
12198
12233
  }));
12199
12234
  }
12200
- const elm = document.createElement('div');
12201
- elm.style.color = 'red';
12202
- void 0;
12203
- void 0;
12204
- void 0;
12235
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
12236
+ const elm = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
12237
+ elm.style.color = 'red';
12238
+ void 0;
12239
+ void 0;
12240
+ void 0;
12241
+ }
12205
12242
  /**
12206
12243
  * Element has the similar styles keys
12207
12244
  */
12208
12245
  function hasSameStyleKeys(elm, rules) {
12209
- return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isTag(elm, 'font') &&
12210
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isHTMLElement(elm) &&
12246
+ return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
12247
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
12211
12248
  Object.keys(rules).every(property => {
12212
- const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(elm, property, true);
12249
+ const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
12213
12250
  return value !== '';
12214
12251
  }));
12215
12252
  }
12216
- const elm2 = document.createElement('div');
12217
- elm2.style.color = 'red';
12218
- void 0;
12219
- void 0;
12220
- void 0;
12253
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
12254
+ const elm2 = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
12255
+ elm2.style.color = 'red';
12256
+ void 0;
12257
+ void 0;
12258
+ void 0;
12259
+ }
12221
12260
 
12222
12261
 
12223
12262
  /***/ }),
@@ -12600,16 +12639,17 @@ function wrapList(commitStyle, wrapper, jodit) {
12600
12639
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12601
12640
  /* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
12602
12641
  /* harmony export */ });
12603
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
12604
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
12605
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58588);
12606
- /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(43581);
12607
- /* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88455);
12608
- /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18014);
12609
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71122);
12610
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4401);
12611
- /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49382);
12612
- /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43072);
12642
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
12643
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
12644
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
12645
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58588);
12646
+ /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43581);
12647
+ /* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88455);
12648
+ /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18014);
12649
+ /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71122);
12650
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4401);
12651
+ /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49382);
12652
+ /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43072);
12613
12653
  /*!
12614
12654
  * Jodit Editor (https://xdsoft.net/jodit/)
12615
12655
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -12625,6 +12665,7 @@ function wrapList(commitStyle, wrapper, jodit) {
12625
12665
 
12626
12666
 
12627
12667
 
12668
+
12628
12669
  const tak = 'toggleAttributes';
12629
12670
  /**
12630
12671
  * Toggles attributes
@@ -12636,7 +12677,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
12636
12677
  }
12637
12678
  !dry && commitStyle.setApplied(elm, tak);
12638
12679
  const { attributes } = commitStyle.options;
12639
- if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_3__/* .size */ .E)(attributes) > 0) {
12680
+ if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
12640
12681
  Object.keys(attributes).forEach((key) => {
12641
12682
  const value = attributes[key];
12642
12683
  switch (key) {
@@ -12658,24 +12699,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
12658
12699
  function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
12659
12700
  void 0;
12660
12701
  Object.keys(style).forEach((rule) => {
12661
- const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_6__/* .kebabCase */ .k)(rule));
12702
+ const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__/* .kebabCase */ .k)(rule));
12662
12703
  const newValue = style[rule];
12663
12704
  if (inlineValue === '' && newValue == null) {
12664
12705
  return;
12665
12706
  }
12666
12707
  if (getNativeCSSValue(jodit, elm, rule) ===
12667
- (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_7__/* .normalizeCssValue */ .iy)(rule, newValue)) {
12708
+ (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
12668
12709
  if (!inlineValue) {
12669
12710
  return;
12670
12711
  }
12671
- !dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(elm, rule, null);
12672
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12712
+ !dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, null);
12713
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12673
12714
  mode = removeExtraStyleAttribute(commitStyle, elm, mode);
12674
12715
  return;
12675
12716
  }
12676
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12717
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12677
12718
  if (!dry) {
12678
- (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(elm, rule, newValue);
12719
+ (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
12679
12720
  mode = removeExtraStyleAttribute(commitStyle, elm, mode);
12680
12721
  }
12681
12722
  });
@@ -12683,19 +12724,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
12683
12724
  }
12684
12725
  function toggleClass(jodit, value, elm, mode, dry) {
12685
12726
  void 0;
12686
- const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12727
+ const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12687
12728
  if (elm.classList.contains(value.toString())) {
12688
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12729
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12689
12730
  if (!dry) {
12690
12731
  elm.classList.remove(value);
12691
12732
  if (elm.classList.length === 0) {
12692
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'class', null);
12733
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
12693
12734
  hook(mode, elm, 'class', null);
12694
12735
  }
12695
12736
  }
12696
12737
  }
12697
12738
  else {
12698
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12739
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12699
12740
  if (!dry) {
12700
12741
  elm.classList.add(value);
12701
12742
  hook(mode, elm, 'class', value);
@@ -12705,16 +12746,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
12705
12746
  }
12706
12747
  function toggleAttribute(jodit, value, elm, key, dry, mode) {
12707
12748
  void 0;
12708
- const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12709
- if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key) === value) {
12710
- !dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key, null);
12711
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12749
+ const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12750
+ if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key) === value) {
12751
+ !dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, null);
12752
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12712
12753
  !dry && hook(mode, elm, key, value);
12713
12754
  return mode;
12714
12755
  }
12715
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12756
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12716
12757
  if (!dry) {
12717
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key, value);
12758
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
12718
12759
  hook(mode, elm, key, value);
12719
12760
  }
12720
12761
  return mode;
@@ -12724,11 +12765,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
12724
12765
  * and if it is default, it removes the element itself
12725
12766
  */
12726
12767
  function removeExtraStyleAttribute(commitStyle, elm, mode) {
12727
- if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'style')) {
12728
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'style', null);
12768
+ if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style')) {
12769
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style', null);
12729
12770
  if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
12730
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(elm);
12731
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNWRAP */ .OJ;
12771
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(elm);
12772
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNWRAP */ .OJ;
12732
12773
  }
12733
12774
  }
12734
12775
  return mode;
@@ -12738,12 +12779,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
12738
12779
  */
12739
12780
  function getShadowRoot(jodit) {
12740
12781
  var _a;
12741
- if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
12742
- return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot');
12782
+ if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
12783
+ return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
12743
12784
  }
12744
- const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .getContainer */ .My)(jodit);
12745
- const iframe = document.createElement('iframe');
12746
- (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(iframe, {
12785
+ const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(jodit);
12786
+ const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
12787
+ (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(iframe, {
12747
12788
  width: 0,
12748
12789
  height: 0,
12749
12790
  position: 'absolute',
@@ -12753,7 +12794,7 @@ function getShadowRoot(jodit) {
12753
12794
  container.appendChild(iframe);
12754
12795
  const doc = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document;
12755
12796
  const shadowRoot = !doc ? jodit.od.body : doc.body;
12756
- (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
12797
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
12757
12798
  return shadowRoot;
12758
12799
  }
12759
12800
  /**
@@ -12764,8 +12805,8 @@ function getNativeCSSValue(jodit, elm, key) {
12764
12805
  newElm.style.cssText = elm.style.cssText;
12765
12806
  const root = getShadowRoot(jodit);
12766
12807
  root.appendChild(newElm);
12767
- const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(newElm, key);
12768
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(newElm);
12808
+ const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(newElm, key);
12809
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(newElm);
12769
12810
  return result;
12770
12811
  }
12771
12812
 
@@ -14756,6 +14797,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
14756
14797
  }
14757
14798
  createContainer(options) {
14758
14799
  this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
14800
+ tooltip: options.tooltip,
14759
14801
  icon: {
14760
14802
  name: 'plus'
14761
14803
  }
@@ -15183,8 +15225,8 @@ __webpack_require__.r(__webpack_exports__);
15183
15225
  /* harmony export */ required: function() { return /* binding */ required; },
15184
15226
  /* harmony export */ url: function() { return /* binding */ url; }
15185
15227
  /* harmony export */ });
15186
- /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
15187
- /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22718);
15228
+ /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
15229
+ /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
15188
15230
  /*!
15189
15231
  * Jodit Editor (https://xdsoft.net/jodit/)
15190
15232
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -15196,7 +15238,7 @@ __webpack_require__.r(__webpack_exports__);
15196
15238
  * Input is required
15197
15239
  */
15198
15240
  const required = function (input) {
15199
- if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .Bq)(input.value).length) {
15241
+ if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
15200
15242
  input.error = 'Please fill out this field';
15201
15243
  return false;
15202
15244
  }
@@ -15206,7 +15248,7 @@ const required = function (input) {
15206
15248
  * Input value should be valid URL
15207
15249
  */
15208
15250
  const url = function (input) {
15209
- if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .Bq)(input.value))) {
15251
+ if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__/* .isURL */ .m)((0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value))) {
15210
15252
  input.error = 'Please enter a web address';
15211
15253
  return false;
15212
15254
  }
@@ -17845,6 +17887,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17845
17887
  }
17846
17888
  }
17847
17889
  catch (e) {
17890
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
17891
+ throw e;
17892
+ }
17848
17893
  this.destruct();
17849
17894
  throw e;
17850
17895
  }
@@ -19823,10 +19868,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
19823
19868
  jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
19824
19869
  upload: {
19825
19870
  icon: 'plus',
19871
+ tooltip: 'Upload file',
19826
19872
  isInput: true,
19827
19873
  isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
19828
- getContent: (filebrowser) => {
19874
+ getContent: (filebrowser, btnInt) => {
19829
19875
  const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
19876
+ tooltip: btnInt.control.tooltip,
19830
19877
  onlyImages: filebrowser.state.onlyImages
19831
19878
  });
19832
19879
  filebrowser.e.fire('bindUploader.filebrowser', btn.container);
@@ -19835,6 +19882,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19835
19882
  },
19836
19883
  remove: {
19837
19884
  icon: 'bin',
19885
+ tooltip: 'Remove file',
19838
19886
  isDisabled: (browser) => {
19839
19887
  return (!browser.state.activeElements.length ||
19840
19888
  !browser.dataProvider.canI('FileRemove'));
@@ -19844,11 +19892,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19844
19892
  }
19845
19893
  },
19846
19894
  update: {
19895
+ tooltip: 'Update file list',
19847
19896
  exec: (editor) => {
19848
19897
  editor.e.fire('update.filebrowser');
19849
19898
  }
19850
19899
  },
19851
19900
  select: {
19901
+ tooltip: 'Select file',
19852
19902
  icon: 'check',
19853
19903
  isDisabled: (browser) => !browser.state.activeElements.length,
19854
19904
  exec: (editor) => {
@@ -19856,6 +19906,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19856
19906
  }
19857
19907
  },
19858
19908
  edit: {
19909
+ tooltip: 'Edit image',
19859
19910
  icon: 'pencil',
19860
19911
  isDisabled: (browser) => {
19861
19912
  const selected = browser.state.activeElements;
@@ -19869,6 +19920,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19869
19920
  }
19870
19921
  },
19871
19922
  tiles: {
19923
+ tooltip: 'Tiles view',
19872
19924
  icon: 'th',
19873
19925
  isActive: (filebrowser) => filebrowser.state.view === 'tiles',
19874
19926
  exec: (filebrowser) => {
@@ -19876,6 +19928,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19876
19928
  }
19877
19929
  },
19878
19930
  list: {
19931
+ tooltip: 'List view',
19879
19932
  icon: 'th-list',
19880
19933
  isActive: (filebrowser) => filebrowser.state.view === 'list',
19881
19934
  exec: (filebrowser) => {
@@ -20292,7 +20345,6 @@ let DataProvider = class DataProvider {
20292
20345
  data: {}
20293
20346
  };
20294
20347
  }
20295
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
20296
20348
  const query = this.o[type];
20297
20349
  if (query.data === undefined) {
20298
20350
  query.data = {
@@ -20542,7 +20594,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20542
20594
  get dataProvider() {
20543
20595
  return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
20544
20596
  }
20545
- // eslint-disable-next-line no-unused-vars
20546
20597
  onSelect(callback) {
20547
20598
  return () => {
20548
20599
  if (this.state.activeElements.length) {
@@ -23064,7 +23115,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23064
23115
  const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
23065
23116
  selector && selectors.push(selector);
23066
23117
  });
23067
- // eslint-disable-next-line no-prototype-builtins
23068
23118
  style.innerHTML = selectors.length
23069
23119
  ? selectors.join(',') +
23070
23120
  `{${this.jodit.options.table.selectionCellStyle}}`
@@ -26865,6 +26915,7 @@ function checkNotCollapsed(jodit) {
26865
26915
  * ```
26866
26916
  * @private
26867
26917
  */
26918
+ // eslint-disable-next-line complexity
26868
26919
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26869
26920
  var _a, _b;
26870
26921
  const step = backspace ? -1 : 1;
@@ -31666,6 +31717,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
31666
31717
  '-ms-user-select: none' +
31667
31718
  '}';
31668
31719
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
31720
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
31669
31721
 
31670
31722
 
31671
31723
  /***/ }),
@@ -31742,6 +31794,9 @@ function iframe(editor) {
31742
31794
  iframe.setAttribute('allowtransparency', 'true');
31743
31795
  iframe.setAttribute('tabindex', opt.tabIndex.toString());
31744
31796
  iframe.setAttribute('frameborder', '0');
31797
+ if (opt.iframeSandbox != null) {
31798
+ iframe.setAttribute('sandbox', opt.iframeSandbox);
31799
+ }
31745
31800
  editor.workplace.appendChild(iframe);
31746
31801
  editor.iframe = iframe;
31747
31802
  const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
@@ -37547,13 +37602,13 @@ function generateCriticalCSS(jodit) {
37547
37602
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
37548
37603
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33465);
37549
37604
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
37550
- /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54614);
37551
- /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85769);
37552
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
37553
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
37554
- /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(86134);
37555
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26899);
37556
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
37605
+ /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54614);
37606
+ /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85769);
37607
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80004);
37608
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
37609
+ /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86134);
37610
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26899);
37611
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_8__);
37557
37612
  /*!
37558
37613
  * Jodit Editor (https://xdsoft.net/jodit/)
37559
37614
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37568,8 +37623,8 @@ function generateCriticalCSS(jodit) {
37568
37623
 
37569
37624
 
37570
37625
 
37571
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
37572
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
37626
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_8___default()));
37627
+ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.print = {
37573
37628
  exec: (editor) => {
37574
37629
  const iframe = editor.create.element('iframe');
37575
37630
  Object.assign(iframe.style, {
@@ -37580,7 +37635,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
37580
37635
  height: 0,
37581
37636
  border: 0
37582
37637
  });
37583
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
37638
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T).appendChild(iframe);
37584
37639
  const afterFinishPrint = () => {
37585
37640
  editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
37586
37641
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
@@ -37596,12 +37651,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
37596
37651
  }
37597
37652
  else {
37598
37653
  myWindow.document.write('<!doctype html><html lang="' +
37599
- (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
37654
+ (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
37600
37655
  '"><head><title></title></head><style>' +
37601
- (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
37656
+ (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
37602
37657
  '</style><body></body></html>');
37603
37658
  myWindow.document.close();
37604
- (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
37659
+ (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
37605
37660
  }
37606
37661
  const style = myWindow.document.createElement('style');
37607
37662
  style.innerHTML = `@media print {
@@ -38677,10 +38732,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
38677
38732
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
38678
38733
 
38679
38734
  "use strict";
38680
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
38681
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
38682
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98973);
38683
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
38735
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
38736
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
38737
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
38738
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98973);
38739
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_3__);
38684
38740
  /*!
38685
38741
  * Jodit Editor (https://xdsoft.net/jodit/)
38686
38742
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38690,14 +38746,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
38690
38746
 
38691
38747
 
38692
38748
 
38693
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
38694
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
38749
+
38750
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
38751
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
38695
38752
  lazyIdleTimeout: 0,
38696
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38697
- useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
38753
+ useCustomHighlightAPI: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined'
38698
38754
  };
38699
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
38700
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
38755
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_3___default()));
38756
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
38701
38757
  tooltip: 'Find',
38702
38758
  icon: 'search',
38703
38759
  exec(jodit, _, { control }) {
@@ -38738,8 +38794,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
38738
38794
  /* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
38739
38795
  /* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
38740
38796
  /* harmony export */ });
38741
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
38742
- /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52989);
38797
+ /* unused harmony export clearNativeSelection */
38798
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
38799
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
38800
+ /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52989);
38743
38801
  /*!
38744
38802
  * Jodit Editor (https://xdsoft.net/jodit/)
38745
38803
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38747,6 +38805,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
38747
38805
  */
38748
38806
 
38749
38807
 
38808
+
38750
38809
  /**
38751
38810
  * @private
38752
38811
  */
@@ -38765,15 +38824,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
38765
38824
  const span = ci.element('span', {
38766
38825
  [TMP_ATTR]: true
38767
38826
  });
38768
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
38827
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
38769
38828
  normalizeRanges(rng, restRanges, ci);
38770
38829
  let next = rng.startContainer;
38771
38830
  do {
38772
38831
  if (!next) {
38773
38832
  break;
38774
38833
  }
38775
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
38776
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
38834
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
38835
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
38777
38836
  }
38778
38837
  if (next === rng.endContainer) {
38779
38838
  break;
@@ -38792,13 +38851,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
38792
38851
  * @private
38793
38852
  */
38794
38853
  function getSelectionWrappers(root) {
38795
- return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__.$$)(`[${TMP_ATTR}]`, root);
38854
+ return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
38796
38855
  }
38797
38856
  /**
38798
38857
  * @private
38799
38858
  */
38800
- function clearSelectionWrappers(root) {
38801
- getSelectionWrappers(root).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(span));
38859
+ function clearSelectionWrappers(jodit) {
38860
+ getSelectionWrappers(jodit.editor).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
38861
+ clearNativeSelection(jodit);
38802
38862
  }
38803
38863
  /**
38804
38864
  * @private
@@ -38810,19 +38870,19 @@ function clearSelectionWrappersFromHTML(root) {
38810
38870
  * @private
38811
38871
  */
38812
38872
  function isSelectionWrapper(node) {
38813
- return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
38873
+ return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
38814
38874
  }
38815
38875
  function checkNativeSelectionMethod(jodit, rng, restRanges) {
38816
38876
  if (jodit.o.search.useCustomHighlightAPI &&
38817
38877
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38818
- typeof window.Highlight !== 'undefined') {
38878
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
38879
+ typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
38819
38880
  const ranges = [rng, ...restRanges].map(rng => {
38820
38881
  const range = jodit.selection.createRange();
38821
38882
  range.setStart(rng.startContainer, rng.startOffset);
38822
38883
  range.setEnd(rng.endContainer, rng.endOffset);
38823
38884
  return range;
38824
38885
  });
38825
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38826
38886
  const searchHighlight = new Highlight(...ranges);
38827
38887
  // @ts-ignore
38828
38888
  CSS.highlights.clear();
@@ -38833,13 +38893,22 @@ function checkNativeSelectionMethod(jodit, rng, restRanges) {
38833
38893
  }
38834
38894
  return false;
38835
38895
  }
38896
+ function clearNativeSelection(jodit) {
38897
+ if (jodit.o.search.useCustomHighlightAPI &&
38898
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38899
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
38900
+ typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
38901
+ // @ts-ignore
38902
+ CSS.highlights.clear();
38903
+ }
38904
+ }
38836
38905
  function normalizeRanges(rng, restRanges, ci) {
38837
38906
  const startText = rng.startContainer.nodeValue;
38838
38907
  let diff = 0;
38839
38908
  if (rng.startOffset !== 0) {
38840
38909
  const text = ci.text(startText.substring(0, rng.startOffset));
38841
38910
  rng.startContainer.nodeValue = startText.substring(rng.startOffset);
38842
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
38911
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
38843
38912
  if (rng.startContainer === rng.endContainer) {
38844
38913
  diff = rng.startOffset;
38845
38914
  rng.endOffset -= diff;
@@ -38850,7 +38919,7 @@ function normalizeRanges(rng, restRanges, ci) {
38850
38919
  if (rng.endOffset !== endText.length) {
38851
38920
  const text = ci.text(endText.substring(rng.endOffset));
38852
38921
  rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
38853
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
38922
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
38854
38923
  for (const range of restRanges) {
38855
38924
  if (range.startContainer === rng.endContainer) {
38856
38925
  range.startContainer = text;
@@ -39007,11 +39076,11 @@ class SentenceFinder {
39007
39076
  *
39008
39077
  * @example
39009
39078
  * ```typescript
39010
- * var jodit = Jodit.make('#editor', {
39079
+ * const jodit = Jodit.make('#editor', {
39011
39080
  * useSearch: false
39012
39081
  * });
39013
39082
  * // or
39014
- * var jodit = Jodit.make('#editor', {
39083
+ * const jodit = Jodit.make('#editor', {
39015
39084
  * disablePlugins: 'search'
39016
39085
  * });
39017
39086
  * ```
@@ -39097,7 +39166,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
39097
39166
  rng.deleteContents();
39098
39167
  const textNode = this.j.createInside.text(this.ui.replace);
39099
39168
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeInsertNode(rng, textNode);
39100
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j.editor);
39169
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
39101
39170
  this.j.s.setCursorAfter(textNode);
39102
39171
  this.tryScrollToElement(textNode);
39103
39172
  this.cache = {};
@@ -39127,7 +39196,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
39127
39196
  !(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .getSelectionWrappers */ .zy)(this.j.editor).length) {
39128
39197
  (_a = this.drawPromise) === null || _a === void 0 ? void 0 : _a.rejectCallback();
39129
39198
  this.j.async.cancelAnimationFrame(this.wrapFrameRequest);
39130
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j.editor);
39199
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
39131
39200
  this.drawPromise = this.__drawSelectionRanges(bounds);
39132
39201
  }
39133
39202
  this.previousQuery = query;
@@ -39249,14 +39318,15 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
39249
39318
  this.ui.close();
39250
39319
  })
39251
39320
  .on(this.ui, 'afterClose', () => {
39252
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor.editor);
39321
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
39253
39322
  this.ui.currentIndex = 0;
39254
39323
  this.ui.count = 0;
39255
39324
  this.cache = {};
39325
+ editor.focus();
39256
39326
  })
39257
39327
  .on('click', () => {
39258
39328
  this.ui.currentIndex = 0;
39259
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor.editor);
39329
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
39260
39330
  })
39261
39331
  .on('change.search', () => {
39262
39332
  this.cache = {};
@@ -39267,7 +39337,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
39267
39337
  this.ui.selInfo = null;
39268
39338
  }
39269
39339
  if (this.ui.isOpened) {
39270
- this.updateCounters();
39340
+ void this.updateCounters();
39271
39341
  }
39272
39342
  }, editor.defaultTimeout))
39273
39343
  .on('searchNext.search searchPrevious.search', () => {
@@ -39447,7 +39517,7 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
39447
39517
  return false;
39448
39518
  })
39449
39519
  .on(next, 'pointerdown', () => {
39450
- jodit.e.fire('searchNext');
39520
+ void jodit.e.fire('searchNext');
39451
39521
  return false;
39452
39522
  })
39453
39523
  .on(prev, 'pointerdown', () => {
@@ -39457,12 +39527,12 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
39457
39527
  .on(this.queryInput, 'input', () => {
39458
39528
  this.setMod('empty-query', !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(this.queryInput.value).length);
39459
39529
  })
39460
- .on(this.queryInput, 'keydown', this.j.async.debounce((e) => {
39530
+ .on(this.queryInput, 'keydown', this.j.async.debounce((e) => (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__awaiter */ .sH)(this, void 0, void 0, function* () {
39461
39531
  switch (e.key) {
39462
39532
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER:
39463
39533
  e.preventDefault();
39464
39534
  e.stopImmediatePropagation();
39465
- if (jodit.e.fire('searchNext')) {
39535
+ if (yield jodit.e.fire('searchNext')) {
39466
39536
  this.close();
39467
39537
  }
39468
39538
  break;
@@ -39470,7 +39540,7 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
39470
39540
  jodit.e.fire(this, 'needUpdateCounters');
39471
39541
  break;
39472
39542
  }
39473
- }, this.j.defaultTimeout));
39543
+ }), this.j.defaultTimeout));
39474
39544
  }
39475
39545
  onEditorKeyDown(e) {
39476
39546
  if (!this.isOpened) {
@@ -41761,6 +41831,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
41761
41831
 
41762
41832
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
41763
41833
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
41834
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
41764
41835
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
41765
41836
 
41766
41837
 
@@ -41807,9 +41878,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
41807
41878
  this.calc = this.j.async.throttle(() => {
41808
41879
  const text = this.j.text;
41809
41880
  if (this.j.o.showCharsCounter && this.charCounter) {
41810
- const chars = this.j.o.countHTMLChars
41811
- ? this.j.value
41812
- : text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
41881
+ let chars;
41882
+ if (this.j.o.countHTMLChars) {
41883
+ chars = this.j.value;
41884
+ }
41885
+ else {
41886
+ if (this.j.o.countTextSpaces) {
41887
+ chars = text
41888
+ .replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), '')
41889
+ .replace(/[\r\n]/g, '');
41890
+ }
41891
+ else {
41892
+ chars = text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
41893
+ }
41894
+ }
41813
41895
  this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
41814
41896
  }
41815
41897
  if (this.j.o.showWordsCounter && this.wordCounter) {
@@ -42443,8 +42525,9 @@ __webpack_require__.r(__webpack_exports__);
42443
42525
  /* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_16__; },
42444
42526
  /* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_17__; },
42445
42527
  /* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_18__; },
42446
- /* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_19__; },
42447
- /* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_20__; }
42528
+ /* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_19__; },
42529
+ /* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__; },
42530
+ /* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__; }
42448
42531
  /* harmony export */ });
42449
42532
  /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52438);
42450
42533
  /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
@@ -42484,10 +42567,12 @@ __webpack_require__.r(__webpack_exports__);
42484
42567
  /* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_17__);
42485
42568
  /* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(64331);
42486
42569
  /* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_18__);
42487
- /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(13599);
42488
- /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_19__);
42489
- /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(70871);
42490
- /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_20__);
42570
+ /* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(87983);
42571
+ /* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_19__);
42572
+ /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(13599);
42573
+ /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_20__);
42574
+ /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(70871);
42575
+ /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_21__);
42491
42576
  /*!
42492
42577
  * Jodit Editor (https://xdsoft.net/jodit/)
42493
42578
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42515,6 +42600,7 @@ __webpack_require__.r(__webpack_exports__);
42515
42600
 
42516
42601
 
42517
42602
 
42603
+
42518
42604
 
42519
42605
 
42520
42606
  /***/ }),
@@ -42670,6 +42756,23 @@ module.exports = {
42670
42756
  };
42671
42757
 
42672
42758
 
42759
+ /***/ }),
42760
+
42761
+ /***/ 87983:
42762
+ /***/ (function(module) {
42763
+
42764
+ "use strict";
42765
+
42766
+ /*!
42767
+ * Jodit Editor (https://xdsoft.net/jodit/)
42768
+ * Released under MIT see LICENSE.txt in the project root for license information.
42769
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
42770
+ */
42771
+ module.exports = {
42772
+ symbols: 'символ'
42773
+ };
42774
+
42775
+
42673
42776
  /***/ }),
42674
42777
 
42675
42778
  /***/ 13599:
@@ -44395,7 +44498,6 @@ function getTextLeftOfCursor(range) {
44395
44498
  */
44396
44499
  function replaceTextLeftOfCursorAfterSpace(range, elm) {
44397
44500
  var _a, _b, _c;
44398
- // eslint-disable-next-line prefer-const
44399
44501
  let { startContainer, startOffset } = range;
44400
44502
  if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(startContainer)) {
44401
44503
  startContainer = startContainer.childNodes[startOffset - 1];
@@ -44908,7 +45010,6 @@ function convertToList(elm) {
44908
45010
  return elm;
44909
45011
  }
44910
45012
  function moveUp(leaf) {
44911
- // eslint-disable-next-line no-constant-condition
44912
45013
  while (leaf) {
44913
45014
  const prev = leaf.previousElement;
44914
45015
  // Leaf after P
@@ -46298,7 +46399,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46298
46399
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46299
46400
  PERFORMANCE OF THIS SOFTWARE.
46300
46401
  ***************************************************************************** */
46301
- /* global Reflect, Promise, SuppressedError, Symbol */
46402
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
46302
46403
 
46303
46404
  var extendStatics = function(d, b) {
46304
46405
  extendStatics = Object.setPrototypeOf ||
@@ -46409,8 +46510,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
46409
46510
  }
46410
46511
 
46411
46512
  function __generator(thisArg, body) {
46412
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
46413
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
46513
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
46514
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
46414
46515
  function verb(n) { return function (v) { return step([n, v]); }; }
46415
46516
  function step(op) {
46416
46517
  if (f) throw new TypeError("Generator is already executing.");
@@ -46514,8 +46615,9 @@ function __await(v) {
46514
46615
  function __asyncGenerator(thisArg, _arguments, generator) {
46515
46616
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
46516
46617
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
46517
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
46518
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
46618
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
46619
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
46620
+ function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
46519
46621
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
46520
46622
  function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
46521
46623
  function fulfill(value) { resume("next", value); }
@@ -46581,16 +46683,18 @@ function __classPrivateFieldIn(state, receiver) {
46581
46683
  function __addDisposableResource(env, value, async) {
46582
46684
  if (value !== null && value !== void 0) {
46583
46685
  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
46584
- var dispose;
46686
+ var dispose, inner;
46585
46687
  if (async) {
46586
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
46587
- dispose = value[Symbol.asyncDispose];
46688
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
46689
+ dispose = value[Symbol.asyncDispose];
46588
46690
  }
46589
46691
  if (dispose === void 0) {
46590
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
46591
- dispose = value[Symbol.dispose];
46692
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
46693
+ dispose = value[Symbol.dispose];
46694
+ if (async) inner = dispose;
46592
46695
  }
46593
46696
  if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
46697
+ if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
46594
46698
  env.stack.push({ value: value, dispose: dispose, async: async });
46595
46699
  }
46596
46700
  else if (async) {
@@ -46609,17 +46713,22 @@ function __disposeResources(env) {
46609
46713
  env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
46610
46714
  env.hasError = true;
46611
46715
  }
46716
+ var r, s = 0;
46612
46717
  function next() {
46613
- while (env.stack.length) {
46614
- var rec = env.stack.pop();
46718
+ while (r = env.stack.pop()) {
46615
46719
  try {
46616
- var result = rec.dispose && rec.dispose.call(rec.value);
46617
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
46720
+ if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
46721
+ if (r.dispose) {
46722
+ var result = r.dispose.call(r.value);
46723
+ if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
46724
+ }
46725
+ else s |= 1;
46618
46726
  }
46619
46727
  catch (e) {
46620
- fail(e);
46728
+ fail(e);
46621
46729
  }
46622
46730
  }
46731
+ if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
46623
46732
  if (env.hasError) throw env.error;
46624
46733
  }
46625
46734
  return next();
@@ -46746,11 +46855,88 @@ function __disposeResources(env) {
46746
46855
  /******/ };
46747
46856
  /******/ }();
46748
46857
  /******/
46858
+ /******/ /* webpack/runtime/ensure chunk */
46859
+ /******/ !function() {
46860
+ /******/ __webpack_require__.f = {};
46861
+ /******/ // This file contains only the entry chunk.
46862
+ /******/ // The chunk loading function for additional chunks
46863
+ /******/ __webpack_require__.e = function(chunkId) {
46864
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
46865
+ /******/ __webpack_require__.f[key](chunkId, promises);
46866
+ /******/ return promises;
46867
+ /******/ }, []));
46868
+ /******/ };
46869
+ /******/ }();
46870
+ /******/
46871
+ /******/ /* webpack/runtime/get javascript chunk filename */
46872
+ /******/ !function() {
46873
+ /******/ // This function allow to reference async chunks
46874
+ /******/ __webpack_require__.u = function(chunkId) {
46875
+ /******/ // return url for filenames based on template
46876
+ /******/ return "" + chunkId + ".js";
46877
+ /******/ };
46878
+ /******/ }();
46879
+ /******/
46880
+ /******/ /* webpack/runtime/get mini-css chunk filename */
46881
+ /******/ !function() {
46882
+ /******/ // This function allow to reference async chunks
46883
+ /******/ __webpack_require__.miniCssF = function(chunkId) {
46884
+ /******/ // return url for filenames based on template
46885
+ /******/ return undefined;
46886
+ /******/ };
46887
+ /******/ }();
46888
+ /******/
46749
46889
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
46750
46890
  /******/ !function() {
46751
46891
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
46752
46892
  /******/ }();
46753
46893
  /******/
46894
+ /******/ /* webpack/runtime/load script */
46895
+ /******/ !function() {
46896
+ /******/ var inProgress = {};
46897
+ /******/ var dataWebpackPrefix = "jodit-pro:";
46898
+ /******/ // loadScript function to load a script via script tag
46899
+ /******/ __webpack_require__.l = function(url, done, key, chunkId) {
46900
+ /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
46901
+ /******/ var script, needAttach;
46902
+ /******/ if(key !== undefined) {
46903
+ /******/ var scripts = document.getElementsByTagName("script");
46904
+ /******/ for(var i = 0; i < scripts.length; i++) {
46905
+ /******/ var s = scripts[i];
46906
+ /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
46907
+ /******/ }
46908
+ /******/ }
46909
+ /******/ if(!script) {
46910
+ /******/ needAttach = true;
46911
+ /******/ script = document.createElement('script');
46912
+ /******/
46913
+ /******/ script.charset = 'utf-8';
46914
+ /******/ script.timeout = 120;
46915
+ /******/ if (__webpack_require__.nc) {
46916
+ /******/ script.setAttribute("nonce", __webpack_require__.nc);
46917
+ /******/ }
46918
+ /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
46919
+ /******/
46920
+ /******/ script.src = url;
46921
+ /******/ }
46922
+ /******/ inProgress[url] = [done];
46923
+ /******/ var onScriptComplete = function(prev, event) {
46924
+ /******/ // avoid mem leaks in IE.
46925
+ /******/ script.onerror = script.onload = null;
46926
+ /******/ clearTimeout(timeout);
46927
+ /******/ var doneFns = inProgress[url];
46928
+ /******/ delete inProgress[url];
46929
+ /******/ script.parentNode && script.parentNode.removeChild(script);
46930
+ /******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
46931
+ /******/ if(prev) return prev(event);
46932
+ /******/ }
46933
+ /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
46934
+ /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
46935
+ /******/ script.onload = onScriptComplete.bind(null, script.onload);
46936
+ /******/ needAttach && document.head.appendChild(script);
46937
+ /******/ };
46938
+ /******/ }();
46939
+ /******/
46754
46940
  /******/ /* webpack/runtime/make namespace object */
46755
46941
  /******/ !function() {
46756
46942
  /******/ // define __esModule on exports
@@ -46762,6 +46948,11 @@ function __disposeResources(env) {
46762
46948
  /******/ };
46763
46949
  /******/ }();
46764
46950
  /******/
46951
+ /******/ /* webpack/runtime/publicPath */
46952
+ /******/ !function() {
46953
+ /******/ __webpack_require__.p = "/build/";
46954
+ /******/ }();
46955
+ /******/
46765
46956
  /******/ /* webpack/runtime/jsonp chunk loading */
46766
46957
  /******/ !function() {
46767
46958
  /******/ // no baseURI
@@ -46773,7 +46964,44 @@ function __disposeResources(env) {
46773
46964
  /******/ 521: 0
46774
46965
  /******/ };
46775
46966
  /******/
46776
- /******/ // no chunk on demand loading
46967
+ /******/ __webpack_require__.f.j = function(chunkId, promises) {
46968
+ /******/ // JSONP chunk loading for javascript
46969
+ /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
46970
+ /******/ if(installedChunkData !== 0) { // 0 means "already installed".
46971
+ /******/
46972
+ /******/ // a Promise means "currently loading".
46973
+ /******/ if(installedChunkData) {
46974
+ /******/ promises.push(installedChunkData[2]);
46975
+ /******/ } else {
46976
+ /******/ if(true) { // all chunks have JS
46977
+ /******/ // setup Promise in chunk cache
46978
+ /******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
46979
+ /******/ promises.push(installedChunkData[2] = promise);
46980
+ /******/
46981
+ /******/ // start chunk loading
46982
+ /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
46983
+ /******/ // create error before stack unwound to get useful stacktrace later
46984
+ /******/ var error = new Error();
46985
+ /******/ var loadingEnded = function(event) {
46986
+ /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
46987
+ /******/ installedChunkData = installedChunks[chunkId];
46988
+ /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
46989
+ /******/ if(installedChunkData) {
46990
+ /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
46991
+ /******/ var realSrc = event && event.target && event.target.src;
46992
+ /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
46993
+ /******/ error.name = 'ChunkLoadError';
46994
+ /******/ error.type = errorType;
46995
+ /******/ error.request = realSrc;
46996
+ /******/ installedChunkData[1](error);
46997
+ /******/ }
46998
+ /******/ }
46999
+ /******/ };
47000
+ /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
47001
+ /******/ }
47002
+ /******/ }
47003
+ /******/ }
47004
+ /******/ };
46777
47005
  /******/
46778
47006
  /******/ // no prefetching
46779
47007
  /******/