jodit-pro 4.19.3 → 4.19.4

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 +16 -3
  3. package/es2015/jodit.js +355 -54
  4. package/es2015/jodit.min.js +53 -40
  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 +16 -3
  79. package/es2018/jodit.min.js +24 -11
  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 +17 -4
  109. package/es2021/jodit.js +355 -54
  110. package/es2021/jodit.min.js +30 -17
  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 +17 -4
  186. package/es2021.en/jodit.js +355 -54
  187. package/es2021.en/jodit.min.js +29 -16
  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 +421 -54
  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/es2015/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.4
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1816,7 +1816,7 @@ __webpack_require__.r(__webpack_exports__);
1816
1816
  * ```
1817
1817
  * @packageDocumentation
1818
1818
  * @module constants
1819
- */ const APP_VERSION = "4.19.3";
1819
+ */ const APP_VERSION = "4.19.4";
1820
1820
  // prettier-ignore
1821
1821
  const ES = "es2015";
1822
1822
  const IS_ES_MODERN = true;
@@ -11245,7 +11245,13 @@ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild,
11245
11245
  * When the cursor is positioned in its place, it must be inside the element and not outside its border.
11246
11246
  * @private
11247
11247
  */ function moveNodeInsideStart(j, node, start) {
11248
- 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);
11248
+ // A text node of non-breaking spaces trims to nothing, but it's text the
11249
+ // node mustn't move past
11250
+ const isContent = (n)=>{
11251
+ var _a;
11252
+ 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));
11253
+ };
11254
+ 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);
11249
11255
  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))){
11250
11256
  if (start || !sibling.firstChild) {
11251
11257
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(sibling, node);
@@ -48225,6 +48231,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.link = {
48225
48231
  followOnDblClick: false,
48226
48232
  processVideoLink: true,
48227
48233
  processPastedLink: true,
48234
+ processTypedLink: false,
48235
+ typedLinkTlds: [],
48236
+ typedLinkFileEndings: [
48237
+ 'zip',
48238
+ 'mov',
48239
+ 'md',
48240
+ 'py',
48241
+ 'sh',
48242
+ 'pub'
48243
+ ],
48228
48244
  deriveUrlFromText: false,
48229
48245
  noFollowCheckbox: true,
48230
48246
  openInNewTabCheckbox: true,
@@ -48289,12 +48305,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48289
48305
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
48290
48306
 
48291
48307
  /* unused harmony export link */
48292
- /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
48293
- /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
48294
- /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(580);
48295
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
48296
- /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50911);
48297
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5827);
48308
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
48309
+ /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
48310
+ /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22732);
48311
+ /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
48312
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
48313
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
48314
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5827);
48315
+ /* harmony import */ var _typed_link_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58970);
48298
48316
  /*!
48299
48317
  * Jodit Editor (https://xdsoft.net/jodit/)
48300
48318
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -48311,9 +48329,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48311
48329
 
48312
48330
 
48313
48331
 
48332
+
48333
+
48314
48334
  /**
48315
48335
  * Process link. Insert, dblclick or remove format
48316
- */ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
48336
+ */ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
48317
48337
  /** @override */ afterInit(jodit) {
48318
48338
  if (jodit.o.link.followOnDblClick) {
48319
48339
  jodit.e.on('dblclick.link', this.__onDblClickOnLink);
@@ -48322,6 +48342,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48322
48342
  if (jodit.o.link.processPastedLink) {
48323
48343
  jodit.e.on('processPaste.link', this.onProcessPasteLink);
48324
48344
  }
48345
+ if (jodit.o.link.processTypedLink) {
48346
+ this.__linkAfterEnter = jodit.async.microDebounce(this.__linkTyped);
48347
+ 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,
48348
+ // which moves the caret on Tab, and of the backspace plugin
48349
+ .on('keydown', this.__onKeyDown, {
48350
+ top: true
48351
+ });
48352
+ }
48325
48353
  jodit.e.on('generateLinkForm.link', this.__generateForm);
48326
48354
  jodit.registerCommand('openLinkDialog', {
48327
48355
  exec: ()=>{
@@ -48335,7 +48363,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48335
48363
  dialog.setContent(htmlForm);
48336
48364
  dialog.open();
48337
48365
  jodit.async.requestIdleCallback(()=>{
48338
- const { url_input } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.refs)(htmlForm.container);
48366
+ const { url_input } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.refs)(htmlForm.container);
48339
48367
  url_input === null || url_input === void 0 ? void 0 : url_input.focus();
48340
48368
  });
48341
48369
  },
@@ -48343,10 +48371,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48343
48371
  });
48344
48372
  }
48345
48373
  __onDblClickOnLink(e) {
48346
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'a')) {
48374
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(e.target, 'a')) {
48347
48375
  return;
48348
48376
  }
48349
- const href = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(e.target, 'href');
48377
+ const href = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(e.target, 'href');
48350
48378
  if (href) {
48351
48379
  location.href = href;
48352
48380
  e.preventDefault();
@@ -48355,23 +48383,23 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48355
48383
  onProcessPasteLink(ignore, html) {
48356
48384
  var _a, _b, _c, _d;
48357
48385
  const { jodit } = this;
48358
- if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
48386
+ if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isURL)(html) || !jodit.o.link.processPastedLink) {
48359
48387
  return;
48360
48388
  }
48361
48389
  jodit.e.stopPropagation('processPaste');
48362
48390
  if (jodit.o.link.processVideoLink) {
48363
- 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, {
48391
+ 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, {
48364
48392
  width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
48365
48393
  height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
48366
48394
  });
48367
48395
  if (embed !== html) {
48368
- const media = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.prepareEmbedCode)(jodit, embed);
48369
- return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(media) ? jodit.createInside.fromHTML(media) : media;
48396
+ const media = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.prepareEmbedCode)(jodit, embed);
48397
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(media) ? jodit.createInside.fromHTML(media) : media;
48370
48398
  }
48371
48399
  }
48372
48400
  if (jodit.s.isCollapsed()) {
48373
48401
  const a = jodit.createInside.element('a');
48374
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', html);
48402
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', html);
48375
48403
  a.textContent = html;
48376
48404
  jodit.e.fire('applyLink', jodit, a, null);
48377
48405
  return a;
@@ -48389,16 +48417,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48389
48417
  const i18n = jodit.i18n.bind(jodit);
48390
48418
  const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName } = jodit.o.link;
48391
48419
  const html = formTemplate(jodit);
48392
- const form = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(html) ? jodit.c.fromHTML(html, {
48420
+ const form = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) ? jodit.c.fromHTML(html, {
48393
48421
  target_checkbox_box: openInNewTabCheckbox,
48394
48422
  nofollow_checkbox_box: noFollowCheckbox
48395
48423
  }) : html;
48396
- const htmlForm = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(form) ? form : form.container;
48397
- const elements = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.refs)(htmlForm);
48424
+ const htmlForm = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(form) ? form : form.container;
48425
+ const elements = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.refs)(htmlForm);
48398
48426
  const { insert, unlink, content_input_box } = elements;
48399
48427
  const { target_checkbox, nofollow_checkbox, url_input } = elements;
48400
48428
  const currentElement = current;
48401
- const isImageContent = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isImage(currentElement);
48429
+ const isImageContent = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isImage(currentElement);
48402
48430
  let { content_input } = elements;
48403
48431
  const { className_input } = elements, { className_select } = elements, { aria_label_input } = elements;
48404
48432
  if (!content_input) {
@@ -48411,12 +48439,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48411
48439
  htmlForm.classList.add(formClassName);
48412
48440
  }
48413
48441
  if (isImageContent) {
48414
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.hide(content_input_box);
48442
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.hide(content_input_box);
48415
48443
  }
48416
48444
  let link;
48417
- const getSelectionText = ()=>link ? link.innerText : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.stripTags)(jodit.s.range.cloneContents(), jodit.ed);
48418
- if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(current, 'a', jodit.editor)) {
48419
- link = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(current, 'a', jodit.editor);
48445
+ const getSelectionText = ()=>link ? link.innerText : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.stripTags)(jodit.s.range.cloneContents(), jodit.ed);
48446
+ if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, 'a', jodit.editor)) {
48447
+ link = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, 'a', jodit.editor);
48420
48448
  } else {
48421
48449
  link = false;
48422
48450
  }
@@ -48424,22 +48452,22 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48424
48452
  content_input.value = getSelectionText();
48425
48453
  }
48426
48454
  if (aria_label_input) {
48427
- aria_label_input.value = link ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'aria-label') || '' : '';
48455
+ aria_label_input.value = link ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'aria-label') || '' : '';
48428
48456
  }
48429
48457
  if (link) {
48430
- url_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
48458
+ url_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href') || '';
48431
48459
  if (modeClassName) {
48432
48460
  readClassnames(modeClassName, className_input, link, className_select);
48433
48461
  }
48434
48462
  if (openInNewTabCheckbox && target_checkbox) {
48435
- target_checkbox.checked = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
48463
+ target_checkbox.checked = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'target') === '_blank';
48436
48464
  }
48437
48465
  if (noFollowCheckbox && nofollow_checkbox) {
48438
- nofollow_checkbox.checked = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
48466
+ nofollow_checkbox.checked = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
48439
48467
  }
48440
48468
  insert.textContent = i18n('Update');
48441
48469
  } else {
48442
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.hide(unlink);
48470
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.hide(unlink);
48443
48471
  if (jodit.o.link.deriveUrlFromText && url_input && !isImageContent && !url_input.value.trim()) {
48444
48472
  url_input.value = guessUrlFromText(content_input.value);
48445
48473
  }
@@ -48454,7 +48482,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48454
48482
  jodit.s.restore();
48455
48483
  jodit.history.snapshot.restore(snapshot);
48456
48484
  if (link) {
48457
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(link);
48485
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(link);
48458
48486
  }
48459
48487
  jodit.synchronizeValues();
48460
48488
  close();
@@ -48475,12 +48503,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48475
48503
  const textWasChanged = getSelectionText() !== content_input.value.trim();
48476
48504
  const ci = jodit.createInside;
48477
48505
  let caretAfter = null;
48478
- if (!link || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(jodit.editor, link)) {
48506
+ if (!link || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(jodit.editor, link)) {
48479
48507
  if (!jodit.s.isCollapsed()) {
48480
48508
  const node = jodit.s.current();
48481
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'img')) {
48509
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'img')) {
48482
48510
  links = [
48483
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.wrap(node, 'a', ci)
48511
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.wrap(node, 'a', ci)
48484
48512
  ];
48485
48513
  } else {
48486
48514
  links = jodit.s.wrapInTag('a');
@@ -48500,27 +48528,27 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48500
48528
  ];
48501
48529
  }
48502
48530
  links.forEach((a)=>{
48503
- ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
48531
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', url_input.value);
48504
48532
  writeClasses(modeClassName, className_input, className_select, a);
48505
48533
  if (!isImageContent) {
48506
48534
  writeImage(a, content_input, textWasChanged, url_input);
48507
48535
  }
48508
48536
  if (openInNewTabCheckbox && target_checkbox) {
48509
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
48537
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
48510
48538
  }
48511
48539
  if (noFollowCheckbox && nofollow_checkbox) {
48512
- const relParts = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'rel') || '').split(/\s+/).filter(Boolean);
48540
+ const relParts = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'rel') || '').split(/\s+/).filter(Boolean);
48513
48541
  const hasNofollow = relParts.includes('nofollow');
48514
48542
  if (nofollow_checkbox.checked && !hasNofollow) {
48515
48543
  relParts.push('nofollow');
48516
48544
  } else if (!nofollow_checkbox.checked && hasNofollow) {
48517
48545
  relParts.splice(relParts.indexOf('nofollow'), 1);
48518
48546
  }
48519
- ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'rel', relParts.length ? relParts.join(' ') : null);
48547
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'rel', relParts.length ? relParts.join(' ') : null);
48520
48548
  }
48521
48549
  if (aria_label_input) {
48522
48550
  const ariaLabel = aria_label_input.value.trim();
48523
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'aria-label', ariaLabel || null);
48551
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'aria-label', ariaLabel || null);
48524
48552
  }
48525
48553
  jodit.e.fire('applyLink', jodit, a, form);
48526
48554
  });
@@ -48535,7 +48563,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48535
48563
  close();
48536
48564
  return false;
48537
48565
  };
48538
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(form)) {
48566
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(form)) {
48539
48567
  jodit.e.on(form, 'submit', (event)=>{
48540
48568
  event.preventDefault();
48541
48569
  event.stopImmediatePropagation();
@@ -48548,11 +48576,96 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48548
48576
  return form;
48549
48577
  }
48550
48578
  /** @override */ beforeDestruct(jodit) {
48551
- jodit.e.off('generateLinkForm.link', this.__generateForm).off('dblclick.link', this.__onDblClickOnLink).off(jodit.editor, 'click.link', this.__onClickReadOnlyLink).off('processPaste.link', this.onProcessPasteLink);
48579
+ 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);
48580
+ }
48581
+ __onTypedSpace(event) {
48582
+ if (event.inputType !== 'insertText' || !event.data || /\S/.test(event.data)) {
48583
+ return;
48584
+ }
48585
+ const { range } = this.j.s;
48586
+ if (range.collapsed) {
48587
+ this.__linkTyped(range.startContainer, range.startOffset - event.data.length);
48588
+ }
48589
+ }
48590
+ __onBeforeEnter() {
48591
+ const { range } = this.j.s;
48592
+ this.__enteredAt = range.collapsed ? [
48593
+ range.startContainer,
48594
+ range.startOffset
48595
+ ] : null;
48596
+ }
48597
+ __onAfterEnter() {
48598
+ if (this.__enteredAt) {
48599
+ this.__linkAfterEnter(...this.__enteredAt);
48600
+ this.__enteredAt = null;
48601
+ }
48602
+ }
48603
+ __forgetLink() {
48604
+ this.__justLinked = null;
48605
+ }
48606
+ __onKeyDown(event) {
48607
+ const { jodit } = this;
48608
+ if (jodit.o.readonly) {
48609
+ return;
48610
+ }
48611
+ const link = this.__justLinked;
48612
+ const modified = event.ctrlKey || event.metaKey || event.altKey;
48613
+ if (!MODIFIER_KEYS.has(event.key)) {
48614
+ this.__justLinked = null;
48615
+ }
48616
+ if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE && !modified && (link === null || link === void 0 ? void 0 : link.isConnected)) {
48617
+ this.__recordStep();
48618
+ jodit.s.save();
48619
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(link);
48620
+ jodit.s.restore();
48621
+ this.__recordStep();
48622
+ // Or the backspace plugin takes a character too
48623
+ jodit.e.stopPropagation('keydown');
48624
+ return false;
48625
+ }
48626
+ const { range } = jodit.s;
48627
+ if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && !modified && range.collapsed) {
48628
+ this.__linkTyped(range.startContainer, range.startOffset);
48629
+ }
48630
+ }
48631
+ /**
48632
+ * Links the address that ends at `end` in a text node, as a step of its
48633
+ * own in the history, so Undo straight after takes the link off and
48634
+ * leaves the text
48635
+ */ __linkTyped(node, end) {
48636
+ const { jodit } = this;
48637
+ 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)) {
48638
+ return;
48639
+ }
48640
+ const found = (0,_typed_link_js__WEBPACK_IMPORTED_MODULE_7__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
48641
+ if (!found) {
48642
+ return;
48643
+ }
48644
+ const [start, stop, href] = found;
48645
+ this.__recordStep();
48646
+ // The text round the caret splits, and WebKit doesn't keep the caret
48647
+ // where it was
48648
+ jodit.s.save();
48649
+ const range = jodit.ed.createRange();
48650
+ range.setStart(node, start);
48651
+ range.setEnd(node, stop);
48652
+ const a = jodit.createInside.element('a');
48653
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', href);
48654
+ range.surroundContents(a);
48655
+ jodit.s.restore();
48656
+ jodit.e.fire('applyLink', jodit, a, null);
48657
+ this.__recordStep();
48658
+ this.__justLinked = a;
48659
+ }
48660
+ /**
48661
+ * Reports what's changed and makes it a history step of its own
48662
+ */ __recordStep() {
48663
+ this.j.setEditorValue();
48664
+ this.j.e.fire('internalChange');
48552
48665
  }
48553
48666
  __onClickReadOnlyLink(e) {
48554
48667
  const { jodit } = this;
48555
- if (jodit.o.readonly && jodit.o.link.preventReadOnlyNavigation && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'a')) {
48668
+ if (jodit.o.readonly && jodit.o.link.preventReadOnlyNavigation && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(e.target, 'a')) {
48556
48669
  e.preventDefault();
48557
48670
  }
48558
48671
  }
@@ -48564,21 +48677,61 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
48564
48677
  group: 'insert'
48565
48678
  }
48566
48679
  ];
48680
+ /**
48681
+ * Where the caret was when Enter was pressed. Enter splits the line in a
48682
+ * history transaction, so the link waits until it's over
48683
+ */ this.__enteredAt = null;
48684
+ this.__linkAfterEnter = ()=>{};
48685
+ /**
48686
+ * The link just made, which Backspace straight after takes off again, as
48687
+ * in CKEditor 5. Any other key but a modifier, a click or a command
48688
+ * forgets it
48689
+ */ this.__justLinked = null;
48567
48690
  }
48568
48691
  }
48569
48692
  __decorate([
48570
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
48693
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48571
48694
  ], link.prototype, "__onDblClickOnLink", null);
48572
48695
  __decorate([
48573
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
48696
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48574
48697
  ], link.prototype, "onProcessPasteLink", null);
48575
48698
  __decorate([
48576
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
48699
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48577
48700
  ], link.prototype, "__generateForm", null);
48578
48701
  __decorate([
48579
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
48702
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48703
+ ], link.prototype, "__onTypedSpace", null);
48704
+ __decorate([
48705
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48706
+ ], link.prototype, "__onBeforeEnter", null);
48707
+ __decorate([
48708
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48709
+ ], link.prototype, "__onAfterEnter", null);
48710
+ __decorate([
48711
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48712
+ ], link.prototype, "__forgetLink", null);
48713
+ __decorate([
48714
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48715
+ ], link.prototype, "__onKeyDown", null);
48716
+ __decorate([
48717
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48718
+ ], link.prototype, "__linkTyped", null);
48719
+ __decorate([
48720
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
48580
48721
  ], link.prototype, "__onClickReadOnlyLink", null);
48581
- _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('link', link);
48722
+ const NO_TYPED_LINKS = new Set([
48723
+ 'a',
48724
+ 'pre',
48725
+ 'code'
48726
+ ]);
48727
+ const MODIFIER_KEYS = new Set([
48728
+ 'Shift',
48729
+ 'Control',
48730
+ 'Alt',
48731
+ 'Meta',
48732
+ 'CapsLock'
48733
+ ]);
48734
+ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
48582
48735
  /**
48583
48736
  * Guess a usable `href` from the selected text for the link dialog.
48584
48737
  * Returns an empty string when the text is not a plausible URL/email,
@@ -48593,7 +48746,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('link', link);
48593
48746
  return value;
48594
48747
  }
48595
48748
  // email address -> mailto:
48596
- if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) {
48749
+ if (_typed_link_js__WEBPACK_IMPORTED_MODULE_7__.EMAIL.test(value)) {
48597
48750
  return `mailto:${value}`;
48598
48751
  }
48599
48752
  // bare domain like example.com or www.example.com/path -> https://
@@ -48607,14 +48760,14 @@ function writeClasses(modeClassName, className_input, className_select, a) {
48607
48760
  if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
48608
48761
  if (modeClassName === 'input') {
48609
48762
  if (className_input.value === '' && a.hasAttribute('class')) {
48610
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
48763
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', null);
48611
48764
  }
48612
48765
  if (className_input.value !== '') {
48613
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
48766
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', className_input.value);
48614
48767
  }
48615
48768
  } else if (modeClassName === 'select') {
48616
48769
  if (a.hasAttribute('class')) {
48617
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
48770
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', null);
48618
48771
  }
48619
48772
  for(let i = 0; i < className_select.selectedOptions.length; i++){
48620
48773
  const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
@@ -48631,7 +48784,7 @@ function readClassnames(modeClassName, className_input, link, className_select)
48631
48784
  switch(modeClassName){
48632
48785
  case 'input':
48633
48786
  if (className_input) {
48634
- className_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
48787
+ className_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'class') || '';
48635
48788
  }
48636
48789
  break;
48637
48790
  case 'select':
@@ -48642,7 +48795,7 @@ function readClassnames(modeClassName, className_input, link, className_select)
48642
48795
  option.selected = false;
48643
48796
  }
48644
48797
  }
48645
- const classNames = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
48798
+ const classNames = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'class') || '';
48646
48799
  classNames.split(/\s+/).filter((cn)=>cn.trim().length > 0).forEach((className)=>{
48647
48800
  if (className) {
48648
48801
  for(let i = 0; i < className_select.options.length; i++){
@@ -48770,6 +48923,154 @@ const formTemplate = (editor)=>{
48770
48923
  /* harmony export */ ]);
48771
48924
 
48772
48925
 
48926
+ /***/ }),
48927
+
48928
+ /***/ 67272:
48929
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
48930
+
48931
+ /*!
48932
+ * Jodit Editor (https://xdsoft.net/jodit/)
48933
+ * Released under MIT see LICENSE.txt in the project root for license information.
48934
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
48935
+ */ /**
48936
+ * @module plugins/link
48937
+ */ /**
48938
+ * The endings a bare domain links with, besides those `link.typedLinkTlds`
48939
+ * adds: the generic ones of at least 1 in 1,000 of the sites in Tranco's top
48940
+ * million (list GQ38K, https://tranco-list.eu/list/GQ38K), then every
48941
+ * two-letter one in IANA's list (version 2026102900,
48942
+ * https://data.iana.org/TLD/tlds-alpha-by-domain.txt). Together they're the
48943
+ * endings of 96% of those sites
48944
+ * @private
48945
+ */ const TLDS = new Set(`
48946
+ app biz casino click cloud club com dev edu gov info live net online org pro
48947
+ shop site space store tech top vip xyz
48948
+ 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
48949
+ 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
48950
+ 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
48951
+ 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
48952
+ 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
48953
+ 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
48954
+ 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
48955
+ 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
48956
+ 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
48957
+ tv tw tz ua ug uk us uy uz va vc ve vg vi vn vu wf ws ye yt za zm zw
48958
+ `.trim().split(/\s+/));
48959
+
48960
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
48961
+ /* harmony export */ "TLDS", 0, /* binding */ TLDS
48962
+ /* harmony export */ ]);
48963
+
48964
+
48965
+ /***/ }),
48966
+
48967
+ /***/ 58970:
48968
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
48969
+
48970
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
48971
+ /* harmony export */ findTypedLink: function() { return /* binding */ findTypedLink; }
48972
+ /* harmony export */ });
48973
+ /* harmony import */ var _core_helpers_checker_is_url_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26049);
48974
+ /* harmony import */ var _tlds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67272);
48975
+ /*!
48976
+ * Jodit Editor (https://xdsoft.net/jodit/)
48977
+ * Released under MIT see LICENSE.txt in the project root for license information.
48978
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
48979
+ */ /**
48980
+ * @module plugins/link
48981
+ */
48982
+
48983
+ /**
48984
+ * An email address, for `mailto:`
48985
+ * @private
48986
+ */ const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
48987
+ const OPENING = new Set([
48988
+ '(',
48989
+ '[',
48990
+ '"',
48991
+ "'",
48992
+ '“',
48993
+ '‘',
48994
+ '<'
48995
+ ]);
48996
+ const CLOSING = new Set([
48997
+ '.',
48998
+ ',',
48999
+ ';',
49000
+ ':',
49001
+ '!',
49002
+ '?',
49003
+ '"',
49004
+ "'",
49005
+ '”',
49006
+ '’',
49007
+ '>'
49008
+ ]);
49009
+ const BRACKETS = {
49010
+ ')': '(',
49011
+ ']': '['
49012
+ };
49013
+ const LABEL = /^[a-z\d][a-z\d-]{0,62}$/i;
49014
+ /**
49015
+ * The address that ends at `end` in a line of text typed, back to the
49016
+ * whitespace before it, as `[start, end, href]`. Punctuation round it, such as
49017
+ * a sentence's full stop or a bracket the address doesn't open, stays out.
49018
+ * An address counts with a scheme, with `www.`, as an email address, or as a
49019
+ * bare domain that `isBareDomain` accepts, so `Node.js` or `e.g.` don't
49020
+ * @private
49021
+ */ function findTypedLink(text, end, tlds, fileEndings) {
49022
+ let start = end;
49023
+ while(start > 0 && !/\s/.test(text[start - 1])){
49024
+ start -= 1;
49025
+ }
49026
+ while(start < end && OPENING.has(text[start])){
49027
+ start += 1;
49028
+ }
49029
+ while(end > start){
49030
+ const char = text[end - 1];
49031
+ const opening = BRACKETS[char];
49032
+ if (CLOSING.has(char) || opening && !text.slice(start, end - 1).includes(opening)) {
49033
+ end -= 1;
49034
+ } else {
49035
+ break;
49036
+ }
49037
+ }
49038
+ const href = typedLinkHref(text.slice(start, end), tlds, fileEndings);
49039
+ return href ? [
49040
+ start,
49041
+ end,
49042
+ href
49043
+ ] : null;
49044
+ }
49045
+ function typedLinkHref(address, tlds, fileEndings) {
49046
+ const email = address.replace(/^mailto:/i, '');
49047
+ if (EMAIL.test(email)) {
49048
+ return `mailto:${email}`;
49049
+ }
49050
+ if (/^www\.[^\s.]+\.\S+$/i.test(address) || isBareDomain(address, tlds, fileEndings)) {
49051
+ return `https://${address}`;
49052
+ }
49053
+ return /^[a-z][a-z\d+.-]*:\/\//i.test(address) && (0,_core_helpers_checker_is_url_js__WEBPACK_IMPORTED_MODULE_0__.isURL)(address) ? address : '';
49054
+ }
49055
+ /**
49056
+ * A domain typed without a scheme or `www.`, as `example.com`, `elections.nz`
49057
+ * or `bit.ly/enrol`. Its ending has to be in `TLDS` or `tlds`, typed in lower
49058
+ * case, so `Node.js` and a sentence run on, as in `home.It`, don't count, and
49059
+ * not in `fileEndings`, as in `photos.zip`. The first part has a letter,
49060
+ * which leaves out a time or a numbered step such as `11.am`
49061
+ */ function isBareDomain(address, tlds, fileEndings) {
49062
+ const cut = address.search(/[/?#]/);
49063
+ const host = cut < 0 ? address : address.slice(0, cut);
49064
+ const labels = host.split('.');
49065
+ const ending = labels[labels.length - 1];
49066
+ 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]);
49067
+ }
49068
+
49069
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
49070
+ /* harmony export */ "EMAIL", 0, /* binding */ EMAIL
49071
+ /* harmony export */ ]);
49072
+
49073
+
48773
49074
  /***/ }),
48774
49075
 
48775
49076
  /***/ 757: