jodit-pro 4.2.24 → 4.2.30

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 +450 -233
  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 +444 -227
  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 +444 -227
  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 +419 -221
  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 +741 -5676
  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
@@ -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.30
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -814,16 +814,12 @@ class Config {
814
814
  showPlaceholder: false
815
815
  }
816
816
  };
817
- this.ownerDocument = (typeof document !== 'undefined'
818
- ? document
819
- : null);
817
+ this.ownerDocument = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
820
818
  /**
821
819
  * Allows you to specify the window in which the editor will be created. Default - window
822
820
  * This is necessary if you are creating the editor inside an iframe but the code is running in the parent window
823
821
  */
824
- this.ownerWindow = (typeof window !== 'undefined'
825
- ? window
826
- : null);
822
+ this.ownerWindow = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow;
827
823
  /**
828
824
  * Shadow root if Jodit was created in it
829
825
  *
@@ -1597,16 +1593,16 @@ Config.prototype.controls = {};
1597
1593
  /* harmony export */ j: function() { return /* binding */ Async; }
1598
1594
  /* harmony export */ });
1599
1595
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
1600
- /* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(98761);
1596
+ /* harmony import */ var jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61239);
1601
1597
  /* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(54306);
1602
1598
  /* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41959);
1603
- /* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(72558);
1599
+ /* harmony import */ var jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72558);
1604
1600
  /* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(47903);
1605
1601
  /* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(75138);
1606
1602
  /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26986);
1607
- /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(74197);
1608
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
1609
- /* 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__);
1603
+ /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
1604
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
1605
+ /* 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__);
1610
1606
  /* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(30126);
1611
1607
  /*!
1612
1608
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -1657,17 +1653,18 @@ class Async {
1657
1653
  return 0;
1658
1654
  }
1659
1655
  let options = {};
1660
- if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__/* .isVoid */ .R)(timeout)) {
1656
+ if ((0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(timeout)) {
1661
1657
  timeout = 0;
1662
1658
  }
1663
- if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_3__/* .isNumber */ .E)(timeout)) {
1659
+ if (!(0,jodit_core_helpers_checker_is_number__WEBPACK_IMPORTED_MODULE_4__/* .isNumber */ .E)(timeout)) {
1664
1660
  options = timeout;
1665
1661
  timeout = options.timeout || 0;
1666
1662
  }
1667
1663
  if (options.label) {
1668
1664
  this.clearLabel(options.label);
1669
1665
  }
1670
- const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .setTimeout */ .w)(callback, timeout, ...args), key = options.label || timer;
1666
+ const timer = (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .setTimeout */ .w)(callback, timeout, ...args);
1667
+ const key = options.label || timer;
1671
1668
  this.timers.set(key, timer);
1672
1669
  this.__callbacks.set(key, callback);
1673
1670
  return timer;
@@ -1683,7 +1680,7 @@ class Async {
1683
1680
  }
1684
1681
  clearLabel(label) {
1685
1682
  if (label && this.timers.has(label)) {
1686
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .D)(this.timers.get(label));
1683
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(label));
1687
1684
  this.timers.delete(label);
1688
1685
  this.__callbacks.delete(label);
1689
1686
  }
@@ -1692,7 +1689,7 @@ class Async {
1692
1689
  if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_5__/* .isString */ .K)(timerOrLabel)) {
1693
1690
  return this.clearLabel(timerOrLabel);
1694
1691
  }
1695
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .D)(timerOrLabel);
1692
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timerOrLabel);
1696
1693
  this.timers.delete(timerOrLabel);
1697
1694
  this.__callbacks.delete(timerOrLabel);
1698
1695
  }
@@ -1734,7 +1731,7 @@ class Async {
1734
1731
  if (!timer && firstCallImmediately) {
1735
1732
  callFn(...args);
1736
1733
  }
1737
- (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .D)(timer);
1734
+ (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(timer);
1738
1735
  timer = this.setTimeout(() => callFn(...args), (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__/* .isFunction */ .T)(timeout) ? timeout() : timeout);
1739
1736
  this.timers.set(fn, timer);
1740
1737
  }
@@ -1888,7 +1885,7 @@ class Async {
1888
1885
  clear() {
1889
1886
  this.requestsIdle.forEach(key => this.cancelIdleCallback(key));
1890
1887
  this.requestsRaf.forEach(key => this.cancelAnimationFrame(key));
1891
- this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_4__/* .clearTimeout */ .D)(this.timers.get(key)));
1888
+ this.timers.forEach(key => (0,jodit_core_helpers_async__WEBPACK_IMPORTED_MODULE_1__/* .clearTimeout */ .D)(this.timers.get(key)));
1892
1889
  this.timers.clear();
1893
1890
  this.promisesRejections.forEach(reject => reject());
1894
1891
  this.promisesRejections.clear();
@@ -2297,6 +2294,8 @@ __webpack_require__.r(__webpack_exports__);
2297
2294
  /* harmony export */ TEXT_PLAIN: function() { return /* binding */ TEXT_PLAIN; },
2298
2295
  /* harmony export */ TEXT_RTF: function() { return /* binding */ TEXT_RTF; },
2299
2296
  /* harmony export */ TOKENS: function() { return /* binding */ TOKENS; },
2297
+ /* harmony export */ globalDocument: function() { return /* binding */ globalDocument; },
2298
+ /* harmony export */ globalWindow: function() { return /* binding */ globalWindow; },
2300
2299
  /* harmony export */ lang: function() { return /* binding */ lang; }
2301
2300
  /* harmony export */ });
2302
2301
  /*!
@@ -2304,7 +2303,7 @@ __webpack_require__.r(__webpack_exports__);
2304
2303
  * Released under MIT see LICENSE.txt in the project root for license information.
2305
2304
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
2306
2305
  */
2307
- const APP_VERSION = "4.2.24";
2306
+ const APP_VERSION = "4.2.30";
2308
2307
  // prettier-ignore
2309
2308
  const ES = "es2021";
2310
2309
  const IS_ES_MODERN = true;
@@ -2323,6 +2322,10 @@ const INVISIBLE_SPACE_REG_EXP_START = () => /^[\uFEFF]+/g;
2323
2322
  const SPACE_REG_EXP = () => /[\s\n\t\r\uFEFF\u200b]+/g;
2324
2323
  const SPACE_REG_EXP_START = () => /^[\s\n\t\r\uFEFF\u200b]+/g;
2325
2324
  const SPACE_REG_EXP_END = () => /[\s\n\t\r\uFEFF\u200b]+$/g;
2325
+ const globalWindow = typeof window !== 'undefined' ? window : undefined;
2326
+ const globalDocument = typeof document !== 'undefined'
2327
+ ? document
2328
+ : undefined;
2326
2329
  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;
2327
2330
  const IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
2328
2331
  const LIST_TAGS = new Set(['ul', 'ol']);
@@ -2447,8 +2450,8 @@ const INSERT_AS_TEXT = 'insert_as_text';
2447
2450
  */
2448
2451
  const INSERT_ONLY_TEXT = 'insert_only_text';
2449
2452
  const SAFE_COUNT_CHANGE_CALL = 10;
2450
- const IS_MAC = typeof window !== 'undefined' &&
2451
- /Mac|iPod|iPhone|iPad/.test(window.navigator.platform);
2453
+ const IS_MAC = typeof globalWindow !== 'undefined' &&
2454
+ /Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
2452
2455
  const KEY_ALIASES = {
2453
2456
  add: '+',
2454
2457
  break: 'pause',
@@ -2476,7 +2479,7 @@ const BASE_PATH = (() => {
2476
2479
  if (typeof document === 'undefined') {
2477
2480
  return '';
2478
2481
  }
2479
- const script = document.currentScript, removeScriptName = (s) => {
2482
+ const script = globalDocument.currentScript, removeScriptName = (s) => {
2480
2483
  const parts = s.split('/');
2481
2484
  if (/\.js/.test(parts[parts.length - 1])) {
2482
2485
  return parts.slice(0, parts.length - 1).join('/') + '/';
@@ -2486,11 +2489,11 @@ const BASE_PATH = (() => {
2486
2489
  if (script) {
2487
2490
  return removeScriptName(script.src);
2488
2491
  }
2489
- const scripts = document.querySelectorAll('script[src]');
2492
+ const scripts = globalDocument.querySelectorAll('script[src]');
2490
2493
  if (scripts && scripts.length) {
2491
2494
  return removeScriptName(scripts[scripts.length - 1].src);
2492
2495
  }
2493
- return window.location.href;
2496
+ return globalWindow.location.href;
2494
2497
  })();
2495
2498
  const TEMP_ATTR = 'data-jodit-temp';
2496
2499
  const lang = {};
@@ -3234,7 +3237,6 @@ function watch(observeFields, opts) {
3234
3237
  const [objectPath, eventName] = field.split(':');
3235
3238
  let ctx = context;
3236
3239
  if (objectPath.length) {
3237
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3238
3240
  ctx = component.get(objectPath);
3239
3241
  }
3240
3242
  if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__/* .isFunction */ .T)(ctx)) {
@@ -3895,7 +3897,7 @@ class Dom {
3895
3897
  * Move all content to another element
3896
3898
  */
3897
3899
  static moveContent(from, to, inStart = false, filter = () => true) {
3898
- const fragment = (from.ownerDocument || document).createDocumentFragment();
3900
+ const fragment = (from.ownerDocument || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument).createDocumentFragment();
3899
3901
  (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(from.childNodes)
3900
3902
  .filter(elm => {
3901
3903
  if (filter(elm)) {
@@ -4352,7 +4354,7 @@ class EventEmitter {
4352
4354
  passive: true,
4353
4355
  capture: options?.capture ?? false
4354
4356
  }
4355
- : options?.capture ?? false;
4357
+ : (options?.capture ?? false);
4356
4358
  syntheticCallback.options = eOpts;
4357
4359
  subject.addEventListener(event, syntheticCallback, eOpts);
4358
4360
  this.__memoryDOMSubjectToHandler(subject, syntheticCallback);
@@ -4583,7 +4585,7 @@ class EventEmitter {
4583
4585
  this.__domEventsMap = new Map();
4584
4586
  this.__mutedEvents = new Set();
4585
4587
  this.__key = '__JoditEventEmitterNamespaces';
4586
- this.__doc = document;
4588
+ this.__doc = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument;
4587
4589
  this.__prepareEvent = (e) => {
4588
4590
  if (e.cancelBubble) {
4589
4591
  return;
@@ -5077,9 +5079,19 @@ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false)
5077
5079
  const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_6__/* .isViewObject */ .h)(jodit) ? jodit : jodit.j;
5078
5080
  if (!data[key]) {
5079
5081
  let c = view.c;
5080
- let body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot
5081
- ? jodit.o.shadowRoot
5082
- : jodit.od.body;
5082
+ let body;
5083
+ if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) && jodit.o.shadowRoot) {
5084
+ body = jodit.o.shadowRoot;
5085
+ }
5086
+ else {
5087
+ body = jodit.od.body;
5088
+ if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit)) {
5089
+ const dialog = _dom__WEBPACK_IMPORTED_MODULE_3__/* .Dom */ .J.closest(jodit.container, 'dialog', jodit.od.body);
5090
+ if (dialog) {
5091
+ body = dialog;
5092
+ }
5093
+ }
5094
+ }
5083
5095
  if (createInsideEditor &&
5084
5096
  (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_7__/* .isJoditObject */ .y)(jodit) &&
5085
5097
  jodit.od !== jodit.ed) {
@@ -5233,7 +5245,7 @@ function splitArray(a) {
5233
5245
  const toArray = function toArray(...args) {
5234
5246
  const func = (0,jodit_core_helpers_checker_is_native_function__WEBPACK_IMPORTED_MODULE_1__/* .isNativeFunction */ .a)(Array.from)
5235
5247
  ? Array.from
5236
- : (0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from') ?? Array.from;
5248
+ : ((0,jodit_core_helpers_utils_reset__WEBPACK_IMPORTED_MODULE_0__/* .reset */ .c)('Array.from') ?? Array.from);
5237
5249
  return func.apply(Array, args);
5238
5250
  };
5239
5251
 
@@ -5270,6 +5282,7 @@ const toArray = function toArray(...args) {
5270
5282
  /* harmony export */ D: function() { return /* binding */ clearTimeout; },
5271
5283
  /* harmony export */ w: function() { return /* binding */ setTimeout; }
5272
5284
  /* harmony export */ });
5285
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
5273
5286
  /*!
5274
5287
  * Jodit Editor (https://xdsoft.net/jodit/)
5275
5288
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -5278,6 +5291,7 @@ const toArray = function toArray(...args) {
5278
5291
  /**
5279
5292
  * @module helpers/async
5280
5293
  */
5294
+
5281
5295
  /**
5282
5296
  * Create async callback if set timeout value - else call function immediately
5283
5297
  */
@@ -5286,7 +5300,7 @@ function setTimeout(callback, timeout, ...args) {
5286
5300
  callback.call(null, ...args);
5287
5301
  }
5288
5302
  else {
5289
- return window.setTimeout(callback, timeout, ...args);
5303
+ return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.setTimeout(callback, timeout, ...args);
5290
5304
  }
5291
5305
  return 0;
5292
5306
  }
@@ -5294,7 +5308,7 @@ function setTimeout(callback, timeout, ...args) {
5294
5308
  * Clear timeout
5295
5309
  */
5296
5310
  function clearTimeout(timer) {
5297
- window.clearTimeout(timer);
5311
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.clearTimeout(timer);
5298
5312
  }
5299
5313
 
5300
5314
 
@@ -5307,6 +5321,7 @@ function clearTimeout(timer) {
5307
5321
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5308
5322
  /* harmony export */ k: function() { return /* binding */ hasBrowserColorPicker; }
5309
5323
  /* harmony export */ });
5324
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
5310
5325
  /*!
5311
5326
  * Jodit Editor (https://xdsoft.net/jodit/)
5312
5327
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -5315,13 +5330,14 @@ function clearTimeout(timer) {
5315
5330
  /**
5316
5331
  * @module helpers/checker
5317
5332
  */
5333
+
5318
5334
  /**
5319
5335
  * Check if browser has a color picker (a new HTML5 attribute for input tag)
5320
5336
  */
5321
5337
  function hasBrowserColorPicker() {
5322
5338
  let supportsColor = true;
5323
5339
  try {
5324
- const a = document.createElement('input');
5340
+ const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('input');
5325
5341
  a.type = 'color';
5326
5342
  a.value = '!';
5327
5343
  supportsColor = a.type === 'color' && a.value !== '!';
@@ -5971,6 +5987,7 @@ function isStringArray(value) {
5971
5987
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5972
5988
  /* harmony export */ m: function() { return /* binding */ isURL; }
5973
5989
  /* harmony export */ });
5990
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
5974
5991
  /*!
5975
5992
  * Jodit Editor (https://xdsoft.net/jodit/)
5976
5993
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -5979,6 +5996,7 @@ function isStringArray(value) {
5979
5996
  /**
5980
5997
  * @module helpers/checker
5981
5998
  */
5999
+
5982
6000
  /**
5983
6001
  * Check if a string is an url
5984
6002
  */
@@ -5995,7 +6013,7 @@ function isURL(str) {
5995
6013
  return false;
5996
6014
  }
5997
6015
  }
5998
- const a = document.createElement('a');
6016
+ const a = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
5999
6017
  a.href = str;
6000
6018
  return Boolean(a.hostname);
6001
6019
  }
@@ -6230,9 +6248,9 @@ function applyStyles(html) {
6230
6248
  }
6231
6249
  html = html.substring(html.indexOf('<html '), html.length);
6232
6250
  html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
6233
- const iframe = document.createElement('iframe');
6251
+ const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
6234
6252
  iframe.style.display = 'none';
6235
- document.body.appendChild(iframe);
6253
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
6236
6254
  let convertedString = '', collection = [];
6237
6255
  try {
6238
6256
  const iframeDoc = iframe.contentDocument ||
@@ -6303,9 +6321,10 @@ function applyStyles(html) {
6303
6321
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6304
6322
  /* harmony export */ w: function() { return /* binding */ cleanFromWord; }
6305
6323
  /* harmony export */ });
6306
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
6307
- /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7773);
6308
- /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22718);
6324
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
6325
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
6326
+ /* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7773);
6327
+ /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22718);
6309
6328
  /*!
6310
6329
  * Jodit Editor (https://xdsoft.net/jodit/)
6311
6330
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -6317,6 +6336,7 @@ function applyStyles(html) {
6317
6336
 
6318
6337
 
6319
6338
 
6339
+
6320
6340
  /**
6321
6341
  * The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
6322
6342
  * content that matches the look and feel of the site.
@@ -6328,11 +6348,11 @@ function cleanFromWord(html) {
6328
6348
  }
6329
6349
  let convertedString = '';
6330
6350
  try {
6331
- const div = document.createElement('div');
6351
+ const div = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
6332
6352
  div.innerHTML = html;
6333
6353
  const marks = [];
6334
6354
  if (div.firstChild) {
6335
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.each(div, node => {
6355
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.each(div, node => {
6336
6356
  if (!node) {
6337
6357
  return;
6338
6358
  }
@@ -6347,10 +6367,10 @@ function cleanFromWord(html) {
6347
6367
  case 'W:SDT':
6348
6368
  case 'W:SDTPR':
6349
6369
  case 'FONT':
6350
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(node);
6370
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(node);
6351
6371
  break;
6352
6372
  default:
6353
- (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .$)(node.attributes).forEach((attr) => {
6373
+ (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(node.attributes).forEach((attr) => {
6354
6374
  if ([
6355
6375
  'src',
6356
6376
  'href',
@@ -6369,14 +6389,14 @@ function cleanFromWord(html) {
6369
6389
  }
6370
6390
  });
6371
6391
  }
6372
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove.apply(null, marks);
6392
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove.apply(null, marks);
6373
6393
  convertedString = div.innerHTML;
6374
6394
  }
6375
6395
  catch (e) { }
6376
6396
  if (convertedString) {
6377
6397
  html = convertedString;
6378
6398
  }
6379
- html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_2__/* .trim */ .Bq).join('\n');
6399
+ html = html.split(/(\n)/).filter(jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_3__/* .trim */ .Bq).join('\n');
6380
6400
  return html
6381
6401
  .replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, '')
6382
6402
  .replace(/<!--[^>]*>/g, '');
@@ -6392,6 +6412,7 @@ function cleanFromWord(html) {
6392
6412
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6393
6413
  /* harmony export */ G: function() { return /* binding */ htmlspecialchars; }
6394
6414
  /* harmony export */ });
6415
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
6395
6416
  /*!
6396
6417
  * Jodit Editor (https://xdsoft.net/jodit/)
6397
6418
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -6400,11 +6421,12 @@ function cleanFromWord(html) {
6400
6421
  /**
6401
6422
  * @module helpers/html
6402
6423
  */
6424
+
6403
6425
  /**
6404
6426
  * Convert special characters to HTML entities
6405
6427
  */
6406
6428
  function htmlspecialchars(html) {
6407
- const tmp = document.createElement('div');
6429
+ const tmp = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
6408
6430
  tmp.textContent = html;
6409
6431
  return tmp.innerHTML;
6410
6432
  }
@@ -7125,8 +7147,9 @@ const getContentWidth = (element, win) => {
7125
7147
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7126
7148
  /* harmony export */ m: function() { return /* binding */ getScrollParent; }
7127
7149
  /* harmony export */ });
7128
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
7129
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71122);
7150
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
7151
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
7152
+ /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71122);
7130
7153
  /*!
7131
7154
  * Jodit Editor (https://xdsoft.net/jodit/)
7132
7155
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -7134,19 +7157,20 @@ const getContentWidth = (element, win) => {
7134
7157
  */
7135
7158
 
7136
7159
 
7160
+
7137
7161
  function getScrollParent(node) {
7138
7162
  if (!node) {
7139
7163
  return null;
7140
7164
  }
7141
- const isElement = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isHTMLElement(node);
7142
- const overflowY = isElement && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.css)(node, 'overflowY');
7165
+ const isElement = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(node);
7166
+ const overflowY = isElement && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_2__.css)(node, 'overflowY');
7143
7167
  const isScrollable = isElement && overflowY !== 'visible' && overflowY !== 'hidden';
7144
7168
  if (isScrollable && node.scrollHeight >= node.clientHeight) {
7145
7169
  return node;
7146
7170
  }
7147
7171
  return (getScrollParent(node.parentNode) ||
7148
- document.scrollingElement ||
7149
- document.body);
7172
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.scrollingElement ||
7173
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body);
7150
7174
  }
7151
7175
 
7152
7176
 
@@ -8070,16 +8094,18 @@ const buildQuery = (data, prefix) => {
8070
8094
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8071
8095
  /* harmony export */ X: function() { return /* binding */ completeUrl; }
8072
8096
  /* harmony export */ });
8097
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8073
8098
  /*!
8074
8099
  * Jodit Editor (https://xdsoft.net/jodit/)
8075
8100
  * Released under MIT see LICENSE.txt in the project root for license information.
8076
8101
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
8077
8102
  */
8103
+
8078
8104
  /**
8079
8105
  * @module helpers/utils
8080
8106
  */
8081
8107
  const completeUrl = (url) => {
8082
- if (window.location.protocol === 'file:' && /^\/\//.test(url)) {
8108
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
8083
8109
  url = 'https:' + url;
8084
8110
  }
8085
8111
  return url;
@@ -8196,8 +8222,9 @@ function ConfigFlatten(obj) {
8196
8222
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8197
8223
  /* harmony export */ m: function() { return /* binding */ convertMediaUrlToVideoEmbed; }
8198
8224
  /* harmony export */ });
8199
- /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
8200
- /* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15896);
8225
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8226
+ /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
8227
+ /* harmony import */ var _parse_query__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15896);
8201
8228
  /*!
8202
8229
  * Jodit Editor (https://xdsoft.net/jodit/)
8203
8230
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8208,14 +8235,15 @@ function ConfigFlatten(obj) {
8208
8235
  */
8209
8236
 
8210
8237
 
8238
+
8211
8239
  /**
8212
8240
  * Javascript url pattern converter replace youtube/vimeo url in embed code.
8213
8241
  */
8214
8242
  const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
8215
- if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__/* .isURL */ .m)(url)) {
8243
+ if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
8216
8244
  return url;
8217
8245
  }
8218
- const parser = document.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
8246
+ const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
8219
8247
  parser.href = url;
8220
8248
  if (!width) {
8221
8249
  width = 400;
@@ -8241,7 +8269,7 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
8241
8269
  case 'youtu.be':
8242
8270
  case 'www.youtu.be': {
8243
8271
  const query = parser.search
8244
- ? (0,_parse_query__WEBPACK_IMPORTED_MODULE_1__/* .parseQuery */ .m)(parser.search)
8272
+ ? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
8245
8273
  : { v: parser.pathname.substr(1) };
8246
8274
  return query.v
8247
8275
  ? '<iframe width="' +
@@ -8435,7 +8463,8 @@ const dataBind = (elm, key, value) => {
8435
8463
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8436
8464
  /* harmony export */ e: function() { return /* binding */ defaultLanguage; }
8437
8465
  /* harmony export */ });
8438
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26986);
8466
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
8467
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26986);
8439
8468
  /*!
8440
8469
  * Jodit Editor (https://xdsoft.net/jodit/)
8441
8470
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8445,15 +8474,16 @@ const dataBind = (elm, key, value) => {
8445
8474
  * @module helpers/utils
8446
8475
  */
8447
8476
 
8477
+
8448
8478
  /**
8449
8479
  * Try define user language
8450
8480
  */
8451
8481
  const defaultLanguage = (language, defaultLanguage = 'en') => {
8452
- if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_0__/* .isString */ .K)(language)) {
8482
+ if (language !== 'auto' && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__/* .isString */ .K)(language)) {
8453
8483
  return language;
8454
8484
  }
8455
- if (document.documentElement && document.documentElement.lang) {
8456
- return document.documentElement.lang;
8485
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang) {
8486
+ return jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.documentElement.lang;
8457
8487
  }
8458
8488
  if (navigator.language) {
8459
8489
  return navigator.language.substring(0, 2);
@@ -9204,10 +9234,10 @@ const map = {};
9204
9234
  */
9205
9235
  function reset(key) {
9206
9236
  if (!(key in map)) {
9207
- const iframe = document.createElement('iframe');
9237
+ const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
9208
9238
  try {
9209
9239
  iframe.src = 'about:blank';
9210
- document.body.appendChild(iframe);
9240
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.body.appendChild(iframe);
9211
9241
  if (!iframe.contentWindow) {
9212
9242
  return null;
9213
9243
  }
@@ -10134,14 +10164,15 @@ Plugin.requires = [];
10134
10164
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10135
10165
  /* harmony export */ d: function() { return /* binding */ Ajax; }
10136
10166
  /* harmony export */ });
10137
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31635);
10167
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31635);
10138
10168
  /* harmony import */ var jodit_core_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61341);
10139
- /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(33442);
10140
- /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9596);
10141
- /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24839);
10142
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91288);
10143
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91596);
10144
- /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85349);
10169
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67259);
10170
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(33442);
10171
+ /* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9596);
10172
+ /* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24839);
10173
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91288);
10174
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91596);
10175
+ /* harmony import */ var _response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85349);
10145
10176
  /*!
10146
10177
  * Jodit Editor (https://xdsoft.net/jodit/)
10147
10178
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -10155,33 +10186,34 @@ Plugin.requires = [];
10155
10186
 
10156
10187
 
10157
10188
 
10189
+
10158
10190
  class Ajax {
10159
10191
  className() {
10160
10192
  return 'Ajax';
10161
10193
  }
10162
- constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.defaultAjaxOptions) {
10194
+ constructor(options, defaultAjaxOptions = jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.defaultAjaxOptions) {
10163
10195
  this.__async = new jodit_core_async__WEBPACK_IMPORTED_MODULE_0__/* .Async */ .j();
10164
10196
  this.__isFulfilled = false;
10165
10197
  this.__activated = false;
10166
10198
  this.__isDestructed = false;
10167
- this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.ConfigProto)(options || {}, defaultAjaxOptions);
10199
+ this.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.ConfigProto)(options || {}, defaultAjaxOptions);
10168
10200
  this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
10169
10201
  }
10170
10202
  __buildParams(obj, prefix) {
10171
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(obj) &&
10203
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(obj) &&
10172
10204
  this.options.contentType &&
10173
10205
  this.options.contentType.includes('application/json')) {
10174
10206
  return JSON.stringify(obj);
10175
10207
  }
10176
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(this.o.queryBuild)) {
10208
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(this.o.queryBuild)) {
10177
10209
  return this.o.queryBuild.call(this, obj, prefix);
10178
10210
  }
10179
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isString)(obj) ||
10180
- obj instanceof window.FormData ||
10181
- (typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(obj.append))) {
10211
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isString)(obj) ||
10212
+ obj instanceof jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.globalWindow.FormData ||
10213
+ (typeof obj === 'object' && obj != null && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(obj.append))) {
10182
10214
  return obj;
10183
10215
  }
10184
- return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)(obj);
10216
+ return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(obj);
10185
10217
  }
10186
10218
  get o() {
10187
10219
  return this.options;
@@ -10204,16 +10236,16 @@ class Ajax {
10204
10236
  return this.__async.promise(async (resolve, reject) => {
10205
10237
  const onReject = () => {
10206
10238
  this.__isFulfilled = true;
10207
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .connection */ .FI('Connection error'));
10239
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI('Connection error'));
10208
10240
  };
10209
10241
  const onResolve = () => {
10210
10242
  this.__isFulfilled = true;
10211
- resolve(new _response__WEBPACK_IMPORTED_MODULE_5__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
10243
+ resolve(new _response__WEBPACK_IMPORTED_MODULE_6__/* .Response */ .Y(request, xhr.status, xhr.statusText, !xhr.responseType ? xhr.responseText : xhr.response));
10212
10244
  };
10213
10245
  xhr.onload = onResolve;
10214
10246
  xhr.onabort = () => {
10215
10247
  this.__isFulfilled = true;
10216
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .abort */ .h2('Abort connection'));
10248
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .abort */ .h2('Abort connection'));
10217
10249
  };
10218
10250
  xhr.onerror = onReject;
10219
10251
  xhr.ontimeout = onReject;
@@ -10235,7 +10267,7 @@ class Ajax {
10235
10267
  }
10236
10268
  else if (xhr.statusText) {
10237
10269
  this.__isFulfilled = true;
10238
- reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .connection */ .FI(xhr.statusText));
10270
+ reject(jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .connection */ .FI(xhr.statusText));
10239
10271
  }
10240
10272
  }
10241
10273
  };
@@ -10246,7 +10278,7 @@ class Ajax {
10246
10278
  xhr.setRequestHeader('Content-type', o.contentType);
10247
10279
  }
10248
10280
  let { headers } = o;
10249
- if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isFunction)(headers)) {
10281
+ if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isFunction)(headers)) {
10250
10282
  headers = await headers.call(this);
10251
10283
  }
10252
10284
  if (headers && xhr.setRequestHeader) {
@@ -10262,22 +10294,22 @@ class Ajax {
10262
10294
  }
10263
10295
  prepareRequest() {
10264
10296
  if (!this.o.url) {
10265
- throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_2__/* .error */ .z3('Need URL for AJAX request');
10297
+ throw jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__/* .error */ .z3('Need URL for AJAX request');
10266
10298
  }
10267
10299
  let url = this.o.url;
10268
10300
  const data = this.o.data;
10269
10301
  const method = (this.o.method || 'get').toLowerCase();
10270
- if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(data)) {
10302
+ if (method === 'get' && data && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(data)) {
10271
10303
  const qIndex = url.indexOf('?');
10272
10304
  if (qIndex !== -1) {
10273
- const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.parseQuery)(url);
10305
+ const urlData = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.parseQuery)(url);
10274
10306
  url =
10275
10307
  url.substring(0, qIndex) +
10276
10308
  '?' +
10277
- (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)({ ...urlData, ...data });
10309
+ (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)({ ...urlData, ...data });
10278
10310
  }
10279
10311
  else {
10280
- url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.buildQuery)(this.o.data);
10312
+ url += '?' + (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.buildQuery)(this.o.data);
10281
10313
  }
10282
10314
  }
10283
10315
  const request = {
@@ -10301,8 +10333,8 @@ class Ajax {
10301
10333
  }
10302
10334
  }
10303
10335
  Ajax.log = [];
10304
- (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
10305
- jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Ay
10336
+ (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
10337
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Ay
10306
10338
  ], Ajax.prototype, "destruct", null);
10307
10339
 
10308
10340
 
@@ -11188,6 +11220,7 @@ class Selection {
11188
11220
  /**
11189
11221
  * Call callback for all selection node
11190
11222
  */
11223
+ // eslint-disable-next-line complexity
11191
11224
  eachSelection(callback) {
11192
11225
  const sel = this.sel;
11193
11226
  if (!sel || !sel.rangeCount) {
@@ -11968,12 +12001,13 @@ function getSuitParent(style, node, root) {
11968
12001
  /* harmony export */ Y: function() { return /* binding */ hasSameStyleKeys; },
11969
12002
  /* harmony export */ g: function() { return /* binding */ hasSameStyle; }
11970
12003
  /* harmony export */ });
11971
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
11972
- /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74197);
11973
- /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43581);
11974
- /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
11975
- /* 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__);
11976
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4401);
12004
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
12005
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
12006
+ /* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74197);
12007
+ /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43581);
12008
+ /* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
12009
+ /* 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__);
12010
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4401);
11977
12011
  /*!
11978
12012
  * Jodit Editor (https://xdsoft.net/jodit/)
11979
12013
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -11984,48 +12018,53 @@ function getSuitParent(style, node, root) {
11984
12018
 
11985
12019
 
11986
12020
 
12021
+
11987
12022
  /**
11988
12023
  * Element has the same styles as in the commit
11989
12024
  * @private
11990
12025
  */
11991
12026
  function hasSameStyle(elm, rules) {
11992
- return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isTag(elm, 'font') &&
11993
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isHTMLElement(elm) &&
12027
+ return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
12028
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
11994
12029
  Object.keys(rules).every(property => {
11995
- const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(elm, property, true);
12030
+ const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
11996
12031
  if (value === '' &&
11997
12032
  (rules[property] === '' || rules[property] == null)) {
11998
12033
  return true;
11999
12034
  }
12000
- return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(value) &&
12035
+ return (!(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(value) &&
12001
12036
  value !== '' &&
12002
- !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_3__/* .isVoid */ .R)(rules[property]) &&
12003
- (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_4__/* .normalizeCssValue */ .iy)(property, rules[property])
12037
+ !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_4__/* .isVoid */ .R)(rules[property]) &&
12038
+ (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_5__/* .normalizeCssValue */ .iy)(property, rules[property])
12004
12039
  .toString()
12005
12040
  .toLowerCase() === value.toString().toLowerCase());
12006
12041
  }));
12007
12042
  }
12008
- const elm = document.createElement('div');
12009
- elm.style.color = 'red';
12010
- void 0;
12011
- void 0;
12012
- void 0;
12043
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
12044
+ const elm = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
12045
+ elm.style.color = 'red';
12046
+ void 0;
12047
+ void 0;
12048
+ void 0;
12049
+ }
12013
12050
  /**
12014
12051
  * Element has the similar styles keys
12015
12052
  */
12016
12053
  function hasSameStyleKeys(elm, rules) {
12017
- return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isTag(elm, 'font') &&
12018
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isHTMLElement(elm) &&
12054
+ return Boolean(!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(elm, 'font') &&
12055
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isHTMLElement(elm) &&
12019
12056
  Object.keys(rules).every(property => {
12020
- const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(elm, property, true);
12057
+ const value = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_3__/* .css */ .A)(elm, property, true);
12021
12058
  return value !== '';
12022
12059
  }));
12023
12060
  }
12024
- const elm2 = document.createElement('div');
12025
- elm2.style.color = 'red';
12026
- void 0;
12027
- void 0;
12028
- void 0;
12061
+ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
12062
+ const elm2 = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('div');
12063
+ elm2.style.color = 'red';
12064
+ void 0;
12065
+ void 0;
12066
+ void 0;
12067
+ }
12029
12068
 
12030
12069
 
12031
12070
  /***/ }),
@@ -12406,16 +12445,17 @@ function wrapList(commitStyle, wrapper, jodit) {
12406
12445
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12407
12446
  /* harmony export */ Y: function() { return /* binding */ toggleAttributes; }
12408
12447
  /* harmony export */ });
12409
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
12410
- /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51431);
12411
- /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58588);
12412
- /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(43581);
12413
- /* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88455);
12414
- /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18014);
12415
- /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71122);
12416
- /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4401);
12417
- /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49382);
12418
- /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43072);
12448
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
12449
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
12450
+ /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
12451
+ /* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58588);
12452
+ /* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43581);
12453
+ /* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88455);
12454
+ /* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18014);
12455
+ /* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71122);
12456
+ /* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4401);
12457
+ /* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(49382);
12458
+ /* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43072);
12419
12459
  /*!
12420
12460
  * Jodit Editor (https://xdsoft.net/jodit/)
12421
12461
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -12431,6 +12471,7 @@ function wrapList(commitStyle, wrapper, jodit) {
12431
12471
 
12432
12472
 
12433
12473
 
12474
+
12434
12475
  const tak = 'toggleAttributes';
12435
12476
  /**
12436
12477
  * Toggles attributes
@@ -12442,7 +12483,7 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
12442
12483
  }
12443
12484
  !dry && commitStyle.setApplied(elm, tak);
12444
12485
  const { attributes } = commitStyle.options;
12445
- if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_3__/* .size */ .E)(attributes) > 0) {
12486
+ if (attributes && (0,jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_4__/* .size */ .E)(attributes) > 0) {
12446
12487
  Object.keys(attributes).forEach((key) => {
12447
12488
  const value = attributes[key];
12448
12489
  switch (key) {
@@ -12464,24 +12505,24 @@ function toggleAttributes(commitStyle, elm, jodit, mode, dry = false) {
12464
12505
  function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
12465
12506
  void 0;
12466
12507
  Object.keys(style).forEach((rule) => {
12467
- const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_6__/* .kebabCase */ .k)(rule));
12508
+ const inlineValue = elm.style.getPropertyValue((0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__/* .kebabCase */ .k)(rule));
12468
12509
  const newValue = style[rule];
12469
12510
  if (inlineValue === '' && newValue == null) {
12470
12511
  return;
12471
12512
  }
12472
12513
  if (getNativeCSSValue(jodit, elm, rule) ===
12473
- (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_7__/* .normalizeCssValue */ .iy)(rule, newValue)) {
12514
+ (0,jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_8__/* .normalizeCssValue */ .iy)(rule, newValue)) {
12474
12515
  if (!inlineValue) {
12475
12516
  return;
12476
12517
  }
12477
- !dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(elm, rule, null);
12478
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12518
+ !dry && (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, null);
12519
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12479
12520
  mode = removeExtraStyleAttribute(commitStyle, elm, mode);
12480
12521
  return;
12481
12522
  }
12482
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12523
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12483
12524
  if (!dry) {
12484
- (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(elm, rule, newValue);
12525
+ (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(elm, rule, newValue);
12485
12526
  mode = removeExtraStyleAttribute(commitStyle, elm, mode);
12486
12527
  }
12487
12528
  });
@@ -12489,19 +12530,19 @@ function toggleStyle(commitStyle, jodit, style, elm, dry, mode) {
12489
12530
  }
12490
12531
  function toggleClass(jodit, value, elm, mode, dry) {
12491
12532
  void 0;
12492
- const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12533
+ const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12493
12534
  if (elm.classList.contains(value.toString())) {
12494
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12535
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12495
12536
  if (!dry) {
12496
12537
  elm.classList.remove(value);
12497
12538
  if (elm.classList.length === 0) {
12498
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'class', null);
12539
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'class', null);
12499
12540
  hook(mode, elm, 'class', null);
12500
12541
  }
12501
12542
  }
12502
12543
  }
12503
12544
  else {
12504
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12545
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12505
12546
  if (!dry) {
12506
12547
  elm.classList.add(value);
12507
12548
  hook(mode, elm, 'class', value);
@@ -12511,16 +12552,16 @@ function toggleClass(jodit, value, elm, mode, dry) {
12511
12552
  }
12512
12553
  function toggleAttribute(jodit, value, elm, key, dry, mode) {
12513
12554
  void 0;
12514
- const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12515
- if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key) === value) {
12516
- !dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key, null);
12517
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNSET */ .Ag;
12555
+ const hook = jodit.e.fire.bind(jodit.e, `${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* ._PREFIX */ .ar}AfterToggleAttribute`);
12556
+ if ((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key) === value) {
12557
+ !dry && (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, null);
12558
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNSET */ .Ag;
12518
12559
  !dry && hook(mode, elm, key, value);
12519
12560
  return mode;
12520
12561
  }
12521
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .CHANGE */ .PL;
12562
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .CHANGE */ .PL;
12522
12563
  if (!dry) {
12523
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, key, value);
12564
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, key, value);
12524
12565
  hook(mode, elm, key, value);
12525
12566
  }
12526
12567
  return mode;
@@ -12530,11 +12571,11 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
12530
12571
  * and if it is default, it removes the element itself
12531
12572
  */
12532
12573
  function removeExtraStyleAttribute(commitStyle, elm, mode) {
12533
- if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'style')) {
12534
- (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'style', null);
12574
+ if (!(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style')) {
12575
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(elm, 'style', null);
12535
12576
  if (elm.tagName.toLowerCase() === commitStyle.defaultTag) {
12536
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(elm);
12537
- mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_9__/* .UNWRAP */ .OJ;
12577
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(elm);
12578
+ mode = jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_10__/* .UNWRAP */ .OJ;
12538
12579
  }
12539
12580
  }
12540
12581
  return mode;
@@ -12543,12 +12584,12 @@ function removeExtraStyleAttribute(commitStyle, elm, mode) {
12543
12584
  * Creates an iframe into which elements will be inserted to test their default styles in the browser
12544
12585
  */
12545
12586
  function getShadowRoot(jodit) {
12546
- if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
12547
- return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot');
12587
+ if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot') !== undefined) {
12588
+ return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot');
12548
12589
  }
12549
- const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .getContainer */ .My)(jodit);
12550
- const iframe = document.createElement('iframe');
12551
- (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(iframe, {
12590
+ const container = (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(jodit);
12591
+ const iframe = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('iframe');
12592
+ (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(iframe, {
12552
12593
  width: 0,
12553
12594
  height: 0,
12554
12595
  position: 'absolute',
@@ -12558,7 +12599,7 @@ function getShadowRoot(jodit) {
12558
12599
  container.appendChild(iframe);
12559
12600
  const doc = iframe.contentWindow?.document;
12560
12601
  const shadowRoot = !doc ? jodit.od.body : doc.body;
12561
- (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_5__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
12602
+ (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_6__/* .dataBind */ .m)(jodit, 'shadowRoot', shadowRoot);
12562
12603
  return shadowRoot;
12563
12604
  }
12564
12605
  /**
@@ -12569,8 +12610,8 @@ function getNativeCSSValue(jodit, elm, key) {
12569
12610
  newElm.style.cssText = elm.style.cssText;
12570
12611
  const root = getShadowRoot(jodit);
12571
12612
  root.appendChild(newElm);
12572
- const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_8__/* .css */ .A)(newElm, key);
12573
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.safeRemove(newElm);
12613
+ const result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_9__/* .css */ .A)(newElm, key);
12614
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(newElm);
12574
12615
  return result;
12575
12616
  }
12576
12617
 
@@ -14598,6 +14639,7 @@ let UIFileInput = class UIFileInput extends jodit_core_ui_form_inputs_input_inpu
14598
14639
  }
14599
14640
  createContainer(options) {
14600
14641
  this.button = new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_0__/* .UIButton */ .lD(this.j, {
14642
+ tooltip: options.tooltip,
14601
14643
  icon: {
14602
14644
  name: 'plus'
14603
14645
  }
@@ -15034,8 +15076,8 @@ __webpack_require__.r(__webpack_exports__);
15034
15076
  /* harmony export */ required: function() { return /* binding */ required; },
15035
15077
  /* harmony export */ url: function() { return /* binding */ url; }
15036
15078
  /* harmony export */ });
15037
- /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20858);
15038
- /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22718);
15079
+ /* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20858);
15080
+ /* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22718);
15039
15081
  /*!
15040
15082
  * Jodit Editor (https://xdsoft.net/jodit/)
15041
15083
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -15047,7 +15089,7 @@ __webpack_require__.r(__webpack_exports__);
15047
15089
  * Input is required
15048
15090
  */
15049
15091
  const required = function (input) {
15050
- if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_0__/* .trim */ .Bq)(input.value).length) {
15092
+ if (!(0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_1__/* .trim */ .Bq)(input.value).length) {
15051
15093
  input.error = 'Please fill out this field';
15052
15094
  return false;
15053
15095
  }
@@ -15057,7 +15099,7 @@ const required = function (input) {
15057
15099
  * Input value should be valid URL
15058
15100
  */
15059
15101
  const url = function (input) {
15060
- 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))) {
15102
+ 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))) {
15061
15103
  input.error = 'Please enter a web address';
15062
15104
  return false;
15063
15105
  }
@@ -17699,6 +17741,9 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
17699
17741
  }
17700
17742
  }
17701
17743
  catch (e) {
17744
+ if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
17745
+ throw e;
17746
+ }
17702
17747
  this.destruct();
17703
17748
  throw e;
17704
17749
  }
@@ -19670,10 +19715,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.filebrowser
19670
19715
  jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.filebrowser = {
19671
19716
  upload: {
19672
19717
  icon: 'plus',
19718
+ tooltip: 'Upload file',
19673
19719
  isInput: true,
19674
19720
  isDisabled: (browser) => !browser.dataProvider.canI('FileUpload'),
19675
- getContent: (filebrowser) => {
19721
+ getContent: (filebrowser, btnInt) => {
19676
19722
  const btn = new jodit_core_ui_form_inputs_file_file__WEBPACK_IMPORTED_MODULE_2__/* .UIFileInput */ .n(filebrowser, {
19723
+ tooltip: btnInt.control.tooltip,
19677
19724
  onlyImages: filebrowser.state.onlyImages
19678
19725
  });
19679
19726
  filebrowser.e.fire('bindUploader.filebrowser', btn.container);
@@ -19682,6 +19729,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19682
19729
  },
19683
19730
  remove: {
19684
19731
  icon: 'bin',
19732
+ tooltip: 'Remove file',
19685
19733
  isDisabled: (browser) => {
19686
19734
  return (!browser.state.activeElements.length ||
19687
19735
  !browser.dataProvider.canI('FileRemove'));
@@ -19691,11 +19739,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19691
19739
  }
19692
19740
  },
19693
19741
  update: {
19742
+ tooltip: 'Update file list',
19694
19743
  exec: (editor) => {
19695
19744
  editor.e.fire('update.filebrowser');
19696
19745
  }
19697
19746
  },
19698
19747
  select: {
19748
+ tooltip: 'Select file',
19699
19749
  icon: 'check',
19700
19750
  isDisabled: (browser) => !browser.state.activeElements.length,
19701
19751
  exec: (editor) => {
@@ -19703,6 +19753,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19703
19753
  }
19704
19754
  },
19705
19755
  edit: {
19756
+ tooltip: 'Edit image',
19706
19757
  icon: 'pencil',
19707
19758
  isDisabled: (browser) => {
19708
19759
  const selected = browser.state.activeElements;
@@ -19716,6 +19767,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19716
19767
  }
19717
19768
  },
19718
19769
  tiles: {
19770
+ tooltip: 'Tiles view',
19719
19771
  icon: 'th',
19720
19772
  isActive: (filebrowser) => filebrowser.state.view === 'tiles',
19721
19773
  exec: (filebrowser) => {
@@ -19723,6 +19775,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__/* .Config */ .T.prototype.controls.fil
19723
19775
  }
19724
19776
  },
19725
19777
  list: {
19778
+ tooltip: 'List view',
19726
19779
  icon: 'th-list',
19727
19780
  isActive: (filebrowser) => filebrowser.state.view === 'list',
19728
19781
  exec: (filebrowser) => {
@@ -20136,7 +20189,6 @@ let DataProvider = class DataProvider {
20136
20189
  data: {}
20137
20190
  };
20138
20191
  }
20139
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
20140
20192
  const query = this.o[type];
20141
20193
  if (query.data === undefined) {
20142
20194
  query.data = {
@@ -20382,7 +20434,6 @@ let FileBrowser = class FileBrowser extends jodit_core_view_view_with_toolbar__W
20382
20434
  get dataProvider() {
20383
20435
  return (0,_factories__WEBPACK_IMPORTED_MODULE_16__/* .makeDataProvider */ .S)(this, this.options);
20384
20436
  }
20385
- // eslint-disable-next-line no-unused-vars
20386
20437
  onSelect(callback) {
20387
20438
  return () => {
20388
20439
  if (this.state.activeElements.length) {
@@ -22895,7 +22946,6 @@ class Table extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .ViewCom
22895
22946
  const selector = (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_5__.cssPath)(td);
22896
22947
  selector && selectors.push(selector);
22897
22948
  });
22898
- // eslint-disable-next-line no-prototype-builtins
22899
22949
  style.innerHTML = selectors.length
22900
22950
  ? selectors.join(',') +
22901
22951
  `{${this.jodit.options.table.selectionCellStyle}}`
@@ -26641,6 +26691,7 @@ function checkNotCollapsed(jodit) {
26641
26691
  * ```
26642
26692
  * @private
26643
26693
  */
26694
+ // eslint-disable-next-line complexity
26644
26695
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
26645
26696
  const step = backspace ? -1 : 1;
26646
26697
  const anotherSibling = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.sibling(fakeNode, !backspace);
@@ -31040,6 +31091,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeStyle
31040
31091
  '-ms-user-select: none' +
31041
31092
  '}';
31042
31093
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeCSSLinks = [];
31094
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.iframeSandbox = null;
31043
31095
 
31044
31096
 
31045
31097
  /***/ }),
@@ -31116,6 +31168,9 @@ function iframe(editor) {
31116
31168
  iframe.setAttribute('allowtransparency', 'true');
31117
31169
  iframe.setAttribute('tabindex', opt.tabIndex.toString());
31118
31170
  iframe.setAttribute('frameborder', '0');
31171
+ if (opt.iframeSandbox != null) {
31172
+ iframe.setAttribute('sandbox', opt.iframeSandbox);
31173
+ }
31119
31174
  editor.workplace.appendChild(iframe);
31120
31175
  editor.iframe = iframe;
31121
31176
  const result = editor.e.fire('generateDocumentStructure.iframe', null, editor);
@@ -36476,13 +36531,13 @@ function generateCriticalCSS(jodit) {
36476
36531
  /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
36477
36532
  /* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33465);
36478
36533
  /* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51431);
36479
- /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54614);
36480
- /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85769);
36481
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80004);
36482
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91288);
36483
- /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(86134);
36484
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26899);
36485
- /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_7__);
36534
+ /* harmony import */ var jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54614);
36535
+ /* harmony import */ var jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85769);
36536
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80004);
36537
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91288);
36538
+ /* harmony import */ var _lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86134);
36539
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26899);
36540
+ /* harmony import */ var _print_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_print_svg__WEBPACK_IMPORTED_MODULE_8__);
36486
36541
  /*!
36487
36542
  * Jodit Editor (https://xdsoft.net/jodit/)
36488
36543
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -36497,8 +36552,8 @@ function generateCriticalCSS(jodit) {
36497
36552
 
36498
36553
 
36499
36554
 
36500
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_7___default()));
36501
- jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.print = {
36555
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_5__/* .Icon */ .I.set('print', (_print_svg__WEBPACK_IMPORTED_MODULE_8___default()));
36556
+ jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.prototype.controls.print = {
36502
36557
  exec: (editor) => {
36503
36558
  const iframe = editor.create.element('iframe');
36504
36559
  Object.assign(iframe.style, {
@@ -36509,7 +36564,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
36509
36564
  height: 0,
36510
36565
  border: 0
36511
36566
  });
36512
- (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T).appendChild(iframe);
36567
+ (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .getContainer */ .My)(editor, jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T).appendChild(iframe);
36513
36568
  const afterFinishPrint = () => {
36514
36569
  editor.e.off(editor.ow, 'mousemove', afterFinishPrint);
36515
36570
  jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.safeRemove(iframe);
@@ -36525,12 +36580,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__/* .Config */ .T.prototype.controls.pri
36525
36580
  }
36526
36581
  else {
36527
36582
  myWindow.document.write('<!doctype html><html lang="' +
36528
- (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_8__/* .defaultLanguage */ .e)(editor.o.language) +
36583
+ (0,jodit_core_helpers_utils_default_language__WEBPACK_IMPORTED_MODULE_3__/* .defaultLanguage */ .e)(editor.o.language) +
36529
36584
  '"><head><title></title></head><style>' +
36530
- (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_6__/* .generateCriticalCSS */ .Y)(editor) +
36585
+ (0,_lib_generate_critical_css__WEBPACK_IMPORTED_MODULE_7__/* .generateCriticalCSS */ .Y)(editor) +
36531
36586
  '</style><body></body></html>');
36532
36587
  myWindow.document.close();
36533
- (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_3__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
36588
+ (0,jodit_core_helpers_utils_print__WEBPACK_IMPORTED_MODULE_4__/* .previewBox */ .u)(editor, undefined, 'px', myWindow.document.body);
36534
36589
  }
36535
36590
  const style = myWindow.document.createElement('style');
36536
36591
  style.innerHTML = `@media print {
@@ -37606,10 +37661,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
37606
37661
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
37607
37662
 
37608
37663
  "use strict";
37609
- /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80004);
37610
- /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91288);
37611
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98973);
37612
- /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_2__);
37664
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
37665
+ /* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80004);
37666
+ /* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91288);
37667
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98973);
37668
+ /* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_search_svg__WEBPACK_IMPORTED_MODULE_3__);
37613
37669
  /*!
37614
37670
  * Jodit Editor (https://xdsoft.net/jodit/)
37615
37671
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37619,14 +37675,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('resiz
37619
37675
 
37620
37676
 
37621
37677
 
37622
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.useSearch = true;
37623
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.search = {
37678
+
37679
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.useSearch = true;
37680
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.search = {
37624
37681
  lazyIdleTimeout: 0,
37625
- // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37626
- useCustomHighlightAPI: typeof window.Highlight !== 'undefined'
37682
+ useCustomHighlightAPI: jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined'
37627
37683
  };
37628
- jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_0__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_2___default()));
37629
- jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.find = {
37684
+ jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__/* .Icon */ .I.set('search', (_search_svg__WEBPACK_IMPORTED_MODULE_3___default()));
37685
+ jodit_config__WEBPACK_IMPORTED_MODULE_2__/* .Config */ .T.prototype.controls.find = {
37630
37686
  tooltip: 'Find',
37631
37687
  icon: 'search',
37632
37688
  exec(jodit, _, { control }) {
@@ -37667,8 +37723,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
37667
37723
  /* harmony export */ _B: function() { return /* binding */ highlightTextRanges; },
37668
37724
  /* harmony export */ zy: function() { return /* binding */ getSelectionWrappers; }
37669
37725
  /* harmony export */ });
37670
- /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23545);
37671
- /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52989);
37726
+ /* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67259);
37727
+ /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23545);
37728
+ /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(52989);
37672
37729
  /*!
37673
37730
  * Jodit Editor (https://xdsoft.net/jodit/)
37674
37731
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -37676,6 +37733,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.fin
37676
37733
  */
37677
37734
 
37678
37735
 
37736
+
37679
37737
  /**
37680
37738
  * @private
37681
37739
  */
@@ -37694,15 +37752,15 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
37694
37752
  const span = ci.element('span', {
37695
37753
  [TMP_ATTR]: true
37696
37754
  });
37697
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.markTemporary(span);
37755
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.markTemporary(span);
37698
37756
  normalizeRanges(rng, restRanges, ci);
37699
37757
  let next = rng.startContainer;
37700
37758
  do {
37701
37759
  if (!next) {
37702
37760
  break;
37703
37761
  }
37704
- if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
37705
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
37762
+ if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isText(next) && !isSelectionWrapper(next.parentNode)) {
37763
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.wrap(next, span.cloneNode(), ci);
37706
37764
  }
37707
37765
  if (next === rng.endContainer) {
37708
37766
  break;
@@ -37721,13 +37779,13 @@ function highlightTextRanges(jodit, rng, restRanges, ci, root) {
37721
37779
  * @private
37722
37780
  */
37723
37781
  function getSelectionWrappers(root) {
37724
- return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_1__.$$)(`[${TMP_ATTR}]`, root);
37782
+ return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__.$$)(`[${TMP_ATTR}]`, root);
37725
37783
  }
37726
37784
  /**
37727
37785
  * @private
37728
37786
  */
37729
37787
  function clearSelectionWrappers(root) {
37730
- getSelectionWrappers(root).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.unwrap(span));
37788
+ getSelectionWrappers(root).forEach(span => jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.unwrap(span));
37731
37789
  }
37732
37790
  /**
37733
37791
  * @private
@@ -37739,12 +37797,13 @@ function clearSelectionWrappersFromHTML(root) {
37739
37797
  * @private
37740
37798
  */
37741
37799
  function isSelectionWrapper(node) {
37742
- return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
37800
+ return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isElement(node) && node.hasAttribute(TMP_ATTR);
37743
37801
  }
37744
37802
  function checkNativeSelectionMethod(jodit, rng, restRanges) {
37745
37803
  if (jodit.o.search.useCustomHighlightAPI &&
37746
37804
  // @ts-ignore Because Highlight is not defined in the types TS 5.3.3
37747
- typeof window.Highlight !== 'undefined') {
37805
+ jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow &&
37806
+ typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.Highlight !== 'undefined') {
37748
37807
  const ranges = [rng, ...restRanges].map(rng => {
37749
37808
  const range = jodit.selection.createRange();
37750
37809
  range.setStart(rng.startContainer, rng.startOffset);
@@ -37768,7 +37827,7 @@ function normalizeRanges(rng, restRanges, ci) {
37768
37827
  if (rng.startOffset !== 0) {
37769
37828
  const text = ci.text(startText.substring(0, rng.startOffset));
37770
37829
  rng.startContainer.nodeValue = startText.substring(rng.startOffset);
37771
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.before(rng.startContainer, text);
37830
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.before(rng.startContainer, text);
37772
37831
  if (rng.startContainer === rng.endContainer) {
37773
37832
  diff = rng.startOffset;
37774
37833
  rng.endOffset -= diff;
@@ -37779,7 +37838,7 @@ function normalizeRanges(rng, restRanges, ci) {
37779
37838
  if (rng.endOffset !== endText.length) {
37780
37839
  const text = ci.text(endText.substring(rng.endOffset));
37781
37840
  rng.endContainer.nodeValue = endText.substring(0, rng.endOffset);
37782
- jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.after(rng.endContainer, text);
37841
+ jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.after(rng.endContainer, text);
37783
37842
  for (const range of restRanges) {
37784
37843
  if (range.startContainer === rng.endContainer) {
37785
37844
  range.startContainer = text;
@@ -40234,6 +40293,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__/* .pluginSystem */ .fg.add('spell
40234
40293
 
40235
40294
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showCharsCounter = true;
40236
40295
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countHTMLChars = false;
40296
+ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.countTextSpaces = false;
40237
40297
  jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.showWordsCounter = true;
40238
40298
 
40239
40299
 
@@ -40280,9 +40340,20 @@ class stat extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_3__/* .Plug
40280
40340
  this.calc = this.j.async.throttle(() => {
40281
40341
  const text = this.j.text;
40282
40342
  if (this.j.o.showCharsCounter && this.charCounter) {
40283
- const chars = this.j.o.countHTMLChars
40284
- ? this.j.value
40285
- : text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
40343
+ let chars;
40344
+ if (this.j.o.countHTMLChars) {
40345
+ chars = this.j.value;
40346
+ }
40347
+ else {
40348
+ if (this.j.o.countTextSpaces) {
40349
+ chars = text
40350
+ .replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE_REG_EXP)(), '')
40351
+ .replace(/[\r\n]/g, '');
40352
+ }
40353
+ else {
40354
+ chars = text.replace((0,jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
40355
+ }
40356
+ }
40286
40357
  this.charCounter.textContent = this.j.i18n('Chars: %d', chars.length);
40287
40358
  }
40288
40359
  if (this.j.o.showWordsCounter && this.wordCounter) {
@@ -40746,6 +40817,7 @@ __webpack_require__.r(__webpack_exports__);
40746
40817
  /* harmony export */ pt_br: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
40747
40818
  /* harmony export */ ru: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
40748
40819
  /* harmony export */ tr: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
40820
+ /* harmony export */ ua: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
40749
40821
  /* harmony export */ zh_cn: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
40750
40822
  /* harmony export */ zh_tw: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; }
40751
40823
  /* harmony export */ });
@@ -40778,6 +40850,7 @@ __webpack_require__.r(__webpack_exports__);
40778
40850
 
40779
40851
 
40780
40852
 
40853
+
40781
40854
 
40782
40855
 
40783
40856
  /***/ }),
@@ -42461,7 +42534,6 @@ function getTextLeftOfCursor(range) {
42461
42534
  * ```
42462
42535
  */
42463
42536
  function replaceTextLeftOfCursorAfterSpace(range, elm) {
42464
- // eslint-disable-next-line prefer-const
42465
42537
  let { startContainer, startOffset } = range;
42466
42538
  if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__/* .Dom */ .J.isText(startContainer)) {
42467
42539
  startContainer = startContainer.childNodes[startOffset - 1];
@@ -42966,7 +43038,6 @@ function convertToList(elm) {
42966
43038
  return elm;
42967
43039
  }
42968
43040
  function moveUp(leaf) {
42969
- // eslint-disable-next-line no-constant-condition
42970
43041
  while (leaf) {
42971
43042
  const prev = leaf.previousElement;
42972
43043
  // Leaf after P
@@ -44352,7 +44423,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44352
44423
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44353
44424
  PERFORMANCE OF THIS SOFTWARE.
44354
44425
  ***************************************************************************** */
44355
- /* global Reflect, Promise, SuppressedError, Symbol */
44426
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
44356
44427
 
44357
44428
  var extendStatics = function(d, b) {
44358
44429
  extendStatics = Object.setPrototypeOf ||
@@ -44463,8 +44534,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
44463
44534
  }
44464
44535
 
44465
44536
  function __generator(thisArg, body) {
44466
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
44467
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
44537
+ 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);
44538
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
44468
44539
  function verb(n) { return function (v) { return step([n, v]); }; }
44469
44540
  function step(op) {
44470
44541
  if (f) throw new TypeError("Generator is already executing.");
@@ -44568,8 +44639,9 @@ function __await(v) {
44568
44639
  function __asyncGenerator(thisArg, _arguments, generator) {
44569
44640
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
44570
44641
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
44571
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
44572
- 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); }); }; }
44642
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
44643
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
44644
+ 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]); } }
44573
44645
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
44574
44646
  function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
44575
44647
  function fulfill(value) { resume("next", value); }
@@ -44635,16 +44707,18 @@ function __classPrivateFieldIn(state, receiver) {
44635
44707
  function __addDisposableResource(env, value, async) {
44636
44708
  if (value !== null && value !== void 0) {
44637
44709
  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
44638
- var dispose;
44710
+ var dispose, inner;
44639
44711
  if (async) {
44640
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
44641
- dispose = value[Symbol.asyncDispose];
44712
+ if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
44713
+ dispose = value[Symbol.asyncDispose];
44642
44714
  }
44643
44715
  if (dispose === void 0) {
44644
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
44645
- dispose = value[Symbol.dispose];
44716
+ if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
44717
+ dispose = value[Symbol.dispose];
44718
+ if (async) inner = dispose;
44646
44719
  }
44647
44720
  if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
44721
+ if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
44648
44722
  env.stack.push({ value: value, dispose: dispose, async: async });
44649
44723
  }
44650
44724
  else if (async) {
@@ -44663,17 +44737,22 @@ function __disposeResources(env) {
44663
44737
  env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
44664
44738
  env.hasError = true;
44665
44739
  }
44740
+ var r, s = 0;
44666
44741
  function next() {
44667
- while (env.stack.length) {
44668
- var rec = env.stack.pop();
44742
+ while (r = env.stack.pop()) {
44669
44743
  try {
44670
- var result = rec.dispose && rec.dispose.call(rec.value);
44671
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
44744
+ if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
44745
+ if (r.dispose) {
44746
+ var result = r.dispose.call(r.value);
44747
+ if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
44748
+ }
44749
+ else s |= 1;
44672
44750
  }
44673
44751
  catch (e) {
44674
- fail(e);
44752
+ fail(e);
44675
44753
  }
44676
44754
  }
44755
+ if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
44677
44756
  if (env.hasError) throw env.error;
44678
44757
  }
44679
44758
  return next();
@@ -44800,11 +44879,88 @@ function __disposeResources(env) {
44800
44879
  /******/ };
44801
44880
  /******/ }();
44802
44881
  /******/
44882
+ /******/ /* webpack/runtime/ensure chunk */
44883
+ /******/ !function() {
44884
+ /******/ __webpack_require__.f = {};
44885
+ /******/ // This file contains only the entry chunk.
44886
+ /******/ // The chunk loading function for additional chunks
44887
+ /******/ __webpack_require__.e = function(chunkId) {
44888
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
44889
+ /******/ __webpack_require__.f[key](chunkId, promises);
44890
+ /******/ return promises;
44891
+ /******/ }, []));
44892
+ /******/ };
44893
+ /******/ }();
44894
+ /******/
44895
+ /******/ /* webpack/runtime/get javascript chunk filename */
44896
+ /******/ !function() {
44897
+ /******/ // This function allow to reference async chunks
44898
+ /******/ __webpack_require__.u = function(chunkId) {
44899
+ /******/ // return url for filenames based on template
44900
+ /******/ return "" + chunkId + ".js";
44901
+ /******/ };
44902
+ /******/ }();
44903
+ /******/
44904
+ /******/ /* webpack/runtime/get mini-css chunk filename */
44905
+ /******/ !function() {
44906
+ /******/ // This function allow to reference async chunks
44907
+ /******/ __webpack_require__.miniCssF = function(chunkId) {
44908
+ /******/ // return url for filenames based on template
44909
+ /******/ return undefined;
44910
+ /******/ };
44911
+ /******/ }();
44912
+ /******/
44803
44913
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
44804
44914
  /******/ !function() {
44805
44915
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
44806
44916
  /******/ }();
44807
44917
  /******/
44918
+ /******/ /* webpack/runtime/load script */
44919
+ /******/ !function() {
44920
+ /******/ var inProgress = {};
44921
+ /******/ var dataWebpackPrefix = "jodit-pro:";
44922
+ /******/ // loadScript function to load a script via script tag
44923
+ /******/ __webpack_require__.l = function(url, done, key, chunkId) {
44924
+ /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
44925
+ /******/ var script, needAttach;
44926
+ /******/ if(key !== undefined) {
44927
+ /******/ var scripts = document.getElementsByTagName("script");
44928
+ /******/ for(var i = 0; i < scripts.length; i++) {
44929
+ /******/ var s = scripts[i];
44930
+ /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
44931
+ /******/ }
44932
+ /******/ }
44933
+ /******/ if(!script) {
44934
+ /******/ needAttach = true;
44935
+ /******/ script = document.createElement('script');
44936
+ /******/
44937
+ /******/ script.charset = 'utf-8';
44938
+ /******/ script.timeout = 120;
44939
+ /******/ if (__webpack_require__.nc) {
44940
+ /******/ script.setAttribute("nonce", __webpack_require__.nc);
44941
+ /******/ }
44942
+ /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
44943
+ /******/
44944
+ /******/ script.src = url;
44945
+ /******/ }
44946
+ /******/ inProgress[url] = [done];
44947
+ /******/ var onScriptComplete = function(prev, event) {
44948
+ /******/ // avoid mem leaks in IE.
44949
+ /******/ script.onerror = script.onload = null;
44950
+ /******/ clearTimeout(timeout);
44951
+ /******/ var doneFns = inProgress[url];
44952
+ /******/ delete inProgress[url];
44953
+ /******/ script.parentNode && script.parentNode.removeChild(script);
44954
+ /******/ doneFns && doneFns.forEach(function(fn) { return fn(event); });
44955
+ /******/ if(prev) return prev(event);
44956
+ /******/ }
44957
+ /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
44958
+ /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
44959
+ /******/ script.onload = onScriptComplete.bind(null, script.onload);
44960
+ /******/ needAttach && document.head.appendChild(script);
44961
+ /******/ };
44962
+ /******/ }();
44963
+ /******/
44808
44964
  /******/ /* webpack/runtime/make namespace object */
44809
44965
  /******/ !function() {
44810
44966
  /******/ // define __esModule on exports
@@ -44816,6 +44972,11 @@ function __disposeResources(env) {
44816
44972
  /******/ };
44817
44973
  /******/ }();
44818
44974
  /******/
44975
+ /******/ /* webpack/runtime/publicPath */
44976
+ /******/ !function() {
44977
+ /******/ __webpack_require__.p = "/build/";
44978
+ /******/ }();
44979
+ /******/
44819
44980
  /******/ /* webpack/runtime/jsonp chunk loading */
44820
44981
  /******/ !function() {
44821
44982
  /******/ // no baseURI
@@ -44827,7 +44988,44 @@ function __disposeResources(env) {
44827
44988
  /******/ 521: 0
44828
44989
  /******/ };
44829
44990
  /******/
44830
- /******/ // no chunk on demand loading
44991
+ /******/ __webpack_require__.f.j = function(chunkId, promises) {
44992
+ /******/ // JSONP chunk loading for javascript
44993
+ /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
44994
+ /******/ if(installedChunkData !== 0) { // 0 means "already installed".
44995
+ /******/
44996
+ /******/ // a Promise means "currently loading".
44997
+ /******/ if(installedChunkData) {
44998
+ /******/ promises.push(installedChunkData[2]);
44999
+ /******/ } else {
45000
+ /******/ if(true) { // all chunks have JS
45001
+ /******/ // setup Promise in chunk cache
45002
+ /******/ var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
45003
+ /******/ promises.push(installedChunkData[2] = promise);
45004
+ /******/
45005
+ /******/ // start chunk loading
45006
+ /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
45007
+ /******/ // create error before stack unwound to get useful stacktrace later
45008
+ /******/ var error = new Error();
45009
+ /******/ var loadingEnded = function(event) {
45010
+ /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
45011
+ /******/ installedChunkData = installedChunks[chunkId];
45012
+ /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
45013
+ /******/ if(installedChunkData) {
45014
+ /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
45015
+ /******/ var realSrc = event && event.target && event.target.src;
45016
+ /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
45017
+ /******/ error.name = 'ChunkLoadError';
45018
+ /******/ error.type = errorType;
45019
+ /******/ error.request = realSrc;
45020
+ /******/ installedChunkData[1](error);
45021
+ /******/ }
45022
+ /******/ }
45023
+ /******/ };
45024
+ /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
45025
+ /******/ }
45026
+ /******/ }
45027
+ /******/ }
45028
+ /******/ };
44831
45029
  /******/
44832
45030
  /******/ // no prefetching
44833
45031
  /******/