jodit-pro 4.19.3 → 4.19.5

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 +20 -7
  3. package/es2015/jodit.js +853 -154
  4. package/es2015/jodit.min.js +20 -7
  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 +20 -7
  79. package/es2018/jodit.min.js +25 -12
  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 +21 -8
  109. package/es2021/jodit.js +853 -154
  110. package/es2021/jodit.min.js +32 -19
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  112. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  113. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  114. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  115. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  116. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  117. package/es2021/plugins/backup/backup.css +1 -1
  118. package/es2021/plugins/backup/backup.js +1 -1
  119. package/es2021/plugins/backup/backup.min.js +1 -1
  120. package/es2021/plugins/button-generator/button-generator.css +1 -1
  121. package/es2021/plugins/button-generator/button-generator.js +1 -1
  122. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  123. package/es2021/plugins/change-case/change-case.js +1 -1
  124. package/es2021/plugins/change-case/change-case.min.js +1 -1
  125. package/es2021/plugins/chart/chart.css +1 -1
  126. package/es2021/plugins/chart/chart.js +1 -1
  127. package/es2021/plugins/chart/chart.min.js +1 -1
  128. package/es2021/plugins/color-picker/color-picker.css +1 -1
  129. package/es2021/plugins/color-picker/color-picker.js +1 -1
  130. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  131. package/es2021/plugins/emoji/emoji.css +1 -1
  132. package/es2021/plugins/emoji/emoji.js +1 -1
  133. package/es2021/plugins/emoji/emoji.min.js +1 -1
  134. package/es2021/plugins/export-docs/export-docs.js +1 -1
  135. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  136. package/es2021/plugins/finder/finder.css +1 -1
  137. package/es2021/plugins/finder/finder.js +1 -1
  138. package/es2021/plugins/finder/finder.min.js +1 -1
  139. package/es2021/plugins/google-maps/google-maps.css +1 -1
  140. package/es2021/plugins/google-maps/google-maps.js +1 -1
  141. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  142. package/es2021/plugins/google-search/google-search.js +1 -1
  143. package/es2021/plugins/google-search/google-search.min.js +1 -1
  144. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  145. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  146. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  147. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  148. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  149. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  150. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  151. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.css +1 -1
  153. package/es2021/plugins/keyboard/keyboard.js +1 -1
  154. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  155. package/es2021/plugins/math/math.css +1 -1
  156. package/es2021/plugins/math/math.js +1 -1
  157. package/es2021/plugins/math/math.min.js +1 -1
  158. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  159. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  160. package/es2021/plugins/page-break/page-break.js +1 -1
  161. package/es2021/plugins/page-break/page-break.min.js +1 -1
  162. package/es2021/plugins/paste-code/paste-code.css +1 -1
  163. package/es2021/plugins/paste-code/paste-code.js +1 -1
  164. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  165. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  166. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  167. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  168. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  169. package/es2021/plugins/style/style.css +1 -1
  170. package/es2021/plugins/style/style.js +1 -1
  171. package/es2021/plugins/style/style.min.js +1 -1
  172. package/es2021/plugins/templates/templates.css +1 -1
  173. package/es2021/plugins/templates/templates.js +1 -1
  174. package/es2021/plugins/templates/templates.min.js +1 -1
  175. package/es2021/plugins/todo-list/todo-list.css +1 -1
  176. package/es2021/plugins/todo-list/todo-list.js +1 -1
  177. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  178. package/es2021/plugins/translate/translate.css +1 -1
  179. package/es2021/plugins/translate/translate.js +1 -1
  180. package/es2021/plugins/translate/translate.min.js +1 -1
  181. package/es2021/plugins/tune-block/tune-block.css +1 -1
  182. package/es2021/plugins/tune-block/tune-block.js +1 -1
  183. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  184. package/es2021.en/jodit.css +1 -1
  185. package/es2021.en/jodit.fat.min.js +21 -8
  186. package/es2021.en/jodit.js +853 -154
  187. package/es2021.en/jodit.min.js +31 -18
  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 +1003 -159
  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.3
4
+ * Version: v4.19.5
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.3";
1771
+ */ const APP_VERSION = "4.19.5";
1772
1772
  // prettier-ignore
1773
1773
  const ES = "es2021";
1774
1774
  const IS_ES_MODERN = true;
@@ -10977,7 +10977,13 @@ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild,
10977
10977
  * When the cursor is positioned in its place, it must be inside the element and not outside its border.
10978
10978
  * @private
10979
10979
  */ function moveNodeInsideStart(j, node, start) {
10980
- let sibling = _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(node, start), anotherSibling = _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(node, !start);
10980
+ // A text node of non-breaking spaces trims to nothing, but it's text the
10981
+ // node mustn't move past
10982
+ const isContent = (n)=>{
10983
+ var _a;
10984
+ return !_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyTextNode(n) || Boolean((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.includes(_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE));
10985
+ };
10986
+ let sibling = _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(node, start, isContent), anotherSibling = _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(node, !start, isContent);
10981
10987
  while(_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(sibling) && !_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(sibling, _constants_js__WEBPACK_IMPORTED_MODULE_0__.INSEPARABLE_TAGS) && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isContentEditable(sibling, j.editor) && (!anotherSibling || !_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(node, _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement, j.editor))){
10982
10988
  if (start || !sibling.firstChild) {
10983
10989
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(sibling, node);
@@ -13595,9 +13601,11 @@ const WRAP_NODES = new Set([
13595
13601
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13596
13602
  /* harmony export */ ApplyStyle: function() { return /* binding */ ApplyStyle; }
13597
13603
  /* harmony export */ });
13598
- /* harmony import */ var _api_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(63687);
13599
- /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77361);
13600
- /* harmony import */ var _transactions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(55307);
13604
+ /* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
13605
+ /* harmony import */ var _helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76078);
13606
+ /* harmony import */ var _api_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63687);
13607
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77361);
13608
+ /* harmony import */ var _transactions_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(55307);
13601
13609
  /*!
13602
13610
  * Jodit Editor (https://xdsoft.net/jodit/)
13603
13611
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -13605,27 +13613,55 @@ const WRAP_NODES = new Set([
13605
13613
  */
13606
13614
 
13607
13615
 
13616
+
13617
+
13618
+ /**
13619
+ * Take a selected fragment out of the elements its style takes the place
13620
+ * of: one around it is split, so the fragment leaves it, and one in it is
13621
+ * unwrapped
13622
+ */ function takeOutOf(jodit, font, tags) {
13623
+ const range = jodit.s.createRange();
13624
+ let outer = _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(font.parentNode, tags, jodit.editor);
13625
+ while(outer){
13626
+ range.selectNodeContents(outer);
13627
+ range.setEndBefore(font);
13628
+ const before = range.cloneContents();
13629
+ range.selectNodeContents(outer);
13630
+ range.setStartAfter(font);
13631
+ // Split only when there's more in it, as a split leaves empty copies
13632
+ // of the elements between
13633
+ if (!_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(before) || !_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(range.cloneContents())) {
13634
+ (0,_api_index_js__WEBPACK_IMPORTED_MODULE_2__.extractSelectedPart)(outer, font, jodit);
13635
+ }
13636
+ _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.unwrap(outer);
13637
+ outer = _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(font.parentNode, tags, jodit.editor);
13638
+ }
13639
+ ;(0,_helpers_utils_selector_js__WEBPACK_IMPORTED_MODULE_1__.$$)(tags.join(','), font).forEach((inner)=>_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.unwrap(inner));
13640
+ }
13608
13641
  /** @internal */ function ApplyStyle(jodit, cs) {
13609
- var _a;
13642
+ var _a, _b;
13610
13643
  const { s: sel, editor } = jodit;
13611
13644
  (_a = editor.firstChild) === null || _a === void 0 ? void 0 : _a.normalize(); // FF fix for test "commandsTest - Exec command "bold"
13612
13645
  const fakes = sel.fakes();
13613
13646
  const collapsed = sel.isCollapsed();
13614
- let mode = _constants_js__WEBPACK_IMPORTED_MODULE_1__.INITIAL;
13647
+ let mode = _constants_js__WEBPACK_IMPORTED_MODULE_3__.INITIAL;
13615
13648
  try {
13616
13649
  // for...of closes the generator on an exception, releasing every
13617
13650
  // temporary wrapper before the selection is restored in finally.
13618
13651
  for (const font of sel.wrapInTagGen(fakes)){
13652
+ if ((_b = cs.options.exclude) === null || _b === void 0 ? void 0 : _b.length) {
13653
+ takeOutOf(jodit, font, cs.options.exclude);
13654
+ }
13619
13655
  let state = {
13620
13656
  collapsed,
13621
13657
  mode,
13622
13658
  element: font,
13623
- next: _transactions_js__WEBPACK_IMPORTED_MODULE_2__.states.START,
13659
+ next: _transactions_js__WEBPACK_IMPORTED_MODULE_4__.states.START,
13624
13660
  jodit,
13625
13661
  style: cs
13626
13662
  };
13627
- 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);
13628
- while(!jodit.isInDestruct && machine.getState() !== _transactions_js__WEBPACK_IMPORTED_MODULE_2__.states.END){
13663
+ 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);
13664
+ while(!jodit.isInDestruct && machine.getState() !== _transactions_js__WEBPACK_IMPORTED_MODULE_4__.states.END){
13629
13665
  state = machine.dispatch('exec', state);
13630
13666
  }
13631
13667
  // The first selected fragment determines how later fragments toggle.
@@ -18141,6 +18177,20 @@ const FOCUS_EVENTS = new Set([
18141
18177
  'focusin',
18142
18178
  'focusout'
18143
18179
  ]);
18180
+ const EDITING_KEYS = new Set([
18181
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER,
18182
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE,
18183
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE
18184
+ ]);
18185
+ /**
18186
+ * Whether the input method (IME) is using the key. Safari fires the keydown
18187
+ * that ends a composition, as the Enter that confirms Japanese text, after
18188
+ * `compositionend`, and types Korean without one, so `isComposing` is false and
18189
+ * only keyCode 229 tells. Only the keys the editor turns into edits are held
18190
+ * back: the handlers that follow typing still see the rest.
18191
+ */ function isInputMethodKey(event) {
18192
+ return event.isComposing || event.keyCode === 229 && EDITING_KEYS.has(event.key);
18193
+ }
18144
18194
  const __defaultStyleDisplayKey = 'data-jodit-default-style-display';
18145
18195
  const __defaultClassesKey = 'data-jodit-default-classes';
18146
18196
  const NOEDIT = {
@@ -19199,7 +19249,7 @@ let Jodit = Jodit_1 = class Jodit extends _modules_index_js__WEBPACK_IMPORTED_MO
19199
19249
  }
19200
19250
  }
19201
19251
  const w = this.ew;
19202
- if (event instanceof w.KeyboardEvent && event.isComposing) {
19252
+ if (event instanceof w.KeyboardEvent && isInputMethodKey(event)) {
19203
19253
  return;
19204
19254
  }
19205
19255
  if (this.e && this.e.fire) {
@@ -34876,6 +34926,13 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
34876
34926
  if (checkJoinBareText(jodit, fakeNode, backspace)) {
34877
34927
  return true;
34878
34928
  }
34929
+ // Old content can have an inline element round blocks beside the text:
34930
+ // moved inside them, the line joins the block as it would bare text
34931
+ // (#1781)
34932
+ const inline = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(fakeNode, backspace);
34933
+ if (joinsBareText(jodit, edgeBlock(inline, backspace)) && moveInlineInside(inline, jodit.editor)) {
34934
+ return joinNeighbors(jodit, fakeNode, backspace, moved);
34935
+ }
34879
34936
  let nextBox = fakeNode, mainClosestBox = nextBox;
34880
34937
  // Find the main big closest element
34881
34938
  while(nextBox && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(nextBox, backspace) && nextBox.parentElement !== jodit.editor){
@@ -35156,7 +35213,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
35156
35213
  * in `<div>a|<p>b</p>c</div>` gives `<div>a|b<br>c</div>`
35157
35214
  */ function checkJoinBareText(jodit, fakeNode, backspace) {
35158
35215
  const block = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(fakeNode, backspace);
35159
- 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))) {
35216
+ if (!joinsBareText(jodit, block)) {
35160
35217
  return false;
35161
35218
  }
35162
35219
  const filter = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__.getMoveFilter)(jodit);
@@ -35183,6 +35240,24 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('backspace', backs
35183
35240
  jodit.s.setCursorBefore(fakeNode);
35184
35241
  return true;
35185
35242
  }
35243
+ /**
35244
+ * Whether a block joins the bare text beside it: not a list, a table or a
35245
+ * cell, and holding no block of its own
35246
+ */ function joinsBareText(jodit, block) {
35247
+ 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));
35248
+ }
35249
+ /**
35250
+ * The block an inline element holds on its side facing the caret, through
35251
+ * the inline elements in it: the `<p>` of `<span><strong><p>…</p></strong></span>`
35252
+ */ function edgeBlock(node, backspace) {
35253
+ var _a;
35254
+ let edge = node;
35255
+ while(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(edge) && !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(edge)){
35256
+ const children = Array.from(edge.childNodes).filter((child)=>!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyTextNode(child));
35257
+ edge = (_a = backspace ? children[children.length - 1] : children[0]) !== null && _a !== void 0 ? _a : null;
35258
+ }
35259
+ return edge === node ? null : edge;
35260
+ }
35186
35261
  function checkMoveListContent(jodit, mainClosestBox, sibling, backspace) {
35187
35262
  // Process UL/LI/OL cases
35188
35263
  const siblingIsList = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(sibling, _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.LIST_TAGS);
@@ -35616,7 +35691,6 @@ function isNotEditable(jodit, node) {
35616
35691
  if (!prn || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(prn)) {
35617
35692
  return false;
35618
35693
  }
35619
- const neighbor = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptyNeighbor(fakeNode, backspace, jodit.editor);
35620
35694
  do {
35621
35695
  if (prn && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(prn) && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isCell(prn)) {
35622
35696
  _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(prn, fakeNode);
@@ -35631,6 +35705,9 @@ function isNotEditable(jodit, node) {
35631
35705
  if (found && (0,_check_join_two_lists_js__WEBPACK_IMPORTED_MODULE_2__.checkJoinTwoLists)(jodit, fakeNode, backspace)) {
35632
35706
  return true;
35633
35707
  }
35708
+ // Looked for once the empty elements have gone, as the one beside the
35709
+ // caret can be in them: the `<br>` that Delete in `<p>|<br></p>` leaves
35710
+ const neighbor = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptyNeighbor(fakeNode, backspace, jodit.editor);
35634
35711
  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)) {
35635
35712
  setCursorIn(neighbor, !backspace);
35636
35713
  } else {
@@ -36067,8 +36144,15 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.delete = {
36067
36144
  }
36068
36145
  cssRules[key] = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(cssOptions[key]) ? cssOptions[key][0] : cssOptions[key];
36069
36146
  });
36147
+ const element = control.tags ? control.tags[0] : undefined;
36070
36148
  editor.s.commitStyle({
36071
- element: control.tags ? control.tags[0] : undefined
36149
+ element,
36150
+ // As in the browsers and Word, each takes the other's place
36151
+ exclude: element === 'sub' ? [
36152
+ 'sup'
36153
+ ] : element === 'sup' ? [
36154
+ 'sub'
36155
+ ] : []
36072
36156
  });
36073
36157
  editor.synchronizeValues();
36074
36158
  return false;
@@ -38667,11 +38751,12 @@ __webpack_require__.r(__webpack_exports__);
38667
38751
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
38668
38752
 
38669
38753
  /* unused harmony export deleteCommand */
38670
- /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22732);
38671
- /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(580);
38672
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
38673
- /* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49055);
38674
- /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50911);
38754
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
38755
+ /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
38756
+ /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
38757
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
38758
+ /* harmony import */ var _core_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49055);
38759
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
38675
38760
  /*!
38676
38761
  * Jodit Editor (https://xdsoft.net/jodit/)
38677
38762
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -38682,6 +38767,7 @@ __webpack_require__.r(__webpack_exports__);
38682
38767
 
38683
38768
 
38684
38769
 
38770
+
38685
38771
  const NOT_EMPTY_CONTENT_TAGS = new Set([
38686
38772
  'img',
38687
38773
  'table',
@@ -38689,7 +38775,19 @@ const NOT_EMPTY_CONTENT_TAGS = new Set([
38689
38775
  'iframe',
38690
38776
  'hr'
38691
38777
  ]);
38692
- class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
38778
+ const KEEPS_SPACES = new Set([
38779
+ 'pre',
38780
+ 'pre-wrap',
38781
+ 'break-spaces'
38782
+ ]);
38783
+ /**
38784
+ * A plain space beside this neighbor isn't shown: there is none, or it's a
38785
+ * line break, a block or text starting (or ending) with a plain space
38786
+ */ function hidesSpace(neighbor, edge) {
38787
+ var _a;
38788
+ 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 : '');
38789
+ }
38790
+ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
38693
38791
  afterInit(jodit) {
38694
38792
  jodit.e.on('afterCommand.delete', (command)=>{
38695
38793
  if (command === 'delete') {
@@ -38710,11 +38808,11 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38710
38808
  */ __afterDeleteCommand() {
38711
38809
  const jodit = this.j;
38712
38810
  const current = jodit.s.current();
38713
- if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(current.firstChild, 'br')) {
38811
+ if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(current.firstChild, 'br')) {
38714
38812
  jodit.s.removeNode(current.firstChild);
38715
38813
  }
38716
- 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))) {
38717
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(jodit.editor);
38814
+ 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))) {
38815
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(jodit.editor);
38718
38816
  const node = jodit.s.setCursorIn(jodit.editor);
38719
38817
  jodit.s.removeNode(node);
38720
38818
  }
@@ -38734,14 +38832,15 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38734
38832
  range.deleteContents();
38735
38833
  const fake = jodit.createInside.fake();
38736
38834
  range.insertNode(fake);
38737
- const leftSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.findSibling(fake, true);
38738
- const rightSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.findSibling(fake, false);
38835
+ const leftSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(fake, true);
38836
+ const rightSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.findSibling(fake, false);
38739
38837
  this.__moveContentInLeftSibling(fake, leftSibling, rightSibling);
38838
+ this.__keepSpacesVisible(fake);
38740
38839
  range.setStartBefore(fake);
38741
38840
  range.collapse(true);
38742
38841
  this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
38743
38842
  this.__addBrInEmptyBlock(fake, range);
38744
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(fake);
38843
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
38745
38844
  jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
38746
38845
  return false;
38747
38846
  }
@@ -38755,23 +38854,23 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38755
38854
  * Returns where the caret goes, or null when no table is involved
38756
38855
  */ __clearSelectedCells(range) {
38757
38856
  const { editor, createInside } = this.j;
38758
- 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);
38759
- 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);
38857
+ 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);
38858
+ 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);
38760
38859
  if (startCell === endCell) {
38761
38860
  return null;
38762
38861
  }
38763
- const startTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(startCell, 'table', editor);
38764
- const endTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(endCell, 'table', editor);
38862
+ const startTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(startCell, 'table', editor);
38863
+ const endTable = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(endCell, 'table', editor);
38765
38864
  const caret = range.cloneRange();
38766
38865
  caret.collapse(true);
38767
38866
  const parts = [];
38768
38867
  const addParts = (table)=>{
38769
- (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)=>{
38868
+ (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)=>{
38770
38869
  const part = range.cloneRange();
38771
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(cell, range.startContainer)) {
38870
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(cell, range.startContainer)) {
38772
38871
  part.setStart(cell, 0);
38773
38872
  }
38774
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(cell, range.endContainer)) {
38873
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(cell, range.endContainer)) {
38775
38874
  part.setEnd(cell, cell.childNodes.length);
38776
38875
  }
38777
38876
  parts.push([
@@ -38794,9 +38893,9 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38794
38893
  }
38795
38894
  parts.forEach(([cell, part])=>{
38796
38895
  part.deleteContents();
38797
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(cell)) {
38798
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(cell);
38799
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(cell, createInside.element('br'));
38896
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(cell)) {
38897
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(cell);
38898
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(cell, createInside.element('br'));
38800
38899
  }
38801
38900
  });
38802
38901
  return startTable ? caret : null;
@@ -38804,46 +38903,76 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38804
38903
  __moveContentInLeftSibling(fake, leftSibling, rightSibling) {
38805
38904
  leftSibling = this.__defineRightLeftBox(leftSibling);
38806
38905
  // Nothing is moved into a table, and a block left empty after it goes
38807
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(leftSibling, 'table')) {
38808
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(rightSibling)) {
38809
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
38906
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(leftSibling, 'table')) {
38907
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(rightSibling)) {
38908
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38810
38909
  }
38811
38910
  return;
38812
38911
  }
38813
- 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)) {
38814
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, fake);
38815
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.moveContent(rightSibling, leftSibling);
38816
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
38912
+ 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)) {
38913
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, fake);
38914
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.moveContent(rightSibling, leftSibling);
38915
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38817
38916
  }
38818
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isLeaf(rightSibling.firstElementChild)) {
38917
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(rightSibling) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isLeaf(rightSibling.firstElementChild)) {
38819
38918
  const item = rightSibling.firstElementChild;
38820
38919
  // What's left of the right list's first item joins the left block,
38821
38920
  // up to a list nested in the item
38822
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(item) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(leftSibling)) {
38823
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, fake);
38824
- while(item.firstChild && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(item.firstChild)){
38825
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, item.firstChild);
38921
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(item) && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(leftSibling)) {
38922
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, fake);
38923
+ while(item.firstChild && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(item.firstChild)){
38924
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, item.firstChild);
38826
38925
  }
38827
38926
  }
38828
38927
  // Remove empty right LI
38829
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(item)) {
38830
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(item);
38928
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(item)) {
38929
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(item);
38831
38930
  }
38832
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isEmpty(rightSibling)) {
38833
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(rightSibling);
38931
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(rightSibling)) {
38932
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(rightSibling);
38834
38933
  }
38835
38934
  }
38836
38935
  }
38936
+ /**
38937
+ * A plain space the deletion leaves at an edge of the block, before a line
38938
+ * break or next to another space isn't shown, and the browser drops it when
38939
+ * the next char is typed. It becomes non-breaking, as in the browsers' own
38940
+ * delete and in Backspace without a selection (#1522)
38941
+ */ __keepSpacesVisible(fake) {
38942
+ var _a;
38943
+ const { jodit } = this;
38944
+ 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;
38945
+ if (KEEPS_SPACES.has(jodit.ew.getComputedStyle(block).whiteSpace)) {
38946
+ return;
38947
+ }
38948
+ const before = this.__findNeighbor(fake, true, block);
38949
+ const after = this.__findNeighbor(fake, false, block);
38950
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(before) && hidesSpace(after, /^ /)) {
38951
+ before.nodeValue = before.nodeValue.replace(/ +$/, (spaces)=>_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length));
38952
+ }
38953
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(after) && hidesSpace(before, / $/)) {
38954
+ after.nodeValue = after.nodeValue.replace(/^ +/, (spaces)=>_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE.repeat(spaces.length));
38955
+ }
38956
+ }
38957
+ /**
38958
+ * The text, line break or other element next to the caret in its block,
38959
+ * looking inside inline elements
38960
+ */ __findNeighbor(fake, left, block) {
38961
+ 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)=>{
38962
+ var _a;
38963
+ 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);
38964
+ }, block);
38965
+ }
38837
38966
  /**
38838
38967
  * If left sibling is list - return last leaf
38839
38968
  */ __defineRightLeftBox(leftSibling) {
38840
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(leftSibling)) {
38969
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(leftSibling)) {
38841
38970
  return leftSibling;
38842
38971
  }
38843
38972
  let lastLeaf = leftSibling.lastElementChild;
38844
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isLeaf(lastLeaf)) {
38973
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isLeaf(lastLeaf)) {
38845
38974
  lastLeaf = this.j.createInside.element('li');
38846
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(leftSibling, lastLeaf);
38975
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(leftSibling, lastLeaf);
38847
38976
  }
38848
38977
  return lastLeaf;
38849
38978
  }
@@ -38851,22 +38980,22 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38851
38980
  * Add BR in the empty block left at the caret
38852
38981
  */ __addBrInEmptyBlock(fake, range) {
38853
38982
  const jodit = this.j;
38854
- if (fake.isConnected && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(fake.parentNode) && !fake.nextSibling && !fake.previousSibling) {
38983
+ if (fake.isConnected && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(fake.parentNode) && !fake.nextSibling && !fake.previousSibling) {
38855
38984
  const br = jodit.createInside.element('br');
38856
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.after(fake, br);
38985
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after(fake, br);
38857
38986
  range.setStartBefore(br);
38858
38987
  range.collapse(true);
38859
38988
  }
38860
38989
  }
38861
38990
  __moveCursorInEditableSibling(jodit, leftSibling, fake, range) {
38862
38991
  var _a;
38863
- if (!leftSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isText(leftSibling)) {
38864
- 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;
38865
- const leftText = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prev(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isText, root);
38992
+ if (!leftSibling || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(leftSibling)) {
38993
+ 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;
38994
+ const leftText = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.prev(fake, _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText, root);
38866
38995
  if (leftText) {
38867
38996
  range.setStartAfter(leftText);
38868
38997
  range.collapse(true);
38869
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(fake);
38998
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
38870
38999
  }
38871
39000
  }
38872
39001
  }
@@ -38874,7 +39003,7 @@ class deleteCommand extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.P
38874
39003
  deleteCommand.requires = [
38875
39004
  'backspace'
38876
39005
  ];
38877
- _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('deleteCommand', deleteCommand);
39006
+ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('deleteCommand', deleteCommand);
38878
39007
 
38879
39008
 
38880
39009
  /***/ }),
@@ -46859,6 +46988,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.link = {
46859
46988
  followOnDblClick: false,
46860
46989
  processVideoLink: true,
46861
46990
  processPastedLink: true,
46991
+ processTypedLink: false,
46992
+ typedLinkTlds: [],
46993
+ typedLinkFileEndings: [
46994
+ 'zip',
46995
+ 'mov',
46996
+ 'md',
46997
+ 'py',
46998
+ 'sh',
46999
+ 'pub'
47000
+ ],
46862
47001
  deriveUrlFromText: false,
46863
47002
  noFollowCheckbox: true,
46864
47003
  openInNewTabCheckbox: true,
@@ -46923,12 +47062,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46923
47062
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
46924
47063
 
46925
47064
  /* unused harmony export link */
46926
- /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
46927
- /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
46928
- /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
46929
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
46930
- /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50911);
46931
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5827);
47065
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
47066
+ /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
47067
+ /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22732);
47068
+ /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
47069
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
47070
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
47071
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5827);
47072
+ /* harmony import */ var _typed_link_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58970);
46932
47073
  /*!
46933
47074
  * Jodit Editor (https://xdsoft.net/jodit/)
46934
47075
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -46945,9 +47086,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46945
47086
 
46946
47087
 
46947
47088
 
47089
+
47090
+
46948
47091
  /**
46949
47092
  * Process link. Insert, dblclick or remove format
46950
- */ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
47093
+ */ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
46951
47094
  /** @override */ afterInit(jodit) {
46952
47095
  if (jodit.o.link.followOnDblClick) {
46953
47096
  jodit.e.on('dblclick.link', this.__onDblClickOnLink);
@@ -46956,6 +47099,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46956
47099
  if (jodit.o.link.processPastedLink) {
46957
47100
  jodit.e.on('processPaste.link', this.onProcessPasteLink);
46958
47101
  }
47102
+ if (jodit.o.link.processTypedLink) {
47103
+ this.__linkAfterEnter = jodit.async.microDebounce(this.__linkTyped);
47104
+ jodit.e.on('input.link', this.__onTypedSpace).on('beforeEnter.link', this.__onBeforeEnter).on('afterEnter.link', this.__onAfterEnter).on('mousedown.link blur.link beforeCommand.link', this.__forgetLink)// Without a namespace it runs ahead of table navigation,
47105
+ // which moves the caret on Tab, and of the backspace plugin
47106
+ .on('keydown', this.__onKeyDown, {
47107
+ top: true
47108
+ });
47109
+ }
46959
47110
  jodit.e.on('generateLinkForm.link', this.__generateForm);
46960
47111
  jodit.registerCommand('openLinkDialog', {
46961
47112
  exec: ()=>{
@@ -46969,7 +47120,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46969
47120
  dialog.setContent(htmlForm);
46970
47121
  dialog.open();
46971
47122
  jodit.async.requestIdleCallback(()=>{
46972
- const { url_input } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.refs)(htmlForm.container);
47123
+ const { url_input } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.refs)(htmlForm.container);
46973
47124
  url_input === null || url_input === void 0 ? void 0 : url_input.focus();
46974
47125
  });
46975
47126
  },
@@ -46977,10 +47128,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46977
47128
  });
46978
47129
  }
46979
47130
  __onDblClickOnLink(e) {
46980
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'a')) {
47131
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(e.target, 'a')) {
46981
47132
  return;
46982
47133
  }
46983
- const href = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(e.target, 'href');
47134
+ const href = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(e.target, 'href');
46984
47135
  if (href) {
46985
47136
  location.href = href;
46986
47137
  e.preventDefault();
@@ -46989,23 +47140,23 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46989
47140
  onProcessPasteLink(ignore, html) {
46990
47141
  var _a, _b, _c, _d;
46991
47142
  const { jodit } = this;
46992
- if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
47143
+ if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isURL)(html) || !jodit.o.link.processPastedLink) {
46993
47144
  return;
46994
47145
  }
46995
47146
  jodit.e.stopPropagation('processPaste');
46996
47147
  if (jodit.o.link.processVideoLink) {
46997
- const embed = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.call)((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.parseUrlToVideoEmbed) !== null && _b !== void 0 ? _b : _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.convertMediaUrlToVideoEmbed, html, {
47148
+ const embed = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.call)((_b = (_a = jodit.o.video) === null || _a === void 0 ? void 0 : _a.parseUrlToVideoEmbed) !== null && _b !== void 0 ? _b : _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.convertMediaUrlToVideoEmbed, html, {
46998
47149
  width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
46999
47150
  height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
47000
47151
  });
47001
47152
  if (embed !== html) {
47002
- const media = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.prepareEmbedCode)(jodit, embed);
47003
- return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(media) ? jodit.createInside.fromHTML(media) : media;
47153
+ const media = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.prepareEmbedCode)(jodit, embed);
47154
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(media) ? jodit.createInside.fromHTML(media) : media;
47004
47155
  }
47005
47156
  }
47006
47157
  if (jodit.s.isCollapsed()) {
47007
47158
  const a = jodit.createInside.element('a');
47008
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', html);
47159
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', html);
47009
47160
  a.textContent = html;
47010
47161
  jodit.e.fire('applyLink', jodit, a, null);
47011
47162
  return a;
@@ -47023,16 +47174,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47023
47174
  const i18n = jodit.i18n.bind(jodit);
47024
47175
  const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName } = jodit.o.link;
47025
47176
  const html = formTemplate(jodit);
47026
- const form = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(html) ? jodit.c.fromHTML(html, {
47177
+ const form = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) ? jodit.c.fromHTML(html, {
47027
47178
  target_checkbox_box: openInNewTabCheckbox,
47028
47179
  nofollow_checkbox_box: noFollowCheckbox
47029
47180
  }) : html;
47030
- const htmlForm = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(form) ? form : form.container;
47031
- const elements = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.refs)(htmlForm);
47181
+ const htmlForm = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(form) ? form : form.container;
47182
+ const elements = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.refs)(htmlForm);
47032
47183
  const { insert, unlink, content_input_box } = elements;
47033
47184
  const { target_checkbox, nofollow_checkbox, url_input } = elements;
47034
47185
  const currentElement = current;
47035
- const isImageContent = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isImage(currentElement);
47186
+ const isImageContent = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isImage(currentElement);
47036
47187
  let { content_input } = elements;
47037
47188
  const { className_input } = elements, { className_select } = elements, { aria_label_input } = elements;
47038
47189
  if (!content_input) {
@@ -47045,12 +47196,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47045
47196
  htmlForm.classList.add(formClassName);
47046
47197
  }
47047
47198
  if (isImageContent) {
47048
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.hide(content_input_box);
47199
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.hide(content_input_box);
47049
47200
  }
47050
47201
  let link;
47051
- const getSelectionText = ()=>link ? link.innerText : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.stripTags)(jodit.s.range.cloneContents(), jodit.ed);
47052
- if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(current, 'a', jodit.editor)) {
47053
- link = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(current, 'a', jodit.editor);
47202
+ const getSelectionText = ()=>link ? link.innerText : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.stripTags)(jodit.s.range.cloneContents(), jodit.ed);
47203
+ if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, 'a', jodit.editor)) {
47204
+ link = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, 'a', jodit.editor);
47054
47205
  } else {
47055
47206
  link = false;
47056
47207
  }
@@ -47058,22 +47209,22 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47058
47209
  content_input.value = getSelectionText();
47059
47210
  }
47060
47211
  if (aria_label_input) {
47061
- aria_label_input.value = link ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'aria-label') || '' : '';
47212
+ aria_label_input.value = link ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'aria-label') || '' : '';
47062
47213
  }
47063
47214
  if (link) {
47064
- url_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
47215
+ url_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href') || '';
47065
47216
  if (modeClassName) {
47066
47217
  readClassnames(modeClassName, className_input, link, className_select);
47067
47218
  }
47068
47219
  if (openInNewTabCheckbox && target_checkbox) {
47069
- target_checkbox.checked = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
47220
+ target_checkbox.checked = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'target') === '_blank';
47070
47221
  }
47071
47222
  if (noFollowCheckbox && nofollow_checkbox) {
47072
- nofollow_checkbox.checked = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
47223
+ nofollow_checkbox.checked = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
47073
47224
  }
47074
47225
  insert.textContent = i18n('Update');
47075
47226
  } else {
47076
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.hide(unlink);
47227
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.hide(unlink);
47077
47228
  if (jodit.o.link.deriveUrlFromText && url_input && !isImageContent && !url_input.value.trim()) {
47078
47229
  url_input.value = guessUrlFromText(content_input.value);
47079
47230
  }
@@ -47088,7 +47239,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47088
47239
  jodit.s.restore();
47089
47240
  jodit.history.snapshot.restore(snapshot);
47090
47241
  if (link) {
47091
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(link);
47242
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(link);
47092
47243
  }
47093
47244
  jodit.synchronizeValues();
47094
47245
  close();
@@ -47109,12 +47260,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47109
47260
  const textWasChanged = getSelectionText() !== content_input.value.trim();
47110
47261
  const ci = jodit.createInside;
47111
47262
  let caretAfter = null;
47112
- if (!link || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(jodit.editor, link)) {
47263
+ if (!link || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(jodit.editor, link)) {
47113
47264
  if (!jodit.s.isCollapsed()) {
47114
47265
  const node = jodit.s.current();
47115
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'img')) {
47266
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'img')) {
47116
47267
  links = [
47117
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.wrap(node, 'a', ci)
47268
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.wrap(node, 'a', ci)
47118
47269
  ];
47119
47270
  } else {
47120
47271
  links = jodit.s.wrapInTag('a');
@@ -47134,27 +47285,27 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47134
47285
  ];
47135
47286
  }
47136
47287
  links.forEach((a)=>{
47137
- ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
47288
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', url_input.value);
47138
47289
  writeClasses(modeClassName, className_input, className_select, a);
47139
47290
  if (!isImageContent) {
47140
47291
  writeImage(a, content_input, textWasChanged, url_input);
47141
47292
  }
47142
47293
  if (openInNewTabCheckbox && target_checkbox) {
47143
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
47294
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
47144
47295
  }
47145
47296
  if (noFollowCheckbox && nofollow_checkbox) {
47146
- const relParts = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'rel') || '').split(/\s+/).filter(Boolean);
47297
+ const relParts = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'rel') || '').split(/\s+/).filter(Boolean);
47147
47298
  const hasNofollow = relParts.includes('nofollow');
47148
47299
  if (nofollow_checkbox.checked && !hasNofollow) {
47149
47300
  relParts.push('nofollow');
47150
47301
  } else if (!nofollow_checkbox.checked && hasNofollow) {
47151
47302
  relParts.splice(relParts.indexOf('nofollow'), 1);
47152
47303
  }
47153
- ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'rel', relParts.length ? relParts.join(' ') : null);
47304
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'rel', relParts.length ? relParts.join(' ') : null);
47154
47305
  }
47155
47306
  if (aria_label_input) {
47156
47307
  const ariaLabel = aria_label_input.value.trim();
47157
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'aria-label', ariaLabel || null);
47308
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'aria-label', ariaLabel || null);
47158
47309
  }
47159
47310
  jodit.e.fire('applyLink', jodit, a, form);
47160
47311
  });
@@ -47169,7 +47320,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47169
47320
  close();
47170
47321
  return false;
47171
47322
  };
47172
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(form)) {
47323
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(form)) {
47173
47324
  jodit.e.on(form, 'submit', (event)=>{
47174
47325
  event.preventDefault();
47175
47326
  event.stopImmediatePropagation();
@@ -47182,11 +47333,96 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47182
47333
  return form;
47183
47334
  }
47184
47335
  /** @override */ beforeDestruct(jodit) {
47185
- jodit.e.off('generateLinkForm.link', this.__generateForm).off('dblclick.link', this.__onDblClickOnLink).off(jodit.editor, 'click.link', this.__onClickReadOnlyLink).off('processPaste.link', this.onProcessPasteLink);
47336
+ jodit.e.off('generateLinkForm.link', this.__generateForm).off('dblclick.link', this.__onDblClickOnLink).off(jodit.editor, 'click.link', this.__onClickReadOnlyLink).off('processPaste.link', this.onProcessPasteLink).off('input.link', this.__onTypedSpace).off('beforeEnter.link', this.__onBeforeEnter).off('afterEnter.link', this.__onAfterEnter).off('mousedown.link blur.link beforeCommand.link', this.__forgetLink).off('keydown', this.__onKeyDown);
47337
+ }
47338
+ __onTypedSpace(event) {
47339
+ if (event.inputType !== 'insertText' || !event.data || /\S/.test(event.data)) {
47340
+ return;
47341
+ }
47342
+ const { range } = this.j.s;
47343
+ if (range.collapsed) {
47344
+ this.__linkTyped(range.startContainer, range.startOffset - event.data.length);
47345
+ }
47346
+ }
47347
+ __onBeforeEnter() {
47348
+ const { range } = this.j.s;
47349
+ this.__enteredAt = range.collapsed ? [
47350
+ range.startContainer,
47351
+ range.startOffset
47352
+ ] : null;
47353
+ }
47354
+ __onAfterEnter() {
47355
+ if (this.__enteredAt) {
47356
+ this.__linkAfterEnter(...this.__enteredAt);
47357
+ this.__enteredAt = null;
47358
+ }
47359
+ }
47360
+ __forgetLink() {
47361
+ this.__justLinked = null;
47362
+ }
47363
+ __onKeyDown(event) {
47364
+ const { jodit } = this;
47365
+ if (jodit.o.readonly) {
47366
+ return;
47367
+ }
47368
+ const link = this.__justLinked;
47369
+ const modified = event.ctrlKey || event.metaKey || event.altKey;
47370
+ if (!MODIFIER_KEYS.has(event.key)) {
47371
+ this.__justLinked = null;
47372
+ }
47373
+ if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE && !modified && (link === null || link === void 0 ? void 0 : link.isConnected)) {
47374
+ this.__recordStep();
47375
+ jodit.s.save();
47376
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(link);
47377
+ jodit.s.restore();
47378
+ this.__recordStep();
47379
+ // Or the backspace plugin takes a character too
47380
+ jodit.e.stopPropagation('keydown');
47381
+ return false;
47382
+ }
47383
+ const { range } = jodit.s;
47384
+ if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && !modified && range.collapsed) {
47385
+ this.__linkTyped(range.startContainer, range.startOffset);
47386
+ }
47387
+ }
47388
+ /**
47389
+ * Links the address that ends at `end` in a text node, as a step of its
47390
+ * own in the history, so Undo straight after takes the link off and
47391
+ * leaves the text
47392
+ */ __linkTyped(node, end) {
47393
+ const { jodit } = this;
47394
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(node) || !node.isConnected || end < 0 || end > node.length || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, NO_TYPED_LINKS, jodit.editor)) {
47395
+ return;
47396
+ }
47397
+ const found = (0,_typed_link_js__WEBPACK_IMPORTED_MODULE_7__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
47398
+ if (!found) {
47399
+ return;
47400
+ }
47401
+ const [start, stop, href] = found;
47402
+ this.__recordStep();
47403
+ // The text round the caret splits, and WebKit doesn't keep the caret
47404
+ // where it was
47405
+ jodit.s.save();
47406
+ const range = jodit.ed.createRange();
47407
+ range.setStart(node, start);
47408
+ range.setEnd(node, stop);
47409
+ const a = jodit.createInside.element('a');
47410
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', href);
47411
+ range.surroundContents(a);
47412
+ jodit.s.restore();
47413
+ jodit.e.fire('applyLink', jodit, a, null);
47414
+ this.__recordStep();
47415
+ this.__justLinked = a;
47416
+ }
47417
+ /**
47418
+ * Reports what's changed and makes it a history step of its own
47419
+ */ __recordStep() {
47420
+ this.j.setEditorValue();
47421
+ this.j.e.fire('internalChange');
47186
47422
  }
47187
47423
  __onClickReadOnlyLink(e) {
47188
47424
  const { jodit } = this;
47189
- if (jodit.o.readonly && jodit.o.link.preventReadOnlyNavigation && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'a')) {
47425
+ if (jodit.o.readonly && jodit.o.link.preventReadOnlyNavigation && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(e.target, 'a')) {
47190
47426
  e.preventDefault();
47191
47427
  }
47192
47428
  }
@@ -47198,21 +47434,61 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47198
47434
  group: 'insert'
47199
47435
  }
47200
47436
  ];
47437
+ /**
47438
+ * Where the caret was when Enter was pressed. Enter splits the line in a
47439
+ * history transaction, so the link waits until it's over
47440
+ */ this.__enteredAt = null;
47441
+ this.__linkAfterEnter = ()=>{};
47442
+ /**
47443
+ * The link just made, which Backspace straight after takes off again, as
47444
+ * in CKEditor 5. Any other key but a modifier, a click or a command
47445
+ * forgets it
47446
+ */ this.__justLinked = null;
47201
47447
  }
47202
47448
  }
47203
47449
  __decorate([
47204
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
47450
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47205
47451
  ], link.prototype, "__onDblClickOnLink", null);
47206
47452
  __decorate([
47207
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
47453
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47208
47454
  ], link.prototype, "onProcessPasteLink", null);
47209
47455
  __decorate([
47210
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
47456
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47211
47457
  ], link.prototype, "__generateForm", null);
47212
47458
  __decorate([
47213
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
47459
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47460
+ ], link.prototype, "__onTypedSpace", null);
47461
+ __decorate([
47462
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47463
+ ], link.prototype, "__onBeforeEnter", null);
47464
+ __decorate([
47465
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47466
+ ], link.prototype, "__onAfterEnter", null);
47467
+ __decorate([
47468
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47469
+ ], link.prototype, "__forgetLink", null);
47470
+ __decorate([
47471
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47472
+ ], link.prototype, "__onKeyDown", null);
47473
+ __decorate([
47474
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47475
+ ], link.prototype, "__linkTyped", null);
47476
+ __decorate([
47477
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47214
47478
  ], link.prototype, "__onClickReadOnlyLink", null);
47215
- _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('link', link);
47479
+ const NO_TYPED_LINKS = new Set([
47480
+ 'a',
47481
+ 'pre',
47482
+ 'code'
47483
+ ]);
47484
+ const MODIFIER_KEYS = new Set([
47485
+ 'Shift',
47486
+ 'Control',
47487
+ 'Alt',
47488
+ 'Meta',
47489
+ 'CapsLock'
47490
+ ]);
47491
+ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
47216
47492
  /**
47217
47493
  * Guess a usable `href` from the selected text for the link dialog.
47218
47494
  * Returns an empty string when the text is not a plausible URL/email,
@@ -47227,7 +47503,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('link', link);
47227
47503
  return value;
47228
47504
  }
47229
47505
  // email address -> mailto:
47230
- if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) {
47506
+ if (_typed_link_js__WEBPACK_IMPORTED_MODULE_7__.EMAIL.test(value)) {
47231
47507
  return `mailto:${value}`;
47232
47508
  }
47233
47509
  // bare domain like example.com or www.example.com/path -> https://
@@ -47241,14 +47517,14 @@ function writeClasses(modeClassName, className_input, className_select, a) {
47241
47517
  if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
47242
47518
  if (modeClassName === 'input') {
47243
47519
  if (className_input.value === '' && a.hasAttribute('class')) {
47244
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
47520
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', null);
47245
47521
  }
47246
47522
  if (className_input.value !== '') {
47247
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
47523
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', className_input.value);
47248
47524
  }
47249
47525
  } else if (modeClassName === 'select') {
47250
47526
  if (a.hasAttribute('class')) {
47251
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
47527
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', null);
47252
47528
  }
47253
47529
  for(let i = 0; i < className_select.selectedOptions.length; i++){
47254
47530
  const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
@@ -47265,7 +47541,7 @@ function readClassnames(modeClassName, className_input, link, className_select)
47265
47541
  switch(modeClassName){
47266
47542
  case 'input':
47267
47543
  if (className_input) {
47268
- className_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
47544
+ className_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'class') || '';
47269
47545
  }
47270
47546
  break;
47271
47547
  case 'select':
@@ -47276,7 +47552,7 @@ function readClassnames(modeClassName, className_input, link, className_select)
47276
47552
  option.selected = false;
47277
47553
  }
47278
47554
  }
47279
- const classNames = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
47555
+ const classNames = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'class') || '';
47280
47556
  classNames.split(/\s+/).filter((cn)=>cn.trim().length > 0).forEach((className)=>{
47281
47557
  if (className) {
47282
47558
  for(let i = 0; i < className_select.options.length; i++){
@@ -47404,6 +47680,154 @@ const formTemplate = (editor)=>{
47404
47680
  /* harmony export */ ]);
47405
47681
 
47406
47682
 
47683
+ /***/ }),
47684
+
47685
+ /***/ 67272:
47686
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
47687
+
47688
+ /*!
47689
+ * Jodit Editor (https://xdsoft.net/jodit/)
47690
+ * Released under MIT see LICENSE.txt in the project root for license information.
47691
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
47692
+ */ /**
47693
+ * @module plugins/link
47694
+ */ /**
47695
+ * The endings a bare domain links with, besides those `link.typedLinkTlds`
47696
+ * adds: the generic ones of at least 1 in 1,000 of the sites in Tranco's top
47697
+ * million (list GQ38K, https://tranco-list.eu/list/GQ38K), then every
47698
+ * two-letter one in IANA's list (version 2026102900,
47699
+ * https://data.iana.org/TLD/tlds-alpha-by-domain.txt). Together they're the
47700
+ * endings of 96% of those sites
47701
+ * @private
47702
+ */ const TLDS = new Set(`
47703
+ app biz casino click cloud club com dev edu gov info live net online org pro
47704
+ shop site space store tech top vip xyz
47705
+ ac ad ae af ag ai al am ao aq ar as at au aw ax az ba bb bd be bf bg bh bi
47706
+ bj bm bn bo br bs bt bv bw by bz ca cc cd cf cg ch ci ck cl cm cn co cr cu
47707
+ cv cw cx cy cz de dj dk dm do dz ec ee eg er es et eu fi fj fk fm fo fr ga
47708
+ gb gd ge gf gg gh gi gl gm gn gp gq gr gs gt gu gw gy hk hm hn hr ht hu id
47709
+ ie il im in io iq ir is it je jm jo jp ke kg kh ki km kn kp kr kw ky kz la
47710
+ lb lc li lk lr ls lt lu lv ly ma mc md me mg mh mk ml mm mn mo mp mq mr ms
47711
+ mt mu mv mw mx my mz na nc ne nf ng ni nl no np nr nu nz om pa pe pf pg ph
47712
+ pk pl pm pn pr ps pt pw py qa re ro rs ru rw sa sb sc sd se sg sh si sj sk
47713
+ sl sm sn so sr ss st su sv sx sy sz tc td tf tg th tj tk tl tm tn to tr tt
47714
+ tv tw tz ua ug uk us uy uz va vc ve vg vi vn vu wf ws ye yt za zm zw
47715
+ `.trim().split(/\s+/));
47716
+
47717
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
47718
+ /* harmony export */ "TLDS", 0, /* binding */ TLDS
47719
+ /* harmony export */ ]);
47720
+
47721
+
47722
+ /***/ }),
47723
+
47724
+ /***/ 58970:
47725
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
47726
+
47727
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47728
+ /* harmony export */ findTypedLink: function() { return /* binding */ findTypedLink; }
47729
+ /* harmony export */ });
47730
+ /* harmony import */ var _core_helpers_checker_is_url_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26049);
47731
+ /* harmony import */ var _tlds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67272);
47732
+ /*!
47733
+ * Jodit Editor (https://xdsoft.net/jodit/)
47734
+ * Released under MIT see LICENSE.txt in the project root for license information.
47735
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
47736
+ */ /**
47737
+ * @module plugins/link
47738
+ */
47739
+
47740
+ /**
47741
+ * An email address, for `mailto:`
47742
+ * @private
47743
+ */ const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
47744
+ const OPENING = new Set([
47745
+ '(',
47746
+ '[',
47747
+ '"',
47748
+ "'",
47749
+ '“',
47750
+ '‘',
47751
+ '<'
47752
+ ]);
47753
+ const CLOSING = new Set([
47754
+ '.',
47755
+ ',',
47756
+ ';',
47757
+ ':',
47758
+ '!',
47759
+ '?',
47760
+ '"',
47761
+ "'",
47762
+ '”',
47763
+ '’',
47764
+ '>'
47765
+ ]);
47766
+ const BRACKETS = {
47767
+ ')': '(',
47768
+ ']': '['
47769
+ };
47770
+ const LABEL = /^[a-z\d][a-z\d-]{0,62}$/i;
47771
+ /**
47772
+ * The address that ends at `end` in a line of text typed, back to the
47773
+ * whitespace before it, as `[start, end, href]`. Punctuation round it, such as
47774
+ * a sentence's full stop or a bracket the address doesn't open, stays out.
47775
+ * An address counts with a scheme, with `www.`, as an email address, or as a
47776
+ * bare domain that `isBareDomain` accepts, so `Node.js` or `e.g.` don't
47777
+ * @private
47778
+ */ function findTypedLink(text, end, tlds, fileEndings) {
47779
+ let start = end;
47780
+ while(start > 0 && !/\s/.test(text[start - 1])){
47781
+ start -= 1;
47782
+ }
47783
+ while(start < end && OPENING.has(text[start])){
47784
+ start += 1;
47785
+ }
47786
+ while(end > start){
47787
+ const char = text[end - 1];
47788
+ const opening = BRACKETS[char];
47789
+ if (CLOSING.has(char) || opening && !text.slice(start, end - 1).includes(opening)) {
47790
+ end -= 1;
47791
+ } else {
47792
+ break;
47793
+ }
47794
+ }
47795
+ const href = typedLinkHref(text.slice(start, end), tlds, fileEndings);
47796
+ return href ? [
47797
+ start,
47798
+ end,
47799
+ href
47800
+ ] : null;
47801
+ }
47802
+ function typedLinkHref(address, tlds, fileEndings) {
47803
+ const email = address.replace(/^mailto:/i, '');
47804
+ if (EMAIL.test(email)) {
47805
+ return `mailto:${email}`;
47806
+ }
47807
+ if (/^www\.[^\s.]+\.\S+$/i.test(address) || isBareDomain(address, tlds, fileEndings)) {
47808
+ return `https://${address}`;
47809
+ }
47810
+ return /^[a-z][a-z\d+.-]*:\/\//i.test(address) && (0,_core_helpers_checker_is_url_js__WEBPACK_IMPORTED_MODULE_0__.isURL)(address) ? address : '';
47811
+ }
47812
+ /**
47813
+ * A domain typed without a scheme or `www.`, as `example.com`, `elections.nz`
47814
+ * or `bit.ly/enrol`. Its ending has to be in `TLDS` or `tlds`, typed in lower
47815
+ * case, so `Node.js` and a sentence run on, as in `home.It`, don't count, and
47816
+ * not in `fileEndings`, as in `photos.zip`. The first part has a letter,
47817
+ * which leaves out a time or a numbered step such as `11.am`
47818
+ */ function isBareDomain(address, tlds, fileEndings) {
47819
+ const cut = address.search(/[/?#]/);
47820
+ const host = cut < 0 ? address : address.slice(0, cut);
47821
+ const labels = host.split('.');
47822
+ const ending = labels[labels.length - 1];
47823
+ return labels.length > 1 && labels.every((label)=>LABEL.test(label) && !label.endsWith('-')) && (_tlds_js__WEBPACK_IMPORTED_MODULE_1__.TLDS.has(ending) || tlds.includes(ending)) && !fileEndings.includes(ending) && /[a-z]/i.test(labels[0]);
47824
+ }
47825
+
47826
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
47827
+ /* harmony export */ "EMAIL", 0, /* binding */ EMAIL
47828
+ /* harmony export */ ]);
47829
+
47830
+
47407
47831
  /***/ }),
47408
47832
 
47409
47833
  /***/ 757:
@@ -49424,7 +49848,7 @@ const key = 'table_processor_observer-resize';
49424
49848
  /**
49425
49849
  * Click on resize handle
49426
49850
  */ onHandleMouseDown(event) {
49427
- if (this.j.isLocked) {
49851
+ if (this.j.isLocked || this.j.o.readonly) {
49428
49852
  return;
49429
49853
  }
49430
49854
  this.drag = true;
@@ -49459,10 +49883,15 @@ const key = 'table_processor_observer-resize';
49459
49883
  let box;
49460
49884
  this.minX = 0;
49461
49885
  this.maxX = 1000000;
49886
+ this.startTableWidth = this.workTable.offsetWidth;
49462
49887
  if (this.wholeTable != null) {
49463
- const tableBox = this.workTable.parentNode.getBoundingClientRect();
49888
+ const parent = this.workTable.parentNode;
49889
+ const tableBox = parent.getBoundingClientRect();
49464
49890
  this.minX = tableBox.left;
49465
49891
  this.maxX = this.minX + tableBox.width;
49892
+ const side = this.isRTL ? 'marginRight' : 'marginLeft';
49893
+ this.startParentWidth = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getContentWidth)(parent, this.j.ew);
49894
+ this.startMargin = parseInt(this.j.ew.getComputedStyle(this.workTable)[side] || '0', 10);
49466
49895
  } else {
49467
49896
  // find maximum columns
49468
49897
  const coordinate = this.module.formalCoordinate(this.workTable, this.workCell, true);
@@ -49476,6 +49905,17 @@ const key = 'table_processor_observer-resize';
49476
49905
  this.maxX = Math.min(box.left + box.width - _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NEARBY / 2, this.maxX);
49477
49906
  }
49478
49907
  });
49908
+ const matrix = this.module.formalMatrix(this.workTable);
49909
+ this.startWidths = this.resizedColumns().map((column)=>{
49910
+ const cells = matrix.map((row)=>row[column]);
49911
+ const index = cells.findIndex((td)=>td.colSpan === 1 || cells.length === 1);
49912
+ const cell = cells[index];
49913
+ return [
49914
+ cell,
49915
+ cell ? cell.offsetWidth : 0,
49916
+ cells.slice(Math.max(index, 0) + 1)
49917
+ ];
49918
+ });
49479
49919
  }
49480
49920
  return false;
49481
49921
  }
@@ -49504,8 +49944,11 @@ const key = 'table_processor_observer-resize';
49504
49944
  x = this.maxX;
49505
49945
  }
49506
49946
  this.resizeDelta = x - this.startX + (!this.j.o.iframe ? 0 : workplacePosition.left);
49507
- this.restoreStyles();
49508
- this.resizeColumnsOrTable();
49947
+ if (this.wholeTable == null) {
49948
+ this.setColumnWidths();
49949
+ } else {
49950
+ this.resizeTable();
49951
+ }
49509
49952
  const tableBox = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.offset)(this.workTable, this.j, this.j.ed);
49510
49953
  Object.assign(this.resizeHandler.style, {
49511
49954
  left: this.startLeft + this.columnEdge() - this.startEdge + 'px',
@@ -49618,21 +50061,49 @@ const key = 'table_processor_observer-resize';
49618
50061
  };
49619
50062
  this.scrollFrame = this.j.async.requestAnimationFrame(scroll);
49620
50063
  }
50064
+ /**
50065
+ * The two columns a column drag resizes: the work cell's last, and the
50066
+ * next cell's first
50067
+ */ resizedColumns() {
50068
+ 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);
50069
+ return [
50070
+ this.module.formalCoordinate(this.workTable, this.workCell, true)[1],
50071
+ this.module.formalCoordinate(this.workTable, nextTD)[1]
50072
+ ];
50073
+ }
49621
50074
  /**
49622
50075
  * Resize only one column
49623
50076
  */ resizeColumns() {
49624
50077
  const delta = this.resizeDelta;
49625
50078
  const marked = [];
49626
50079
  const tableModule = this.module;
49627
- tableModule.setColumnWidthByDelta(this.workTable, tableModule.formalCoordinate(this.workTable, this.workCell, true)[1], delta, true, marked);
49628
- 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);
49629
- tableModule.setColumnWidthByDelta(this.workTable, tableModule.formalCoordinate(this.workTable, nextTD)[1], -delta, false, marked);
50080
+ const [column, nextColumn] = this.resizedColumns();
50081
+ tableModule.setColumnWidthByDelta(this.workTable, column, delta, true, marked);
50082
+ tableModule.setColumnWidthByDelta(this.workTable, nextColumn, -delta, false, marked);
50083
+ }
50084
+ /**
50085
+ * Sets the widths `resizeColumns` would while the handle is dragged, from
50086
+ * the widths the drag started with, so that a move doesn't put back every
50087
+ * cell's style and lay the table out again to measure them
50088
+ */ setColumnWidths() {
50089
+ this.startWidths.forEach(([cell, width, below], index)=>{
50090
+ const delta = index ? -this.resizeDelta : this.resizeDelta;
50091
+ if (cell) {
50092
+ (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) + '%');
50093
+ }
50094
+ below.forEach((td)=>{
50095
+ td.style.removeProperty('width');
50096
+ if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(td, 'style')) {
50097
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(td, 'style', null);
50098
+ }
50099
+ });
50100
+ });
49630
50101
  }
49631
50102
  /**
49632
50103
  * Resize whole table
49633
50104
  */ resizeTable() {
49634
50105
  const delta = this.resizeDelta * (this.isRTL ? -1 : 1);
49635
- const width = this.workTable.offsetWidth, parentWidth = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getContentWidth)(this.workTable.parentNode, this.j.ew);
50106
+ const width = this.startTableWidth, parentWidth = this.startParentWidth;
49636
50107
  // for RTL use mirror logic
49637
50108
  const rightSide = !this.wholeTable;
49638
50109
  const needChangeWidth = this.isRTL ? !rightSide : rightSide;
@@ -49641,10 +50112,9 @@ const key = 'table_processor_observer-resize';
49641
50112
  (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(this.workTable, 'width', (width + delta) / parentWidth * 100 + '%');
49642
50113
  } else {
49643
50114
  const side = this.isRTL ? 'marginRight' : 'marginLeft';
49644
- const margin = parseInt(this.j.ew.getComputedStyle(this.workTable)[side] || '0', 10);
49645
50115
  (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_5__.css)(this.workTable, {
49646
50116
  width: (width - delta) / parentWidth * 100 + '%',
49647
- [side]: (margin + delta) / parentWidth * 100 + '%'
50117
+ [side]: (this.startMargin + delta) / parentWidth * 100 + '%'
49648
50118
  });
49649
50119
  }
49650
50120
  }
@@ -49720,9 +50190,10 @@ const key = 'table_processor_observer-resize';
49720
50190
  if (!editor.o.tableAllowCellResize) {
49721
50191
  return;
49722
50192
  }
49723
- editor.e.off(this.j.ow, '.resize-cells').off('.resize-cells').on('change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells', ()=>{
50193
+ const observeTables = ()=>{
49724
50194
  ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', editor.editor).forEach(this.observe);
49725
- }).on(this.j.ow, 'scroll.resize-cells', ()=>{
50195
+ };
50196
+ 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', ()=>{
49726
50197
  if (!this.drag || this.workRow) {
49727
50198
  return;
49728
50199
  }
@@ -49738,6 +50209,8 @@ const key = 'table_processor_observer-resize';
49738
50209
  tableModule.normalizeTable(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(td, 'table', editor.editor));
49739
50210
  });
49740
50211
  });
50212
+ // None of those events comes with the editor's starting value
50213
+ observeTables();
49741
50214
  }
49742
50215
  /**
49743
50216
  * Add to every Table listeners
@@ -49751,7 +50224,9 @@ const key = 'table_processor_observer-resize';
49751
50224
  this.hideResizeHandle();
49752
50225
  }
49753
50226
  }).on(table, 'mousemove.resize-cells touchmove.resize-cells', this.j.async.throttle((event)=>{
49754
- if (this.j.isLocked) {
50227
+ // A drag from a cell isn't a resize, and the handle on
50228
+ // a border it passes would take its moves (#1778)
50229
+ if (this.j.isLocked || this.j.o.readonly || event.buttons) {
49755
50230
  return;
49756
50231
  }
49757
50232
  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);
@@ -49793,10 +50268,21 @@ const key = 'table_processor_observer-resize';
49793
50268
  this.startX = 0;
49794
50269
  /**
49795
50270
  * The table's and its cells' styles as a column drag started, put back
49796
- * before each new width
50271
+ * as it ends, before the final widths
49797
50272
  */ this.startStyles = [];
49798
50273
  this.startLeft = 0;
49799
50274
  this.startEdge = 0;
50275
+ /**
50276
+ * For each of the two columns a drag resizes, the cell whose width
50277
+ * `setColumnWidthByDelta` sets, with its width as the drag started, and
50278
+ * the cells below it, whose widths it clears
50279
+ */ this.startWidths = [];
50280
+ /**
50281
+ * The table's width as the drag started, and for a drag of its edge, the
50282
+ * width inside what holds it and its margin on that side
50283
+ */ this.startTableWidth = 0;
50284
+ this.startParentWidth = 0;
50285
+ this.startMargin = 0;
49800
50286
  /**
49801
50287
  * The row whose height the handle sets, or null while it sets a width
49802
50288
  */ this.workRow = null;
@@ -51571,7 +52057,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.tableAllowCellSelection
51571
52057
 
51572
52058
 
51573
52059
  const key = 'table_processor_observer';
51574
- const MOUSE_MOVE_LABEL = 'onMoveTableSelectCell';
51575
52060
  class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
51576
52061
  /**
51577
52062
  * Shortcut for Jodit.modules.Table
@@ -51586,6 +52071,8 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51586
52071
  // move the caret, as table-keyboard-navigation's do
51587
52072
  .on('keydown', this.__onKeyDown, {
51588
52073
  top: true
52074
+ }).on('clickEditor', this.__onClickAfterDrag, {
52075
+ top: true
51589
52076
  }).on('keydown.select-cells', (event)=>{
51590
52077
  if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB) {
51591
52078
  this.unselectCells();
@@ -51705,18 +52192,36 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51705
52192
  }
51706
52193
  this.__isSelectionMode = true;
51707
52194
  this.__selectedCell = cell;
52195
+ this.__movedTo = cell;
51708
52196
  this.__tableModule.addSelection(cell);
51709
- this.j.e.on(table, 'mousemove.select-cells touchmove.select-cells', // Don't use decorator because need clear label on mouseup
51710
- this.j.async.throttle(this.__onMove.bind(this, table), {
51711
- label: MOUSE_MOVE_LABEL,
51712
- timeout: this.j.defaultTimeout / 2
51713
- })).on(table, 'mouseup.select-cells touchend.select-cells', this.__onStopSelection.bind(this, table));
52197
+ 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));
52198
+ new Set([
52199
+ this.j.ew,
52200
+ this.j.ow
52201
+ ]).forEach((win)=>this.j.e.on(win, 'mouseup.select-cells touchend.select-cells', this.__onRelease.bind(this, table)));
51714
52202
  return false;
51715
52203
  }
51716
52204
  onOutsideClick() {
51717
52205
  this.__selectedCell = null;
51718
52206
  this.__onRemoveSelection();
51719
52207
  }
52208
+ onMouseDown() {
52209
+ this.__keepMarks = false;
52210
+ }
52211
+ /**
52212
+ * The click that ends a drag let go outside the table, and inside the
52213
+ * editor, lands on the editor. Taken on, it would unmark the cells and
52214
+ * close their popup. As for the click on a row after a drag over the
52215
+ * cells, the browser's own selection from the drag goes
52216
+ */ __onClickAfterDrag() {
52217
+ var _a;
52218
+ if (this.__keepMarks) {
52219
+ this.__keepMarks = false;
52220
+ (_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
52221
+ this.j.e.stopPropagation('clickEditor');
52222
+ return false;
52223
+ }
52224
+ }
51720
52225
  onChange() {
51721
52226
  if (!this.j.isLocked && !this.__isSelectionMode) {
51722
52227
  this.__onRemoveSelection();
@@ -51735,16 +52240,20 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51735
52240
  // Inside Shadow DOM `document.elementFromPoint` returns the shadow
51736
52241
  // host, so the lookup must start from the shadow root
51737
52242
  const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
51738
- if (!node) {
51739
- return;
51740
- }
51741
- const cell = _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
52243
+ const cell = node && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(node, [
51742
52244
  'td',
51743
52245
  'th'
51744
52246
  ], table);
51745
52247
  if (!cell || !this.__selectedCell) {
51746
52248
  return;
51747
52249
  }
52250
+ // The marks change only when the mouse goes into another cell, and then
52251
+ // at once rather than throttled, as the browser's own selection from
52252
+ // the drag shows in the cells between until they do (#1778)
52253
+ if (cell === this.__movedTo) {
52254
+ return;
52255
+ }
52256
+ this.__movedTo = cell;
51748
52257
  if (cell !== this.__selectedCell) {
51749
52258
  this.j.lock(key);
51750
52259
  }
@@ -51781,7 +52290,7 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51781
52290
  /**
51782
52291
  * Stop a selection process
51783
52292
  */ __onStopSelection(table, e) {
51784
- var _a, _b, _c;
52293
+ var _a;
51785
52294
  if (!this.__selectedCell) {
51786
52295
  return;
51787
52296
  }
@@ -51804,11 +52313,34 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51804
52313
  if (ownTable && ownTable !== table) {
51805
52314
  return; // Nested tables
51806
52315
  }
51807
- const bound = this.__tableModule.getSelectedBound(table, [
52316
+ this.__showCellsPopup(table, [
51808
52317
  cell,
51809
52318
  this.__selectedCell
51810
- ]), box = this.__tableModule.formalMatrix(table);
51811
- 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]];
52319
+ ]);
52320
+ this.__stopListening();
52321
+ }
52322
+ /**
52323
+ * A drag let go outside the table doesn't reach the table's `mouseup`, so
52324
+ * the window's ends it, leaving the cells marked as they were (#1774)
52325
+ */ __onRelease(table, e) {
52326
+ if (this.__isSelectionMode) {
52327
+ this.__isSelectionMode = false;
52328
+ if (!this.j.isLockedNotBy(key)) {
52329
+ this.j.unlock();
52330
+ }
52331
+ const cells = this.__tableModule.getAllSelectedCells();
52332
+ // One let go outside the editor clicks outside it, which unmarks them
52333
+ if (cells.length > 1 && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(this.j.editor, e.target)) {
52334
+ this.__keepMarks = true;
52335
+ this.__showCellsPopup(table, cells);
52336
+ }
52337
+ }
52338
+ this.__stopListening();
52339
+ }
52340
+ __showCellsPopup(table, cells) {
52341
+ var _a, _b;
52342
+ const bound = this.__tableModule.getSelectedBound(table, cells), box = this.__tableModule.formalMatrix(table);
52343
+ 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]];
51812
52344
  // `getSelectedBound` keeps its `Infinity` sentinel when none of the
51813
52345
  // selected cells belong to this table's matrix — e.g. after a
51814
52346
  // drag-and-drop that moved/removed the cells, leaving a stale anchor and
@@ -51827,10 +52359,16 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
51827
52359
  height: maxOffset.top - minOffset.top + maxOffset.height
51828
52360
  };
51829
52361
  }, 'cells');
51830
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
52362
+ }
52363
+ __stopListening() {
52364
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.$$)('table', this.j.editor).forEach((table)=>{
51831
52365
  this.j.e.off(table, 'mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells');
51832
52366
  });
51833
- this.j.async.clearTimeout(MOUSE_MOVE_LABEL);
52367
+ new Set([
52368
+ this.j.ew,
52369
+ this.j.ow
52370
+ ]).forEach((win)=>this.j.e.off(win, 'mouseup.select-cells touchend.select-cells'));
52371
+ this.__movedTo = null;
51834
52372
  }
51835
52373
  /**
51836
52374
  * Remove selection for all cells
@@ -52001,7 +52539,8 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52001
52539
  }
52002
52540
  /** @override */ beforeDestruct(jodit) {
52003
52541
  this.__onRemoveSelection();
52004
- jodit.e.off('.select-cells').off('keydown', this.__onKeyDown);
52542
+ this.__stopListening();
52543
+ jodit.e.off('.select-cells').off('keydown', this.__onKeyDown).off('clickEditor', this.__onClickAfterDrag);
52005
52544
  }
52006
52545
  constructor(){
52007
52546
  super(...arguments);
@@ -52018,6 +52557,13 @@ class selectCells extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plu
52018
52557
  /**
52019
52558
  * User is selecting cells now
52020
52559
  */ this.__isSelectionMode = false;
52560
+ /**
52561
+ * The cell the marks were last drawn to
52562
+ */ this.__movedTo = null;
52563
+ /**
52564
+ * A drag let go outside the table ends in a click on the editor, which
52565
+ * would unmark its cells
52566
+ */ this.__keepMarks = false;
52021
52567
  }
52022
52568
  }
52023
52569
  selectCells.requires = [
@@ -52035,6 +52581,15 @@ __decorate([
52035
52581
  __decorate([
52036
52582
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':outsideClick')
52037
52583
  ], selectCells.prototype, "onOutsideClick", null);
52584
+ __decorate([
52585
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
52586
+ ':mousedown',
52587
+ ':touchstart'
52588
+ ])
52589
+ ], selectCells.prototype, "onMouseDown", null);
52590
+ __decorate([
52591
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52592
+ ], selectCells.prototype, "__onClickAfterDrag", null);
52038
52593
  __decorate([
52039
52594
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
52040
52595
  ], selectCells.prototype, "onChange", null);
@@ -52082,10 +52637,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52082
52637
  /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
52083
52638
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
52084
52639
  /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
52085
- /* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87058);
52086
- /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
52087
- /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
52088
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67215);
52640
+ /* harmony import */ var _core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4510);
52641
+ /* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(87058);
52642
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50911);
52643
+ /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67510);
52644
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67215);
52089
52645
  /*!
52090
52646
  * Jodit Editor (https://xdsoft.net/jodit/)
52091
52647
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -52104,6 +52660,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52104
52660
 
52105
52661
 
52106
52662
 
52663
+
52107
52664
  /**
52108
52665
  * A utility plugin that allows you to subscribe to a click/mousedown/touchstart/mouseup on an element in DOM order
52109
52666
  *
@@ -52114,22 +52671,27 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52114
52671
  * console.log(img.src);
52115
52672
  * })
52116
52673
  * ```
52117
- */ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
52674
+ */ class select extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_6__.Plugin {
52118
52675
  afterInit(jodit) {
52119
52676
  this.proxyEventsList.forEach((eventName)=>{
52120
52677
  jodit.e.on(eventName + '.select', this.onStartSelection);
52121
52678
  });
52679
+ jodit.e.on('dblclick', this.__onDblClickBesideRow, {
52680
+ top: true
52681
+ });
52122
52682
  }
52123
52683
  beforeDestruct(jodit) {
52124
52684
  this.proxyEventsList.forEach((eventName)=>{
52125
- jodit.e.on(eventName + '.select', this.onStartSelection);
52685
+ jodit.e.off(eventName + '.select', this.onStartSelection);
52126
52686
  });
52687
+ this.__endPressBesideRow();
52688
+ jodit.e.off('dblclick', this.__onDblClickBesideRow);
52127
52689
  }
52128
52690
  onStartSelection(e) {
52129
52691
  const { j } = this;
52130
52692
  let result, target = e.target;
52131
52693
  while(result === undefined && target && target !== j.editor){
52132
- result = j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__.camelCase)(e.type + '_' + target.nodeName.toLowerCase()), target, e);
52694
+ result = j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_5__.camelCase)(e.type + '_' + target.nodeName.toLowerCase()), target, e);
52133
52695
  target = target.parentElement;
52134
52696
  }
52135
52697
  if (e.type === 'click' && result === undefined && target === j.editor) {
@@ -52149,10 +52711,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52149
52711
  }
52150
52712
  // Selecting the text of a popup input with the mouse and releasing
52151
52713
  // the button past the popup's edge is not a click outside of it.
52152
- if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.Popup)) {
52714
+ if (pressed && _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(pressed, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup)) {
52153
52715
  return;
52154
52716
  }
52155
- const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_6__.Popup);
52717
+ const box = _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(node, _core_ui_index_js__WEBPACK_IMPORTED_MODULE_7__.Popup);
52156
52718
  if (!box) {
52157
52719
  this.j.e.fire('outsideClick', e);
52158
52720
  }
@@ -52198,6 +52760,127 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52198
52760
  s.setCursorAfter(text);
52199
52761
  }
52200
52762
  }
52763
+ /**
52764
+ * The table row the mouse is to the right of
52765
+ */ __rowBeside(e) {
52766
+ var _a;
52767
+ const { j } = this;
52768
+ const target = e.target;
52769
+ 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)) {
52770
+ return null;
52771
+ }
52772
+ const table = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(target.children).find((elm)=>{
52773
+ if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(elm, 'table')) {
52774
+ return false;
52775
+ }
52776
+ const box = elm.getBoundingClientRect();
52777
+ return e.clientX >= box.right && e.clientY >= box.top && e.clientY < box.bottom;
52778
+ });
52779
+ const rows = table ? (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(table.rows).filter((row)=>row.cells.length) : [];
52780
+ if (!table || !rows.length) {
52781
+ return null;
52782
+ }
52783
+ const row = (_a = rows.find((row)=>e.clientY < row.getBoundingClientRect().bottom)) !== null && _a !== void 0 ? _a : rows[rows.length - 1];
52784
+ return {
52785
+ table,
52786
+ row
52787
+ };
52788
+ }
52789
+ /**
52790
+ * A press to the right of a table row puts the caret where Word's typing
52791
+ * goes from there: the start of the next row's first cell, or of the block
52792
+ * after the table for the last row (#1770). The browsers put it after the
52793
+ * table, whichever row it's beside, so typing starts a new line below it.
52794
+ * Their own press is stopped, as its drag would start after the table and
52795
+ * take in the rows below first
52796
+ */ onMouseDownBesideTableRow(e) {
52797
+ const { j } = this;
52798
+ const beside = this.__rowBeside(e);
52799
+ if (!beside) {
52800
+ return;
52801
+ }
52802
+ // A press before the last one was let go must not stack its listeners
52803
+ this.__endPressBesideRow();
52804
+ e.preventDefault();
52805
+ this.__putCaretBesideRow(beside.table, beside.row);
52806
+ this.__pressBesideRow = {
52807
+ row: beside.row,
52808
+ caret: j.s.range.cloneRange()
52809
+ };
52810
+ j.e.on(j.ew, 'mousemove', this.__onDragFromRow);
52811
+ new Set([
52812
+ j.ew,
52813
+ j.ow
52814
+ ]).forEach((win)=>j.e.on(win, 'mouseup', this.__onReleaseFromRow));
52815
+ }
52816
+ /**
52817
+ * A drag from beside a row selects from the end of the row to the mouse,
52818
+ * and back beside the row it's the caret again
52819
+ */ __onDragFromRow(e) {
52820
+ var _a, _b;
52821
+ const { s } = this.j;
52822
+ const press = this.__pressBesideRow;
52823
+ if (!press || !(e.buttons & 1)) {
52824
+ this.__endPressBesideRow();
52825
+ return;
52826
+ }
52827
+ if (((_a = this.__rowBeside(e)) === null || _a === void 0 ? void 0 : _a.row) === press.row) {
52828
+ if (!s.isCollapsed()) {
52829
+ s.selectRange(press.caret.cloneRange());
52830
+ }
52831
+ return;
52832
+ }
52833
+ const { cells } = press.row;
52834
+ const last = cells[cells.length - 1];
52835
+ if (s.insertCursorAtPoint(e.clientX, e.clientY)) {
52836
+ const { startContainer, startOffset } = s.range;
52837
+ (_b = s.sel) === null || _b === void 0 ? void 0 : _b.setBaseAndExtent(last, last.childNodes.length, startContainer, startOffset);
52838
+ }
52839
+ }
52840
+ /**
52841
+ * In iframe mode, a press in an editor without the focus puts the caret at
52842
+ * its end, so a release that selected nothing puts it back
52843
+ */ __onReleaseFromRow() {
52844
+ const press = this.__pressBesideRow;
52845
+ this.__endPressBesideRow();
52846
+ if (press && this.j.s.isCollapsed()) {
52847
+ this.j.s.selectRange(press.caret);
52848
+ }
52849
+ }
52850
+ __endPressBesideRow() {
52851
+ const { j } = this;
52852
+ this.__pressBesideRow = null;
52853
+ j.e.off(j.ew, 'mousemove', this.__onDragFromRow);
52854
+ new Set([
52855
+ j.ew,
52856
+ j.ow
52857
+ ]).forEach((win)=>j.e.off(win, 'mouseup', this.__onReleaseFromRow));
52858
+ }
52859
+ /**
52860
+ * A double click beside a row is two clicks there, so add-new-line,
52861
+ * which adds a line on a double click with a caret, doesn't see it
52862
+ */ __onDblClickBesideRow(e) {
52863
+ if (this.__rowBeside(e)) {
52864
+ this.j.e.stopPropagation('dblclick');
52865
+ return false;
52866
+ }
52867
+ }
52868
+ __putCaretBesideRow(table, row) {
52869
+ const { j } = this;
52870
+ const rows = (0,_core_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(table.rows);
52871
+ const next = rows.slice(rows.indexOf(row) + 1).find((row)=>row.cells.length);
52872
+ let after = table.nextSibling;
52873
+ while(after && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(after)){
52874
+ after = after.nextSibling;
52875
+ }
52876
+ if (next) {
52877
+ j.s.setCursorIn(next.cells[0], true);
52878
+ } 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)) {
52879
+ j.s.setCursorIn(after, true);
52880
+ } else {
52881
+ j.s.setCursorAfter(table);
52882
+ }
52883
+ }
52201
52884
  /**
52202
52885
  * Keep pending inline formatting after a click. Toggling Bold/Italic/etc. on
52203
52886
  * a collapsed cursor leaves empty marker elements with the caret inside; a
@@ -52263,6 +52946,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.select = {
52263
52946
  * element and ends in another as a `click` on their common ancestor, so a
52264
52947
  * press inside a popup is remembered to tell such a drag from a real click.
52265
52948
  */ this.__pressTarget = null;
52949
+ /**
52950
+ * The row a press to its right was beside, and the caret it put there,
52951
+ * while the button is down
52952
+ */ this.__pressBesideRow = null;
52266
52953
  }
52267
52954
  }
52268
52955
  __decorate([
@@ -52292,6 +52979,18 @@ __decorate([
52292
52979
  ':click'
52293
52980
  ])
52294
52981
  ], select.prototype, "onClickRightOfNestedListItem", null);
52982
+ __decorate([
52983
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':mousedown')
52984
+ ], select.prototype, "onMouseDownBesideTableRow", null);
52985
+ __decorate([
52986
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52987
+ ], select.prototype, "__onDragFromRow", null);
52988
+ __decorate([
52989
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52990
+ ], select.prototype, "__onReleaseFromRow", null);
52991
+ __decorate([
52992
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
52993
+ ], select.prototype, "__onDblClickBesideRow", null);
52295
52994
  __decorate([
52296
52995
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)([
52297
52996
  ':click'