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/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.4
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.4";
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);
@@ -46859,6 +46865,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.link = {
46859
46865
  followOnDblClick: false,
46860
46866
  processVideoLink: true,
46861
46867
  processPastedLink: true,
46868
+ processTypedLink: false,
46869
+ typedLinkTlds: [],
46870
+ typedLinkFileEndings: [
46871
+ 'zip',
46872
+ 'mov',
46873
+ 'md',
46874
+ 'py',
46875
+ 'sh',
46876
+ 'pub'
46877
+ ],
46862
46878
  deriveUrlFromText: false,
46863
46879
  noFollowCheckbox: true,
46864
46880
  openInNewTabCheckbox: true,
@@ -46923,12 +46939,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46923
46939
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
46924
46940
 
46925
46941
  /* 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);
46942
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
46943
+ /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
46944
+ /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22732);
46945
+ /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
46946
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
46947
+ /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
46948
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5827);
46949
+ /* harmony import */ var _typed_link_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58970);
46932
46950
  /*!
46933
46951
  * Jodit Editor (https://xdsoft.net/jodit/)
46934
46952
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -46945,9 +46963,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46945
46963
 
46946
46964
 
46947
46965
 
46966
+
46967
+
46948
46968
  /**
46949
46969
  * Process link. Insert, dblclick or remove format
46950
- */ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_4__.Plugin {
46970
+ */ class link extends _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__.Plugin {
46951
46971
  /** @override */ afterInit(jodit) {
46952
46972
  if (jodit.o.link.followOnDblClick) {
46953
46973
  jodit.e.on('dblclick.link', this.__onDblClickOnLink);
@@ -46956,6 +46976,14 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46956
46976
  if (jodit.o.link.processPastedLink) {
46957
46977
  jodit.e.on('processPaste.link', this.onProcessPasteLink);
46958
46978
  }
46979
+ if (jodit.o.link.processTypedLink) {
46980
+ this.__linkAfterEnter = jodit.async.microDebounce(this.__linkTyped);
46981
+ 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,
46982
+ // which moves the caret on Tab, and of the backspace plugin
46983
+ .on('keydown', this.__onKeyDown, {
46984
+ top: true
46985
+ });
46986
+ }
46959
46987
  jodit.e.on('generateLinkForm.link', this.__generateForm);
46960
46988
  jodit.registerCommand('openLinkDialog', {
46961
46989
  exec: ()=>{
@@ -46969,7 +46997,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46969
46997
  dialog.setContent(htmlForm);
46970
46998
  dialog.open();
46971
46999
  jodit.async.requestIdleCallback(()=>{
46972
- const { url_input } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.refs)(htmlForm.container);
47000
+ const { url_input } = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.refs)(htmlForm.container);
46973
47001
  url_input === null || url_input === void 0 ? void 0 : url_input.focus();
46974
47002
  });
46975
47003
  },
@@ -46977,10 +47005,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46977
47005
  });
46978
47006
  }
46979
47007
  __onDblClickOnLink(e) {
46980
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'a')) {
47008
+ if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(e.target, 'a')) {
46981
47009
  return;
46982
47010
  }
46983
- const href = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(e.target, 'href');
47011
+ const href = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(e.target, 'href');
46984
47012
  if (href) {
46985
47013
  location.href = href;
46986
47014
  e.preventDefault();
@@ -46989,23 +47017,23 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
46989
47017
  onProcessPasteLink(ignore, html) {
46990
47018
  var _a, _b, _c, _d;
46991
47019
  const { jodit } = this;
46992
- if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isURL)(html) || !jodit.o.link.processPastedLink) {
47020
+ if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isURL)(html) || !jodit.o.link.processPastedLink) {
46993
47021
  return;
46994
47022
  }
46995
47023
  jodit.e.stopPropagation('processPaste');
46996
47024
  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, {
47025
+ 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
47026
  width: (_c = jodit.o.video) === null || _c === void 0 ? void 0 : _c.defaultWidth,
46999
47027
  height: (_d = jodit.o.video) === null || _d === void 0 ? void 0 : _d.defaultHeight
47000
47028
  });
47001
47029
  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;
47030
+ const media = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.prepareEmbedCode)(jodit, embed);
47031
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(media) ? jodit.createInside.fromHTML(media) : media;
47004
47032
  }
47005
47033
  }
47006
47034
  if (jodit.s.isCollapsed()) {
47007
47035
  const a = jodit.createInside.element('a');
47008
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', html);
47036
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', html);
47009
47037
  a.textContent = html;
47010
47038
  jodit.e.fire('applyLink', jodit, a, null);
47011
47039
  return a;
@@ -47023,16 +47051,16 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47023
47051
  const i18n = jodit.i18n.bind(jodit);
47024
47052
  const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName } = jodit.o.link;
47025
47053
  const html = formTemplate(jodit);
47026
- const form = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isString)(html) ? jodit.c.fromHTML(html, {
47054
+ const form = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) ? jodit.c.fromHTML(html, {
47027
47055
  target_checkbox_box: openInNewTabCheckbox,
47028
47056
  nofollow_checkbox_box: noFollowCheckbox
47029
47057
  }) : 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);
47058
+ const htmlForm = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(form) ? form : form.container;
47059
+ const elements = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.refs)(htmlForm);
47032
47060
  const { insert, unlink, content_input_box } = elements;
47033
47061
  const { target_checkbox, nofollow_checkbox, url_input } = elements;
47034
47062
  const currentElement = current;
47035
- const isImageContent = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isImage(currentElement);
47063
+ const isImageContent = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isImage(currentElement);
47036
47064
  let { content_input } = elements;
47037
47065
  const { className_input } = elements, { className_select } = elements, { aria_label_input } = elements;
47038
47066
  if (!content_input) {
@@ -47045,12 +47073,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47045
47073
  htmlForm.classList.add(formClassName);
47046
47074
  }
47047
47075
  if (isImageContent) {
47048
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.hide(content_input_box);
47076
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.hide(content_input_box);
47049
47077
  }
47050
47078
  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);
47079
+ const getSelectionText = ()=>link ? link.innerText : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.stripTags)(jodit.s.range.cloneContents(), jodit.ed);
47080
+ if (current && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, 'a', jodit.editor)) {
47081
+ link = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, 'a', jodit.editor);
47054
47082
  } else {
47055
47083
  link = false;
47056
47084
  }
@@ -47058,22 +47086,22 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47058
47086
  content_input.value = getSelectionText();
47059
47087
  }
47060
47088
  if (aria_label_input) {
47061
- aria_label_input.value = link ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'aria-label') || '' : '';
47089
+ aria_label_input.value = link ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'aria-label') || '' : '';
47062
47090
  }
47063
47091
  if (link) {
47064
- url_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'href') || '';
47092
+ url_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href') || '';
47065
47093
  if (modeClassName) {
47066
47094
  readClassnames(modeClassName, className_input, link, className_select);
47067
47095
  }
47068
47096
  if (openInNewTabCheckbox && target_checkbox) {
47069
- target_checkbox.checked = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'target') === '_blank';
47097
+ target_checkbox.checked = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'target') === '_blank';
47070
47098
  }
47071
47099
  if (noFollowCheckbox && nofollow_checkbox) {
47072
- nofollow_checkbox.checked = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
47100
+ nofollow_checkbox.checked = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
47073
47101
  }
47074
47102
  insert.textContent = i18n('Update');
47075
47103
  } else {
47076
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.hide(unlink);
47104
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.hide(unlink);
47077
47105
  if (jodit.o.link.deriveUrlFromText && url_input && !isImageContent && !url_input.value.trim()) {
47078
47106
  url_input.value = guessUrlFromText(content_input.value);
47079
47107
  }
@@ -47088,7 +47116,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47088
47116
  jodit.s.restore();
47089
47117
  jodit.history.snapshot.restore(snapshot);
47090
47118
  if (link) {
47091
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(link);
47119
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(link);
47092
47120
  }
47093
47121
  jodit.synchronizeValues();
47094
47122
  close();
@@ -47109,12 +47137,12 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47109
47137
  const textWasChanged = getSelectionText() !== content_input.value.trim();
47110
47138
  const ci = jodit.createInside;
47111
47139
  let caretAfter = null;
47112
- if (!link || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(jodit.editor, link)) {
47140
+ if (!link || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isOrContains(jodit.editor, link)) {
47113
47141
  if (!jodit.s.isCollapsed()) {
47114
47142
  const node = jodit.s.current();
47115
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'img')) {
47143
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'img')) {
47116
47144
  links = [
47117
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.wrap(node, 'a', ci)
47145
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.wrap(node, 'a', ci)
47118
47146
  ];
47119
47147
  } else {
47120
47148
  links = jodit.s.wrapInTag('a');
@@ -47134,27 +47162,27 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47134
47162
  ];
47135
47163
  }
47136
47164
  links.forEach((a)=>{
47137
- ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'href', url_input.value);
47165
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', url_input.value);
47138
47166
  writeClasses(modeClassName, className_input, className_select, a);
47139
47167
  if (!isImageContent) {
47140
47168
  writeImage(a, content_input, textWasChanged, url_input);
47141
47169
  }
47142
47170
  if (openInNewTabCheckbox && target_checkbox) {
47143
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
47171
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'target', target_checkbox.checked ? '_blank' : null);
47144
47172
  }
47145
47173
  if (noFollowCheckbox && nofollow_checkbox) {
47146
- const relParts = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'rel') || '').split(/\s+/).filter(Boolean);
47174
+ const relParts = ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'rel') || '').split(/\s+/).filter(Boolean);
47147
47175
  const hasNofollow = relParts.includes('nofollow');
47148
47176
  if (nofollow_checkbox.checked && !hasNofollow) {
47149
47177
  relParts.push('nofollow');
47150
47178
  } else if (!nofollow_checkbox.checked && hasNofollow) {
47151
47179
  relParts.splice(relParts.indexOf('nofollow'), 1);
47152
47180
  }
47153
- ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'rel', relParts.length ? relParts.join(' ') : null);
47181
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'rel', relParts.length ? relParts.join(' ') : null);
47154
47182
  }
47155
47183
  if (aria_label_input) {
47156
47184
  const ariaLabel = aria_label_input.value.trim();
47157
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'aria-label', ariaLabel || null);
47185
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'aria-label', ariaLabel || null);
47158
47186
  }
47159
47187
  jodit.e.fire('applyLink', jodit, a, form);
47160
47188
  });
@@ -47169,7 +47197,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47169
47197
  close();
47170
47198
  return false;
47171
47199
  };
47172
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(form)) {
47200
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(form)) {
47173
47201
  jodit.e.on(form, 'submit', (event)=>{
47174
47202
  event.preventDefault();
47175
47203
  event.stopImmediatePropagation();
@@ -47182,11 +47210,96 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47182
47210
  return form;
47183
47211
  }
47184
47212
  /** @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);
47213
+ 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);
47214
+ }
47215
+ __onTypedSpace(event) {
47216
+ if (event.inputType !== 'insertText' || !event.data || /\S/.test(event.data)) {
47217
+ return;
47218
+ }
47219
+ const { range } = this.j.s;
47220
+ if (range.collapsed) {
47221
+ this.__linkTyped(range.startContainer, range.startOffset - event.data.length);
47222
+ }
47223
+ }
47224
+ __onBeforeEnter() {
47225
+ const { range } = this.j.s;
47226
+ this.__enteredAt = range.collapsed ? [
47227
+ range.startContainer,
47228
+ range.startOffset
47229
+ ] : null;
47230
+ }
47231
+ __onAfterEnter() {
47232
+ if (this.__enteredAt) {
47233
+ this.__linkAfterEnter(...this.__enteredAt);
47234
+ this.__enteredAt = null;
47235
+ }
47236
+ }
47237
+ __forgetLink() {
47238
+ this.__justLinked = null;
47239
+ }
47240
+ __onKeyDown(event) {
47241
+ const { jodit } = this;
47242
+ if (jodit.o.readonly) {
47243
+ return;
47244
+ }
47245
+ const link = this.__justLinked;
47246
+ const modified = event.ctrlKey || event.metaKey || event.altKey;
47247
+ if (!MODIFIER_KEYS.has(event.key)) {
47248
+ this.__justLinked = null;
47249
+ }
47250
+ if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE && !modified && (link === null || link === void 0 ? void 0 : link.isConnected)) {
47251
+ this.__recordStep();
47252
+ jodit.s.save();
47253
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(link);
47254
+ jodit.s.restore();
47255
+ this.__recordStep();
47256
+ // Or the backspace plugin takes a character too
47257
+ jodit.e.stopPropagation('keydown');
47258
+ return false;
47259
+ }
47260
+ const { range } = jodit.s;
47261
+ if (event.key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_TAB && !modified && range.collapsed) {
47262
+ this.__linkTyped(range.startContainer, range.startOffset);
47263
+ }
47264
+ }
47265
+ /**
47266
+ * Links the address that ends at `end` in a text node, as a step of its
47267
+ * own in the history, so Undo straight after takes the link off and
47268
+ * leaves the text
47269
+ */ __linkTyped(node, end) {
47270
+ const { jodit } = this;
47271
+ 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)) {
47272
+ return;
47273
+ }
47274
+ const found = (0,_typed_link_js__WEBPACK_IMPORTED_MODULE_7__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
47275
+ if (!found) {
47276
+ return;
47277
+ }
47278
+ const [start, stop, href] = found;
47279
+ this.__recordStep();
47280
+ // The text round the caret splits, and WebKit doesn't keep the caret
47281
+ // where it was
47282
+ jodit.s.save();
47283
+ const range = jodit.ed.createRange();
47284
+ range.setStart(node, start);
47285
+ range.setEnd(node, stop);
47286
+ const a = jodit.createInside.element('a');
47287
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'href', href);
47288
+ range.surroundContents(a);
47289
+ jodit.s.restore();
47290
+ jodit.e.fire('applyLink', jodit, a, null);
47291
+ this.__recordStep();
47292
+ this.__justLinked = a;
47293
+ }
47294
+ /**
47295
+ * Reports what's changed and makes it a history step of its own
47296
+ */ __recordStep() {
47297
+ this.j.setEditorValue();
47298
+ this.j.e.fire('internalChange');
47186
47299
  }
47187
47300
  __onClickReadOnlyLink(e) {
47188
47301
  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')) {
47302
+ if (jodit.o.readonly && jodit.o.link.preventReadOnlyNavigation && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(e.target, 'a')) {
47190
47303
  e.preventDefault();
47191
47304
  }
47192
47305
  }
@@ -47198,21 +47311,61 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
47198
47311
  group: 'insert'
47199
47312
  }
47200
47313
  ];
47314
+ /**
47315
+ * Where the caret was when Enter was pressed. Enter splits the line in a
47316
+ * history transaction, so the link waits until it's over
47317
+ */ this.__enteredAt = null;
47318
+ this.__linkAfterEnter = ()=>{};
47319
+ /**
47320
+ * The link just made, which Backspace straight after takes off again, as
47321
+ * in CKEditor 5. Any other key but a modifier, a click or a command
47322
+ * forgets it
47323
+ */ this.__justLinked = null;
47201
47324
  }
47202
47325
  }
47203
47326
  __decorate([
47204
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
47327
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47205
47328
  ], link.prototype, "__onDblClickOnLink", null);
47206
47329
  __decorate([
47207
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
47330
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47208
47331
  ], link.prototype, "onProcessPasteLink", null);
47209
47332
  __decorate([
47210
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
47333
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47211
47334
  ], link.prototype, "__generateForm", null);
47212
47335
  __decorate([
47213
- _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.autobind
47336
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47337
+ ], link.prototype, "__onTypedSpace", null);
47338
+ __decorate([
47339
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47340
+ ], link.prototype, "__onBeforeEnter", null);
47341
+ __decorate([
47342
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47343
+ ], link.prototype, "__onAfterEnter", null);
47344
+ __decorate([
47345
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47346
+ ], link.prototype, "__forgetLink", null);
47347
+ __decorate([
47348
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47349
+ ], link.prototype, "__onKeyDown", null);
47350
+ __decorate([
47351
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47352
+ ], link.prototype, "__linkTyped", null);
47353
+ __decorate([
47354
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
47214
47355
  ], link.prototype, "__onClickReadOnlyLink", null);
47215
- _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('link', link);
47356
+ const NO_TYPED_LINKS = new Set([
47357
+ 'a',
47358
+ 'pre',
47359
+ 'code'
47360
+ ]);
47361
+ const MODIFIER_KEYS = new Set([
47362
+ 'Shift',
47363
+ 'Control',
47364
+ 'Alt',
47365
+ 'Meta',
47366
+ 'CapsLock'
47367
+ ]);
47368
+ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('link', link);
47216
47369
  /**
47217
47370
  * Guess a usable `href` from the selected text for the link dialog.
47218
47371
  * Returns an empty string when the text is not a plausible URL/email,
@@ -47227,7 +47380,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('link', link);
47227
47380
  return value;
47228
47381
  }
47229
47382
  // email address -> mailto:
47230
- if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) {
47383
+ if (_typed_link_js__WEBPACK_IMPORTED_MODULE_7__.EMAIL.test(value)) {
47231
47384
  return `mailto:${value}`;
47232
47385
  }
47233
47386
  // bare domain like example.com or www.example.com/path -> https://
@@ -47241,14 +47394,14 @@ function writeClasses(modeClassName, className_input, className_select, a) {
47241
47394
  if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
47242
47395
  if (modeClassName === 'input') {
47243
47396
  if (className_input.value === '' && a.hasAttribute('class')) {
47244
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
47397
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', null);
47245
47398
  }
47246
47399
  if (className_input.value !== '') {
47247
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', className_input.value);
47400
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', className_input.value);
47248
47401
  }
47249
47402
  } else if (modeClassName === 'select') {
47250
47403
  if (a.hasAttribute('class')) {
47251
- (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(a, 'class', null);
47404
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(a, 'class', null);
47252
47405
  }
47253
47406
  for(let i = 0; i < className_select.selectedOptions.length; i++){
47254
47407
  const className = (_a = className_select.selectedOptions.item(i)) === null || _a === void 0 ? void 0 : _a.value;
@@ -47265,7 +47418,7 @@ function readClassnames(modeClassName, className_input, link, className_select)
47265
47418
  switch(modeClassName){
47266
47419
  case 'input':
47267
47420
  if (className_input) {
47268
- className_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
47421
+ className_input.value = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'class') || '';
47269
47422
  }
47270
47423
  break;
47271
47424
  case 'select':
@@ -47276,7 +47429,7 @@ function readClassnames(modeClassName, className_input, link, className_select)
47276
47429
  option.selected = false;
47277
47430
  }
47278
47431
  }
47279
- const classNames = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(link, 'class') || '';
47432
+ const classNames = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'class') || '';
47280
47433
  classNames.split(/\s+/).filter((cn)=>cn.trim().length > 0).forEach((className)=>{
47281
47434
  if (className) {
47282
47435
  for(let i = 0; i < className_select.options.length; i++){
@@ -47404,6 +47557,154 @@ const formTemplate = (editor)=>{
47404
47557
  /* harmony export */ ]);
47405
47558
 
47406
47559
 
47560
+ /***/ }),
47561
+
47562
+ /***/ 67272:
47563
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
47564
+
47565
+ /*!
47566
+ * Jodit Editor (https://xdsoft.net/jodit/)
47567
+ * Released under MIT see LICENSE.txt in the project root for license information.
47568
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
47569
+ */ /**
47570
+ * @module plugins/link
47571
+ */ /**
47572
+ * The endings a bare domain links with, besides those `link.typedLinkTlds`
47573
+ * adds: the generic ones of at least 1 in 1,000 of the sites in Tranco's top
47574
+ * million (list GQ38K, https://tranco-list.eu/list/GQ38K), then every
47575
+ * two-letter one in IANA's list (version 2026102900,
47576
+ * https://data.iana.org/TLD/tlds-alpha-by-domain.txt). Together they're the
47577
+ * endings of 96% of those sites
47578
+ * @private
47579
+ */ const TLDS = new Set(`
47580
+ app biz casino click cloud club com dev edu gov info live net online org pro
47581
+ shop site space store tech top vip xyz
47582
+ 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
47583
+ 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
47584
+ 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
47585
+ 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
47586
+ 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
47587
+ 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
47588
+ 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
47589
+ 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
47590
+ 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
47591
+ tv tw tz ua ug uk us uy uz va vc ve vg vi vn vu wf ws ye yt za zm zw
47592
+ `.trim().split(/\s+/));
47593
+
47594
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
47595
+ /* harmony export */ "TLDS", 0, /* binding */ TLDS
47596
+ /* harmony export */ ]);
47597
+
47598
+
47599
+ /***/ }),
47600
+
47601
+ /***/ 58970:
47602
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
47603
+
47604
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47605
+ /* harmony export */ findTypedLink: function() { return /* binding */ findTypedLink; }
47606
+ /* harmony export */ });
47607
+ /* harmony import */ var _core_helpers_checker_is_url_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26049);
47608
+ /* harmony import */ var _tlds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67272);
47609
+ /*!
47610
+ * Jodit Editor (https://xdsoft.net/jodit/)
47611
+ * Released under MIT see LICENSE.txt in the project root for license information.
47612
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
47613
+ */ /**
47614
+ * @module plugins/link
47615
+ */
47616
+
47617
+ /**
47618
+ * An email address, for `mailto:`
47619
+ * @private
47620
+ */ const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
47621
+ const OPENING = new Set([
47622
+ '(',
47623
+ '[',
47624
+ '"',
47625
+ "'",
47626
+ '“',
47627
+ '‘',
47628
+ '<'
47629
+ ]);
47630
+ const CLOSING = new Set([
47631
+ '.',
47632
+ ',',
47633
+ ';',
47634
+ ':',
47635
+ '!',
47636
+ '?',
47637
+ '"',
47638
+ "'",
47639
+ '”',
47640
+ '’',
47641
+ '>'
47642
+ ]);
47643
+ const BRACKETS = {
47644
+ ')': '(',
47645
+ ']': '['
47646
+ };
47647
+ const LABEL = /^[a-z\d][a-z\d-]{0,62}$/i;
47648
+ /**
47649
+ * The address that ends at `end` in a line of text typed, back to the
47650
+ * whitespace before it, as `[start, end, href]`. Punctuation round it, such as
47651
+ * a sentence's full stop or a bracket the address doesn't open, stays out.
47652
+ * An address counts with a scheme, with `www.`, as an email address, or as a
47653
+ * bare domain that `isBareDomain` accepts, so `Node.js` or `e.g.` don't
47654
+ * @private
47655
+ */ function findTypedLink(text, end, tlds, fileEndings) {
47656
+ let start = end;
47657
+ while(start > 0 && !/\s/.test(text[start - 1])){
47658
+ start -= 1;
47659
+ }
47660
+ while(start < end && OPENING.has(text[start])){
47661
+ start += 1;
47662
+ }
47663
+ while(end > start){
47664
+ const char = text[end - 1];
47665
+ const opening = BRACKETS[char];
47666
+ if (CLOSING.has(char) || opening && !text.slice(start, end - 1).includes(opening)) {
47667
+ end -= 1;
47668
+ } else {
47669
+ break;
47670
+ }
47671
+ }
47672
+ const href = typedLinkHref(text.slice(start, end), tlds, fileEndings);
47673
+ return href ? [
47674
+ start,
47675
+ end,
47676
+ href
47677
+ ] : null;
47678
+ }
47679
+ function typedLinkHref(address, tlds, fileEndings) {
47680
+ const email = address.replace(/^mailto:/i, '');
47681
+ if (EMAIL.test(email)) {
47682
+ return `mailto:${email}`;
47683
+ }
47684
+ if (/^www\.[^\s.]+\.\S+$/i.test(address) || isBareDomain(address, tlds, fileEndings)) {
47685
+ return `https://${address}`;
47686
+ }
47687
+ return /^[a-z][a-z\d+.-]*:\/\//i.test(address) && (0,_core_helpers_checker_is_url_js__WEBPACK_IMPORTED_MODULE_0__.isURL)(address) ? address : '';
47688
+ }
47689
+ /**
47690
+ * A domain typed without a scheme or `www.`, as `example.com`, `elections.nz`
47691
+ * or `bit.ly/enrol`. Its ending has to be in `TLDS` or `tlds`, typed in lower
47692
+ * case, so `Node.js` and a sentence run on, as in `home.It`, don't count, and
47693
+ * not in `fileEndings`, as in `photos.zip`. The first part has a letter,
47694
+ * which leaves out a time or a numbered step such as `11.am`
47695
+ */ function isBareDomain(address, tlds, fileEndings) {
47696
+ const cut = address.search(/[/?#]/);
47697
+ const host = cut < 0 ? address : address.slice(0, cut);
47698
+ const labels = host.split('.');
47699
+ const ending = labels[labels.length - 1];
47700
+ 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]);
47701
+ }
47702
+
47703
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
47704
+ /* harmony export */ "EMAIL", 0, /* binding */ EMAIL
47705
+ /* harmony export */ ]);
47706
+
47707
+
47407
47708
  /***/ }),
47408
47709
 
47409
47710
  /***/ 757: