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/es2018/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v4.2.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 = "es2018";
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
 
@@ -8234,16 +8258,18 @@ const buildQuery = (data, prefix) => {
8234
8258
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8235
8259
  /* harmony export */ X: function() { return /* binding */ completeUrl; }
8236
8260
  /* harmony export */ });
8261
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8237
8262
  /*!
8238
8263
  * Jodit Editor (https://xdsoft.net/jodit/)
8239
8264
  * Released under MIT see LICENSE.txt in the project root for license information.
8240
8265
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
8241
8266
  */
8267
+
8242
8268
  /**
8243
8269
  * @module helpers/utils
8244
8270
  */
8245
8271
  const completeUrl = (url) => {
8246
- if (window.location.protocol === 'file:' && /^\/\//.test(url)) {
8272
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
8247
8273
  url = 'https:' + url;
8248
8274
  }
8249
8275
  return url;
@@ -8360,8 +8386,9 @@ function ConfigFlatten(obj) {
8360
8386
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8361
8387
  /* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
8362
8388
  /* harmony export */ });
8363
- /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
8364
- /* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15896);
8389
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8390
+ /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
8391
+ /* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15896);
8365
8392
  /*!
8366
8393
  * Jodit Editor (https://xdsoft.net/jodit/)
8367
8394
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8372,14 +8399,15 @@ function ConfigFlatten(obj) {
8372
8399
  */
8373
8400
 
8374
8401
 
8402
+
8375
8403
  /**
8376
8404
  * Javascript url pattern converter replace youtube/vimeo url in embed code.
8377
8405
  */
8378
8406
  const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
8379
- if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__/* .isURL */ .m)(url)) {
8407
+ if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
8380
8408
  return url;
8381
8409
  }
8382
- const parser = document.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
8410
+ const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
8383
8411
  parser.href = url;
8384
8412
  if (!width) {
8385
8413
  width = 400;
@@ -8405,7 +8433,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
8405
8433
  case 'youtu.be':
8406
8434
  case 'www.youtu.be': {
8407
8435
  const query = parser.search
8408
- ? (0,_parse_query__WEBPACK_IMPORTED_MODULE_1__/* .parseQuery */ .m)(parser.search)
8436
+ ? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
8409
8437
  : { v: parser.pathname.substr(1) };
8410
8438
  return query.v
8411
8439
  ? '<iframe width="' +
@@ -8599,7 +8627,8 @@ const dataBind = (elm, key, value) => {
8599
8627
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8600
8628
  /* harmony export */ e: function() { return /* binding */ defaultLanguage; }
8601
8629
  /* harmony export */ });
8602
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26986);
8630
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8631
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26986);
8603
8632
  /*!
8604
8633
  * Jodit Editor (https://xdsoft.net/jodit/)
8605
8634
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8609,15 +8638,16 @@ const dataBind = (elm, key, value) => {
8609
8638
  * @module helpers/utils
8610
8639
  */
8611
8640
 
8641
+
8612
8642
  /**
8613
8643
  * Try define user language
8614
8644
  */
8615
8645
  const defaultLanguage = (language, defaultLanguage = 'en') => {
8616
- if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .K)(language)) {
8646
+ if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
8617
8647
  return language;
8618
8648
  }
8619
- if (document.documentElement && document.documentElement.lang) {
8620
- return document.documentElement.lang;
8649
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang) {
8650
+ return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang;
8621
8651
  }
8622
8652
  if (navigator.language) {
8623
8653
  return navigator.language.substring(0, 2);
@@ -9371,10 +9401,10 @@ const map = {};
9371
9401
  function reset(key) {
9372
9402
  var _a, _b;
9373
9403
  if (!(key in map)) {
9374
- const iframe = document.createElement('iframe');
9404
+ const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
9375
9405
  try {
9376
9406
  iframe.src = 'about:blank';
9377
- document.body.appendChild(iframe);
9407
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
9378
9408
  if (!iframe.contentWindow) {
9379
9409
  return null;
9380
9410
  }
@@ -10303,14 +10333,15 @@ Plugin.requires = [];
10303
10333
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10304
10334
  /* harmony export */ d: function() { return /* binding */ Ajax; }
10305
10335
  /* harmony export */ });
10306
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
10336
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
10307
10337
  /* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61341);
10308
- /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33442);
10309
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
10310
- /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24839);
10311
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
10312
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91596);
10313
- /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85349);
10338
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
10339
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33442);
10340
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
10341
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24839);
10342
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
10343
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91596);
10344
+ /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85349);
10314
10345
  /*!
10315
10346
  * Jodit Editor (https://xdsoft.net/jodit/)
10316
10347
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10324,33 +10355,34 @@ Plugin.requires = [];
10324
10355
 
10325
10356
 
10326
10357
 
10358
+
10327
10359
  class Ajax {
10328
10360
  className() {
10329
10361
  return 'Ajax';
10330
10362
  }
10331
- constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
10363
+ constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
10332
10364
  this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
10333
10365
  this.__isFulfilled = false;
10334
10366
  this.__activated = false;
10335
10367
  this.__isDestructed = false;
10336
- this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(options || {}, defaultAjaxOptions);
10368
+ this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
10337
10369
  this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
10338
10370
  }
10339
10371
  __buildParams(obj, prefix) {
10340
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(obj) &&
10372
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
10341
10373
  this.options.contentType &&
10342
10374
  this.options.contentType.includes('application/json')) {
10343
10375
  return JSON.stringify(obj);
10344
10376
  }
10345
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(this.o.queryBuild)) {
10377
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
10346
10378
  return this.o.queryBuild.call(this, obj, prefix);
10347
10379
  }
10348
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isString)(obj) ||
10349
- obj instanceof window.FormData ||
10350
- (typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(obj.append))) {
10380
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(obj) ||
10381
+ obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.globalWindow.FormData ||
10382
+ (typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(obj.append))) {
10351
10383
  return obj;
10352
10384
  }
10353
- return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)(obj);
10385
+ return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
10354
10386
  }
10355
10387
  get o() {
10356
10388
  return this.options;
@@ -10374,16 +10406,16 @@ class Ajax {
10374
10406
  var _a;
10375
10407
  const onReject = () => {
10376
10408
  this.__isFulfilled = true;
10377
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .connection */ .FI('Connection error'));
10409
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
10378
10410
  };
10379
10411
  const onResolve = () => {
10380
10412
  this.__isFulfilled = true;
10381
- resolve(new _response__WEBPACK_IMPORTED_MODULE_5__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
10413
+ resolve(new _response__WEBPACK_IMPORTED_MODULE_6__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
10382
10414
  };
10383
10415
  xhr.onload = onResolve;
10384
10416
  xhr.onabort = () => {
10385
10417
  this.__isFulfilled = true;
10386
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .abort */ .h2('Abort connection'));
10418
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
10387
10419
  };
10388
10420
  xhr.onerror = onReject;
10389
10421
  xhr.ontimeout = onReject;
@@ -10407,7 +10439,7 @@ class Ajax {
10407
10439
  }
10408
10440
  else if (xhr.statusText) {
10409
10441
  this.__isFulfilled = true;
10410
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .connection */ .FI(xhr.statusText));
10442
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
10411
10443
  }
10412
10444
  }
10413
10445
  };
@@ -10418,7 +10450,7 @@ class Ajax {
10418
10450
  xhr.setRequestHeader('Content-type', o.contentType);
10419
10451
  }
10420
10452
  let { headers } = o;
10421
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(headers)) {
10453
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
10422
10454
  headers = await headers.call(this);
10423
10455
  }
10424
10456
  if (headers && xhr.setRequestHeader) {
@@ -10434,22 +10466,22 @@ class Ajax {
10434
10466
  }
10435
10467
  prepareRequest() {
10436
10468
  if (!this.o.url) {
10437
- throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .error */ .z3('Need URL for AJAX request');
10469
+ throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
10438
10470
  }
10439
10471
  let url = this.o.url;
10440
10472
  const data = this.o.data;
10441
10473
  const method = (this.o.method || 'get').toLowerCase();
10442
- if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(data)) {
10474
+ if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
10443
10475
  const qIndex = url.indexOf('?');
10444
10476
  if (qIndex !== -1) {
10445
- const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.parseQuery)(url);
10477
+ const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
10446
10478
  url =
10447
10479
  url.substring(0, qIndex) +
10448
10480
  '?' +
10449
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)({ ...urlData, ...data });
10481
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)({ ...urlData, ...data });
10450
10482
  }
10451
10483
  else {
10452
- url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)(this.o.data);
10484
+ url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
10453
10485
  }
10454
10486
  }
10455
10487
  const request = {
@@ -10473,8 +10505,8 @@ class Ajax {
10473
10505
  }
10474
10506
  }
10475
10507
  Ajax.log = [];
10476
- (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
10477
- jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Ay
10508
+ (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
10509
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
10478
10510
  ], Ajax.prototype, "destruct", null);
10479
10511
 
10480
10512
 
@@ -11364,6 +11396,7 @@ class Selection {
11364
11396
  /**
11365
11397
  * Call callback for all selection node
11366
11398
  */
11399
+ // eslint-disable-next-line complexity
11367
11400
  eachSelection(callback) {
11368
11401
  var _a;
11369
11402
  const sel = this.sel;
@@ -12148,12 +12181,13 @@ function getSuitParent(style, node, root) {
12148
12181
  /* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
12149
12182
  /* harmony export */ g: function() { return /* binding */ hasSameStyle; }
12150
12183
  /* harmony export */ });
12151
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
12152
- /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
12153
- /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43581);
12154
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
12155
- /* 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__);
12156
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4401);
12184
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
12185
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
12186
+ /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74197);
12187
+ /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43581);
12188
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
12189
+ /* 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__);
12190
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4401);
12157
12191
  /*!
12158
12192
  * Jodit Editor (https://xdsoft.net/jodit/)
12159
12193
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -12164,48 +12198,53 @@ function getSuitParent(style, node, root) {
12164
12198
 
12165
12199
 
12166
12200
 
12201
+
12167
12202
  /**
12168
12203
  * Element has the same styles as in the commit
12169
12204
  * @private
12170
12205
  */
12171
12206
  function hasSameStyle(elm, rules) {
12172
- return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isTag(elm, 'font') &&
12173
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isHTMLElement(elm) &&
12207
+ return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
12208
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
12174
12209
  Object.keys(rules).every(property => {
12175
- const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(elm, property, true);
12210
+ const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
12176
12211
  if (value === '' &&
12177
12212
  (rules[property] === '' || rules[property] == null)) {
12178
12213
  return true;
12179
12214
  }
12180
- return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(value) &&
12215
+ return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
12181
12216
  value !== '' &&
12182
- !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(rules[property]) &&
12183
- (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_4__/* .normalizeCssValue */ .iy)(property, rules[property])
12217
+ !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(rules[property]) &&
12218
+ (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__/* .normalizeCssValue */ .iy)(property, rules[property])
12184
12219
  .toString()
12185
12220
  .toLowerCase() === value.toString().toLowerCase());
12186
12221
  }));
12187
12222
  }
12188
- const elm = document.createElement('div');
12189
- elm.style.color = 'red';
12190
- void 0;
12191
- void 0;
12192
- void 0;
12223
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
12224
+ const elm = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
12225
+ elm.style.color = 'red';
12226
+ void 0;
12227
+ void 0;
12228
+ void 0;
12229
+ }
12193
12230
  /**
12194
12231
  * Element has the similar styles keys
12195
12232
  */
12196
12233
  function hasSameStyleKeys(elm, rules) {
12197
- return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isTag(elm, 'font') &&
12198
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isHTMLElement(elm) &&
12234
+ return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
12235
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
12199
12236
  Object.keys(rules).every(property => {
12200
- const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(elm, property, true);
12237
+ const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
12201
12238
  return value !== '';
12202
12239
  }));
12203
12240
  }
12204
- const elm2 = document.createElement('div');
12205
- elm2.style.color = 'red';
12206
- void 0;
12207
- void 0;
12208
- void 0;
12241
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
12242
+ const elm2 = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
12243
+ elm2.style.color = 'red';
12244
+ void 0;
12245
+ void 0;
12246
+ void 0;
12247
+ }
12209
12248
 
12210
12249
 
12211
12250
  /***/ }),
@@ -12588,16 +12627,17 @@ function wrapList(commitStyle, wrapper, jodit) {
12588
12627
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12589
12628
  /* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
12590
12629
  /* harmony export */ });
12591
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
12592
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
12593
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58588);
12594
- /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(43581);
12595
- /* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88455);
12596
- /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18014);
12597
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71122);
12598
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4401);
12599
- /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49382);
12600
- /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43072);
12630
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
12631
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
12632
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
12633
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58588);
12634
+ /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43581);
12635
+ /* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88455);
12636
+ /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18014);
12637
+ /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71122);
12638
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4401);
12639
+ /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49382);
12640
+ /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43072);
12601
12641
  /*!
12602
12642
  * Jodit Editor (https://xdsoft.net/jodit/)
12603
12643
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -12613,6 +12653,7 @@ function wrapList(commitStyle, wrapper, jodit) {
12613
12653
 
12614
12654
 
12615
12655
 
12656
+
12616
12657
  const tak = 'toggleAttributes';
12617
12658
  /**
12618
12659
  * Toggles attributes
@@ -12624,7 +12665,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
12624
12665
  }
12625
12666
  !dry && commitStyle.setApplied(elm, tak);
12626
12667
  const { attributes } = commitStyle.options;
12627
- if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_3__/* .size */ .E)(attributes) > 0) {
12668
+ if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
12628
12669
  Object.keys(attributes).forEach((key) => {
12629
12670
  const value = attributes[key];
12630
12671
  switch (key) {
@@ -12646,24 +12687,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
12646
12687
  function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
12647
12688
  void 0;
12648
12689
  Object.keys(style).forEach((rule) => {
12649
- const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_6__/* .kebabCase */ .k)(rule));
12690
+ const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__/* .kebabCase */ .k)(rule));
12650
12691
  const newValue = style[rule];
12651
12692
  if (inlineValue === '' && newValue == null) {
12652
12693
  return;
12653
12694
  }
12654
12695
  if (getNativeCSSValue(jodit, elm, rule) ===
12655
- (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_7__/* .normalizeCssValue */ .iy)(rule, newValue)) {
12696
+ (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
12656
12697
  if (!inlineValue) {
12657
12698
  return;
12658
12699
  }
12659
- !dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(elm, rule, null);
12660
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12700
+ !dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, null);
12701
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12661
12702
  mode = removeExtraStyleAttribute(commitStyle, elm, mode);
12662
12703
  return;
12663
12704
  }
12664
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12705
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12665
12706
  if (!dry) {
12666
- (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(elm, rule, newValue);
12707
+ (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
12667
12708
  mode = removeExtraStyleAttribute(commitStyle, elm, mode);
12668
12709
  }
12669
12710
  });
@@ -12671,19 +12712,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
12671
12712
  }
12672
12713
  function toggleClass(jodit, value, elm, mode, dry) {
12673
12714
  void 0;
12674
- const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12715
+ const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12675
12716
  if (elm.classList.contains(value.toString())) {
12676
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12717
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12677
12718
  if (!dry) {
12678
12719
  elm.classList.remove(value);
12679
12720
  if (elm.classList.length === 0) {
12680
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'class', null);
12721
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
12681
12722
  hook(mode, elm, 'class', null);
12682
12723
  }
12683
12724
  }
12684
12725
  }
12685
12726
  else {
12686
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12727
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12687
12728
  if (!dry) {
12688
12729
  elm.classList.add(value);
12689
12730
  hook(mode, elm, 'class', value);
@@ -12693,16 +12734,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
12693
12734
  }
12694
12735
  function toggleAttribute(jodit, value, elm, key, dry, mode) {
12695
12736
  void 0;
12696
- const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12697
- if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key) === value) {
12698
- !dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key, null);
12699
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12737
+ const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12738
+ if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key) === value) {
12739
+ !dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, null);
12740
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12700
12741
  !dry && hook(mode, elm, key, value);
12701
12742
  return mode;
12702
12743
  }
12703
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12744
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12704
12745
  if (!dry) {
12705
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key, value);
12746
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
12706
12747
  hook(mode, elm, key, value);
12707
12748
  }
12708
12749
  return mode;
@@ -12712,11 +12753,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
12712
12753
  * and if it is default, it removes the element itself
12713
12754
  */
12714
12755
  function removeExtraStyleAttribute(commitStyle, elm, mode) {
12715
- if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'style')) {
12716
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'style', null);
12756
+ if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style')) {
12757
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style', null);
12717
12758
  if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
12718
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(elm);
12719
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNWRAP */ .OJ;
12759
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(elm);
12760
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNWRAP */ .OJ;
12720
12761
  }
12721
12762
  }
12722
12763
  return mode;
@@ -12726,12 +12767,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
12726
12767
  */
12727
12768
  function getShadowRoot(jodit) {
12728
12769
  var _a;
12729
- if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
12730
- return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot');
12770
+ if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
12771
+ return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
12731
12772
  }
12732
- const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .getContainer */ .My)(jodit);
12733
- const iframe = document.createElement('iframe');
12734
- (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(iframe, {
12773
+ const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(jodit);
12774
+ const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
12775
+ (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(iframe, {
12735
12776
  width: 0,
12736
12777
  height: 0,
12737
12778
  position: 'absolute',
@@ -12741,7 +12782,7 @@ function getShadowRoot(jodit) {
12741
12782
  container.appendChild(iframe);
12742
12783
  const doc = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document;
12743
12784
  const shadowRoot = !doc ? jodit.od.body : doc.body;
12744
- (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
12785
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
12745
12786
  return shadowRoot;
12746
12787
  }
12747
12788
  /**
@@ -12752,8 +12793,8 @@ function getNativeCSSValue(jodit, elm, key) {
12752
12793
  newElm.style.cssText = elm.style.cssText;
12753
12794
  const root = getShadowRoot(jodit);
12754
12795
  root.appendChild(newElm);
12755
- const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(newElm, key);
12756
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(newElm);
12796
+ const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(newElm, key);
12797
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(newElm);
12757
12798
  return result;
12758
12799
  }
12759
12800
 
@@ -14789,6 +14830,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
14789
14830
  }
14790
14831
  createContainer(options) {
14791
14832
  this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
14833
+ tooltip: options.tooltip,
14792
14834
  icon: {
14793
14835
  name: 'plus'
14794
14836
  }
@@ -15228,8 +15270,8 @@ __webpack_require__.r(__webpack_exports__);
15228
15270
  /* harmony export */ required: function() { return /* binding */ required; },
15229
15271
  /* harmony export */ url: function() { return /* binding */ url; }
15230
15272
  /* harmony export */ });
15231
- /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
15232
- /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22718);
15273
+ /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
15274
+ /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
15233
15275
  /*!
15234
15276
  * Jodit Editor (https://xdsoft.net/jodit/)
15235
15277
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -15241,7 +15283,7 @@ __webpack_require__.r(__webpack_exports__);
15241
15283
  * Input is required
15242
15284
  */
15243
15285
  const required = function (input) {
15244
- if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .Bq)(input.value).length) {
15286
+ if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
15245
15287
  input.error = 'Please fill out this field';
15246
15288
  return false;
15247
15289
  }
@@ -15251,7 +15293,7 @@ const required = function (input) {
15251
15293
  * Input value should be valid URL
15252
15294
  */
15253
15295
  const url = function (input) {
15254
- 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))) {
15296
+ 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))) {
15255
15297
  input.error = 'Please enter a web address';
15256
15298
  return false;
15257
15299
  }
@@ -17900,6 +17942,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17900
17942
  }
17901
17943
  }
17902
17944
  catch (e) {
17945
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
17946
+ throw e;
17947
+ }
17903
17948
  this.destruct();
17904
17949
  throw e;
17905
17950
  }
@@ -19893,10 +19938,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
19893
19938
  jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
19894
19939
  upload: {
19895
19940
  icon: 'plus',
19941
+ tooltip: 'Upload file',
19896
19942
  isInput: true,
19897
19943
  isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
19898
- getContent: (filebrowser) => {
19944
+ getContent: (filebrowser, btnInt) => {
19899
19945
  const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
19946
+ tooltip: btnInt.control.tooltip,
19900
19947
  onlyImages: filebrowser.state.onlyImages
19901
19948
  });
19902
19949
  filebrowser.e.fire('bindUploader.filebrowser', btn.container);
@@ -19905,6 +19952,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19905
19952
  },
19906
19953
  remove: {
19907
19954
  icon: 'bin',
19955
+ tooltip: 'Remove file',
19908
19956
  isDisabled: (browser) => {
19909
19957
  return (!browser.state.activeElements.length ||
19910
19958
  !browser.dataProvider.canI('FileRemove'));
@@ -19914,11 +19962,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19914
19962
  }
19915
19963
  },
19916
19964
  update: {
19965
+ tooltip: 'Update file list',
19917
19966
  exec: (editor) => {
19918
19967
  editor.e.fire('update.filebrowser');
19919
19968
  }
19920
19969
  },
19921
19970
  select: {
19971
+ tooltip: 'Select file',
19922
19972
  icon: 'check',
19923
19973
  isDisabled: (browser) => !browser.state.activeElements.length,
19924
19974
  exec: (editor) => {
@@ -19926,6 +19976,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19926
19976
  }
19927
19977
  },
19928
19978
  edit: {
19979
+ tooltip: 'Edit image',
19929
19980
  icon: 'pencil',
19930
19981
  isDisabled: (browser) => {
19931
19982
  const selected = browser.state.activeElements;
@@ -19939,6 +19990,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19939
19990
  }
19940
19991
  },
19941
19992
  tiles: {
19993
+ tooltip: 'Tiles view',
19942
19994
  icon: 'th',
19943
19995
  isActive: (filebrowser) => filebrowser.state.view === 'tiles',
19944
19996
  exec: (filebrowser) => {
@@ -19946,6 +19998,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19946
19998
  }
19947
19999
  },
19948
20000
  list: {
20001
+ tooltip: 'List view',
19949
20002
  icon: 'th-list',
19950
20003
  isActive: (filebrowser) => filebrowser.state.view === 'list',
19951
20004
  exec: (filebrowser) => {
@@ -20362,7 +20415,6 @@ let DataProvider = class DataProvider {
20362
20415
  data: {}
20363
20416
  };
20364
20417
  }
20365
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
20366
20418
  const query = this.o[type];
20367
20419
  if (query.data === undefined) {
20368
20420
  query.data = {
@@ -20608,7 +20660,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20608
20660
  get dataProvider() {
20609
20661
  return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
20610
20662
  }
20611
- // eslint-disable-next-line no-unused-vars
20612
20663
  onSelect(callback) {
20613
20664
  return () => {
20614
20665
  if (this.state.activeElements.length) {
@@ -23130,7 +23181,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
23130
23181
  const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
23131
23182
  selector && selectors.push(selector);
23132
23183
  });
23133
- // eslint-disable-next-line no-prototype-builtins
23134
23184
  style.innerHTML = selectors.length
23135
23185
  ? selectors.join(',') +
23136
23186
  `{${this.jodit.options.table.selectionCellStyle}}`
@@ -26946,6 +26996,7 @@ function checkNotCollapsed(jodit) {
26946
26996
  * ```
26947
26997
  * @private
26948
26998
  */
26999
+ // eslint-disable-next-line complexity
26949
27000
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26950
27001
  var _a, _b;
26951
27002
  const step = backspace ? -1 : 1;
@@ -31757,6 +31808,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
31757
31808
  '-ms-user-select: none' +
31758
31809
  '}';
31759
31810
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
31811
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
31760
31812
 
31761
31813
 
31762
31814
  /***/ }),
@@ -31833,6 +31885,9 @@ function iframe(editor) {
31833
31885
  iframe.setAttribute('allowtransparency', 'true');
31834
31886
  iframe.setAttribute('tabindex', opt.tabIndex.toString());
31835
31887
  iframe.setAttribute('frameborder', '0');
31888
+ if (opt.iframeSandbox != null) {
31889
+ iframe.setAttribute('sandbox', opt.iframeSandbox);
31890
+ }
31836
31891
  editor.workplace.appendChild(iframe);
31837
31892
  editor.iframe = iframe;
31838
31893
  const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
@@ -37616,13 +37671,13 @@ function generateCriticalCSS(jodit) {
37616
37671
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
37617
37672
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33465);
37618
37673
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
37619
- /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54614);
37620
- /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85769);
37621
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
37622
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
37623
- /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(86134);
37624
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26899);
37625
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
37674
+ /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54614);
37675
+ /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85769);
37676
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80004);
37677
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
37678
+ /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86134);
37679
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26899);
37680
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_8__);
37626
37681
  /*!
37627
37682
  * Jodit Editor (https://xdsoft.net/jodit/)
37628
37683
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37637,8 +37692,8 @@ function generateCriticalCSS(jodit) {
37637
37692
 
37638
37693
 
37639
37694
 
37640
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
37641
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
37695
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_8___default()));
37696
+ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.print = {
37642
37697
  exec: (editor) => {
37643
37698
  const iframe = editor.create.element('iframe');
37644
37699
  Object.assign(iframe.style, {
@@ -37649,7 +37704,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
37649
37704
  height: 0,
37650
37705
  border: 0
37651
37706
  });
37652
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
37707
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T).appendChild(iframe);
37653
37708
  const afterFinishPrint = () => {
37654
37709
  editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
37655
37710
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
@@ -37665,12 +37720,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
37665
37720
  }
37666
37721
  else {
37667
37722
  myWindow.document.write('<!doctype html><html lang="' +
37668
- (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
37723
+ (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
37669
37724
  '"><head><title></title></head><style>' +
37670
- (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
37725
+ (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
37671
37726
  '</style><body></body></html>');
37672
37727
  myWindow.document.close();
37673
- (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
37728
+ (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
37674
37729
  }
37675
37730
  const style = myWindow.document.createElement('style');
37676
37731
  style.innerHTML = `@media print {
@@ -38746,10 +38801,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
38746
38801
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
38747
38802
 
38748
38803
  "use strict";
38749
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
38750
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
38751
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98973);
38752
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
38804
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
38805
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
38806
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
38807
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98973);
38808
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_3__);
38753
38809
  /*!
38754
38810
  * Jodit Editor (https://xdsoft.net/jodit/)
38755
38811
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38759,14 +38815,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
38759
38815
 
38760
38816
 
38761
38817
 
38762
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
38763
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
38818
+
38819
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
38820
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
38764
38821
  lazyIdleTimeout: 0,
38765
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38766
- useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
38822
+ useCustomHighlightAPI: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined'
38767
38823
  };
38768
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
38769
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
38824
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_3___default()));
38825
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
38770
38826
  tooltip: 'Find',
38771
38827
  icon: 'search',
38772
38828
  exec(jodit, _, { control }) {
@@ -38807,8 +38863,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
38807
38863
  /* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
38808
38864
  /* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
38809
38865
  /* harmony export */ });
38810
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
38811
- /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52989);
38866
+ /* unused harmony export clearNativeSelection */
38867
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
38868
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
38869
+ /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52989);
38812
38870
  /*!
38813
38871
  * Jodit Editor (https://xdsoft.net/jodit/)
38814
38872
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38816,6 +38874,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
38816
38874
  */
38817
38875
 
38818
38876
 
38877
+
38819
38878
  /**
38820
38879
  * @private
38821
38880
  */
@@ -38834,15 +38893,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
38834
38893
  const span = ci.element('span', {
38835
38894
  [TMP_ATTR]: true
38836
38895
  });
38837
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
38896
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
38838
38897
  normalizeRanges(rng, restRanges, ci);
38839
38898
  let next = rng.startContainer;
38840
38899
  do {
38841
38900
  if (!next) {
38842
38901
  break;
38843
38902
  }
38844
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
38845
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
38903
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
38904
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
38846
38905
  }
38847
38906
  if (next === rng.endContainer) {
38848
38907
  break;
@@ -38861,13 +38920,14 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
38861
38920
  * @private
38862
38921
  */
38863
38922
  function getSelectionWrappers(root) {
38864
- return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__.$$)(`[${TMP_ATTR}]`, root);
38923
+ return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
38865
38924
  }
38866
38925
  /**
38867
38926
  * @private
38868
38927
  */
38869
- function clearSelectionWrappers(root) {
38870
- getSelectionWrappers(root).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(span));
38928
+ function clearSelectionWrappers(jodit) {
38929
+ getSelectionWrappers(jodit.editor).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
38930
+ clearNativeSelection(jodit);
38871
38931
  }
38872
38932
  /**
38873
38933
  * @private
@@ -38879,19 +38939,19 @@ function clearSelectionWrappersFromHTML(root) {
38879
38939
  * @private
38880
38940
  */
38881
38941
  function isSelectionWrapper(node) {
38882
- return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
38942
+ return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
38883
38943
  }
38884
38944
  function checkNativeSelectionMethod(jodit, rng, restRanges) {
38885
38945
  if (jodit.o.search.useCustomHighlightAPI &&
38886
38946
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38887
- typeof window.Highlight !== 'undefined') {
38947
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
38948
+ typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
38888
38949
  const ranges = [rng, ...restRanges].map(rng => {
38889
38950
  const range = jodit.selection.createRange();
38890
38951
  range.setStart(rng.startContainer, rng.startOffset);
38891
38952
  range.setEnd(rng.endContainer, rng.endOffset);
38892
38953
  return range;
38893
38954
  });
38894
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38895
38955
  const searchHighlight = new Highlight(...ranges);
38896
38956
  // @ts-ignore
38897
38957
  CSS.highlights.clear();
@@ -38902,13 +38962,22 @@ function checkNativeSelectionMethod(jodit, rng, restRanges) {
38902
38962
  }
38903
38963
  return false;
38904
38964
  }
38965
+ function clearNativeSelection(jodit) {
38966
+ if (jodit.o.search.useCustomHighlightAPI &&
38967
+ // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
38968
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
38969
+ typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
38970
+ // @ts-ignore
38971
+ CSS.highlights.clear();
38972
+ }
38973
+ }
38905
38974
  function normalizeRanges(rng, restRanges, ci) {
38906
38975
  const startText = rng.startContainer.nodeValue;
38907
38976
  let diff = 0;
38908
38977
  if (rng.startOffset !== 0) {
38909
38978
  const text = ci.text(startText.substring(0, rng.startOffset));
38910
38979
  rng.startContainer.nodeValue = startText.substring(rng.startOffset);
38911
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
38980
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
38912
38981
  if (rng.startContainer === rng.endContainer) {
38913
38982
  diff = rng.startOffset;
38914
38983
  rng.endOffset -= diff;
@@ -38919,7 +38988,7 @@ function normalizeRanges(rng, restRanges, ci) {
38919
38988
  if (rng.endOffset !== endText.length) {
38920
38989
  const text = ci.text(endText.substring(rng.endOffset));
38921
38990
  rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
38922
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
38991
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
38923
38992
  for (const range of restRanges) {
38924
38993
  if (range.startContainer === rng.endContainer) {
38925
38994
  range.startContainer = text;
@@ -39076,11 +39145,11 @@ class SentenceFinder {
39076
39145
  *
39077
39146
  * @example
39078
39147
  * ```typescript
39079
- * var jodit = Jodit.make('#editor', {
39148
+ * const jodit = Jodit.make('#editor', {
39080
39149
  * useSearch: false
39081
39150
  * });
39082
39151
  * // or
39083
- * var jodit = Jodit.make('#editor', {
39152
+ * const jodit = Jodit.make('#editor', {
39084
39153
  * disablePlugins: 'search'
39085
39154
  * });
39086
39155
  * ```
@@ -39159,7 +39228,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
39159
39228
  rng.deleteContents();
39160
39229
  const textNode = this.j.createInside.text(this.ui.replace);
39161
39230
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.safeInsertNode(rng, textNode);
39162
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j.editor);
39231
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
39163
39232
  this.j.s.setCursorAfter(textNode);
39164
39233
  this.tryScrollToElement(textNode);
39165
39234
  this.cache = {};
@@ -39187,7 +39256,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
39187
39256
  !(0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .getSelectionWrappers */ .zy)(this.j.editor).length) {
39188
39257
  (_a = this.drawPromise) === null || _a === void 0 ? void 0 : _a.rejectCallback();
39189
39258
  this.j.async.cancelAnimationFrame(this.wrapFrameRequest);
39190
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j.editor);
39259
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(this.j);
39191
39260
  this.drawPromise = this.__drawSelectionRanges(bounds);
39192
39261
  }
39193
39262
  this.previousQuery = query;
@@ -39304,14 +39373,15 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
39304
39373
  this.ui.close();
39305
39374
  })
39306
39375
  .on(this.ui, 'afterClose', () => {
39307
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor.editor);
39376
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
39308
39377
  this.ui.currentIndex = 0;
39309
39378
  this.ui.count = 0;
39310
39379
  this.cache = {};
39380
+ editor.focus();
39311
39381
  })
39312
39382
  .on('click', () => {
39313
39383
  this.ui.currentIndex = 0;
39314
- (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor.editor);
39384
+ (0,_helpers__WEBPACK_IMPORTED_MODULE_7__/* .clearSelectionWrappers */ .IJ)(editor);
39315
39385
  })
39316
39386
  .on('change.search', () => {
39317
39387
  this.cache = {};
@@ -39322,7 +39392,7 @@ class search extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_5__/* .Plugin */
39322
39392
  this.ui.selInfo = null;
39323
39393
  }
39324
39394
  if (this.ui.isOpened) {
39325
- this.updateCounters();
39395
+ void this.updateCounters();
39326
39396
  }
39327
39397
  }, editor.defaultTimeout))
39328
39398
  .on('searchNext.search searchPrevious.search', () => {
@@ -39502,7 +39572,7 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
39502
39572
  return false;
39503
39573
  })
39504
39574
  .on(next, 'pointerdown', () => {
39505
- jodit.e.fire('searchNext');
39575
+ void jodit.e.fire('searchNext');
39506
39576
  return false;
39507
39577
  })
39508
39578
  .on(prev, 'pointerdown', () => {
@@ -39512,12 +39582,12 @@ let UISearch = class UISearch extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__
39512
39582
  .on(this.queryInput, 'input', () => {
39513
39583
  this.setMod('empty-query', !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.trim)(this.queryInput.value).length);
39514
39584
  })
39515
- .on(this.queryInput, 'keydown', this.j.async.debounce((e) => {
39585
+ .on(this.queryInput, 'keydown', this.j.async.debounce(async (e) => {
39516
39586
  switch (e.key) {
39517
39587
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER:
39518
39588
  e.preventDefault();
39519
39589
  e.stopImmediatePropagation();
39520
- if (jodit.e.fire('searchNext')) {
39590
+ if (await jodit.e.fire('searchNext')) {
39521
39591
  this.close();
39522
39592
  }
39523
39593
  break;
@@ -41816,6 +41886,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
41816
41886
 
41817
41887
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
41818
41888
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
41889
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
41819
41890
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
41820
41891
 
41821
41892
 
@@ -41862,9 +41933,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
41862
41933
  this.calc = this.j.async.throttle(() => {
41863
41934
  const text = this.j.text;
41864
41935
  if (this.j.o.showCharsCounter && this.charCounter) {
41865
- const chars = this.j.o.countHTMLChars
41866
- ? this.j.value
41867
- : text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
41936
+ let chars;
41937
+ if (this.j.o.countHTMLChars) {
41938
+ chars = this.j.value;
41939
+ }
41940
+ else {
41941
+ if (this.j.o.countTextSpaces) {
41942
+ chars = text
41943
+ .replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), '')
41944
+ .replace(/[\r\n]/g, '');
41945
+ }
41946
+ else {
41947
+ chars = text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
41948
+ }
41949
+ }
41868
41950
  this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
41869
41951
  }
41870
41952
  if (this.j.o.showWordsCounter && this.wordCounter) {
@@ -42498,8 +42580,9 @@ __webpack_require__.r(__webpack_exports__);
42498
42580
  /* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_16__; },
42499
42581
  /* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_17__; },
42500
42582
  /* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_18__; },
42501
- /* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_19__; },
42502
- /* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_20__; }
42583
+ /* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_19__; },
42584
+ /* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__; },
42585
+ /* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__; }
42503
42586
  /* harmony export */ });
42504
42587
  /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52438);
42505
42588
  /* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
@@ -42539,10 +42622,12 @@ __webpack_require__.r(__webpack_exports__);
42539
42622
  /* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_17__);
42540
42623
  /* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(64331);
42541
42624
  /* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_18__);
42542
- /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(13599);
42543
- /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_19__);
42544
- /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(70871);
42545
- /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_20__);
42625
+ /* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(87983);
42626
+ /* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_19__);
42627
+ /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(13599);
42628
+ /* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_20__);
42629
+ /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(70871);
42630
+ /* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_21__);
42546
42631
  /*!
42547
42632
  * Jodit Editor (https://xdsoft.net/jodit/)
42548
42633
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -42570,6 +42655,7 @@ __webpack_require__.r(__webpack_exports__);
42570
42655
 
42571
42656
 
42572
42657
 
42658
+
42573
42659
 
42574
42660
 
42575
42661
  /***/ }),
@@ -42725,6 +42811,23 @@ module.exports = {
42725
42811
  };
42726
42812
 
42727
42813
 
42814
+ /***/ }),
42815
+
42816
+ /***/ 87983:
42817
+ /***/ (function(module) {
42818
+
42819
+ "use strict";
42820
+
42821
+ /*!
42822
+ * Jodit Editor (https://xdsoft.net/jodit/)
42823
+ * Released under MIT see LICENSE.txt in the project root for license information.
42824
+ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
42825
+ */
42826
+ module.exports = {
42827
+ symbols: 'символ'
42828
+ };
42829
+
42830
+
42728
42831
  /***/ }),
42729
42832
 
42730
42833
  /***/ 13599:
@@ -44449,7 +44552,6 @@ function getTextLeftOfCursor(range) {
44449
44552
  */
44450
44553
  function replaceTextLeftOfCursorAfterSpace(range, elm) {
44451
44554
  var _a, _b, _c;
44452
- // eslint-disable-next-line prefer-const
44453
44555
  let { startContainer, startOffset } = range;
44454
44556
  if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(startContainer)) {
44455
44557
  startContainer = startContainer.childNodes[startOffset - 1];
@@ -44958,7 +45060,6 @@ function convertToList(elm) {
44958
45060
  return elm;
44959
45061
  }
44960
45062
  function moveUp(leaf) {
44961
- // eslint-disable-next-line no-constant-condition
44962
45063
  while (leaf) {
44963
45064
  const prev = leaf.previousElement;
44964
45065
  // Leaf after P
@@ -46347,7 +46448,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46347
46448
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
46348
46449
  PERFORMANCE OF THIS SOFTWARE.
46349
46450
  ***************************************************************************** */
46350
- /* global Reflect, Promise, SuppressedError, Symbol */
46451
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
46351
46452
 
46352
46453
  var extendStatics = function(d, b) {
46353
46454
  extendStatics = Object.setPrototypeOf ||
@@ -46458,8 +46559,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
46458
46559
  }
46459
46560
 
46460
46561
  function __generator(thisArg, body) {
46461
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
46462
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
46562
+ 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);
46563
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
46463
46564
  function verb(n) { return function (v) { return step([n, v]); }; }
46464
46565
  function step(op) {
46465
46566
  if (f) throw new TypeError("Generator is already executing.");
@@ -46563,8 +46664,9 @@ function __await(v) {
46563
46664
  function __asyncGenerator(thisArg, _arguments, generator) {
46564
46665
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
46565
46666
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
46566
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
46567
- 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); }); }; }
46667
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
46668
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
46669
+ 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]); } }
46568
46670
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
46569
46671
  function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
46570
46672
  function fulfill(value) { resume("next", value); }
@@ -46630,16 +46732,18 @@ function __classPrivateFieldIn(state, receiver) {
46630
46732
  function __addDisposableResource(env, value, async) {
46631
46733
  if (value !== null && value !== void 0) {
46632
46734
  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
46633
- var dispose;
46735
+ var dispose, inner;
46634
46736
  if (async) {
46635
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
46636
- dispose = value[Symbol.asyncDispose];
46737
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
46738
+ dispose = value[Symbol.asyncDispose];
46637
46739
  }
46638
46740
  if (dispose === void 0) {
46639
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
46640
- dispose = value[Symbol.dispose];
46741
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
46742
+ dispose = value[Symbol.dispose];
46743
+ if (async) inner = dispose;
46641
46744
  }
46642
46745
  if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
46746
+ if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
46643
46747
  env.stack.push({ value: value, dispose: dispose, async: async });
46644
46748
  }
46645
46749
  else if (async) {
@@ -46658,17 +46762,22 @@ function __disposeResources(env) {
46658
46762
  env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
46659
46763
  env.hasError = true;
46660
46764
  }
46765
+ var r, s = 0;
46661
46766
  function next() {
46662
- while (env.stack.length) {
46663
- var rec = env.stack.pop();
46767
+ while (r = env.stack.pop()) {
46664
46768
  try {
46665
- var result = rec.dispose && rec.dispose.call(rec.value);
46666
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
46769
+ if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
46770
+ if (r.dispose) {
46771
+ var result = r.dispose.call(r.value);
46772
+ if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
46773
+ }
46774
+ else s |= 1;
46667
46775
  }
46668
46776
  catch (e) {
46669
- fail(e);
46777
+ fail(e);
46670
46778
  }
46671
46779
  }
46780
+ if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
46672
46781
  if (env.hasError) throw env.error;
46673
46782
  }
46674
46783
  return next();
@@ -46795,11 +46904,88 @@ function __disposeResources(env) {
46795
46904
  /******/ };
46796
46905
  /******/ }();
46797
46906
  /******/
46907
+ /******/ /* webpack/runtime/ensure chunk */
46908
+ /******/ !function() {
46909
+ /******/ __webpack_require__.f = {};
46910
+ /******/ // This file contains only the entry chunk.
46911
+ /******/ // The chunk loading function for additional chunks
46912
+ /******/ __webpack_require__.e = function(chunkId) {
46913
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
46914
+ /******/ __webpack_require__.f[key](chunkId, promises);
46915
+ /******/ return promises;
46916
+ /******/ }, []));
46917
+ /******/ };
46918
+ /******/ }();
46919
+ /******/
46920
+ /******/ /* webpack/runtime/get javascript chunk filename */
46921
+ /******/ !function() {
46922
+ /******/ // This function allow to reference async chunks
46923
+ /******/ __webpack_require__.u = function(chunkId) {
46924
+ /******/ // return url for filenames based on template
46925
+ /******/ return "" + chunkId + ".js";
46926
+ /******/ };
46927
+ /******/ }();
46928
+ /******/
46929
+ /******/ /* webpack/runtime/get mini-css chunk filename */
46930
+ /******/ !function() {
46931
+ /******/ // This function allow to reference async chunks
46932
+ /******/ __webpack_require__.miniCssF = function(chunkId) {
46933
+ /******/ // return url for filenames based on template
46934
+ /******/ return undefined;
46935
+ /******/ };
46936
+ /******/ }();
46937
+ /******/
46798
46938
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
46799
46939
  /******/ !function() {
46800
46940
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
46801
46941
  /******/ }();
46802
46942
  /******/
46943
+ /******/ /* webpack/runtime/load script */
46944
+ /******/ !function() {
46945
+ /******/ var inProgress = {};
46946
+ /******/ var dataWebpackPrefix = "jodit-pro:";
46947
+ /******/ // loadScript function to load a script via script tag
46948
+ /******/ __webpack_require__.l = function(url, done, key, chunkId) {
46949
+ /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
46950
+ /******/ var script, needAttach;
46951
+ /******/ if(key !== undefined) {
46952
+ /******/ var scripts = document.getElementsByTagName("script");
46953
+ /******/ for(var i = 0; i < scripts.length; i++) {
46954
+ /******/ var s = scripts[i];
46955
+ /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
46956
+ /******/ }
46957
+ /******/ }
46958
+ /******/ if(!script) {
46959
+ /******/ needAttach = true;
46960
+ /******/ script = document.createElement('script');
46961
+ /******/
46962
+ /******/ script.charset = 'utf-8';
46963
+ /******/ script.timeout = 120;
46964
+ /******/ if (__webpack_require__.nc) {
46965
+ /******/ script.setAttribute("nonce", __webpack_require__.nc);
46966
+ /******/ }
46967
+ /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
46968
+ /******/
46969
+ /******/ script.src = url;
46970
+ /******/ }
46971
+ /******/ inProgress[url] = [done];
46972
+ /******/ var onScriptComplete = function(prev, event) {
46973
+ /******/ // avoid mem leaks in IE.
46974
+ /******/ script.onerror = script.onload = null;
46975
+ /******/ clearTimeout(timeout);
46976
+ /******/ var doneFns = inProgress[url];
46977
+ /******/ delete inProgress[url];
46978
+ /******/ script.parentNode && script.parentNode.removeChild(script);
46979
+ /******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
46980
+ /******/ if(prev) return prev(event);
46981
+ /******/ }
46982
+ /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
46983
+ /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
46984
+ /******/ script.onload = onScriptComplete.bind(null, script.onload);
46985
+ /******/ needAttach && document.head.appendChild(script);
46986
+ /******/ };
46987
+ /******/ }();
46988
+ /******/
46803
46989
  /******/ /* webpack/runtime/make namespace object */
46804
46990
  /******/ !function() {
46805
46991
  /******/ // define __esModule on exports
@@ -46811,6 +46997,11 @@ function __disposeResources(env) {
46811
46997
  /******/ };
46812
46998
  /******/ }();
46813
46999
  /******/
47000
+ /******/ /* webpack/runtime/publicPath */
47001
+ /******/ !function() {
47002
+ /******/ __webpack_require__.p = "/build/";
47003
+ /******/ }();
47004
+ /******/
46814
47005
  /******/ /* webpack/runtime/jsonp chunk loading */
46815
47006
  /******/ !function() {
46816
47007
  /******/ // no baseURI
@@ -46822,7 +47013,44 @@ function __disposeResources(env) {
46822
47013
  /******/ 521: 0
46823
47014
  /******/ };
46824
47015
  /******/
46825
- /******/ // no chunk on demand loading
47016
+ /******/ __webpack_require__.f.j = function(chunkId, promises) {
47017
+ /******/ // JSONP chunk loading for javascript
47018
+ /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
47019
+ /******/ if(installedChunkData !== 0) { // 0 means "already installed".
47020
+ /******/
47021
+ /******/ // a Promise means "currently loading".
47022
+ /******/ if(installedChunkData) {
47023
+ /******/ promises.push(installedChunkData[2]);
47024
+ /******/ } else {
47025
+ /******/ if(true) { // all chunks have JS
47026
+ /******/ // setup Promise in chunk cache
47027
+ /******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
47028
+ /******/ promises.push(installedChunkData[2] = promise);
47029
+ /******/
47030
+ /******/ // start chunk loading
47031
+ /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
47032
+ /******/ // create error before stack unwound to get useful stacktrace later
47033
+ /******/ var error = new Error();
47034
+ /******/ var loadingEnded = function(event) {
47035
+ /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
47036
+ /******/ installedChunkData = installedChunks[chunkId];
47037
+ /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
47038
+ /******/ if(installedChunkData) {
47039
+ /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
47040
+ /******/ var realSrc = event && event.target && event.target.src;
47041
+ /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
47042
+ /******/ error.name = 'ChunkLoadError';
47043
+ /******/ error.type = errorType;
47044
+ /******/ error.request = realSrc;
47045
+ /******/ installedChunkData[1](error);
47046
+ /******/ }
47047
+ /******/ }
47048
+ /******/ };
47049
+ /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
47050
+ /******/ }
47051
+ /******/ }
47052
+ /******/ }
47053
+ /******/ };
46826
47054
  /******/
46827
47055
  /******/ // no prefetching
46828
47056
  /******/