jodit-pro 4.19.4 → 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 +8 -8
  3. package/es2015/jodit.js +840 -201
  4. package/es2015/jodit.min.js +41 -41
  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 +8 -8
  79. package/es2018/jodit.min.js +10 -10
  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 +10 -10
  109. package/es2021/jodit.js +732 -144
  110. package/es2021/jodit.min.js +13 -13
  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 +10 -10
  186. package/es2021.en/jodit.js +732 -144
  187. package/es2021.en/jodit.min.js +10 -10
  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 +1230 -207
  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
@@ -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.4
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.4";
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;
@@ -13601,9 +13659,11 @@ const WRAP_NODES = new Set([
13601
13659
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13602
13660
  /* harmony export */ ApplyStyle: function() { return /* binding */ ApplyStyle; }
13603
13661
  /* harmony export */ });
13604
- /* harmony import */ var _api_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63687);
13605
- /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77361);
13606
- /* harmony import */ var _transactions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55307);
13662
+ /* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
13663
+ /* harmony import */ var _helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76078);
13664
+ /* harmony import */ var _api_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63687);
13665
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77361);
13666
+ /* harmony import */ var _transactions_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(55307);
13607
13667
  /*!
13608
13668
  * Jodit Editor (https://xdsoft.net/jodit/)
13609
13669
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -13611,27 +13671,55 @@ const WRAP_NODES = new Set([
13611
13671
  */
13612
13672
 
13613
13673
 
13674
+
13675
+
13676
+ /**
13677
+ * Take a selected fragment out of the elements its style takes the place
13678
+ * of: one around it is split, so the fragment leaves it, and one in it is
13679
+ * unwrapped
13680
+ */ function takeOutOf(jodit, font, tags) {
13681
+ const range = jodit.s.createRange();
13682
+ let outer = _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(font.parentNode, tags, jodit.editor);
13683
+ while(outer){
13684
+ range.selectNodeContents(outer);
13685
+ range.setEndBefore(font);
13686
+ const before = range.cloneContents();
13687
+ range.selectNodeContents(outer);
13688
+ range.setStartAfter(font);
13689
+ // Split only when there's more in it, as a split leaves empty copies
13690
+ // of the elements between
13691
+ if (!_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(before) || !_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(range.cloneContents())) {
13692
+ (0,_api_index_js__WEBPACK_IMPORTED_MODULE_2__.extractSelectedPart)(outer, font, jodit);
13693
+ }
13694
+ _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.unwrap(outer);
13695
+ outer = _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(font.parentNode, tags, jodit.editor);
13696
+ }
13697
+ ;(0,_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_1__.$$)(tags.join(','), font).forEach((inner)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.unwrap(inner));
13698
+ }
13614
13699
  /** @internal */ function ApplyStyle(jodit, cs) {
13615
- var _a;
13700
+ var _a, _b;
13616
13701
  const { s: sel, editor } = jodit;
13617
13702
  (_a = editor.firstChild) === null || _a === void 0 ? void 0 : _a.normalize(); // FF fix for test "commandsTest - Exec command "bold"
13618
13703
  const fakes = sel.fakes();
13619
13704
  const collapsed = sel.isCollapsed();
13620
- let mode = _constants_js__WEBPACK_IMPORTED_MODULE_1__.INITIAL;
13705
+ let mode = _constants_js__WEBPACK_IMPORTED_MODULE_3__.INITIAL;
13621
13706
  try {
13622
13707
  // for...of closes the generator on an exception, releasing every
13623
13708
  // temporary wrapper before the selection is restored in finally.
13624
13709
  for (const font of sel.wrapInTagGen(fakes)){
13710
+ if ((_b = cs.options.exclude) === null || _b === void 0 ? void 0 : _b.length) {
13711
+ takeOutOf(jodit, font, cs.options.exclude);
13712
+ }
13625
13713
  let state = {
13626
13714
  collapsed,
13627
13715
  mode,
13628
13716
  element: font,
13629
- next: _transactions_js__WEBPACK_IMPORTED_MODULE_2__.states.START,
13717
+ next: _transactions_js__WEBPACK_IMPORTED_MODULE_4__.states.START,
13630
13718
  jodit,
13631
13719
  style: cs
13632
13720
  };
13633
- const machine = new _api_index_js__WEBPACK_IMPORTED_MODULE_0__.FiniteStateMachine(_transactions_js__WEBPACK_IMPORTED_MODULE_2__.states.START, _transactions_js__WEBPACK_IMPORTED_MODULE_2__.transactions);
13634
- while(!jodit.isInDestruct && machine.getState() !== _transactions_js__WEBPACK_IMPORTED_MODULE_2__.states.END){
13721
+ const machine = new _api_index_js__WEBPACK_IMPORTED_MODULE_2__.FiniteStateMachine(_transactions_js__WEBPACK_IMPORTED_MODULE_4__.states.START, _transactions_js__WEBPACK_IMPORTED_MODULE_4__.transactions);
13722
+ while(!jodit.isInDestruct && machine.getState() !== _transactions_js__WEBPACK_IMPORTED_MODULE_4__.states.END){
13635
13723
  state = machine.dispatch('exec', state);
13636
13724
  }
13637
13725
  // The first selected fragment determines how later fragments toggle.
@@ -18147,6 +18235,20 @@ const FOCUS_EVENTS = new Set([
18147
18235
  'focusin',
18148
18236
  'focusout'
18149
18237
  ]);
18238
+ const EDITING_KEYS = new Set([
18239
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER,
18240
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE,
18241
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE
18242
+ ]);
18243
+ /**
18244
+ * Whether the input method (IME) is using the key. Safari fires the keydown
18245
+ * that ends a composition, as the Enter that confirms Japanese text, after
18246
+ * `compositionend`, and types Korean without one, so `isComposing` is false and
18247
+ * only keyCode 229 tells. Only the keys the editor turns into edits are held
18248
+ * back: the handlers that follow typing still see the rest.
18249
+ */ function isInputMethodKey(event) {
18250
+ return event.isComposing || event.keyCode === 229 && EDITING_KEYS.has(event.key);
18251
+ }
18150
18252
  const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
18151
18253
  const __defaultClassesKey = 'data-jodit-default-classes';
18152
18254
  const NOEDIT = {
@@ -19205,7 +19307,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19205
19307
  }
19206
19308
  }
19207
19309
  const w = this.ew;
19208
- if (event instanceof w.KeyboardEvent && event.isComposing) {
19310
+ if (event instanceof w.KeyboardEvent && isInputMethodKey(event)) {
19209
19311
  return;
19210
19312
  }
19211
19313
  if (this.e && this.e.fire) {
@@ -27613,8 +27715,9 @@ class DataProvider {
27613
27715
  this.progressHandler(100);
27614
27716
  }).catch(()=>null);
27615
27717
  return promise.then((resp)=>resp.json()).then((resp)=>{
27718
+ var _a;
27616
27719
  if (resp && !this.isSuccess(resp)) {
27617
- 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);
27618
27721
  }
27619
27722
  return resp;
27620
27723
  });
@@ -27750,10 +27853,11 @@ class DataProvider {
27750
27853
  */ getPathByUrl(url) {
27751
27854
  ;(0,_core_helpers_utils_set_js__WEBPACK_IMPORTED_MODULE_8__.set)('options.getLocalFileByUrl.data.url', url, this);
27752
27855
  return this.get('getLocalFileByUrl').then((resp)=>{
27856
+ var _a;
27753
27857
  if (this.isSuccess(resp)) {
27754
27858
  return resp.data;
27755
27859
  }
27756
- 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);
27757
27861
  });
27758
27862
  }
27759
27863
  /**
@@ -32605,6 +32709,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.uploader = {
32605
32709
  defaultHandlerError (e) {
32606
32710
  this.j.message.error(e.message);
32607
32711
  },
32712
+ promptOnExists: true,
32713
+ promptOnExistsSuggestName (name) {
32714
+ return name;
32715
+ },
32608
32716
  contentType (requestData) {
32609
32717
  return this.ow.FormData !== undefined && typeof requestData !== 'string' ? false : 'application/x-www-form-urlencoded; charset=UTF-8';
32610
32718
  }
@@ -32771,32 +32879,58 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
32771
32879
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
32772
32880
  /* harmony export */ sendFiles: function() { return /* binding */ sendFiles; }
32773
32881
  /* harmony export */ });
32774
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21537);
32775
- /* 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);
32776
32888
  /*!
32777
32889
  * Jodit Editor (https://xdsoft.net/jodit/)
32778
32890
  * Released under MIT see LICENSE.txt in the project root for license information.
32779
32891
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
32780
32892
  */
32781
32893
 
32894
+
32895
+
32896
+
32897
+
32782
32898
  /**
32783
32899
  * Send files to server
32784
- */ 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) {
32785
32902
  if (!files) {
32786
- 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');
32787
32904
  }
32788
32905
  const { o } = uploader;
32789
- 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);
32790
32907
  if (!fileList.length) {
32791
- 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');
32792
32909
  }
32793
- // 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
32794
32912
  // See https://github.com/xdan/jodit/issues/1329
32795
- if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(o.beforeUpload)) {
32796
- if (o.beforeUpload.call(uploader, fileList) === false) {
32797
- 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');
32798
32923
  (handlerError || o.defaultHandlerError).call(uploader, err);
32799
- 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 [];
32800
32934
  }
32801
32935
  }
32802
32936
  const promises = [];
@@ -32836,20 +32970,38 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
32836
32970
  if (process) {
32837
32971
  process(form);
32838
32972
  }
32839
- 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)) {
32840
32974
  Object.keys(o.data).forEach((key)=>{
32841
32975
  form.append(key, o.data[key]);
32842
32976
  });
32843
32977
  }
32978
+ if (extraData) {
32979
+ Object.keys(extraData).forEach((key)=>{
32980
+ form.append(key, extraData[key]);
32981
+ });
32982
+ }
32844
32983
  o.prepareData.call(uploader, form);
32845
- 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)=>{
32846
32985
  if (o.isSuccess.call(uploader, resp)) {
32847
- 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;
32848
32987
  handler.call(uploader, o.process.call(uploader, resp));
32849
32988
  return resp;
32850
32989
  }
32851
- const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
32852
- 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);
32853
33005
  return resp;
32854
33006
  }).then(()=>{
32855
33007
  uploader.j.events && uploader.j.e.fire('filesWereUploaded');
@@ -32857,6 +33009,45 @@ function processOldBrowserDrag(self, cData, handlerSuccess, handlerError, onFina
32857
33009
  }
32858
33010
  return Promise.all(promises);
32859
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
+ }
32860
33051
  function readImagesWithReader(fileList, imagesExtensions, promises, uploader, handlerSuccess, defaultHandlerSuccess) {
32861
33052
  const readerPromises = [];
32862
33053
  let file, i;
@@ -32885,7 +33076,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
32885
33076
  name
32886
33077
  ]
32887
33078
  };
32888
- 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;
32889
33080
  handler.call(uploader, resp);
32890
33081
  resolve(resp);
32891
33082
  };
@@ -32998,6 +33189,32 @@ function send(uploader, data) {
32998
33189
  /* harmony export */ ]);
32999
33190
 
33000
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
+
33001
33218
  /***/ }),
33002
33219
 
33003
33220
  /***/ 57380:
@@ -33010,9 +33227,10 @@ function send(uploader, data) {
33010
33227
  /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
33011
33228
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
33012
33229
  /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
33013
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6441);
33014
- /* harmony import */ var _helpers_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94122);
33015
- /* 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);
33016
33234
  /*!
33017
33235
  * Jodit Editor (https://xdsoft.net/jodit/)
33018
33236
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -33024,6 +33242,7 @@ function send(uploader, data) {
33024
33242
 
33025
33243
 
33026
33244
 
33245
+
33027
33246
  class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.ViewComponent {
33028
33247
  get j() {
33029
33248
  return this.jodit;
@@ -33079,14 +33298,14 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33079
33298
  }
33080
33299
  };
33081
33300
  // send data on server
33082
- if (!_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.hasFiles)(cData)) {
33083
- (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);
33084
33303
  return false;
33085
33304
  }
33086
33305
  if (_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_IE && !_core_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_ES_NEXT) {
33087
- 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);
33088
33307
  }
33089
- if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.hasItems)(cData)) {
33308
+ if ((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.hasItems)(cData)) {
33090
33309
  const { items } = cData;
33091
33310
  for(i = 0; i < items.length; i += 1){
33092
33311
  if (items[i].kind === 'file' && items[i].type === 'image/png') {
@@ -33094,7 +33313,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33094
33313
  if (file) {
33095
33314
  const mime = file.type.match(/\/([a-z0-9]+)/i);
33096
33315
  extension = mime[1] ? mime[1].toLowerCase() : '';
33097
- (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.sendFiles)(self, [
33316
+ (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.sendFiles)(self, [
33098
33317
  file
33099
33318
  ], handlerSuccess, handlerError, processData).finally(onFinally);
33100
33319
  }
@@ -33116,21 +33335,21 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33116
33335
  self.j.e.on(form, 'dragend dragover dragenter dragleave drop', (e)=>{
33117
33336
  e.preventDefault();
33118
33337
  }).on(form, 'dragover', (event)=>{
33119
- 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)) {
33120
33339
  form.classList.add('jodit_drag_hover');
33121
33340
  event.preventDefault();
33122
33341
  }
33123
33342
  }).on(form, 'dragend dragleave', (event)=>{
33124
33343
  form.classList.remove('jodit_drag_hover');
33125
- 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)) {
33126
33345
  event.preventDefault();
33127
33346
  }
33128
33347
  }).on(form, 'drop', (event)=>{
33129
33348
  form.classList.remove('jodit_drag_hover');
33130
- 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)) {
33131
33350
  event.preventDefault();
33132
33351
  event.stopImmediatePropagation();
33133
- (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);
33134
33353
  }
33135
33354
  });
33136
33355
  const inputFile = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.first(form, (node)=>{
@@ -33139,7 +33358,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33139
33358
  });
33140
33359
  if (inputFile) {
33141
33360
  self.j.e.on(inputFile, 'change', ()=>{
33142
- (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(()=>{
33143
33362
  inputFile.value = '';
33144
33363
  if (!/safari/i.test(navigator.userAgent)) {
33145
33364
  inputFile.type = '';
@@ -33154,26 +33373,41 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33154
33373
  */ uploadRemoteImage(url, handlerSuccess, handlerError) {
33155
33374
  const uploader = this, { o } = uploader;
33156
33375
  const handlerE = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerError) ? handlerError : o.defaultHandlerError;
33157
- (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_5__.send)(uploader, {
33376
+ (0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_6__.send)(uploader, {
33158
33377
  action: 'fileUploadRemote',
33159
33378
  url
33160
33379
  }).then((resp)=>{
33380
+ var _a;
33161
33381
  if (o.isSuccess.call(uploader, resp)) {
33162
33382
  const handler = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(handlerSuccess) ? handlerSuccess : o.defaultHandlerSuccess;
33163
33383
  handler.call(uploader, o.process.call(uploader, resp));
33164
33384
  return;
33165
33385
  }
33166
- 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));
33167
33387
  }).catch((e)=>handlerE.call(uploader, e));
33168
33388
  }
33169
33389
  upload(files) {
33170
33390
  return this.async.promise((resolve, reject)=>{
33171
- ;(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));
33172
33406
  });
33173
33407
  }
33174
33408
  destruct() {
33175
33409
  this.setStatus(_core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.STATUSES.beforeDestruct);
33176
- 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);
33177
33411
  if (instances) {
33178
33412
  instances.forEach((ajax)=>{
33179
33413
  try {
@@ -33188,7 +33422,7 @@ class Uploader extends _core_component_index_js__WEBPACK_IMPORTED_MODULE_0__.Vie
33188
33422
  super(editor);
33189
33423
  this.path = '';
33190
33424
  this.source = 'default';
33191
- 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 : {}));
33192
33426
  }
33193
33427
  }
33194
33428
 
@@ -34831,6 +35065,13 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
34831
35065
  if (checkJoinBareText(jodit, fakeNode, backspace)) {
34832
35066
  return true;
34833
35067
  }
35068
+ // Old content can have an inline element round blocks beside the text:
35069
+ // moved inside them, the line joins the block as it would bare text
35070
+ // (#1781)
35071
+ const inline = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(fakeNode, backspace);
35072
+ if (joinsBareText(jodit, edgeBlock(inline, backspace)) && moveInlineInside(inline, jodit.editor)) {
35073
+ return joinNeighbors(jodit, fakeNode, backspace, moved);
35074
+ }
34834
35075
  let nextBox = fakeNode, mainClosestBox = nextBox;
34835
35076
  // Find the main big closest element
34836
35077
  while(nextBox && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(nextBox, backspace) && nextBox.parentElement !== jodit.editor){
@@ -35111,7 +35352,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
35111
35352
  * in `<div>a|<p>b</p>c</div>` gives `<div>a|b<br>c</div>`
35112
35353
  */ function checkJoinBareText(jodit, fakeNode, backspace) {
35113
35354
  const block = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(fakeNode, backspace);
35114
- if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(block) || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(block) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(block) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(block, 'table') || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(block) || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isContentEditable(block, jodit.editor) || Array.from(block.childNodes).some((node)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(node))) {
35355
+ if (!joinsBareText(jodit, block)) {
35115
35356
  return false;
35116
35357
  }
35117
35358
  const filter = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__.getMoveFilter)(jodit);
@@ -35138,6 +35379,24 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
35138
35379
  jodit.s.setCursorBefore(fakeNode);
35139
35380
  return true;
35140
35381
  }
35382
+ /**
35383
+ * Whether a block joins the bare text beside it: not a list, a table or a
35384
+ * cell, and holding no block of its own
35385
+ */ function joinsBareText(jodit, block) {
35386
+ return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(block) && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(block) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(block) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(block, 'table') && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(block) && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isContentEditable(block, jodit.editor) && !Array.from(block.childNodes).some((node)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(node));
35387
+ }
35388
+ /**
35389
+ * The block an inline element holds on its side facing the caret, through
35390
+ * the inline elements in it: the `<p>` of `<span><strong><p>…</p></strong></span>`
35391
+ */ function edgeBlock(node, backspace) {
35392
+ var _a;
35393
+ let edge = node;
35394
+ while(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(edge) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(edge)){
35395
+ const children = Array.from(edge.childNodes).filter((child)=>!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyTextNode(child));
35396
+ edge = (_a = backspace ? children[children.length - 1] : children[0]) !== null && _a !== void 0 ? _a : null;
35397
+ }
35398
+ return edge === node ? null : edge;
35399
+ }
35141
35400
  function checkMoveListContent(jodit, mainClosestBox, sibling, backspace) {
35142
35401
  // Process UL/LI/OL cases
35143
35402
  const siblingIsList = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(sibling, _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.LIST_TAGS);
@@ -35571,7 +35830,6 @@ function isNotEditable(jodit, node) {
35571
35830
  if (!prn || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(prn)) {
35572
35831
  return false;
35573
35832
  }
35574
- const neighbor = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptyNeighbor(fakeNode, backspace, jodit.editor);
35575
35833
  do {
35576
35834
  if (prn && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(prn) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(prn)) {
35577
35835
  _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(prn, fakeNode);
@@ -35586,6 +35844,9 @@ function isNotEditable(jodit, node) {
35586
35844
  if (found && (0,_check_join_two_lists_js__WEBPACK_IMPORTED_MODULE_2__.checkJoinTwoLists)(jodit, fakeNode, backspace)) {
35587
35845
  return true;
35588
35846
  }
35847
+ // Looked for once the empty elements have gone, as the one beside the
35848
+ // caret can be in them: the `<br>` that Delete in `<p>|<br></p>` leaves
35849
+ const neighbor = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptyNeighbor(fakeNode, backspace, jodit.editor);
35589
35850
  if (neighbor && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(neighbor) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(neighbor, _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS)) {
35590
35851
  setCursorIn(neighbor, !backspace);
35591
35852
  } else {
@@ -36022,8 +36283,15 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.delete = {
36022
36283
  }
36023
36284
  cssRules[key] = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(cssOptions[key]) ? cssOptions[key][0] : cssOptions[key];
36024
36285
  });
36286
+ const element = control.tags ? control.tags[0] : undefined;
36025
36287
  editor.s.commitStyle({
36026
- element: control.tags ? control.tags[0] : undefined
36288
+ element,
36289
+ // As in the browsers and Word, each takes the other's place
36290
+ exclude: element === 'sub' ? [
36291
+ 'sup'
36292
+ ] : element === 'sup' ? [
36293
+ 'sub'
36294
+ ] : []
36027
36295
  });
36028
36296
  editor.synchronizeValues();
36029
36297
  return false;
@@ -38288,11 +38556,12 @@ __webpack_require__.r(__webpack_exports__);
38288
38556
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
38289
38557
 
38290
38558
  /* unused harmony export deleteCommand */
38291
- /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22732);
38292
- /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(580);
38293
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
38294
- /* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49055);
38295
- /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50911);
38559
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
38560
+ /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
38561
+ /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
38562
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
38563
+ /* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
38564
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
38296
38565
  /*!
38297
38566
  * Jodit Editor (https://xdsoft.net/jodit/)
38298
38567
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38303,6 +38572,7 @@ __webpack_require__.r(__webpack_exports__);
38303
38572
 
38304
38573
 
38305
38574
 
38575
+
38306
38576
  const NOT_EMPTY_CONTENT_TAGS = new Set([
38307
38577
  'img',
38308
38578
  'table',
@@ -38310,7 +38580,19 @@ const NOT_EMPTY_CONTENT_TAGS = new Set([
38310
38580
  'iframe',
38311
38581
  'hr'
38312
38582
  ]);
38313
- class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
38583
+ const KEEPS_SPACES = new Set([
38584
+ 'pre',
38585
+ 'pre-wrap',
38586
+ 'break-spaces'
38587
+ ]);
38588
+ /**
38589
+ * A plain space beside this neighbor isn't shown: there is none, or it's a
38590
+ * line break, a block or text starting (or ending) with a plain space
38591
+ */ function hidesSpace(neighbor, edge) {
38592
+ var _a;
38593
+ return !neighbor || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(neighbor, 'br') || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(neighbor) || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(neighbor) && edge.test((_a = neighbor.nodeValue) !== null && _a !== void 0 ? _a : '');
38594
+ }
38595
+ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
38314
38596
  afterInit(jodit) {
38315
38597
  jodit.e.on('afterCommand.delete', (command)=>{
38316
38598
  if (command === 'delete') {
@@ -38331,11 +38613,11 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38331
38613
  */ __afterDeleteCommand() {
38332
38614
  const jodit = this.j;
38333
38615
  const current = jodit.s.current();
38334
- if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current.firstChild, 'br')) {
38616
+ if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(current.firstChild, 'br')) {
38335
38617
  jodit.s.removeNode(current.firstChild);
38336
38618
  }
38337
- if (!(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__.trim)(jodit.editor.textContent || '') && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.first(jodit.editor, (node)=>_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(node, NOT_EMPTY_CONTENT_TAGS)) && (!current || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(current, 'table', jodit.editor))) {
38338
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(jodit.editor);
38619
+ if (!(0,_core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__.trim)(jodit.editor.textContent || '') && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.first(jodit.editor, (node)=>_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, NOT_EMPTY_CONTENT_TAGS)) && (!current || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(current, 'table', jodit.editor))) {
38620
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(jodit.editor);
38339
38621
  const node = jodit.s.setCursorIn(jodit.editor);
38340
38622
  jodit.s.removeNode(node);
38341
38623
  }
@@ -38355,14 +38637,15 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38355
38637
  range.deleteContents();
38356
38638
  const fake = jodit.createInside.fake();
38357
38639
  range.insertNode(fake);
38358
- const leftSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.findSibling(fake, true);
38359
- const rightSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.findSibling(fake, false);
38640
+ const leftSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(fake, true);
38641
+ const rightSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(fake, false);
38360
38642
  this.__moveContentInLeftSibling(fake, leftSibling, rightSibling);
38643
+ this.__keepSpacesVisible(fake);
38361
38644
  range.setStartBefore(fake);
38362
38645
  range.collapse(true);
38363
38646
  this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
38364
38647
  this.__addBrInEmptyBlock(fake, range);
38365
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(fake);
38648
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
38366
38649
  jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
38367
38650
  return false;
38368
38651
  }
@@ -38376,23 +38659,23 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38376
38659
  * Returns where the caret goes, or null when no table is involved
38377
38660
  */ __clearSelectedCells(range) {
38378
38661
  const { editor, createInside } = this.j;
38379
- const startCell = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(range.startContainer, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isCell, editor);
38380
- const endCell = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(range.endContainer, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isCell, editor);
38662
+ const startCell = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(range.startContainer, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell, editor);
38663
+ const endCell = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(range.endContainer, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell, editor);
38381
38664
  if (startCell === endCell) {
38382
38665
  return null;
38383
38666
  }
38384
- const startTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(startCell, 'table', editor);
38385
- const endTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(endCell, 'table', editor);
38667
+ const startTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(startCell, 'table', editor);
38668
+ const endTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(endCell, 'table', editor);
38386
38669
  const caret = range.cloneRange();
38387
38670
  caret.collapse(true);
38388
38671
  const parts = [];
38389
38672
  const addParts = (table)=>{
38390
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(table.rows).flatMap((row)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(row.cells)).filter((cell)=>range.intersectsNode(cell)).forEach((cell)=>{
38673
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(table.rows).flatMap((row)=>(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(row.cells)).filter((cell)=>range.intersectsNode(cell)).forEach((cell)=>{
38391
38674
  const part = range.cloneRange();
38392
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(cell, range.startContainer)) {
38675
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(cell, range.startContainer)) {
38393
38676
  part.setStart(cell, 0);
38394
38677
  }
38395
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(cell, range.endContainer)) {
38678
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(cell, range.endContainer)) {
38396
38679
  part.setEnd(cell, cell.childNodes.length);
38397
38680
  }
38398
38681
  parts.push([
@@ -38415,9 +38698,9 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38415
38698
  }
38416
38699
  parts.forEach(([cell, part])=>{
38417
38700
  part.deleteContents();
38418
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(cell)) {
38419
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(cell);
38420
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(cell, createInside.element('br'));
38701
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(cell)) {
38702
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(cell);
38703
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(cell, createInside.element('br'));
38421
38704
  }
38422
38705
  });
38423
38706
  return startTable ? caret : null;
@@ -38425,46 +38708,76 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38425
38708
  __moveContentInLeftSibling(fake, leftSibling, rightSibling) {
38426
38709
  leftSibling = this.__defineRightLeftBox(leftSibling);
38427
38710
  // Nothing is moved into a table, and a block left empty after it goes
38428
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(leftSibling, 'table')) {
38429
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(rightSibling)) {
38430
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
38711
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(leftSibling, 'table')) {
38712
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(rightSibling)) {
38713
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38431
38714
  }
38432
38715
  return;
38433
38716
  }
38434
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(rightSibling) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(rightSibling, 'table') && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(leftSibling)) {
38435
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, fake);
38436
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.moveContent(rightSibling, leftSibling);
38437
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
38717
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(rightSibling) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(rightSibling, 'table') && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(leftSibling)) {
38718
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, fake);
38719
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.moveContent(rightSibling, leftSibling);
38720
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38438
38721
  }
38439
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isLeaf(rightSibling.firstElementChild)) {
38722
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isLeaf(rightSibling.firstElementChild)) {
38440
38723
  const item = rightSibling.firstElementChild;
38441
38724
  // What's left of the right list's first item joins the left block,
38442
38725
  // up to a list nested in the item
38443
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(item) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(leftSibling)) {
38444
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, fake);
38445
- while(item.firstChild && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(item.firstChild)){
38446
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, item.firstChild);
38726
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(item) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(leftSibling)) {
38727
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, fake);
38728
+ while(item.firstChild && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(item.firstChild)){
38729
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, item.firstChild);
38447
38730
  }
38448
38731
  }
38449
38732
  // Remove empty right LI
38450
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(item)) {
38451
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(item);
38733
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(item)) {
38734
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(item);
38452
38735
  }
38453
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(rightSibling)) {
38454
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
38736
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(rightSibling)) {
38737
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38455
38738
  }
38456
38739
  }
38457
38740
  }
38741
+ /**
38742
+ * A plain space the deletion leaves at an edge of the block, before a line
38743
+ * break or next to another space isn't shown, and the browser drops it when
38744
+ * the next char is typed. It becomes non-breaking, as in the browsers' own
38745
+ * delete and in Backspace without a selection (#1522)
38746
+ */ __keepSpacesVisible(fake) {
38747
+ var _a;
38748
+ const { jodit } = this;
38749
+ const block = (_a = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, jodit.editor)) !== null && _a !== void 0 ? _a : jodit.editor;
38750
+ if (KEEPS_SPACES.has(jodit.ew.getComputedStyle(block).whiteSpace)) {
38751
+ return;
38752
+ }
38753
+ const before = this.__findNeighbor(fake, true, block);
38754
+ const after = this.__findNeighbor(fake, false, block);
38755
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(before) && hidesSpace(after, /^ /)) {
38756
+ before.nodeValue = before.nodeValue.replace(/ +$/, (spaces)=>_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length));
38757
+ }
38758
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(after) && hidesSpace(before, / $/)) {
38759
+ after.nodeValue = after.nodeValue.replace(/^ +/, (spaces)=>_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length));
38760
+ }
38761
+ }
38762
+ /**
38763
+ * The text, line break or other element next to the caret in its block,
38764
+ * looking inside inline elements
38765
+ */ __findNeighbor(fake, left, block) {
38766
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.call)(left ? _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.prev : _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.next, fake, (node)=>{
38767
+ var _a;
38768
+ return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(node) ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.trimInv)((_a = node.nodeValue) !== null && _a !== void 0 ? _a : '').length > 0 : !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isComment(node) && !(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isInlineBlock(node) && node.firstChild);
38769
+ }, block);
38770
+ }
38458
38771
  /**
38459
38772
  * If left sibling is list - return last leaf
38460
38773
  */ __defineRightLeftBox(leftSibling) {
38461
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(leftSibling)) {
38774
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(leftSibling)) {
38462
38775
  return leftSibling;
38463
38776
  }
38464
38777
  let lastLeaf = leftSibling.lastElementChild;
38465
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isLeaf(lastLeaf)) {
38778
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isLeaf(lastLeaf)) {
38466
38779
  lastLeaf = this.j.createInside.element('li');
38467
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, lastLeaf);
38780
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, lastLeaf);
38468
38781
  }
38469
38782
  return lastLeaf;
38470
38783
  }
@@ -38472,22 +38785,22 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38472
38785
  * Add BR in the empty block left at the caret
38473
38786
  */ __addBrInEmptyBlock(fake, range) {
38474
38787
  const jodit = this.j;
38475
- if (fake.isConnected && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(fake.parentNode) && !fake.nextSibling && !fake.previousSibling) {
38788
+ if (fake.isConnected && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(fake.parentNode) && !fake.nextSibling && !fake.previousSibling) {
38476
38789
  const br = jodit.createInside.element('br');
38477
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.after(fake, br);
38790
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(fake, br);
38478
38791
  range.setStartBefore(br);
38479
38792
  range.collapse(true);
38480
38793
  }
38481
38794
  }
38482
38795
  __moveCursorInEditableSibling(jodit, leftSibling, fake, range) {
38483
38796
  var _a;
38484
- if (!leftSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isText(leftSibling)) {
38485
- const root = (_a = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock, jodit.editor)) !== null && _a !== void 0 ? _a : jodit.editor;
38486
- const leftText = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prev(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isText, root);
38797
+ if (!leftSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(leftSibling)) {
38798
+ const root = (_a = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, jodit.editor)) !== null && _a !== void 0 ? _a : jodit.editor;
38799
+ const leftText = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.prev(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText, root);
38487
38800
  if (leftText) {
38488
38801
  range.setStartAfter(leftText);
38489
38802
  range.collapse(true);
38490
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(fake);
38803
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
38491
38804
  }
38492
38805
  }
38493
38806
  }
@@ -38495,7 +38808,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38495
38808
  deleteCommand.requires = [
38496
38809
  'backspace'
38497
38810
  ];
38498
- _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('deleteCommand', deleteCommand);
38811
+ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('deleteCommand', deleteCommand);
38499
38812
 
38500
38813
 
38501
38814
  /***/ }),
@@ -48951,7 +49264,7 @@ const key = 'table_processor_observer-resize';
48951
49264
  /**
48952
49265
  * Click on resize handle
48953
49266
  */ onHandleMouseDown(event) {
48954
- if (this.j.isLocked) {
49267
+ if (this.j.isLocked || this.j.o.readonly) {
48955
49268
  return;
48956
49269
  }
48957
49270
  this.drag = true;
@@ -48986,10 +49299,15 @@ const key = 'table_processor_observer-resize';
48986
49299
  let box;
48987
49300
  this.minX = 0;
48988
49301
  this.maxX = 1000000;
49302
+ this.startTableWidth = this.workTable.offsetWidth;
48989
49303
  if (this.wholeTable != null) {
48990
- const tableBox = this.workTable.parentNode.getBoundingClientRect();
49304
+ const parent = this.workTable.parentNode;
49305
+ const tableBox = parent.getBoundingClientRect();
48991
49306
  this.minX = tableBox.left;
48992
49307
  this.maxX = this.minX + tableBox.width;
49308
+ const side = this.isRTL ? 'marginRight' : 'marginLeft';
49309
+ this.startParentWidth = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getContentWidth)(parent, this.j.ew);
49310
+ this.startMargin = parseInt(this.j.ew.getComputedStyle(this.workTable)[side] || '0', 10);
48993
49311
  } else {
48994
49312
  // find maximum columns
48995
49313
  const coordinate = this.module.formalCoordinate(this.workTable, this.workCell, true);
@@ -49003,6 +49321,17 @@ const key = 'table_processor_observer-resize';
49003
49321
  this.maxX = Math.min(box.left + box.width - _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NEARBY / 2, this.maxX);
49004
49322
  }
49005
49323
  });
49324
+ const matrix = this.module.formalMatrix(this.workTable);
49325
+ this.startWidths = this.resizedColumns().map((column)=>{
49326
+ const cells = matrix.map((row)=>row[column]);
49327
+ const index = cells.findIndex((td)=>td.colSpan === 1 || cells.length === 1);
49328
+ const cell = cells[index];
49329
+ return [
49330
+ cell,
49331
+ cell ? cell.offsetWidth : 0,
49332
+ cells.slice(Math.max(index, 0) + 1)
49333
+ ];
49334
+ });
49006
49335
  }
49007
49336
  return false;
49008
49337
  }
@@ -49031,8 +49360,11 @@ const key = 'table_processor_observer-resize';
49031
49360
  x = this.maxX;
49032
49361
  }
49033
49362
  this.resizeDelta = x - this.startX + (!this.j.o.iframe ? 0 : workplacePosition.left);
49034
- this.restoreStyles();
49035
- this.resizeColumnsOrTable();
49363
+ if (this.wholeTable == null) {
49364
+ this.setColumnWidths();
49365
+ } else {
49366
+ this.resizeTable();
49367
+ }
49036
49368
  const tableBox = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.offset)(this.workTable, this.j, this.j.ed);
49037
49369
  Object.assign(this.resizeHandler.style, {
49038
49370
  left: this.startLeft + this.columnEdge() - this.startEdge + 'px',
@@ -49145,21 +49477,49 @@ const key = 'table_processor_observer-resize';
49145
49477
  };
49146
49478
  this.scrollFrame = this.j.async.requestAnimationFrame(scroll);
49147
49479
  }
49480
+ /**
49481
+ * The two columns a column drag resizes: the work cell's last, and the
49482
+ * next cell's first
49483
+ */ resizedColumns() {
49484
+ const nextTD = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.call)(this.isRTL ? _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.prev : _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.next, this.workCell, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isCell, this.workCell.parentNode);
49485
+ return [
49486
+ this.module.formalCoordinate(this.workTable, this.workCell, true)[1],
49487
+ this.module.formalCoordinate(this.workTable, nextTD)[1]
49488
+ ];
49489
+ }
49148
49490
  /**
49149
49491
  * Resize only one column
49150
49492
  */ resizeColumns() {
49151
49493
  const delta = this.resizeDelta;
49152
49494
  const marked = [];
49153
49495
  const tableModule = this.module;
49154
- tableModule.setColumnWidthByDelta(this.workTable, tableModule.formalCoordinate(this.workTable, this.workCell, true)[1], delta, true, marked);
49155
- const nextTD = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.call)(this.isRTL ? _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.prev : _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.next, this.workCell, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isCell, this.workCell.parentNode);
49156
- tableModule.setColumnWidthByDelta(this.workTable, tableModule.formalCoordinate(this.workTable, nextTD)[1], -delta, false, marked);
49496
+ const [column, nextColumn] = this.resizedColumns();
49497
+ tableModule.setColumnWidthByDelta(this.workTable, column, delta, true, marked);
49498
+ tableModule.setColumnWidthByDelta(this.workTable, nextColumn, -delta, false, marked);
49499
+ }
49500
+ /**
49501
+ * Sets the widths `resizeColumns` would while the handle is dragged, from
49502
+ * the widths the drag started with, so that a move doesn't put back every
49503
+ * cell's style and lay the table out again to measure them
49504
+ */ setColumnWidths() {
49505
+ this.startWidths.forEach(([cell, width, below], index)=>{
49506
+ const delta = index ? -this.resizeDelta : this.resizeDelta;
49507
+ if (cell) {
49508
+ (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(cell, 'width', ((width + delta) / this.startTableWidth * 100).toFixed(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.ACCURACY) + '%');
49509
+ }
49510
+ below.forEach((td)=>{
49511
+ td.style.removeProperty('width');
49512
+ if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(td, 'style')) {
49513
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(td, 'style', null);
49514
+ }
49515
+ });
49516
+ });
49157
49517
  }
49158
49518
  /**
49159
49519
  * Resize whole table
49160
49520
  */ resizeTable() {
49161
49521
  const delta = this.resizeDelta * (this.isRTL ? -1 : 1);
49162
- const width = this.workTable.offsetWidth, parentWidth = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getContentWidth)(this.workTable.parentNode, this.j.ew);
49522
+ const width = this.startTableWidth, parentWidth = this.startParentWidth;
49163
49523
  // for RTL use mirror logic
49164
49524
  const rightSide = !this.wholeTable;
49165
49525
  const needChangeWidth = this.isRTL ? !rightSide : rightSide;
@@ -49168,10 +49528,9 @@ const key = 'table_processor_observer-resize';
49168
49528
  (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(this.workTable, 'width', (width + delta) / parentWidth * 100 + '%');
49169
49529
  } else {
49170
49530
  const side = this.isRTL ? 'marginRight' : 'marginLeft';
49171
- const margin = parseInt(this.j.ew.getComputedStyle(this.workTable)[side] || '0', 10);
49172
49531
  (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(this.workTable, {
49173
49532
  width: (width - delta) / parentWidth * 100 + '%',
49174
- [side]: (margin + delta) / parentWidth * 100 + '%'
49533
+ [side]: (this.startMargin + delta) / parentWidth * 100 + '%'
49175
49534
  });
49176
49535
  }
49177
49536
  }
@@ -49247,9 +49606,10 @@ const key = 'table_processor_observer-resize';
49247
49606
  if (!editor.o.tableAllowCellResize) {
49248
49607
  return;
49249
49608
  }
49250
- editor.e.off(this.j.ow, '.resize-cells').off('.resize-cells').on('change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells', ()=>{
49609
+ const observeTables = ()=>{
49251
49610
  ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', editor.editor).forEach(this.observe);
49252
- }).on(this.j.ow, 'scroll.resize-cells', ()=>{
49611
+ };
49612
+ editor.e.off(this.j.ow, '.resize-cells').off('.resize-cells').on('change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells', observeTables).on(this.j.ow, 'scroll.resize-cells', ()=>{
49253
49613
  if (!this.drag || this.workRow) {
49254
49614
  return;
49255
49615
  }
@@ -49265,6 +49625,8 @@ const key = 'table_processor_observer-resize';
49265
49625
  tableModule.normalizeTable(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(td, 'table', editor.editor));
49266
49626
  });
49267
49627
  });
49628
+ // None of those events comes with the editor's starting value
49629
+ observeTables();
49268
49630
  }
49269
49631
  /**
49270
49632
  * Add to every Table listeners
@@ -49278,7 +49640,9 @@ const key = 'table_processor_observer-resize';
49278
49640
  this.hideResizeHandle();
49279
49641
  }
49280
49642
  }).on(table, 'mousemove.resize-cells touchmove.resize-cells', this.j.async.throttle((event)=>{
49281
- if (this.j.isLocked) {
49643
+ // A drag from a cell isn't a resize, and the handle on
49644
+ // a border it passes would take its moves (#1778)
49645
+ if (this.j.isLocked || this.j.o.readonly || event.buttons) {
49282
49646
  return;
49283
49647
  }
49284
49648
  const cell = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.up(event.target, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isCell, table);
@@ -49320,10 +49684,21 @@ const key = 'table_processor_observer-resize';
49320
49684
  this.startX = 0;
49321
49685
  /**
49322
49686
  * The table's and its cells' styles as a column drag started, put back
49323
- * before each new width
49687
+ * as it ends, before the final widths
49324
49688
  */ this.startStyles = [];
49325
49689
  this.startLeft = 0;
49326
49690
  this.startEdge = 0;
49691
+ /**
49692
+ * For each of the two columns a drag resizes, the cell whose width
49693
+ * `setColumnWidthByDelta` sets, with its width as the drag started, and
49694
+ * the cells below it, whose widths it clears
49695
+ */ this.startWidths = [];
49696
+ /**
49697
+ * The table's width as the drag started, and for a drag of its edge, the
49698
+ * width inside what holds it and its margin on that side
49699
+ */ this.startTableWidth = 0;
49700
+ this.startParentWidth = 0;
49701
+ this.startMargin = 0;
49327
49702
  /**
49328
49703
  * The row whose height the handle sets, or null while it sets a width
49329
49704
  */ this.workRow = null;
@@ -51098,7 +51473,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
51098
51473
 
51099
51474
 
51100
51475
  const key = 'table_processor_observer';
51101
- const MOUSE_MOVE_LABEL = 'onMoveTableSelectCell';
51102
51476
  class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
51103
51477
  /**
51104
51478
  * Shortcut for Jodit.modules.Table
@@ -51113,6 +51487,8 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51113
51487
  // move the caret, as table-keyboard-navigation's do
51114
51488
  .on('keydown', this.__onKeyDown, {
51115
51489
  top: true
51490
+ }).on('clickEditor', this.__onClickAfterDrag, {
51491
+ top: true
51116
51492
  }).on('keydown.select-cells', (event)=>{
51117
51493
  if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB) {
51118
51494
  this.unselectCells();
@@ -51232,18 +51608,36 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51232
51608
  }
51233
51609
  this.__isSelectionMode = true;
51234
51610
  this.__selectedCell = cell;
51611
+ this.__movedTo = cell;
51235
51612
  this.__tableModule.addSelection(cell);
51236
- this.j.e.on(table, 'mousemove.select-cells touchmove.select-cells', // Don't use decorator because need clear label on mouseup
51237
- this.j.async.throttle(this.__onMove.bind(this, table), {
51238
- label: MOUSE_MOVE_LABEL,
51239
- timeout: this.j.defaultTimeout / 2
51240
- })).on(table, 'mouseup.select-cells touchend.select-cells', this.__onStopSelection.bind(this, table));
51613
+ this.j.e.on(table, 'mousemove.select-cells touchmove.select-cells', this.__onMove.bind(this, table)).on(table, 'mouseup.select-cells touchend.select-cells', this.__onStopSelection.bind(this, table));
51614
+ new Set([
51615
+ this.j.ew,
51616
+ this.j.ow
51617
+ ]).forEach((win)=>this.j.e.on(win, 'mouseup.select-cells touchend.select-cells', this.__onRelease.bind(this, table)));
51241
51618
  return false;
51242
51619
  }
51243
51620
  onOutsideClick() {
51244
51621
  this.__selectedCell = null;
51245
51622
  this.__onRemoveSelection();
51246
51623
  }
51624
+ onMouseDown() {
51625
+ this.__keepMarks = false;
51626
+ }
51627
+ /**
51628
+ * The click that ends a drag let go outside the table, and inside the
51629
+ * editor, lands on the editor. Taken on, it would unmark the cells and
51630
+ * close their popup. As for the click on a row after a drag over the
51631
+ * cells, the browser's own selection from the drag goes
51632
+ */ __onClickAfterDrag() {
51633
+ var _a;
51634
+ if (this.__keepMarks) {
51635
+ this.__keepMarks = false;
51636
+ (_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
51637
+ this.j.e.stopPropagation('clickEditor');
51638
+ return false;
51639
+ }
51640
+ }
51247
51641
  onChange() {
51248
51642
  if (!this.j.isLocked && !this.__isSelectionMode) {
51249
51643
  this.__onRemoveSelection();
@@ -51262,16 +51656,20 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51262
51656
  // Inside Shadow DOM `document.elementFromPoint` returns the shadow
51263
51657
  // host, so the lookup must start from the shadow root
51264
51658
  const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
51265
- if (!node) {
51266
- return;
51267
- }
51268
- const cell = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
51659
+ const cell = node && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
51269
51660
  'td',
51270
51661
  'th'
51271
51662
  ], table);
51272
51663
  if (!cell || !this.__selectedCell) {
51273
51664
  return;
51274
51665
  }
51666
+ // The marks change only when the mouse goes into another cell, and then
51667
+ // at once rather than throttled, as the browser's own selection from
51668
+ // the drag shows in the cells between until they do (#1778)
51669
+ if (cell === this.__movedTo) {
51670
+ return;
51671
+ }
51672
+ this.__movedTo = cell;
51275
51673
  if (cell !== this.__selectedCell) {
51276
51674
  this.j.lock(key);
51277
51675
  }
@@ -51308,7 +51706,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51308
51706
  /**
51309
51707
  * Stop a selection process
51310
51708
  */ __onStopSelection(table, e) {
51311
- var _a, _b, _c;
51709
+ var _a;
51312
51710
  if (!this.__selectedCell) {
51313
51711
  return;
51314
51712
  }
@@ -51331,11 +51729,34 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51331
51729
  if (ownTable && ownTable !== table) {
51332
51730
  return; // Nested tables
51333
51731
  }
51334
- const bound = this.__tableModule.getSelectedBound(table, [
51732
+ this.__showCellsPopup(table, [
51335
51733
  cell,
51336
51734
  this.__selectedCell
51337
- ]), box = this.__tableModule.formalMatrix(table);
51338
- const max = (_b = box[bound[1][0]]) === null || _b === void 0 ? void 0 : _b[bound[1][1]], min = (_c = box[bound[0][0]]) === null || _c === void 0 ? void 0 : _c[bound[0][1]];
51735
+ ]);
51736
+ this.__stopListening();
51737
+ }
51738
+ /**
51739
+ * A drag let go outside the table doesn't reach the table's `mouseup`, so
51740
+ * the window's ends it, leaving the cells marked as they were (#1774)
51741
+ */ __onRelease(table, e) {
51742
+ if (this.__isSelectionMode) {
51743
+ this.__isSelectionMode = false;
51744
+ if (!this.j.isLockedNotBy(key)) {
51745
+ this.j.unlock();
51746
+ }
51747
+ const cells = this.__tableModule.getAllSelectedCells();
51748
+ // One let go outside the editor clicks outside it, which unmarks them
51749
+ if (cells.length > 1 && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(this.j.editor, e.target)) {
51750
+ this.__keepMarks = true;
51751
+ this.__showCellsPopup(table, cells);
51752
+ }
51753
+ }
51754
+ this.__stopListening();
51755
+ }
51756
+ __showCellsPopup(table, cells) {
51757
+ var _a, _b;
51758
+ const bound = this.__tableModule.getSelectedBound(table, cells), box = this.__tableModule.formalMatrix(table);
51759
+ const max = (_a = box[bound[1][0]]) === null || _a === void 0 ? void 0 : _a[bound[1][1]], min = (_b = box[bound[0][0]]) === null || _b === void 0 ? void 0 : _b[bound[0][1]];
51339
51760
  // `getSelectedBound` keeps its `Infinity` sentinel when none of the
51340
51761
  // selected cells belong to this table's matrix — e.g. after a
51341
51762
  // drag-and-drop that moved/removed the cells, leaving a stale anchor and
@@ -51354,10 +51775,16 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51354
51775
  height: maxOffset.top - minOffset.top + maxOffset.height
51355
51776
  };
51356
51777
  }, 'cells');
51357
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
51778
+ }
51779
+ __stopListening() {
51780
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
51358
51781
  this.j.e.off(table, 'mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells');
51359
51782
  });
51360
- this.j.async.clearTimeout(MOUSE_MOVE_LABEL);
51783
+ new Set([
51784
+ this.j.ew,
51785
+ this.j.ow
51786
+ ]).forEach((win)=>this.j.e.off(win, 'mouseup.select-cells touchend.select-cells'));
51787
+ this.__movedTo = null;
51361
51788
  }
51362
51789
  /**
51363
51790
  * Remove selection for all cells
@@ -51528,7 +51955,8 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51528
51955
  }
51529
51956
  /** @override */ beforeDestruct(jodit) {
51530
51957
  this.__onRemoveSelection();
51531
- jodit.e.off('.select-cells').off('keydown', this.__onKeyDown);
51958
+ this.__stopListening();
51959
+ jodit.e.off('.select-cells').off('keydown', this.__onKeyDown).off('clickEditor', this.__onClickAfterDrag);
51532
51960
  }
51533
51961
  constructor(){
51534
51962
  super(...arguments);
@@ -51545,6 +51973,13 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51545
51973
  /**
51546
51974
  * User is selecting cells now
51547
51975
  */ this.__isSelectionMode = false;
51976
+ /**
51977
+ * The cell the marks were last drawn to
51978
+ */ this.__movedTo = null;
51979
+ /**
51980
+ * A drag let go outside the table ends in a click on the editor, which
51981
+ * would unmark its cells
51982
+ */ this.__keepMarks = false;
51548
51983
  }
51549
51984
  }
51550
51985
  selectCells.requires = [
@@ -51562,6 +51997,15 @@ __decorate([
51562
51997
  __decorate([
51563
51998
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':outsideClick')
51564
51999
  ], selectCells.prototype, "onOutsideClick", null);
52000
+ __decorate([
52001
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
52002
+ ':mousedown',
52003
+ ':touchstart'
52004
+ ])
52005
+ ], selectCells.prototype, "onMouseDown", null);
52006
+ __decorate([
52007
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52008
+ ], selectCells.prototype, "__onClickAfterDrag", null);
51565
52009
  __decorate([
51566
52010
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
51567
52011
  ], selectCells.prototype, "onChange", null);
@@ -51609,10 +52053,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
51609
52053
  /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
51610
52054
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
51611
52055
  /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
51612
- /* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87058);
51613
- /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
51614
- /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
51615
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67215);
52056
+ /* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4510);
52057
+ /* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87058);
52058
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50911);
52059
+ /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67510);
52060
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67215);
51616
52061
  /*!
51617
52062
  * Jodit Editor (https://xdsoft.net/jodit/)
51618
52063
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -51631,6 +52076,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
51631
52076
 
51632
52077
 
51633
52078
 
52079
+
51634
52080
  /**
51635
52081
  * A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
51636
52082
  *
@@ -51641,22 +52087,27 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
51641
52087
  * console.log(img.src);
51642
52088
  * })
51643
52089
  * ```
51644
- */ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
52090
+ */ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__.Plugin {
51645
52091
  afterInit(jodit) {
51646
52092
  this.proxyEventsList.forEach((eventName)=>{
51647
52093
  jodit.e.on(eventName + '.select', this.onStartSelection);
51648
52094
  });
52095
+ jodit.e.on('dblclick', this.__onDblClickBesideRow, {
52096
+ top: true
52097
+ });
51649
52098
  }
51650
52099
  beforeDestruct(jodit) {
51651
52100
  this.proxyEventsList.forEach((eventName)=>{
51652
- jodit.e.on(eventName + '.select', this.onStartSelection);
52101
+ jodit.e.off(eventName + '.select', this.onStartSelection);
51653
52102
  });
52103
+ this.__endPressBesideRow();
52104
+ jodit.e.off('dblclick', this.__onDblClickBesideRow);
51654
52105
  }
51655
52106
  onStartSelection(e) {
51656
52107
  const { j } = this;
51657
52108
  let result, target = e.target;
51658
52109
  while(result === undefined && target && target !== j.editor){
51659
- result = j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__.camelCase)(e.type + '_' + target.nodeName.toLowerCase()), target, e);
52110
+ result = j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__.camelCase)(e.type + '_' + target.nodeName.toLowerCase()), target, e);
51660
52111
  target = target.parentElement;
51661
52112
  }
51662
52113
  if (e.type === 'click' && result === undefined && target === j.editor) {
@@ -51676,10 +52127,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
51676
52127
  }
51677
52128
  // Selecting the text of a popup input with the mouse and releasing
51678
52129
  // the button past the popup's edge is not a click outside of it.
51679
- if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.Popup)) {
52130
+ if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup)) {
51680
52131
  return;
51681
52132
  }
51682
- const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.Popup);
52133
+ const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup);
51683
52134
  if (!box) {
51684
52135
  this.j.e.fire('outsideClick', e);
51685
52136
  }
@@ -51725,6 +52176,127 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
51725
52176
  s.setCursorAfter(text);
51726
52177
  }
51727
52178
  }
52179
+ /**
52180
+ * The table row the mouse is to the right of
52181
+ */ __rowBeside(e) {
52182
+ var _a;
52183
+ const { j } = this;
52184
+ const target = e.target;
52185
+ if (j.o.readonly || e.button !== 0 || e.detail > 2 || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isHTMLElement(target) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(target, _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isCell, j.editor)) {
52186
+ return null;
52187
+ }
52188
+ const table = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(target.children).find((elm)=>{
52189
+ if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(elm, 'table')) {
52190
+ return false;
52191
+ }
52192
+ const box = elm.getBoundingClientRect();
52193
+ return e.clientX >= box.right && e.clientY >= box.top && e.clientY < box.bottom;
52194
+ });
52195
+ const rows = table ? (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(table.rows).filter((row)=>row.cells.length) : [];
52196
+ if (!table || !rows.length) {
52197
+ return null;
52198
+ }
52199
+ const row = (_a = rows.find((row)=>e.clientY < row.getBoundingClientRect().bottom)) !== null && _a !== void 0 ? _a : rows[rows.length - 1];
52200
+ return {
52201
+ table,
52202
+ row
52203
+ };
52204
+ }
52205
+ /**
52206
+ * A press to the right of a table row puts the caret where Word's typing
52207
+ * goes from there: the start of the next row's first cell, or of the block
52208
+ * after the table for the last row (#1770). The browsers put it after the
52209
+ * table, whichever row it's beside, so typing starts a new line below it.
52210
+ * Their own press is stopped, as its drag would start after the table and
52211
+ * take in the rows below first
52212
+ */ onMouseDownBesideTableRow(e) {
52213
+ const { j } = this;
52214
+ const beside = this.__rowBeside(e);
52215
+ if (!beside) {
52216
+ return;
52217
+ }
52218
+ // A press before the last one was let go must not stack its listeners
52219
+ this.__endPressBesideRow();
52220
+ e.preventDefault();
52221
+ this.__putCaretBesideRow(beside.table, beside.row);
52222
+ this.__pressBesideRow = {
52223
+ row: beside.row,
52224
+ caret: j.s.range.cloneRange()
52225
+ };
52226
+ j.e.on(j.ew, 'mousemove', this.__onDragFromRow);
52227
+ new Set([
52228
+ j.ew,
52229
+ j.ow
52230
+ ]).forEach((win)=>j.e.on(win, 'mouseup', this.__onReleaseFromRow));
52231
+ }
52232
+ /**
52233
+ * A drag from beside a row selects from the end of the row to the mouse,
52234
+ * and back beside the row it's the caret again
52235
+ */ __onDragFromRow(e) {
52236
+ var _a, _b;
52237
+ const { s } = this.j;
52238
+ const press = this.__pressBesideRow;
52239
+ if (!press || !(e.buttons & 1)) {
52240
+ this.__endPressBesideRow();
52241
+ return;
52242
+ }
52243
+ if (((_a = this.__rowBeside(e)) === null || _a === void 0 ? void 0 : _a.row) === press.row) {
52244
+ if (!s.isCollapsed()) {
52245
+ s.selectRange(press.caret.cloneRange());
52246
+ }
52247
+ return;
52248
+ }
52249
+ const { cells } = press.row;
52250
+ const last = cells[cells.length - 1];
52251
+ if (s.insertCursorAtPoint(e.clientX, e.clientY)) {
52252
+ const { startContainer, startOffset } = s.range;
52253
+ (_b = s.sel) === null || _b === void 0 ? void 0 : _b.setBaseAndExtent(last, last.childNodes.length, startContainer, startOffset);
52254
+ }
52255
+ }
52256
+ /**
52257
+ * In iframe mode, a press in an editor without the focus puts the caret at
52258
+ * its end, so a release that selected nothing puts it back
52259
+ */ __onReleaseFromRow() {
52260
+ const press = this.__pressBesideRow;
52261
+ this.__endPressBesideRow();
52262
+ if (press && this.j.s.isCollapsed()) {
52263
+ this.j.s.selectRange(press.caret);
52264
+ }
52265
+ }
52266
+ __endPressBesideRow() {
52267
+ const { j } = this;
52268
+ this.__pressBesideRow = null;
52269
+ j.e.off(j.ew, 'mousemove', this.__onDragFromRow);
52270
+ new Set([
52271
+ j.ew,
52272
+ j.ow
52273
+ ]).forEach((win)=>j.e.off(win, 'mouseup', this.__onReleaseFromRow));
52274
+ }
52275
+ /**
52276
+ * A double click beside a row is two clicks there, so add-new-line,
52277
+ * which adds a line on a double click with a caret, doesn't see it
52278
+ */ __onDblClickBesideRow(e) {
52279
+ if (this.__rowBeside(e)) {
52280
+ this.j.e.stopPropagation('dblclick');
52281
+ return false;
52282
+ }
52283
+ }
52284
+ __putCaretBesideRow(table, row) {
52285
+ const { j } = this;
52286
+ const rows = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(table.rows);
52287
+ const next = rows.slice(rows.indexOf(row) + 1).find((row)=>row.cells.length);
52288
+ let after = table.nextSibling;
52289
+ while(after && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(after)){
52290
+ after = after.nextSibling;
52291
+ }
52292
+ if (next) {
52293
+ j.s.setCursorIn(next.cells[0], true);
52294
+ } else if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock(after) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(after, 'table') && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isContentEditable(after, j.editor)) {
52295
+ j.s.setCursorIn(after, true);
52296
+ } else {
52297
+ j.s.setCursorAfter(table);
52298
+ }
52299
+ }
51728
52300
  /**
51729
52301
  * Keep pending inline formatting after a click. Toggling Bold/Italic/etc. on
51730
52302
  * a collapsed cursor leaves empty marker elements with the caret inside; a
@@ -51790,6 +52362,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
51790
52362
  * element and ends in another as a `click` on their common ancestor, so a
51791
52363
  * press inside a popup is remembered to tell such a drag from a real click.
51792
52364
  */ this.__pressTarget = null;
52365
+ /**
52366
+ * The row a press to its right was beside, and the caret it put there,
52367
+ * while the button is down
52368
+ */ this.__pressBesideRow = null;
51793
52369
  }
51794
52370
  }
51795
52371
  __decorate([
@@ -51819,6 +52395,18 @@ __decorate([
51819
52395
  ':click'
51820
52396
  ])
51821
52397
  ], select.prototype, "onClickRightOfNestedListItem", null);
52398
+ __decorate([
52399
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':mousedown')
52400
+ ], select.prototype, "onMouseDownBesideTableRow", null);
52401
+ __decorate([
52402
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52403
+ ], select.prototype, "__onDragFromRow", null);
52404
+ __decorate([
52405
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52406
+ ], select.prototype, "__onReleaseFromRow", null);
52407
+ __decorate([
52408
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52409
+ ], select.prototype, "__onDblClickBesideRow", null);
51822
52410
  __decorate([
51823
52411
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
51824
52412
  ':click'