jodit-pro 4.19.5 → 4.19.6

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 (342) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +4 -4
  3. package/es2015/jodit.js +342 -101
  4. package/es2015/jodit.min.js +8 -8
  5. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  11. package/es2015/plugins/backup/backup.css +1 -1
  12. package/es2015/plugins/backup/backup.js +1 -1
  13. package/es2015/plugins/backup/backup.min.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.css +1 -1
  15. package/es2015/plugins/button-generator/button-generator.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  17. package/es2015/plugins/change-case/change-case.js +1 -1
  18. package/es2015/plugins/change-case/change-case.min.js +1 -1
  19. package/es2015/plugins/chart/chart.css +1 -1
  20. package/es2015/plugins/chart/chart.js +1 -1
  21. package/es2015/plugins/chart/chart.min.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.css +1 -1
  23. package/es2015/plugins/color-picker/color-picker.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  25. package/es2015/plugins/emoji/emoji.css +1 -1
  26. package/es2015/plugins/emoji/emoji.js +1 -1
  27. package/es2015/plugins/emoji/emoji.min.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.js +1 -1
  29. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  30. package/es2015/plugins/finder/finder.css +1 -1
  31. package/es2015/plugins/finder/finder.js +1 -1
  32. package/es2015/plugins/finder/finder.min.js +1 -1
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  36. package/es2015/plugins/google-search/google-search.js +1 -1
  37. package/es2015/plugins/google-search/google-search.min.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  39. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  43. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  44. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  46. package/es2015/plugins/keyboard/keyboard.css +1 -1
  47. package/es2015/plugins/keyboard/keyboard.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  49. package/es2015/plugins/math/math.css +1 -1
  50. package/es2015/plugins/math/math.js +1 -1
  51. package/es2015/plugins/math/math.min.js +1 -1
  52. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  53. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  54. package/es2015/plugins/page-break/page-break.js +1 -1
  55. package/es2015/plugins/page-break/page-break.min.js +1 -1
  56. package/es2015/plugins/paste-code/paste-code.css +1 -1
  57. package/es2015/plugins/paste-code/paste-code.js +1 -1
  58. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  59. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  60. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  61. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  62. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  63. package/es2015/plugins/style/style.css +1 -1
  64. package/es2015/plugins/style/style.js +1 -1
  65. package/es2015/plugins/style/style.min.js +1 -1
  66. package/es2015/plugins/templates/templates.css +1 -1
  67. package/es2015/plugins/templates/templates.js +1 -1
  68. package/es2015/plugins/templates/templates.min.js +1 -1
  69. package/es2015/plugins/todo-list/todo-list.css +1 -1
  70. package/es2015/plugins/todo-list/todo-list.js +1 -1
  71. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  72. package/es2015/plugins/translate/translate.css +1 -1
  73. package/es2015/plugins/translate/translate.js +1 -1
  74. package/es2015/plugins/translate/translate.min.js +1 -1
  75. package/es2015/plugins/tune-block/tune-block.css +1 -1
  76. package/es2015/plugins/tune-block/tune-block.js +1 -1
  77. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  78. package/es2018/jodit.fat.min.js +4 -4
  79. package/es2018/jodit.min.js +8 -8
  80. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  81. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  82. package/es2018/plugins/backup/backup.min.js +1 -1
  83. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  84. package/es2018/plugins/change-case/change-case.min.js +1 -1
  85. package/es2018/plugins/chart/chart.min.js +1 -1
  86. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  87. package/es2018/plugins/emoji/emoji.min.js +1 -1
  88. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  89. package/es2018/plugins/finder/finder.min.js +1 -1
  90. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  91. package/es2018/plugins/google-search/google-search.min.js +1 -1
  92. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  93. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  94. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  95. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  96. package/es2018/plugins/math/math.min.js +1 -1
  97. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  98. package/es2018/plugins/page-break/page-break.min.js +1 -1
  99. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  100. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  101. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  102. package/es2018/plugins/style/style.min.js +1 -1
  103. package/es2018/plugins/templates/templates.min.js +1 -1
  104. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  105. package/es2018/plugins/translate/translate.min.js +1 -1
  106. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  107. package/es2021/jodit.css +1 -1
  108. package/es2021/jodit.fat.min.js +5 -5
  109. package/es2021/jodit.js +234 -44
  110. package/es2021/jodit.min.js +19 -19
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  112. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  113. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  114. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  115. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  116. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  117. package/es2021/plugins/backup/backup.css +1 -1
  118. package/es2021/plugins/backup/backup.js +1 -1
  119. package/es2021/plugins/backup/backup.min.js +1 -1
  120. package/es2021/plugins/button-generator/button-generator.css +1 -1
  121. package/es2021/plugins/button-generator/button-generator.js +1 -1
  122. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  123. package/es2021/plugins/change-case/change-case.js +1 -1
  124. package/es2021/plugins/change-case/change-case.min.js +1 -1
  125. package/es2021/plugins/chart/chart.css +1 -1
  126. package/es2021/plugins/chart/chart.js +1 -1
  127. package/es2021/plugins/chart/chart.min.js +1 -1
  128. package/es2021/plugins/color-picker/color-picker.css +1 -1
  129. package/es2021/plugins/color-picker/color-picker.js +1 -1
  130. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  131. package/es2021/plugins/emoji/emoji.css +1 -1
  132. package/es2021/plugins/emoji/emoji.js +1 -1
  133. package/es2021/plugins/emoji/emoji.min.js +1 -1
  134. package/es2021/plugins/export-docs/export-docs.js +1 -1
  135. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  136. package/es2021/plugins/finder/finder.css +1 -1
  137. package/es2021/plugins/finder/finder.js +1 -1
  138. package/es2021/plugins/finder/finder.min.js +1 -1
  139. package/es2021/plugins/google-maps/google-maps.css +1 -1
  140. package/es2021/plugins/google-maps/google-maps.js +1 -1
  141. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  142. package/es2021/plugins/google-search/google-search.js +1 -1
  143. package/es2021/plugins/google-search/google-search.min.js +1 -1
  144. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  145. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  146. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  147. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  148. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  149. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  150. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  151. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.css +1 -1
  153. package/es2021/plugins/keyboard/keyboard.js +1 -1
  154. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  155. package/es2021/plugins/math/math.css +1 -1
  156. package/es2021/plugins/math/math.js +1 -1
  157. package/es2021/plugins/math/math.min.js +1 -1
  158. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  159. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  160. package/es2021/plugins/page-break/page-break.js +1 -1
  161. package/es2021/plugins/page-break/page-break.min.js +1 -1
  162. package/es2021/plugins/paste-code/paste-code.css +1 -1
  163. package/es2021/plugins/paste-code/paste-code.js +1 -1
  164. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  165. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  166. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  167. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  168. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  169. package/es2021/plugins/style/style.css +1 -1
  170. package/es2021/plugins/style/style.js +1 -1
  171. package/es2021/plugins/style/style.min.js +1 -1
  172. package/es2021/plugins/templates/templates.css +1 -1
  173. package/es2021/plugins/templates/templates.js +1 -1
  174. package/es2021/plugins/templates/templates.min.js +1 -1
  175. package/es2021/plugins/todo-list/todo-list.css +1 -1
  176. package/es2021/plugins/todo-list/todo-list.js +1 -1
  177. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  178. package/es2021/plugins/translate/translate.css +1 -1
  179. package/es2021/plugins/translate/translate.js +1 -1
  180. package/es2021/plugins/translate/translate.min.js +1 -1
  181. package/es2021/plugins/tune-block/tune-block.css +1 -1
  182. package/es2021/plugins/tune-block/tune-block.js +1 -1
  183. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  184. package/es2021.en/jodit.css +1 -1
  185. package/es2021.en/jodit.fat.min.js +5 -5
  186. package/es2021.en/jodit.js +234 -44
  187. package/es2021.en/jodit.min.js +5 -5
  188. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  189. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  190. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  191. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  192. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  193. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  194. package/es2021.en/plugins/backup/backup.css +1 -1
  195. package/es2021.en/plugins/backup/backup.js +1 -1
  196. package/es2021.en/plugins/backup/backup.min.js +1 -1
  197. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  198. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  199. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  200. package/es2021.en/plugins/change-case/change-case.js +1 -1
  201. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  202. package/es2021.en/plugins/chart/chart.css +1 -1
  203. package/es2021.en/plugins/chart/chart.js +1 -1
  204. package/es2021.en/plugins/chart/chart.min.js +1 -1
  205. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  206. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  207. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  208. package/es2021.en/plugins/emoji/emoji.css +1 -1
  209. package/es2021.en/plugins/emoji/emoji.js +1 -1
  210. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  211. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  212. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  213. package/es2021.en/plugins/finder/finder.css +1 -1
  214. package/es2021.en/plugins/finder/finder.js +1 -1
  215. package/es2021.en/plugins/finder/finder.min.js +1 -1
  216. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  217. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  218. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  219. package/es2021.en/plugins/google-search/google-search.js +1 -1
  220. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  221. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  222. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  223. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  224. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  225. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  226. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  227. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  228. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  229. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  230. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  231. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  232. package/es2021.en/plugins/math/math.css +1 -1
  233. package/es2021.en/plugins/math/math.js +1 -1
  234. package/es2021.en/plugins/math/math.min.js +1 -1
  235. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  236. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  237. package/es2021.en/plugins/page-break/page-break.js +1 -1
  238. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  239. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  240. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  241. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  242. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  243. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  244. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  245. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  246. package/es2021.en/plugins/style/style.css +1 -1
  247. package/es2021.en/plugins/style/style.js +1 -1
  248. package/es2021.en/plugins/style/style.min.js +1 -1
  249. package/es2021.en/plugins/templates/templates.css +1 -1
  250. package/es2021.en/plugins/templates/templates.js +1 -1
  251. package/es2021.en/plugins/templates/templates.min.js +1 -1
  252. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  253. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  254. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  255. package/es2021.en/plugins/translate/translate.css +1 -1
  256. package/es2021.en/plugins/translate/translate.js +1 -1
  257. package/es2021.en/plugins/translate/translate.min.js +1 -1
  258. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  259. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  260. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  261. package/es5/jodit.css +2 -2
  262. package/es5/jodit.fat.min.js +2 -2
  263. package/es5/jodit.js +648 -102
  264. package/es5/jodit.min.css +2 -2
  265. package/es5/jodit.min.js +2 -2
  266. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  267. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  268. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  269. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  270. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  271. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  272. package/es5/plugins/backup/backup.css +1 -1
  273. package/es5/plugins/backup/backup.js +1 -1
  274. package/es5/plugins/backup/backup.min.js +1 -1
  275. package/es5/plugins/button-generator/button-generator.css +1 -1
  276. package/es5/plugins/button-generator/button-generator.js +1 -1
  277. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  278. package/es5/plugins/change-case/change-case.js +1 -1
  279. package/es5/plugins/change-case/change-case.min.js +1 -1
  280. package/es5/plugins/chart/chart.css +1 -1
  281. package/es5/plugins/chart/chart.js +1 -1
  282. package/es5/plugins/chart/chart.min.js +1 -1
  283. package/es5/plugins/color-picker/color-picker.css +1 -1
  284. package/es5/plugins/color-picker/color-picker.js +1 -1
  285. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  286. package/es5/plugins/emoji/emoji.css +1 -1
  287. package/es5/plugins/emoji/emoji.js +1 -1
  288. package/es5/plugins/emoji/emoji.min.js +1 -1
  289. package/es5/plugins/export-docs/export-docs.js +1 -1
  290. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  291. package/es5/plugins/finder/finder.css +1 -1
  292. package/es5/plugins/finder/finder.js +1 -1
  293. package/es5/plugins/finder/finder.min.js +1 -1
  294. package/es5/plugins/google-maps/google-maps.css +1 -1
  295. package/es5/plugins/google-maps/google-maps.js +1 -1
  296. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  297. package/es5/plugins/google-search/google-search.js +1 -1
  298. package/es5/plugins/google-search/google-search.min.js +1 -1
  299. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  300. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  301. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  302. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  303. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  304. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  305. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  306. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  307. package/es5/plugins/keyboard/keyboard.css +1 -1
  308. package/es5/plugins/keyboard/keyboard.js +1 -1
  309. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  310. package/es5/plugins/math/math.css +1 -1
  311. package/es5/plugins/math/math.js +1 -1
  312. package/es5/plugins/math/math.min.js +1 -1
  313. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  314. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  315. package/es5/plugins/page-break/page-break.js +1 -1
  316. package/es5/plugins/page-break/page-break.min.js +1 -1
  317. package/es5/plugins/paste-code/paste-code.css +1 -1
  318. package/es5/plugins/paste-code/paste-code.js +1 -1
  319. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  320. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  321. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  322. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  323. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  324. package/es5/plugins/style/style.css +1 -1
  325. package/es5/plugins/style/style.js +1 -1
  326. package/es5/plugins/style/style.min.js +1 -1
  327. package/es5/plugins/templates/templates.css +1 -1
  328. package/es5/plugins/templates/templates.js +1 -1
  329. package/es5/plugins/templates/templates.min.js +1 -1
  330. package/es5/plugins/todo-list/todo-list.css +1 -1
  331. package/es5/plugins/todo-list/todo-list.js +1 -1
  332. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  333. package/es5/plugins/translate/translate.css +1 -1
  334. package/es5/plugins/translate/translate.js +1 -1
  335. package/es5/plugins/translate/translate.min.js +1 -1
  336. package/es5/plugins/tune-block/tune-block.css +1 -1
  337. package/es5/plugins/tune-block/tune-block.js +1 -1
  338. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  339. package/es5/polyfills.fat.min.js +1 -1
  340. package/es5/polyfills.js +1 -1
  341. package/es5/polyfills.min.js +1 -1
  342. package/package.json +1 -1
package/es2021/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.19.5
4
+ * Version: v4.19.6
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1768,7 +1768,7 @@ __webpack_require__.r(__webpack_exports__);
1768
1768
  * ```
1769
1769
  * @packageDocumentation
1770
1770
  * @module constants
1771
- */ const APP_VERSION = "4.19.5";
1771
+ */ const APP_VERSION = "4.19.6";
1772
1772
  // prettier-ignore
1773
1773
  const ES = "es2021";
1774
1774
  const IS_ES_MODERN = true;
@@ -1907,6 +1907,8 @@ const EMULATE_DBLCLICK_TIMEOUT = 300;
1907
1907
  * ```
1908
1908
  */ const INSERT_ONLY_TEXT = 'insert_only_text';
1909
1909
  const SAFE_COUNT_CHANGE_CALL = 10;
1910
+ // Connector answer code for a file name that is already taken (same as the HTTP status)
1911
+ const ERROR_CODE_CONFLICT = 409;
1910
1912
  const IS_MAC = typeof globalWindow !== 'undefined' && /Mac|iPod|iPhone|iPad/.test(globalWindow.navigator.platform);
1911
1913
  const KEY_ALIASES = {
1912
1914
  add: '+',
@@ -1990,6 +1992,7 @@ const PASSIVE_EVENTS = new Set([
1990
1992
  /* harmony export */ "CLIPBOARD_ID", 0, /* binding */ CLIPBOARD_ID,
1991
1993
  /* harmony export */ "COMMAND_KEYS", 0, /* binding */ COMMAND_KEYS,
1992
1994
  /* harmony export */ "EMULATE_DBLCLICK_TIMEOUT", 0, /* binding */ EMULATE_DBLCLICK_TIMEOUT,
1995
+ /* harmony export */ "ERROR_CODE_CONFLICT", 0, /* binding */ ERROR_CODE_CONFLICT,
1993
1996
  /* harmony export */ "ES", 0, /* binding */ ES,
1994
1997
  /* harmony export */ "FAT_MODE", 0, /* binding */ FAT_MODE,
1995
1998
  /* harmony export */ "HOMEPAGE", 0, /* binding */ HOMEPAGE,
@@ -6513,6 +6516,7 @@ function isAdjacent(prev, item) {
6513
6516
  __webpack_require__.r(__webpack_exports__);
6514
6517
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6515
6518
  /* harmony export */ $$: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.$$; },
6519
+ /* harmony export */ AnswerError: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.AnswerError; },
6516
6520
  /* harmony export */ CamelCaseToKebabCase: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.CamelCaseToKebabCase; },
6517
6521
  /* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.ConfigDeepFlatten; },
6518
6522
  /* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.ConfigFlatten; },
@@ -6526,6 +6530,7 @@ __webpack_require__.r(__webpack_exports__);
6526
6530
  /* harmony export */ abort: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.abort; },
6527
6531
  /* harmony export */ alignElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.alignElement; },
6528
6532
  /* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.alreadyLoadedList; },
6533
+ /* harmony export */ answer: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.answer; },
6529
6534
  /* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.appendScriptAsync; },
6530
6535
  /* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.appendStyleAsync; },
6531
6536
  /* harmony export */ applyStyles: function() { return /* reexport safe */ _html_index_js__WEBPACK_IMPORTED_MODULE_4__.applyStyles; },
@@ -8603,6 +8608,7 @@ const dataBind = (elm, key, value)=>{
8603
8608
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8604
8609
 
8605
8610
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8611
+ /* harmony export */ answer: function() { return /* binding */ answer; },
8606
8612
  /* harmony export */ connection: function() { return /* binding */ connection; },
8607
8613
  /* harmony export */ error: function() { return /* binding */ error; },
8608
8614
  /* harmony export */ options: function() { return /* binding */ options; }
@@ -8626,6 +8632,9 @@ function connection(message) {
8626
8632
  function options(message) {
8627
8633
  return new _errors_index_js__WEBPACK_IMPORTED_MODULE_0__.OptionsError(message);
8628
8634
  }
8635
+ function answer(message, resp, code) {
8636
+ return new _errors_index_js__WEBPACK_IMPORTED_MODULE_0__.AnswerError(message, resp, code);
8637
+ }
8629
8638
 
8630
8639
 
8631
8640
  /***/ }),
@@ -8645,6 +8654,31 @@ function options(message) {
8645
8654
  }
8646
8655
 
8647
8656
 
8657
+ /***/ }),
8658
+
8659
+ /***/ 5311:
8660
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8661
+
8662
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8663
+ /* harmony export */ AnswerError: function() { return /* binding */ AnswerError; }
8664
+ /* harmony export */ });
8665
+ /*!
8666
+ * Jodit Editor (https://xdsoft.net/jodit/)
8667
+ * Released under MIT see LICENSE.txt in the project root for license information.
8668
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
8669
+ */ /**
8670
+ * @module helpers/utils
8671
+ */ // A connector refused the request: the answer and its `data.code` stay reachable for the handler
8672
+ class AnswerError extends Error {
8673
+ constructor(message, answer, code){
8674
+ super(message);
8675
+ this.answer = answer;
8676
+ this.code = code;
8677
+ Object.setPrototypeOf(this, AnswerError.prototype);
8678
+ }
8679
+ }
8680
+
8681
+
8648
8682
  /***/ }),
8649
8683
 
8650
8684
  /***/ 86397:
@@ -8673,13 +8707,15 @@ function options(message) {
8673
8707
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8674
8708
 
8675
8709
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8676
- /* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error_js__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
8677
- /* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error_js__WEBPACK_IMPORTED_MODULE_2__.OptionsError; },
8710
+ /* harmony export */ AnswerError: function() { return /* reexport safe */ _answer_error_js__WEBPACK_IMPORTED_MODULE_1__.AnswerError; },
8711
+ /* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error_js__WEBPACK_IMPORTED_MODULE_2__.ConnectionError; },
8712
+ /* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error_js__WEBPACK_IMPORTED_MODULE_3__.OptionsError; },
8678
8713
  /* harmony export */ abort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.abort; }
8679
8714
  /* harmony export */ });
8680
8715
  /* harmony import */ var _abort_error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93661);
8681
- /* harmony import */ var _connection_error_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86397);
8682
- /* harmony import */ var _options_error_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57865);
8716
+ /* harmony import */ var _answer_error_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5311);
8717
+ /* harmony import */ var _connection_error_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86397);
8718
+ /* harmony import */ var _options_error_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(57865);
8683
8719
  /*!
8684
8720
  * Jodit Editor (https://xdsoft.net/jodit/)
8685
8721
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -8691,6 +8727,7 @@ function options(message) {
8691
8727
 
8692
8728
 
8693
8729
 
8730
+
8694
8731
  /***/ }),
8695
8732
 
8696
8733
  /***/ 57865:
@@ -8719,9 +8756,11 @@ function options(message) {
8719
8756
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8720
8757
 
8721
8758
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8759
+ /* harmony export */ AnswerError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.AnswerError; },
8722
8760
  /* harmony export */ ConnectionError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
8723
8761
  /* harmony export */ OptionsError: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.OptionsError; },
8724
8762
  /* harmony export */ abort: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.abort; },
8763
+ /* harmony export */ answer: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.answer; },
8725
8764
  /* harmony export */ connection: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.connection; },
8726
8765
  /* harmony export */ error: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.error; },
8727
8766
  /* harmony export */ options: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.options; }
@@ -8952,6 +8991,7 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
8952
8991
 
8953
8992
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8954
8993
  /* harmony export */ $$: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_27__.$$; },
8994
+ /* harmony export */ AnswerError: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.AnswerError; },
8955
8995
  /* harmony export */ ConfigDeepFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigDeepFlatten; },
8956
8996
  /* harmony export */ ConfigFlatten: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigFlatten; },
8957
8997
  /* harmony export */ ConfigMerge: function() { return /* reexport safe */ _config_proto_js__WEBPACK_IMPORTED_MODULE_7__.ConfigMerge; },
@@ -8963,6 +9003,7 @@ const isPart = (node, part)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isHTML
8963
9003
  /* harmony export */ abort: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.abort; },
8964
9004
  /* harmony export */ alignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.alignElement; },
8965
9005
  /* harmony export */ alreadyLoadedList: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.alreadyLoadedList; },
9006
+ /* harmony export */ answer: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.answer; },
8966
9007
  /* harmony export */ appendScriptAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.appendScriptAsync; },
8967
9008
  /* harmony export */ appendStyleAsync: function() { return /* reexport safe */ _append_script_js__WEBPACK_IMPORTED_MODULE_1__.appendStyleAsync; },
8968
9009
  /* harmony export */ assert: function() { return /* reexport safe */ _assert_js__WEBPACK_IMPORTED_MODULE_2__.assert; },
@@ -10479,6 +10520,23 @@ class Ajax {
10479
10520
  } catch (_a) {}
10480
10521
  return this;
10481
10522
  }
10523
+ // A connector answers an error with its JSON envelope and a real HTTP status (403, 409): the body says why, the reason phrase does not
10524
+ __hasAnswerEnvelope() {
10525
+ const { xhr } = this;
10526
+ if (xhr.responseType && xhr.responseType !== 'text') {
10527
+ return false;
10528
+ }
10529
+ const text = xhr.responseText;
10530
+ if (!text || text[0] !== '{') {
10531
+ return false;
10532
+ }
10533
+ try {
10534
+ const answer = JSON.parse(text);
10535
+ return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(answer) && 'success' in answer;
10536
+ } catch (_a) {
10537
+ return false;
10538
+ }
10539
+ }
10482
10540
  send() {
10483
10541
  this.__activated = true;
10484
10542
  const { xhr, o } = this;
@@ -10515,7 +10573,7 @@ class Ajax {
10515
10573
  var _a, _b;
10516
10574
  (_b = (_a = this.options).onProgress) === null || _b === void 0 ? void 0 : _b.call(_a, 10);
10517
10575
  if (xhr.readyState === XMLHttpRequest.DONE) {
10518
- if (o.successStatuses.includes(xhr.status)) {
10576
+ if (o.successStatuses.includes(xhr.status) || this.__hasAnswerEnvelope()) {
10519
10577
  onResolve();
10520
10578
  } else if (xhr.statusText) {
10521
10579
  this.__isFulfilled = true;
@@ -27657,8 +27715,9 @@ class DataProvider {
27657
27715
  this.progressHandler(100);
27658
27716
  }).catch(()=>null);
27659
27717
  return promise.then((resp)=>resp.json()).then((resp)=>{
27718
+ var _a;
27660
27719
  if (resp && !this.isSuccess(resp)) {
27661
- throw new Error(this.getMessage(resp));
27720
+ throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_7__.answer)(this.getMessage(resp), resp, (_a = resp.data) === null || _a === void 0 ? void 0 : _a.code);
27662
27721
  }
27663
27722
  return resp;
27664
27723
  });
@@ -27794,10 +27853,11 @@ class DataProvider {
27794
27853
  */ getPathByUrl(url) {
27795
27854
  ;(0,_core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_8__.set)('options.getLocalFileByUrl.data.url', url, this);
27796
27855
  return this.get('getLocalFileByUrl').then((resp)=>{
27856
+ var _a;
27797
27857
  if (this.isSuccess(resp)) {
27798
27858
  return resp.data;
27799
27859
  }
27800
- throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_7__.error)(this.getMessage(resp));
27860
+ throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_7__.answer)(this.getMessage(resp), resp, (_a = resp.data) === null || _a === void 0 ? void 0 : _a.code);
27801
27861
  });
27802
27862
  }
27803
27863
  /**
@@ -32649,6 +32709,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
32649
32709
  defaultHandlerError (e) {
32650
32710
  this.j.message.error(e.message);
32651
32711
  },
32712
+ promptOnExists: true,
32713
+ promptOnExistsSuggestName (name) {
32714
+ return name;
32715
+ },
32652
32716
  contentType (requestData) {
32653
32717
  return this.ow.FormData !== undefined && typeof requestData !== 'string' ? false : 'application/x-www-form-urlencoded; charset=UTF-8';
32654
32718
  }
@@ -32815,32 +32879,58 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
32815
32879
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
32816
32880
  /* harmony export */ sendFiles: function() { return /* binding */ sendFiles; }
32817
32881
  /* harmony export */ });
32818
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21537);
32819
- /* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71686);
32882
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
32883
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
32884
+ /* harmony import */ var _core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70231);
32885
+ /* harmony import */ var _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36806);
32886
+ /* harmony import */ var _send_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71686);
32887
+ /* harmony import */ var _upload_error_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76198);
32820
32888
  /*!
32821
32889
  * Jodit Editor (https://xdsoft.net/jodit/)
32822
32890
  * Released under MIT see LICENSE.txt in the project root for license information.
32823
32891
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
32824
32892
  */
32825
32893
 
32894
+
32895
+
32896
+
32897
+
32826
32898
  /**
32827
32899
  * Send files to server
32828
- */ function sendFiles(uploader, files, handlerSuccess, handlerError, process) {
32900
+ */ async function sendFiles(uploader, files, handlerSuccess, handlerError, process, // Set when a refused upload is sent again: `beforeUpload` already had its say
32901
+ retryOf) {
32829
32902
  if (!files) {
32830
- return Promise.reject((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.error)('Need files'));
32903
+ throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Need files');
32831
32904
  }
32832
32905
  const { o } = uploader;
32833
- let fileList = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.toArray)(files);
32906
+ let fileList = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(files);
32834
32907
  if (!fileList.length) {
32835
- return Promise.reject((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.error)('Need files'));
32908
+ throw (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Need files');
32836
32909
  }
32837
- // Client-side validation hook — returning `false` aborts the upload.
32910
+ let extraData = retryOf === null || retryOf === void 0 ? void 0 : retryOf.data;
32911
+ // Client-side validation hook — returning `false` aborts the upload, and it may hand back the files to send instead
32838
32912
  // See https://github.com/xdan/jodit/issues/1329
32839
- if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(o.beforeUpload)) {
32840
- if (o.beforeUpload.call(uploader, fileList) === false) {
32841
- const err = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.error)('Upload canceled');
32913
+ if (!retryOf && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(o.beforeUpload)) {
32914
+ let plan;
32915
+ try {
32916
+ plan = await o.beforeUpload.call(uploader, fileList);
32917
+ } catch (e) {
32918
+ (handlerError || o.defaultHandlerError).call(uploader, e);
32919
+ throw e;
32920
+ }
32921
+ if (plan === false) {
32922
+ const err = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.error)('Upload canceled');
32842
32923
  (handlerError || o.defaultHandlerError).call(uploader, err);
32843
- return Promise.reject(err);
32924
+ throw err;
32925
+ }
32926
+ if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(plan)) {
32927
+ fileList = plan;
32928
+ } else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(plan) && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(plan.files)) {
32929
+ fileList = plan.files;
32930
+ extraData = plan.data;
32931
+ }
32932
+ if (!fileList.length) {
32933
+ return [];
32844
32934
  }
32845
32935
  }
32846
32936
  const promises = [];
@@ -32880,20 +32970,38 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
32880
32970
  if (process) {
32881
32971
  process(form);
32882
32972
  }
32883
- if (o.data && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(o.data)) {
32973
+ if (o.data && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(o.data)) {
32884
32974
  Object.keys(o.data).forEach((key)=>{
32885
32975
  form.append(key, o.data[key]);
32886
32976
  });
32887
32977
  }
32978
+ if (extraData) {
32979
+ Object.keys(extraData).forEach((key)=>{
32980
+ form.append(key, extraData[key]);
32981
+ });
32982
+ }
32888
32983
  o.prepareData.call(uploader, form);
32889
- promises.push((0,_send_js__WEBPACK_IMPORTED_MODULE_1__.send)(uploader, form).then((resp)=>{
32984
+ promises.push((0,_send_js__WEBPACK_IMPORTED_MODULE_4__.send)(uploader, form).then((resp)=>{
32890
32985
  if (o.isSuccess.call(uploader, resp)) {
32891
- const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
32986
+ const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
32892
32987
  handler.call(uploader, o.process.call(uploader, resp));
32893
32988
  return resp;
32894
32989
  }
32895
- const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
32896
- handler.call(uploader, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.error)(o.getMessage.call(uploader, resp)));
32990
+ const err = new _upload_error_js__WEBPACK_IMPORTED_MODULE_5__.UploadError(o.getMessage.call(uploader, resp), resp, fileList, (plan)=>{
32991
+ var _a;
32992
+ return sendFiles(uploader, (_a = plan === null || plan === void 0 ? void 0 : plan.files) !== null && _a !== void 0 ? _a : fileList, handlerSuccess, handlerError, process, {
32993
+ data: {
32994
+ ...extraData,
32995
+ ...plan === null || plan === void 0 ? void 0 : plan.data
32996
+ }
32997
+ });
32998
+ });
32999
+ // A taken name is part of the upload, not a failure: ask for another one first
33000
+ if (err.code === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.ERROR_CODE_CONFLICT && o.promptOnExists) {
33001
+ return askAnotherName(uploader, err);
33002
+ }
33003
+ const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
33004
+ handler.call(uploader, err);
32897
33005
  return resp;
32898
33006
  }).then(()=>{
32899
33007
  uploader.j.events && uploader.j.e.fire('filesWereUploaded');
@@ -32901,6 +33009,45 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
32901
33009
  }
32902
33010
  return Promise.all(promises);
32903
33011
  }
33012
+ function askAnotherName(uploader, err) {
33013
+ const { files } = err;
33014
+ // A batch is refused as a whole (the connector saved nothing) and the answer does not say which name is taken,
33015
+ // so the files go again one by one: the free ones are simply stored, the taken one answers 409 alone and gets its prompt
33016
+ if (files.length > 1) {
33017
+ return files.reduce((chain, file)=>chain.then(()=>err.retry({
33018
+ files: [
33019
+ file
33020
+ ]
33021
+ })), Promise.resolve());
33022
+ }
33023
+ const [file] = files;
33024
+ const { j, o } = uploader;
33025
+ return new Promise((resolve)=>{
33026
+ let answered = false;
33027
+ // `Dlgs.prototype.dlg`: the uploader's view does not always carry the Dlgs trait
33028
+ const dialog = _dialog_prompt_js__WEBPACK_IMPORTED_MODULE_3__.Prompt.call(_core_traits_dlgs_js__WEBPACK_IMPORTED_MODULE_2__.Dlgs.prototype.dlg.call(j, {
33029
+ closeOnClickOverlay: true
33030
+ }), j.i18n(err.message), j.i18n('Rename'), (newName)=>{
33031
+ newName = newName.trim();
33032
+ if (!newName) {
33033
+ return false;
33034
+ }
33035
+ answered = true;
33036
+ resolve(err.retry({
33037
+ files: [
33038
+ new File([
33039
+ file
33040
+ ], newName, {
33041
+ type: file.type
33042
+ })
33043
+ ]
33044
+ }));
33045
+ }, j.i18n('Enter new name'), o.promptOnExistsSuggestName.call(uploader, file.name));
33046
+ dialog.e.on(dialog, 'afterClose', ()=>{
33047
+ !answered && resolve(undefined);
33048
+ });
33049
+ });
33050
+ }
32904
33051
  function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
32905
33052
  const readerPromises = [];
32906
33053
  let file, i;
@@ -32929,7 +33076,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
32929
33076
  name
32930
33077
  ]
32931
33078
  };
32932
- const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
33079
+ const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handlerSuccess) ? handlerSuccess : defaultHandlerSuccess;
32933
33080
  handler.call(uploader, resp);
32934
33081
  resolve(resp);
32935
33082
  };
@@ -33042,6 +33189,32 @@ function send(uploader, data) {
33042
33189
  /* harmony export */ ]);
33043
33190
 
33044
33191
 
33192
+ /***/ }),
33193
+
33194
+ /***/ 76198:
33195
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
33196
+
33197
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
33198
+ /* harmony export */ UploadError: function() { return /* binding */ UploadError; }
33199
+ /* harmony export */ });
33200
+ /* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89890);
33201
+ /*!
33202
+ * Jodit Editor (https://xdsoft.net/jodit/)
33203
+ * Released under MIT see LICENSE.txt in the project root for license information.
33204
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
33205
+ */
33206
+ // The connector refused these files: the handler can change the request and send it again
33207
+ class UploadError extends _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_0__.AnswerError {
33208
+ constructor(message, answer, files, retry){
33209
+ var _a;
33210
+ super(message, answer, (_a = answer.data) === null || _a === void 0 ? void 0 : _a.code);
33211
+ this.files = files;
33212
+ this.retry = retry;
33213
+ Object.setPrototypeOf(this, UploadError.prototype);
33214
+ }
33215
+ }
33216
+
33217
+
33045
33218
  /***/ }),
33046
33219
 
33047
33220
  /***/ 57380:
@@ -33054,9 +33227,10 @@ function send(uploader, data) {
33054
33227
  /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
33055
33228
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
33056
33229
  /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
33057
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6441);
33058
- /* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94122);
33059
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80536);
33230
+ /* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89890);
33231
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6441);
33232
+ /* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(94122);
33233
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(80536);
33060
33234
  /*!
33061
33235
  * Jodit Editor (https://xdsoft.net/jodit/)
33062
33236
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33068,6 +33242,7 @@ function send(uploader, data) {
33068
33242
 
33069
33243
 
33070
33244
 
33245
+
33071
33246
  class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.ViewComponent {
33072
33247
  get j() {
33073
33248
  return this.jodit;
@@ -33123,14 +33298,14 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33123
33298
  }
33124
33299
  };
33125
33300
  // send data on server
33126
- if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.hasFiles)(cData)) {
33127
- (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.sendFiles)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
33301
+ if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(cData)) {
33302
+ (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, cData.files, handlerSuccess, handlerError).finally(onFinally);
33128
33303
  return false;
33129
33304
  }
33130
33305
  if (_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
33131
- return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.processOldBrowserDrag)(self, cData, handlerSuccess, handlerError, onFinally);
33306
+ return (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.processOldBrowserDrag)(self, cData, handlerSuccess, handlerError, onFinally);
33132
33307
  }
33133
- if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.hasItems)(cData)) {
33308
+ if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(cData)) {
33134
33309
  const { items } = cData;
33135
33310
  for(i = 0; i < items.length; i += 1){
33136
33311
  if (items[i].kind === 'file' && items[i].type === 'image/png') {
@@ -33138,7 +33313,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33138
33313
  if (file) {
33139
33314
  const mime = file.type.match(/\/([a-z0-9]+)/i);
33140
33315
  extension = mime[1] ? mime[1].toLowerCase() : '';
33141
- (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.sendFiles)(self, [
33316
+ (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, [
33142
33317
  file
33143
33318
  ], handlerSuccess, handlerError, processData).finally(onFinally);
33144
33319
  }
@@ -33160,21 +33335,21 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33160
33335
  self.j.e.on(form, 'dragend dragover dragenter dragleave drop', (e)=>{
33161
33336
  e.preventDefault();
33162
33337
  }).on(form, 'dragover', (event)=>{
33163
- if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.hasFiles)(event.dataTransfer) || (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.hasItems)(event.dataTransfer)) {
33338
+ if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer) || (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(event.dataTransfer)) {
33164
33339
  form.classList.add('jodit_drag_hover');
33165
33340
  event.preventDefault();
33166
33341
  }
33167
33342
  }).on(form, 'dragend dragleave', (event)=>{
33168
33343
  form.classList.remove('jodit_drag_hover');
33169
- if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.hasFiles)(event.dataTransfer)) {
33344
+ if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer)) {
33170
33345
  event.preventDefault();
33171
33346
  }
33172
33347
  }).on(form, 'drop', (event)=>{
33173
33348
  form.classList.remove('jodit_drag_hover');
33174
- if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.hasFiles)(event.dataTransfer)) {
33349
+ if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasFiles)(event.dataTransfer)) {
33175
33350
  event.preventDefault();
33176
33351
  event.stopImmediatePropagation();
33177
- (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.sendFiles)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
33352
+ (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, event.dataTransfer.files, handlerSuccess, handlerError).finally(onFinally);
33178
33353
  }
33179
33354
  });
33180
33355
  const inputFile = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.first(form, (node)=>{
@@ -33183,7 +33358,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33183
33358
  });
33184
33359
  if (inputFile) {
33185
33360
  self.j.e.on(inputFile, 'change', ()=>{
33186
- (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.sendFiles)(self, inputFile.files, handlerSuccess, handlerError).then(()=>{
33361
+ (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, inputFile.files, handlerSuccess, handlerError).then(()=>{
33187
33362
  inputFile.value = '';
33188
33363
  if (!/safari/i.test(navigator.userAgent)) {
33189
33364
  inputFile.type = '';
@@ -33198,26 +33373,41 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33198
33373
  */ uploadRemoteImage(url, handlerSuccess, handlerError) {
33199
33374
  const uploader = this, { o } = uploader;
33200
33375
  const handlerE = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
33201
- (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.send)(uploader, {
33376
+ (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.send)(uploader, {
33202
33377
  action: 'fileUploadRemote',
33203
33378
  url
33204
33379
  }).then((resp)=>{
33380
+ var _a;
33205
33381
  if (o.isSuccess.call(uploader, resp)) {
33206
33382
  const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
33207
33383
  handler.call(uploader, o.process.call(uploader, resp));
33208
33384
  return;
33209
33385
  }
33210
- handlerE.call(uploader, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.error)(o.getMessage.call(uploader, resp)));
33386
+ handlerE.call(uploader, (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_4__.answer)(o.getMessage.call(uploader, resp), resp, (_a = resp.data) === null || _a === void 0 ? void 0 : _a.code));
33211
33387
  }).catch((e)=>handlerE.call(uploader, e));
33212
33388
  }
33213
33389
  upload(files) {
33214
33390
  return this.async.promise((resolve, reject)=>{
33215
- ;(0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.sendFiles)(this, files, resolve, reject);
33391
+ let settled = false;
33392
+ const settle = (end)=>(value)=>{
33393
+ settled = true;
33394
+ end(value);
33395
+ };
33396
+ (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(this, files, settle(resolve), settle(reject)).then(()=>{
33397
+ // `beforeUpload` kept no file, so no handler ran
33398
+ if (!settled) {
33399
+ resolve({
33400
+ baseurl: '',
33401
+ files: [],
33402
+ isImages: []
33403
+ });
33404
+ }
33405
+ }, settle(reject));
33216
33406
  });
33217
33407
  }
33218
33408
  destruct() {
33219
33409
  this.setStatus(_core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.STATUSES.beforeDestruct);
33220
- const instances = _helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.ajaxInstances.get(this);
33410
+ const instances = _helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.ajaxInstances.get(this);
33221
33411
  if (instances) {
33222
33412
  instances.forEach((ajax)=>{
33223
33413
  try {
@@ -33232,7 +33422,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33232
33422
  super(editor);
33233
33423
  this.path = '';
33234
33424
  this.source = 'default';
33235
- this.options = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(_config_js__WEBPACK_IMPORTED_MODULE_4__.Config.defaultOptions.uploader, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isJoditObject)(editor) ? editor.o.uploader : {}));
33425
+ this.options = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(options || {}, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.ConfigProto)(_config_js__WEBPACK_IMPORTED_MODULE_5__.Config.defaultOptions.uploader, (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isJoditObject)(editor) ? editor.o.uploader : {}));
33236
33426
  }
33237
33427
  }
33238
33428