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
package/es2021/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.19.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
 
@@ -34882,6 +35116,13 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
34882
35116
  if (checkJoinBareText(jodit, fakeNode, backspace)) {
34883
35117
  return true;
34884
35118
  }
35119
+ // Old content can have an inline element round blocks beside the text:
35120
+ // moved inside them, the line joins the block as it would bare text
35121
+ // (#1781)
35122
+ const inline = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(fakeNode, backspace);
35123
+ if (joinsBareText(jodit, edgeBlock(inline, backspace)) && moveInlineInside(inline, jodit.editor)) {
35124
+ return joinNeighbors(jodit, fakeNode, backspace, moved);
35125
+ }
34885
35126
  let nextBox = fakeNode, mainClosestBox = nextBox;
34886
35127
  // Find the main big closest element
34887
35128
  while(nextBox && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(nextBox, backspace) && nextBox.parentElement !== jodit.editor){
@@ -35162,7 +35403,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
35162
35403
  * in `<div>a|<p>b</p>c</div>` gives `<div>a|b<br>c</div>`
35163
35404
  */ function checkJoinBareText(jodit, fakeNode, backspace) {
35164
35405
  const block = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(fakeNode, backspace);
35165
- 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))) {
35406
+ if (!joinsBareText(jodit, block)) {
35166
35407
  return false;
35167
35408
  }
35168
35409
  const filter = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__.getMoveFilter)(jodit);
@@ -35189,6 +35430,24 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
35189
35430
  jodit.s.setCursorBefore(fakeNode);
35190
35431
  return true;
35191
35432
  }
35433
+ /**
35434
+ * Whether a block joins the bare text beside it: not a list, a table or a
35435
+ * cell, and holding no block of its own
35436
+ */ function joinsBareText(jodit, block) {
35437
+ 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));
35438
+ }
35439
+ /**
35440
+ * The block an inline element holds on its side facing the caret, through
35441
+ * the inline elements in it: the `<p>` of `<span><strong><p>…</p></strong></span>`
35442
+ */ function edgeBlock(node, backspace) {
35443
+ var _a;
35444
+ let edge = node;
35445
+ while(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(edge) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(edge)){
35446
+ const children = Array.from(edge.childNodes).filter((child)=>!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyTextNode(child));
35447
+ edge = (_a = backspace ? children[children.length - 1] : children[0]) !== null && _a !== void 0 ? _a : null;
35448
+ }
35449
+ return edge === node ? null : edge;
35450
+ }
35192
35451
  function checkMoveListContent(jodit, mainClosestBox, sibling, backspace) {
35193
35452
  // Process UL/LI/OL cases
35194
35453
  const siblingIsList = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(sibling, _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.LIST_TAGS);
@@ -35622,7 +35881,6 @@ function isNotEditable(jodit, node) {
35622
35881
  if (!prn || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(prn)) {
35623
35882
  return false;
35624
35883
  }
35625
- const neighbor = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptyNeighbor(fakeNode, backspace, jodit.editor);
35626
35884
  do {
35627
35885
  if (prn && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(prn) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(prn)) {
35628
35886
  _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(prn, fakeNode);
@@ -35637,6 +35895,9 @@ function isNotEditable(jodit, node) {
35637
35895
  if (found && (0,_check_join_two_lists_js__WEBPACK_IMPORTED_MODULE_2__.checkJoinTwoLists)(jodit, fakeNode, backspace)) {
35638
35896
  return true;
35639
35897
  }
35898
+ // Looked for once the empty elements have gone, as the one beside the
35899
+ // caret can be in them: the `<br>` that Delete in `<p>|<br></p>` leaves
35900
+ const neighbor = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptyNeighbor(fakeNode, backspace, jodit.editor);
35640
35901
  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)) {
35641
35902
  setCursorIn(neighbor, !backspace);
35642
35903
  } else {
@@ -36073,8 +36334,15 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.delete = {
36073
36334
  }
36074
36335
  cssRules[key] = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(cssOptions[key]) ? cssOptions[key][0] : cssOptions[key];
36075
36336
  });
36337
+ const element = control.tags ? control.tags[0] : undefined;
36076
36338
  editor.s.commitStyle({
36077
- element: control.tags ? control.tags[0] : undefined
36339
+ element,
36340
+ // As in the browsers and Word, each takes the other's place
36341
+ exclude: element === 'sub' ? [
36342
+ 'sup'
36343
+ ] : element === 'sup' ? [
36344
+ 'sub'
36345
+ ] : []
36078
36346
  });
36079
36347
  editor.synchronizeValues();
36080
36348
  return false;
@@ -38673,11 +38941,12 @@ __webpack_require__.r(__webpack_exports__);
38673
38941
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
38674
38942
 
38675
38943
  /* unused harmony export deleteCommand */
38676
- /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22732);
38677
- /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(580);
38678
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
38679
- /* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49055);
38680
- /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50911);
38944
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
38945
+ /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
38946
+ /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
38947
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
38948
+ /* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
38949
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
38681
38950
  /*!
38682
38951
  * Jodit Editor (https://xdsoft.net/jodit/)
38683
38952
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38688,6 +38957,7 @@ __webpack_require__.r(__webpack_exports__);
38688
38957
 
38689
38958
 
38690
38959
 
38960
+
38691
38961
  const NOT_EMPTY_CONTENT_TAGS = new Set([
38692
38962
  'img',
38693
38963
  'table',
@@ -38695,7 +38965,19 @@ const NOT_EMPTY_CONTENT_TAGS = new Set([
38695
38965
  'iframe',
38696
38966
  'hr'
38697
38967
  ]);
38698
- class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
38968
+ const KEEPS_SPACES = new Set([
38969
+ 'pre',
38970
+ 'pre-wrap',
38971
+ 'break-spaces'
38972
+ ]);
38973
+ /**
38974
+ * A plain space beside this neighbor isn't shown: there is none, or it's a
38975
+ * line break, a block or text starting (or ending) with a plain space
38976
+ */ function hidesSpace(neighbor, edge) {
38977
+ var _a;
38978
+ 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 : '');
38979
+ }
38980
+ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
38699
38981
  afterInit(jodit) {
38700
38982
  jodit.e.on('afterCommand.delete', (command)=>{
38701
38983
  if (command === 'delete') {
@@ -38716,11 +38998,11 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38716
38998
  */ __afterDeleteCommand() {
38717
38999
  const jodit = this.j;
38718
39000
  const current = jodit.s.current();
38719
- if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current.firstChild, 'br')) {
39001
+ if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(current.firstChild, 'br')) {
38720
39002
  jodit.s.removeNode(current.firstChild);
38721
39003
  }
38722
- 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))) {
38723
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(jodit.editor);
39004
+ 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))) {
39005
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(jodit.editor);
38724
39006
  const node = jodit.s.setCursorIn(jodit.editor);
38725
39007
  jodit.s.removeNode(node);
38726
39008
  }
@@ -38740,14 +39022,15 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38740
39022
  range.deleteContents();
38741
39023
  const fake = jodit.createInside.fake();
38742
39024
  range.insertNode(fake);
38743
- const leftSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.findSibling(fake, true);
38744
- const rightSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.findSibling(fake, false);
39025
+ const leftSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(fake, true);
39026
+ const rightSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(fake, false);
38745
39027
  this.__moveContentInLeftSibling(fake, leftSibling, rightSibling);
39028
+ this.__keepSpacesVisible(fake);
38746
39029
  range.setStartBefore(fake);
38747
39030
  range.collapse(true);
38748
39031
  this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
38749
39032
  this.__addBrInEmptyBlock(fake, range);
38750
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(fake);
39033
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
38751
39034
  jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
38752
39035
  return false;
38753
39036
  }
@@ -38761,23 +39044,23 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38761
39044
  * Returns where the caret goes, or null when no table is involved
38762
39045
  */ __clearSelectedCells(range) {
38763
39046
  const { editor, createInside } = this.j;
38764
- 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);
38765
- 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);
39047
+ 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);
39048
+ 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);
38766
39049
  if (startCell === endCell) {
38767
39050
  return null;
38768
39051
  }
38769
- const startTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(startCell, 'table', editor);
38770
- const endTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(endCell, 'table', editor);
39052
+ const startTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(startCell, 'table', editor);
39053
+ const endTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(endCell, 'table', editor);
38771
39054
  const caret = range.cloneRange();
38772
39055
  caret.collapse(true);
38773
39056
  const parts = [];
38774
39057
  const addParts = (table)=>{
38775
- (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)=>{
39058
+ (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)=>{
38776
39059
  const part = range.cloneRange();
38777
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(cell, range.startContainer)) {
39060
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(cell, range.startContainer)) {
38778
39061
  part.setStart(cell, 0);
38779
39062
  }
38780
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(cell, range.endContainer)) {
39063
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(cell, range.endContainer)) {
38781
39064
  part.setEnd(cell, cell.childNodes.length);
38782
39065
  }
38783
39066
  parts.push([
@@ -38800,9 +39083,9 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38800
39083
  }
38801
39084
  parts.forEach(([cell, part])=>{
38802
39085
  part.deleteContents();
38803
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(cell)) {
38804
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(cell);
38805
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(cell, createInside.element('br'));
39086
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(cell)) {
39087
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(cell);
39088
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(cell, createInside.element('br'));
38806
39089
  }
38807
39090
  });
38808
39091
  return startTable ? caret : null;
@@ -38810,46 +39093,76 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38810
39093
  __moveContentInLeftSibling(fake, leftSibling, rightSibling) {
38811
39094
  leftSibling = this.__defineRightLeftBox(leftSibling);
38812
39095
  // Nothing is moved into a table, and a block left empty after it goes
38813
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(leftSibling, 'table')) {
38814
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(rightSibling)) {
38815
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
39096
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(leftSibling, 'table')) {
39097
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(rightSibling)) {
39098
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38816
39099
  }
38817
39100
  return;
38818
39101
  }
38819
- 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)) {
38820
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, fake);
38821
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.moveContent(rightSibling, leftSibling);
38822
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
39102
+ 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)) {
39103
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, fake);
39104
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.moveContent(rightSibling, leftSibling);
39105
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38823
39106
  }
38824
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isLeaf(rightSibling.firstElementChild)) {
39107
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isLeaf(rightSibling.firstElementChild)) {
38825
39108
  const item = rightSibling.firstElementChild;
38826
39109
  // What's left of the right list's first item joins the left block,
38827
39110
  // up to a list nested in the item
38828
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(item) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(leftSibling)) {
38829
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, fake);
38830
- while(item.firstChild && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(item.firstChild)){
38831
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, item.firstChild);
39111
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(item) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(leftSibling)) {
39112
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, fake);
39113
+ while(item.firstChild && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(item.firstChild)){
39114
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, item.firstChild);
38832
39115
  }
38833
39116
  }
38834
39117
  // Remove empty right LI
38835
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(item)) {
38836
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(item);
39118
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(item)) {
39119
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(item);
38837
39120
  }
38838
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(rightSibling)) {
38839
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
39121
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(rightSibling)) {
39122
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38840
39123
  }
38841
39124
  }
38842
39125
  }
39126
+ /**
39127
+ * A plain space the deletion leaves at an edge of the block, before a line
39128
+ * break or next to another space isn't shown, and the browser drops it when
39129
+ * the next char is typed. It becomes non-breaking, as in the browsers' own
39130
+ * delete and in Backspace without a selection (#1522)
39131
+ */ __keepSpacesVisible(fake) {
39132
+ var _a;
39133
+ const { jodit } = this;
39134
+ 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;
39135
+ if (KEEPS_SPACES.has(jodit.ew.getComputedStyle(block).whiteSpace)) {
39136
+ return;
39137
+ }
39138
+ const before = this.__findNeighbor(fake, true, block);
39139
+ const after = this.__findNeighbor(fake, false, block);
39140
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(before) && hidesSpace(after, /^ /)) {
39141
+ before.nodeValue = before.nodeValue.replace(/ +$/, (spaces)=>_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length));
39142
+ }
39143
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(after) && hidesSpace(before, / $/)) {
39144
+ after.nodeValue = after.nodeValue.replace(/^ +/, (spaces)=>_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length));
39145
+ }
39146
+ }
39147
+ /**
39148
+ * The text, line break or other element next to the caret in its block,
39149
+ * looking inside inline elements
39150
+ */ __findNeighbor(fake, left, block) {
39151
+ 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)=>{
39152
+ var _a;
39153
+ 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);
39154
+ }, block);
39155
+ }
38843
39156
  /**
38844
39157
  * If left sibling is list - return last leaf
38845
39158
  */ __defineRightLeftBox(leftSibling) {
38846
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(leftSibling)) {
39159
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(leftSibling)) {
38847
39160
  return leftSibling;
38848
39161
  }
38849
39162
  let lastLeaf = leftSibling.lastElementChild;
38850
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isLeaf(lastLeaf)) {
39163
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isLeaf(lastLeaf)) {
38851
39164
  lastLeaf = this.j.createInside.element('li');
38852
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, lastLeaf);
39165
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, lastLeaf);
38853
39166
  }
38854
39167
  return lastLeaf;
38855
39168
  }
@@ -38857,22 +39170,22 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38857
39170
  * Add BR in the empty block left at the caret
38858
39171
  */ __addBrInEmptyBlock(fake, range) {
38859
39172
  const jodit = this.j;
38860
- if (fake.isConnected && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(fake.parentNode) && !fake.nextSibling && !fake.previousSibling) {
39173
+ if (fake.isConnected && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(fake.parentNode) && !fake.nextSibling && !fake.previousSibling) {
38861
39174
  const br = jodit.createInside.element('br');
38862
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.after(fake, br);
39175
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(fake, br);
38863
39176
  range.setStartBefore(br);
38864
39177
  range.collapse(true);
38865
39178
  }
38866
39179
  }
38867
39180
  __moveCursorInEditableSibling(jodit, leftSibling, fake, range) {
38868
39181
  var _a;
38869
- if (!leftSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isText(leftSibling)) {
38870
- 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;
38871
- const leftText = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prev(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isText, root);
39182
+ if (!leftSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(leftSibling)) {
39183
+ 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;
39184
+ const leftText = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.prev(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText, root);
38872
39185
  if (leftText) {
38873
39186
  range.setStartAfter(leftText);
38874
39187
  range.collapse(true);
38875
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(fake);
39188
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
38876
39189
  }
38877
39190
  }
38878
39191
  }
@@ -38880,7 +39193,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38880
39193
  deleteCommand.requires = [
38881
39194
  'backspace'
38882
39195
  ];
38883
- _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('deleteCommand', deleteCommand);
39196
+ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('deleteCommand', deleteCommand);
38884
39197
 
38885
39198
 
38886
39199
  /***/ }),
@@ -49725,7 +50038,7 @@ const key = 'table_processor_observer-resize';
49725
50038
  /**
49726
50039
  * Click on resize handle
49727
50040
  */ onHandleMouseDown(event) {
49728
- if (this.j.isLocked) {
50041
+ if (this.j.isLocked || this.j.o.readonly) {
49729
50042
  return;
49730
50043
  }
49731
50044
  this.drag = true;
@@ -49760,10 +50073,15 @@ const key = 'table_processor_observer-resize';
49760
50073
  let box;
49761
50074
  this.minX = 0;
49762
50075
  this.maxX = 1000000;
50076
+ this.startTableWidth = this.workTable.offsetWidth;
49763
50077
  if (this.wholeTable != null) {
49764
- const tableBox = this.workTable.parentNode.getBoundingClientRect();
50078
+ const parent = this.workTable.parentNode;
50079
+ const tableBox = parent.getBoundingClientRect();
49765
50080
  this.minX = tableBox.left;
49766
50081
  this.maxX = this.minX + tableBox.width;
50082
+ const side = this.isRTL ? 'marginRight' : 'marginLeft';
50083
+ this.startParentWidth = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getContentWidth)(parent, this.j.ew);
50084
+ this.startMargin = parseInt(this.j.ew.getComputedStyle(this.workTable)[side] || '0', 10);
49767
50085
  } else {
49768
50086
  // find maximum columns
49769
50087
  const coordinate = this.module.formalCoordinate(this.workTable, this.workCell, true);
@@ -49777,6 +50095,17 @@ const key = 'table_processor_observer-resize';
49777
50095
  this.maxX = Math.min(box.left + box.width - _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NEARBY / 2, this.maxX);
49778
50096
  }
49779
50097
  });
50098
+ const matrix = this.module.formalMatrix(this.workTable);
50099
+ this.startWidths = this.resizedColumns().map((column)=>{
50100
+ const cells = matrix.map((row)=>row[column]);
50101
+ const index = cells.findIndex((td)=>td.colSpan === 1 || cells.length === 1);
50102
+ const cell = cells[index];
50103
+ return [
50104
+ cell,
50105
+ cell ? cell.offsetWidth : 0,
50106
+ cells.slice(Math.max(index, 0) + 1)
50107
+ ];
50108
+ });
49780
50109
  }
49781
50110
  return false;
49782
50111
  }
@@ -49805,8 +50134,11 @@ const key = 'table_processor_observer-resize';
49805
50134
  x = this.maxX;
49806
50135
  }
49807
50136
  this.resizeDelta = x - this.startX + (!this.j.o.iframe ? 0 : workplacePosition.left);
49808
- this.restoreStyles();
49809
- this.resizeColumnsOrTable();
50137
+ if (this.wholeTable == null) {
50138
+ this.setColumnWidths();
50139
+ } else {
50140
+ this.resizeTable();
50141
+ }
49810
50142
  const tableBox = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.offset)(this.workTable, this.j, this.j.ed);
49811
50143
  Object.assign(this.resizeHandler.style, {
49812
50144
  left: this.startLeft + this.columnEdge() - this.startEdge + 'px',
@@ -49919,21 +50251,49 @@ const key = 'table_processor_observer-resize';
49919
50251
  };
49920
50252
  this.scrollFrame = this.j.async.requestAnimationFrame(scroll);
49921
50253
  }
50254
+ /**
50255
+ * The two columns a column drag resizes: the work cell's last, and the
50256
+ * next cell's first
50257
+ */ resizedColumns() {
50258
+ 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);
50259
+ return [
50260
+ this.module.formalCoordinate(this.workTable, this.workCell, true)[1],
50261
+ this.module.formalCoordinate(this.workTable, nextTD)[1]
50262
+ ];
50263
+ }
49922
50264
  /**
49923
50265
  * Resize only one column
49924
50266
  */ resizeColumns() {
49925
50267
  const delta = this.resizeDelta;
49926
50268
  const marked = [];
49927
50269
  const tableModule = this.module;
49928
- tableModule.setColumnWidthByDelta(this.workTable, tableModule.formalCoordinate(this.workTable, this.workCell, true)[1], delta, true, marked);
49929
- 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);
49930
- tableModule.setColumnWidthByDelta(this.workTable, tableModule.formalCoordinate(this.workTable, nextTD)[1], -delta, false, marked);
50270
+ const [column, nextColumn] = this.resizedColumns();
50271
+ tableModule.setColumnWidthByDelta(this.workTable, column, delta, true, marked);
50272
+ tableModule.setColumnWidthByDelta(this.workTable, nextColumn, -delta, false, marked);
50273
+ }
50274
+ /**
50275
+ * Sets the widths `resizeColumns` would while the handle is dragged, from
50276
+ * the widths the drag started with, so that a move doesn't put back every
50277
+ * cell's style and lay the table out again to measure them
50278
+ */ setColumnWidths() {
50279
+ this.startWidths.forEach(([cell, width, below], index)=>{
50280
+ const delta = index ? -this.resizeDelta : this.resizeDelta;
50281
+ if (cell) {
50282
+ (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) + '%');
50283
+ }
50284
+ below.forEach((td)=>{
50285
+ td.style.removeProperty('width');
50286
+ if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(td, 'style')) {
50287
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(td, 'style', null);
50288
+ }
50289
+ });
50290
+ });
49931
50291
  }
49932
50292
  /**
49933
50293
  * Resize whole table
49934
50294
  */ resizeTable() {
49935
50295
  const delta = this.resizeDelta * (this.isRTL ? -1 : 1);
49936
- const width = this.workTable.offsetWidth, parentWidth = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getContentWidth)(this.workTable.parentNode, this.j.ew);
50296
+ const width = this.startTableWidth, parentWidth = this.startParentWidth;
49937
50297
  // for RTL use mirror logic
49938
50298
  const rightSide = !this.wholeTable;
49939
50299
  const needChangeWidth = this.isRTL ? !rightSide : rightSide;
@@ -49942,10 +50302,9 @@ const key = 'table_processor_observer-resize';
49942
50302
  (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(this.workTable, 'width', (width + delta) / parentWidth * 100 + '%');
49943
50303
  } else {
49944
50304
  const side = this.isRTL ? 'marginRight' : 'marginLeft';
49945
- const margin = parseInt(this.j.ew.getComputedStyle(this.workTable)[side] || '0', 10);
49946
50305
  (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(this.workTable, {
49947
50306
  width: (width - delta) / parentWidth * 100 + '%',
49948
- [side]: (margin + delta) / parentWidth * 100 + '%'
50307
+ [side]: (this.startMargin + delta) / parentWidth * 100 + '%'
49949
50308
  });
49950
50309
  }
49951
50310
  }
@@ -50021,9 +50380,10 @@ const key = 'table_processor_observer-resize';
50021
50380
  if (!editor.o.tableAllowCellResize) {
50022
50381
  return;
50023
50382
  }
50024
- editor.e.off(this.j.ow, '.resize-cells').off('.resize-cells').on('change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells', ()=>{
50383
+ const observeTables = ()=>{
50025
50384
  ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', editor.editor).forEach(this.observe);
50026
- }).on(this.j.ow, 'scroll.resize-cells', ()=>{
50385
+ };
50386
+ 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', ()=>{
50027
50387
  if (!this.drag || this.workRow) {
50028
50388
  return;
50029
50389
  }
@@ -50039,6 +50399,8 @@ const key = 'table_processor_observer-resize';
50039
50399
  tableModule.normalizeTable(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(td, 'table', editor.editor));
50040
50400
  });
50041
50401
  });
50402
+ // None of those events comes with the editor's starting value
50403
+ observeTables();
50042
50404
  }
50043
50405
  /**
50044
50406
  * Add to every Table listeners
@@ -50052,7 +50414,9 @@ const key = 'table_processor_observer-resize';
50052
50414
  this.hideResizeHandle();
50053
50415
  }
50054
50416
  }).on(table, 'mousemove.resize-cells touchmove.resize-cells', this.j.async.throttle((event)=>{
50055
- if (this.j.isLocked) {
50417
+ // A drag from a cell isn't a resize, and the handle on
50418
+ // a border it passes would take its moves (#1778)
50419
+ if (this.j.isLocked || this.j.o.readonly || event.buttons) {
50056
50420
  return;
50057
50421
  }
50058
50422
  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);
@@ -50094,10 +50458,21 @@ const key = 'table_processor_observer-resize';
50094
50458
  this.startX = 0;
50095
50459
  /**
50096
50460
  * The table's and its cells' styles as a column drag started, put back
50097
- * before each new width
50461
+ * as it ends, before the final widths
50098
50462
  */ this.startStyles = [];
50099
50463
  this.startLeft = 0;
50100
50464
  this.startEdge = 0;
50465
+ /**
50466
+ * For each of the two columns a drag resizes, the cell whose width
50467
+ * `setColumnWidthByDelta` sets, with its width as the drag started, and
50468
+ * the cells below it, whose widths it clears
50469
+ */ this.startWidths = [];
50470
+ /**
50471
+ * The table's width as the drag started, and for a drag of its edge, the
50472
+ * width inside what holds it and its margin on that side
50473
+ */ this.startTableWidth = 0;
50474
+ this.startParentWidth = 0;
50475
+ this.startMargin = 0;
50101
50476
  /**
50102
50477
  * The row whose height the handle sets, or null while it sets a width
50103
50478
  */ this.workRow = null;
@@ -51872,7 +52247,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
51872
52247
 
51873
52248
 
51874
52249
  const key = 'table_processor_observer';
51875
- const MOUSE_MOVE_LABEL = 'onMoveTableSelectCell';
51876
52250
  class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
51877
52251
  /**
51878
52252
  * Shortcut for Jodit.modules.Table
@@ -51887,6 +52261,8 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51887
52261
  // move the caret, as table-keyboard-navigation's do
51888
52262
  .on('keydown', this.__onKeyDown, {
51889
52263
  top: true
52264
+ }).on('clickEditor', this.__onClickAfterDrag, {
52265
+ top: true
51890
52266
  }).on('keydown.select-cells', (event)=>{
51891
52267
  if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB) {
51892
52268
  this.unselectCells();
@@ -52006,18 +52382,36 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52006
52382
  }
52007
52383
  this.__isSelectionMode = true;
52008
52384
  this.__selectedCell = cell;
52385
+ this.__movedTo = cell;
52009
52386
  this.__tableModule.addSelection(cell);
52010
- this.j.e.on(table, 'mousemove.select-cells touchmove.select-cells', // Don't use decorator because need clear label on mouseup
52011
- this.j.async.throttle(this.__onMove.bind(this, table), {
52012
- label: MOUSE_MOVE_LABEL,
52013
- timeout: this.j.defaultTimeout / 2
52014
- })).on(table, 'mouseup.select-cells touchend.select-cells', this.__onStopSelection.bind(this, table));
52387
+ 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));
52388
+ new Set([
52389
+ this.j.ew,
52390
+ this.j.ow
52391
+ ]).forEach((win)=>this.j.e.on(win, 'mouseup.select-cells touchend.select-cells', this.__onRelease.bind(this, table)));
52015
52392
  return false;
52016
52393
  }
52017
52394
  onOutsideClick() {
52018
52395
  this.__selectedCell = null;
52019
52396
  this.__onRemoveSelection();
52020
52397
  }
52398
+ onMouseDown() {
52399
+ this.__keepMarks = false;
52400
+ }
52401
+ /**
52402
+ * The click that ends a drag let go outside the table, and inside the
52403
+ * editor, lands on the editor. Taken on, it would unmark the cells and
52404
+ * close their popup. As for the click on a row after a drag over the
52405
+ * cells, the browser's own selection from the drag goes
52406
+ */ __onClickAfterDrag() {
52407
+ var _a;
52408
+ if (this.__keepMarks) {
52409
+ this.__keepMarks = false;
52410
+ (_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
52411
+ this.j.e.stopPropagation('clickEditor');
52412
+ return false;
52413
+ }
52414
+ }
52021
52415
  onChange() {
52022
52416
  if (!this.j.isLocked && !this.__isSelectionMode) {
52023
52417
  this.__onRemoveSelection();
@@ -52036,16 +52430,20 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52036
52430
  // Inside Shadow DOM `document.elementFromPoint` returns the shadow
52037
52431
  // host, so the lookup must start from the shadow root
52038
52432
  const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
52039
- if (!node) {
52040
- return;
52041
- }
52042
- const cell = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
52433
+ const cell = node && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
52043
52434
  'td',
52044
52435
  'th'
52045
52436
  ], table);
52046
52437
  if (!cell || !this.__selectedCell) {
52047
52438
  return;
52048
52439
  }
52440
+ // The marks change only when the mouse goes into another cell, and then
52441
+ // at once rather than throttled, as the browser's own selection from
52442
+ // the drag shows in the cells between until they do (#1778)
52443
+ if (cell === this.__movedTo) {
52444
+ return;
52445
+ }
52446
+ this.__movedTo = cell;
52049
52447
  if (cell !== this.__selectedCell) {
52050
52448
  this.j.lock(key);
52051
52449
  }
@@ -52082,7 +52480,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52082
52480
  /**
52083
52481
  * Stop a selection process
52084
52482
  */ __onStopSelection(table, e) {
52085
- var _a, _b, _c;
52483
+ var _a;
52086
52484
  if (!this.__selectedCell) {
52087
52485
  return;
52088
52486
  }
@@ -52105,11 +52503,34 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52105
52503
  if (ownTable && ownTable !== table) {
52106
52504
  return; // Nested tables
52107
52505
  }
52108
- const bound = this.__tableModule.getSelectedBound(table, [
52506
+ this.__showCellsPopup(table, [
52109
52507
  cell,
52110
52508
  this.__selectedCell
52111
- ]), box = this.__tableModule.formalMatrix(table);
52112
- 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]];
52509
+ ]);
52510
+ this.__stopListening();
52511
+ }
52512
+ /**
52513
+ * A drag let go outside the table doesn't reach the table's `mouseup`, so
52514
+ * the window's ends it, leaving the cells marked as they were (#1774)
52515
+ */ __onRelease(table, e) {
52516
+ if (this.__isSelectionMode) {
52517
+ this.__isSelectionMode = false;
52518
+ if (!this.j.isLockedNotBy(key)) {
52519
+ this.j.unlock();
52520
+ }
52521
+ const cells = this.__tableModule.getAllSelectedCells();
52522
+ // One let go outside the editor clicks outside it, which unmarks them
52523
+ if (cells.length > 1 && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(this.j.editor, e.target)) {
52524
+ this.__keepMarks = true;
52525
+ this.__showCellsPopup(table, cells);
52526
+ }
52527
+ }
52528
+ this.__stopListening();
52529
+ }
52530
+ __showCellsPopup(table, cells) {
52531
+ var _a, _b;
52532
+ const bound = this.__tableModule.getSelectedBound(table, cells), box = this.__tableModule.formalMatrix(table);
52533
+ 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]];
52113
52534
  // `getSelectedBound` keeps its `Infinity` sentinel when none of the
52114
52535
  // selected cells belong to this table's matrix — e.g. after a
52115
52536
  // drag-and-drop that moved/removed the cells, leaving a stale anchor and
@@ -52128,10 +52549,16 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52128
52549
  height: maxOffset.top - minOffset.top + maxOffset.height
52129
52550
  };
52130
52551
  }, 'cells');
52131
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
52552
+ }
52553
+ __stopListening() {
52554
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
52132
52555
  this.j.e.off(table, 'mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells');
52133
52556
  });
52134
- this.j.async.clearTimeout(MOUSE_MOVE_LABEL);
52557
+ new Set([
52558
+ this.j.ew,
52559
+ this.j.ow
52560
+ ]).forEach((win)=>this.j.e.off(win, 'mouseup.select-cells touchend.select-cells'));
52561
+ this.__movedTo = null;
52135
52562
  }
52136
52563
  /**
52137
52564
  * Remove selection for all cells
@@ -52302,7 +52729,8 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52302
52729
  }
52303
52730
  /** @override */ beforeDestruct(jodit) {
52304
52731
  this.__onRemoveSelection();
52305
- jodit.e.off('.select-cells').off('keydown', this.__onKeyDown);
52732
+ this.__stopListening();
52733
+ jodit.e.off('.select-cells').off('keydown', this.__onKeyDown).off('clickEditor', this.__onClickAfterDrag);
52306
52734
  }
52307
52735
  constructor(){
52308
52736
  super(...arguments);
@@ -52319,6 +52747,13 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52319
52747
  /**
52320
52748
  * User is selecting cells now
52321
52749
  */ this.__isSelectionMode = false;
52750
+ /**
52751
+ * The cell the marks were last drawn to
52752
+ */ this.__movedTo = null;
52753
+ /**
52754
+ * A drag let go outside the table ends in a click on the editor, which
52755
+ * would unmark its cells
52756
+ */ this.__keepMarks = false;
52322
52757
  }
52323
52758
  }
52324
52759
  selectCells.requires = [
@@ -52336,6 +52771,15 @@ __decorate([
52336
52771
  __decorate([
52337
52772
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':outsideClick')
52338
52773
  ], selectCells.prototype, "onOutsideClick", null);
52774
+ __decorate([
52775
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
52776
+ ':mousedown',
52777
+ ':touchstart'
52778
+ ])
52779
+ ], selectCells.prototype, "onMouseDown", null);
52780
+ __decorate([
52781
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52782
+ ], selectCells.prototype, "__onClickAfterDrag", null);
52339
52783
  __decorate([
52340
52784
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
52341
52785
  ], selectCells.prototype, "onChange", null);
@@ -52383,10 +52827,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52383
52827
  /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
52384
52828
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
52385
52829
  /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
52386
- /* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87058);
52387
- /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
52388
- /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
52389
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67215);
52830
+ /* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4510);
52831
+ /* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87058);
52832
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50911);
52833
+ /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67510);
52834
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67215);
52390
52835
  /*!
52391
52836
  * Jodit Editor (https://xdsoft.net/jodit/)
52392
52837
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -52405,6 +52850,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52405
52850
 
52406
52851
 
52407
52852
 
52853
+
52408
52854
  /**
52409
52855
  * A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
52410
52856
  *
@@ -52415,22 +52861,27 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52415
52861
  * console.log(img.src);
52416
52862
  * })
52417
52863
  * ```
52418
- */ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
52864
+ */ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__.Plugin {
52419
52865
  afterInit(jodit) {
52420
52866
  this.proxyEventsList.forEach((eventName)=>{
52421
52867
  jodit.e.on(eventName + '.select', this.onStartSelection);
52422
52868
  });
52869
+ jodit.e.on('dblclick', this.__onDblClickBesideRow, {
52870
+ top: true
52871
+ });
52423
52872
  }
52424
52873
  beforeDestruct(jodit) {
52425
52874
  this.proxyEventsList.forEach((eventName)=>{
52426
- jodit.e.on(eventName + '.select', this.onStartSelection);
52875
+ jodit.e.off(eventName + '.select', this.onStartSelection);
52427
52876
  });
52877
+ this.__endPressBesideRow();
52878
+ jodit.e.off('dblclick', this.__onDblClickBesideRow);
52428
52879
  }
52429
52880
  onStartSelection(e) {
52430
52881
  const { j } = this;
52431
52882
  let result, target = e.target;
52432
52883
  while(result === undefined && target && target !== j.editor){
52433
- result = j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__.camelCase)(e.type + '_' + target.nodeName.toLowerCase()), target, e);
52884
+ result = j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__.camelCase)(e.type + '_' + target.nodeName.toLowerCase()), target, e);
52434
52885
  target = target.parentElement;
52435
52886
  }
52436
52887
  if (e.type === 'click' && result === undefined && target === j.editor) {
@@ -52450,10 +52901,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52450
52901
  }
52451
52902
  // Selecting the text of a popup input with the mouse and releasing
52452
52903
  // the button past the popup's edge is not a click outside of it.
52453
- if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.Popup)) {
52904
+ if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup)) {
52454
52905
  return;
52455
52906
  }
52456
- const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.Popup);
52907
+ const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup);
52457
52908
  if (!box) {
52458
52909
  this.j.e.fire('outsideClick', e);
52459
52910
  }
@@ -52499,6 +52950,127 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52499
52950
  s.setCursorAfter(text);
52500
52951
  }
52501
52952
  }
52953
+ /**
52954
+ * The table row the mouse is to the right of
52955
+ */ __rowBeside(e) {
52956
+ var _a;
52957
+ const { j } = this;
52958
+ const target = e.target;
52959
+ 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)) {
52960
+ return null;
52961
+ }
52962
+ const table = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(target.children).find((elm)=>{
52963
+ if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(elm, 'table')) {
52964
+ return false;
52965
+ }
52966
+ const box = elm.getBoundingClientRect();
52967
+ return e.clientX >= box.right && e.clientY >= box.top && e.clientY < box.bottom;
52968
+ });
52969
+ const rows = table ? (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(table.rows).filter((row)=>row.cells.length) : [];
52970
+ if (!table || !rows.length) {
52971
+ return null;
52972
+ }
52973
+ const row = (_a = rows.find((row)=>e.clientY < row.getBoundingClientRect().bottom)) !== null && _a !== void 0 ? _a : rows[rows.length - 1];
52974
+ return {
52975
+ table,
52976
+ row
52977
+ };
52978
+ }
52979
+ /**
52980
+ * A press to the right of a table row puts the caret where Word's typing
52981
+ * goes from there: the start of the next row's first cell, or of the block
52982
+ * after the table for the last row (#1770). The browsers put it after the
52983
+ * table, whichever row it's beside, so typing starts a new line below it.
52984
+ * Their own press is stopped, as its drag would start after the table and
52985
+ * take in the rows below first
52986
+ */ onMouseDownBesideTableRow(e) {
52987
+ const { j } = this;
52988
+ const beside = this.__rowBeside(e);
52989
+ if (!beside) {
52990
+ return;
52991
+ }
52992
+ // A press before the last one was let go must not stack its listeners
52993
+ this.__endPressBesideRow();
52994
+ e.preventDefault();
52995
+ this.__putCaretBesideRow(beside.table, beside.row);
52996
+ this.__pressBesideRow = {
52997
+ row: beside.row,
52998
+ caret: j.s.range.cloneRange()
52999
+ };
53000
+ j.e.on(j.ew, 'mousemove', this.__onDragFromRow);
53001
+ new Set([
53002
+ j.ew,
53003
+ j.ow
53004
+ ]).forEach((win)=>j.e.on(win, 'mouseup', this.__onReleaseFromRow));
53005
+ }
53006
+ /**
53007
+ * A drag from beside a row selects from the end of the row to the mouse,
53008
+ * and back beside the row it's the caret again
53009
+ */ __onDragFromRow(e) {
53010
+ var _a, _b;
53011
+ const { s } = this.j;
53012
+ const press = this.__pressBesideRow;
53013
+ if (!press || !(e.buttons & 1)) {
53014
+ this.__endPressBesideRow();
53015
+ return;
53016
+ }
53017
+ if (((_a = this.__rowBeside(e)) === null || _a === void 0 ? void 0 : _a.row) === press.row) {
53018
+ if (!s.isCollapsed()) {
53019
+ s.selectRange(press.caret.cloneRange());
53020
+ }
53021
+ return;
53022
+ }
53023
+ const { cells } = press.row;
53024
+ const last = cells[cells.length - 1];
53025
+ if (s.insertCursorAtPoint(e.clientX, e.clientY)) {
53026
+ const { startContainer, startOffset } = s.range;
53027
+ (_b = s.sel) === null || _b === void 0 ? void 0 : _b.setBaseAndExtent(last, last.childNodes.length, startContainer, startOffset);
53028
+ }
53029
+ }
53030
+ /**
53031
+ * In iframe mode, a press in an editor without the focus puts the caret at
53032
+ * its end, so a release that selected nothing puts it back
53033
+ */ __onReleaseFromRow() {
53034
+ const press = this.__pressBesideRow;
53035
+ this.__endPressBesideRow();
53036
+ if (press && this.j.s.isCollapsed()) {
53037
+ this.j.s.selectRange(press.caret);
53038
+ }
53039
+ }
53040
+ __endPressBesideRow() {
53041
+ const { j } = this;
53042
+ this.__pressBesideRow = null;
53043
+ j.e.off(j.ew, 'mousemove', this.__onDragFromRow);
53044
+ new Set([
53045
+ j.ew,
53046
+ j.ow
53047
+ ]).forEach((win)=>j.e.off(win, 'mouseup', this.__onReleaseFromRow));
53048
+ }
53049
+ /**
53050
+ * A double click beside a row is two clicks there, so add-new-line,
53051
+ * which adds a line on a double click with a caret, doesn't see it
53052
+ */ __onDblClickBesideRow(e) {
53053
+ if (this.__rowBeside(e)) {
53054
+ this.j.e.stopPropagation('dblclick');
53055
+ return false;
53056
+ }
53057
+ }
53058
+ __putCaretBesideRow(table, row) {
53059
+ const { j } = this;
53060
+ const rows = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(table.rows);
53061
+ const next = rows.slice(rows.indexOf(row) + 1).find((row)=>row.cells.length);
53062
+ let after = table.nextSibling;
53063
+ while(after && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(after)){
53064
+ after = after.nextSibling;
53065
+ }
53066
+ if (next) {
53067
+ j.s.setCursorIn(next.cells[0], true);
53068
+ } 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)) {
53069
+ j.s.setCursorIn(after, true);
53070
+ } else {
53071
+ j.s.setCursorAfter(table);
53072
+ }
53073
+ }
52502
53074
  /**
52503
53075
  * Keep pending inline formatting after a click. Toggling Bold/Italic/etc. on
52504
53076
  * a collapsed cursor leaves empty marker elements with the caret inside; a
@@ -52564,6 +53136,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52564
53136
  * element and ends in another as a `click` on their common ancestor, so a
52565
53137
  * press inside a popup is remembered to tell such a drag from a real click.
52566
53138
  */ this.__pressTarget = null;
53139
+ /**
53140
+ * The row a press to its right was beside, and the caret it put there,
53141
+ * while the button is down
53142
+ */ this.__pressBesideRow = null;
52567
53143
  }
52568
53144
  }
52569
53145
  __decorate([
@@ -52593,6 +53169,18 @@ __decorate([
52593
53169
  ':click'
52594
53170
  ])
52595
53171
  ], select.prototype, "onClickRightOfNestedListItem", null);
53172
+ __decorate([
53173
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':mousedown')
53174
+ ], select.prototype, "onMouseDownBesideTableRow", null);
53175
+ __decorate([
53176
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
53177
+ ], select.prototype, "__onDragFromRow", null);
53178
+ __decorate([
53179
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
53180
+ ], select.prototype, "__onReleaseFromRow", null);
53181
+ __decorate([
53182
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
53183
+ ], select.prototype, "__onDblClickBesideRow", null);
52596
53184
  __decorate([
52597
53185
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
52598
53186
  ':click'