jodit-pro 4.20.1 → 4.20.3

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 (351) hide show
  1. package/es2015/jodit.css +2 -2
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +8 -8
  4. package/es2015/jodit.js +237 -53
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +8 -8
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  11. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  12. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  13. package/es2015/plugins/backup/backup.css +1 -1
  14. package/es2015/plugins/backup/backup.js +1 -1
  15. package/es2015/plugins/backup/backup.min.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.css +1 -1
  17. package/es2015/plugins/button-generator/button-generator.js +1 -1
  18. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  19. package/es2015/plugins/change-case/change-case.js +1 -1
  20. package/es2015/plugins/change-case/change-case.min.js +1 -1
  21. package/es2015/plugins/chart/chart.css +1 -1
  22. package/es2015/plugins/chart/chart.js +1 -1
  23. package/es2015/plugins/chart/chart.min.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.css +1 -1
  25. package/es2015/plugins/color-picker/color-picker.js +1 -1
  26. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  27. package/es2015/plugins/emoji/emoji.css +1 -1
  28. package/es2015/plugins/emoji/emoji.js +1 -1
  29. package/es2015/plugins/emoji/emoji.min.js +1 -1
  30. package/es2015/plugins/export-docs/export-docs.js +1 -1
  31. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  32. package/es2015/plugins/finder/finder.css +1 -1
  33. package/es2015/plugins/finder/finder.js +1 -1
  34. package/es2015/plugins/finder/finder.min.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.css +1 -1
  36. package/es2015/plugins/google-maps/google-maps.js +1 -1
  37. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  38. package/es2015/plugins/google-search/google-search.js +1 -1
  39. package/es2015/plugins/google-search/google-search.min.js +1 -1
  40. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  41. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  43. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  44. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  46. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  47. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.css +1 -1
  49. package/es2015/plugins/keyboard/keyboard.js +1 -1
  50. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  51. package/es2015/plugins/math/math.css +1 -1
  52. package/es2015/plugins/math/math.js +1 -1
  53. package/es2015/plugins/math/math.min.js +1 -1
  54. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  55. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  56. package/es2015/plugins/page-break/page-break.js +1 -1
  57. package/es2015/plugins/page-break/page-break.min.js +1 -1
  58. package/es2015/plugins/paste-code/paste-code.css +1 -1
  59. package/es2015/plugins/paste-code/paste-code.js +1 -1
  60. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  61. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  62. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  63. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  64. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  65. package/es2015/plugins/style/style.css +1 -1
  66. package/es2015/plugins/style/style.js +1 -1
  67. package/es2015/plugins/style/style.min.js +1 -1
  68. package/es2015/plugins/templates/templates.css +1 -1
  69. package/es2015/plugins/templates/templates.js +1 -1
  70. package/es2015/plugins/templates/templates.min.js +1 -1
  71. package/es2015/plugins/todo-list/todo-list.css +1 -1
  72. package/es2015/plugins/todo-list/todo-list.js +1 -1
  73. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  74. package/es2015/plugins/translate/translate.css +1 -1
  75. package/es2015/plugins/translate/translate.js +1 -1
  76. package/es2015/plugins/translate/translate.min.js +1 -1
  77. package/es2015/plugins/tune-block/tune-block.css +1 -1
  78. package/es2015/plugins/tune-block/tune-block.js +1 -1
  79. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  80. package/es2018/jodit.fat.min.css +1 -1
  81. package/es2018/jodit.fat.min.js +8 -8
  82. package/es2018/jodit.min.css +1 -1
  83. package/es2018/jodit.min.js +8 -8
  84. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  85. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  86. package/es2018/plugins/backup/backup.min.js +1 -1
  87. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  88. package/es2018/plugins/change-case/change-case.min.js +1 -1
  89. package/es2018/plugins/chart/chart.min.js +1 -1
  90. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  91. package/es2018/plugins/emoji/emoji.min.js +1 -1
  92. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  93. package/es2018/plugins/finder/finder.min.js +1 -1
  94. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  95. package/es2018/plugins/google-search/google-search.min.js +1 -1
  96. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  98. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  99. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  100. package/es2018/plugins/math/math.min.js +1 -1
  101. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  102. package/es2018/plugins/page-break/page-break.min.js +1 -1
  103. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  104. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  105. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  106. package/es2018/plugins/style/style.min.js +1 -1
  107. package/es2018/plugins/templates/templates.min.js +1 -1
  108. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  109. package/es2018/plugins/translate/translate.min.js +1 -1
  110. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  111. package/es2021/jodit.css +2 -2
  112. package/es2021/jodit.fat.min.css +1 -1
  113. package/es2021/jodit.fat.min.js +8 -8
  114. package/es2021/jodit.js +237 -53
  115. package/es2021/jodit.min.css +1 -1
  116. package/es2021/jodit.min.js +8 -8
  117. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  118. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  119. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  120. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  121. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  122. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  123. package/es2021/plugins/backup/backup.css +1 -1
  124. package/es2021/plugins/backup/backup.js +1 -1
  125. package/es2021/plugins/backup/backup.min.js +1 -1
  126. package/es2021/plugins/button-generator/button-generator.css +1 -1
  127. package/es2021/plugins/button-generator/button-generator.js +1 -1
  128. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  129. package/es2021/plugins/change-case/change-case.js +1 -1
  130. package/es2021/plugins/change-case/change-case.min.js +1 -1
  131. package/es2021/plugins/chart/chart.css +1 -1
  132. package/es2021/plugins/chart/chart.js +1 -1
  133. package/es2021/plugins/chart/chart.min.js +1 -1
  134. package/es2021/plugins/color-picker/color-picker.css +1 -1
  135. package/es2021/plugins/color-picker/color-picker.js +1 -1
  136. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  137. package/es2021/plugins/emoji/emoji.css +1 -1
  138. package/es2021/plugins/emoji/emoji.js +1 -1
  139. package/es2021/plugins/emoji/emoji.min.js +1 -1
  140. package/es2021/plugins/export-docs/export-docs.js +1 -1
  141. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  142. package/es2021/plugins/finder/finder.css +1 -1
  143. package/es2021/plugins/finder/finder.js +1 -1
  144. package/es2021/plugins/finder/finder.min.js +1 -1
  145. package/es2021/plugins/google-maps/google-maps.css +1 -1
  146. package/es2021/plugins/google-maps/google-maps.js +1 -1
  147. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  148. package/es2021/plugins/google-search/google-search.js +1 -1
  149. package/es2021/plugins/google-search/google-search.min.js +1 -1
  150. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  151. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  152. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  153. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  154. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  155. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  156. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  157. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +1 -1
  160. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  161. package/es2021/plugins/math/math.css +1 -1
  162. package/es2021/plugins/math/math.js +1 -1
  163. package/es2021/plugins/math/math.min.js +1 -1
  164. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  165. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  166. package/es2021/plugins/page-break/page-break.js +1 -1
  167. package/es2021/plugins/page-break/page-break.min.js +1 -1
  168. package/es2021/plugins/paste-code/paste-code.css +1 -1
  169. package/es2021/plugins/paste-code/paste-code.js +1 -1
  170. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  171. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  172. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  173. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  174. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  175. package/es2021/plugins/style/style.css +1 -1
  176. package/es2021/plugins/style/style.js +1 -1
  177. package/es2021/plugins/style/style.min.js +1 -1
  178. package/es2021/plugins/templates/templates.css +1 -1
  179. package/es2021/plugins/templates/templates.js +1 -1
  180. package/es2021/plugins/templates/templates.min.js +1 -1
  181. package/es2021/plugins/todo-list/todo-list.css +1 -1
  182. package/es2021/plugins/todo-list/todo-list.js +1 -1
  183. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  184. package/es2021/plugins/translate/translate.css +1 -1
  185. package/es2021/plugins/translate/translate.js +1 -1
  186. package/es2021/plugins/translate/translate.min.js +1 -1
  187. package/es2021/plugins/tune-block/tune-block.css +1 -1
  188. package/es2021/plugins/tune-block/tune-block.js +1 -1
  189. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  190. package/es2021.en/jodit.css +2 -2
  191. package/es2021.en/jodit.fat.min.css +1 -1
  192. package/es2021.en/jodit.fat.min.js +8 -8
  193. package/es2021.en/jodit.js +237 -53
  194. package/es2021.en/jodit.min.css +1 -1
  195. package/es2021.en/jodit.min.js +8 -8
  196. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  197. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  198. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  199. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  200. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  201. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  202. package/es2021.en/plugins/backup/backup.css +1 -1
  203. package/es2021.en/plugins/backup/backup.js +1 -1
  204. package/es2021.en/plugins/backup/backup.min.js +1 -1
  205. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  206. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  207. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  208. package/es2021.en/plugins/change-case/change-case.js +1 -1
  209. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  210. package/es2021.en/plugins/chart/chart.css +1 -1
  211. package/es2021.en/plugins/chart/chart.js +1 -1
  212. package/es2021.en/plugins/chart/chart.min.js +1 -1
  213. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  214. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  215. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  216. package/es2021.en/plugins/emoji/emoji.css +1 -1
  217. package/es2021.en/plugins/emoji/emoji.js +1 -1
  218. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  219. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  220. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  221. package/es2021.en/plugins/finder/finder.css +1 -1
  222. package/es2021.en/plugins/finder/finder.js +1 -1
  223. package/es2021.en/plugins/finder/finder.min.js +1 -1
  224. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  225. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  226. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  227. package/es2021.en/plugins/google-search/google-search.js +1 -1
  228. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  229. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  230. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  231. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  232. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  233. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  234. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  235. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  236. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  237. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  238. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  239. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  240. package/es2021.en/plugins/math/math.css +1 -1
  241. package/es2021.en/plugins/math/math.js +1 -1
  242. package/es2021.en/plugins/math/math.min.js +1 -1
  243. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  244. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  245. package/es2021.en/plugins/page-break/page-break.js +1 -1
  246. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  247. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  248. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  249. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  250. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  251. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  252. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  253. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  254. package/es2021.en/plugins/style/style.css +1 -1
  255. package/es2021.en/plugins/style/style.js +1 -1
  256. package/es2021.en/plugins/style/style.min.js +1 -1
  257. package/es2021.en/plugins/templates/templates.css +1 -1
  258. package/es2021.en/plugins/templates/templates.js +1 -1
  259. package/es2021.en/plugins/templates/templates.min.js +1 -1
  260. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  261. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  262. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  263. package/es2021.en/plugins/translate/translate.css +1 -1
  264. package/es2021.en/plugins/translate/translate.js +1 -1
  265. package/es2021.en/plugins/translate/translate.min.js +1 -1
  266. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  267. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  268. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  269. package/es5/jodit.css +3 -3
  270. package/es5/jodit.fat.min.css +1 -1
  271. package/es5/jodit.fat.min.js +2 -2
  272. package/es5/jodit.js +309 -55
  273. package/es5/jodit.min.css +3 -3
  274. package/es5/jodit.min.js +2 -2
  275. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  276. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  277. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  278. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  279. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  280. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  281. package/es5/plugins/backup/backup.css +1 -1
  282. package/es5/plugins/backup/backup.js +1 -1
  283. package/es5/plugins/backup/backup.min.js +1 -1
  284. package/es5/plugins/button-generator/button-generator.css +1 -1
  285. package/es5/plugins/button-generator/button-generator.js +1 -1
  286. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  287. package/es5/plugins/change-case/change-case.js +1 -1
  288. package/es5/plugins/change-case/change-case.min.js +1 -1
  289. package/es5/plugins/chart/chart.css +1 -1
  290. package/es5/plugins/chart/chart.js +1 -1
  291. package/es5/plugins/chart/chart.min.js +1 -1
  292. package/es5/plugins/color-picker/color-picker.css +1 -1
  293. package/es5/plugins/color-picker/color-picker.js +1 -1
  294. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  295. package/es5/plugins/emoji/emoji.css +1 -1
  296. package/es5/plugins/emoji/emoji.js +1 -1
  297. package/es5/plugins/emoji/emoji.min.js +1 -1
  298. package/es5/plugins/export-docs/export-docs.js +1 -1
  299. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  300. package/es5/plugins/finder/finder.css +1 -1
  301. package/es5/plugins/finder/finder.js +1 -1
  302. package/es5/plugins/finder/finder.min.js +1 -1
  303. package/es5/plugins/google-maps/google-maps.css +1 -1
  304. package/es5/plugins/google-maps/google-maps.js +1 -1
  305. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  306. package/es5/plugins/google-search/google-search.js +1 -1
  307. package/es5/plugins/google-search/google-search.min.js +1 -1
  308. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  309. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  310. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  311. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  312. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  313. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  314. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  315. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  316. package/es5/plugins/keyboard/keyboard.css +1 -1
  317. package/es5/plugins/keyboard/keyboard.js +1 -1
  318. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  319. package/es5/plugins/math/math.css +1 -1
  320. package/es5/plugins/math/math.js +1 -1
  321. package/es5/plugins/math/math.min.js +1 -1
  322. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  323. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  324. package/es5/plugins/page-break/page-break.js +1 -1
  325. package/es5/plugins/page-break/page-break.min.js +1 -1
  326. package/es5/plugins/paste-code/paste-code.css +1 -1
  327. package/es5/plugins/paste-code/paste-code.js +1 -1
  328. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  329. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  330. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  331. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  332. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  333. package/es5/plugins/style/style.css +1 -1
  334. package/es5/plugins/style/style.js +1 -1
  335. package/es5/plugins/style/style.min.js +1 -1
  336. package/es5/plugins/templates/templates.css +1 -1
  337. package/es5/plugins/templates/templates.js +1 -1
  338. package/es5/plugins/templates/templates.min.js +1 -1
  339. package/es5/plugins/todo-list/todo-list.css +1 -1
  340. package/es5/plugins/todo-list/todo-list.js +1 -1
  341. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  342. package/es5/plugins/translate/translate.css +1 -1
  343. package/es5/plugins/translate/translate.js +1 -1
  344. package/es5/plugins/translate/translate.min.js +1 -1
  345. package/es5/plugins/tune-block/tune-block.css +1 -1
  346. package/es5/plugins/tune-block/tune-block.js +1 -1
  347. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  348. package/es5/polyfills.fat.min.js +1 -1
  349. package/es5/polyfills.js +1 -1
  350. package/es5/polyfills.min.js +1 -1
  351. package/package.json +1 -1
package/es5/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.20.1
4
+ * Version: v4.20.3
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -2334,7 +2334,7 @@ function _unsupported_iterable_to_array(o, minLen) {
2334
2334
  if (n === "Map" || n === "Set") return Array.from(n);
2335
2335
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
2336
2336
  }
2337
- var APP_VERSION = "4.20.1";
2337
+ var APP_VERSION = "4.20.3";
2338
2338
  // prettier-ignore
2339
2339
  var ES = "es5";
2340
2340
  var IS_ES_MODERN = false;
@@ -23539,6 +23539,8 @@ var UIInput = UIInput_1 = /*#__PURE__*/ function(UIElement) {
23539
23539
  if (label) {
23540
23540
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(this.wrapper, this.label);
23541
23541
  this.label.innerText = this.j.i18n(label);
23542
+ // The label is a span, so it names the input only this way
23543
+ (0,_helpers_utils_index_js__WEBPACK_IMPORTED_MODULE_3__.attr)(input, 'aria-label', this.j.i18n(label));
23542
23544
  } else {
23543
23545
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(this.label);
23544
23546
  }
@@ -43988,10 +43990,24 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
43988
43990
  }
43989
43991
  },
43990
43992
  {
43991
- key: "onChangeActivated",
43993
+ key: "isToggle",
43994
+ get: /**
43995
+ * A button that its control can show as on is a toggle, and says whether
43996
+ * it's pressed
43997
+ */ function get() {
43998
+ var _this_control = this.control, isActive = _this_control.isActive, tags = _this_control.tags, css = _this_control.css;
43999
+ return Boolean(isActive || tags || css);
44000
+ }
44001
+ },
44002
+ {
44003
+ /**
44004
+ * The pressed look comes from the mod, as any button looks pressed while
44005
+ * its list is open, and the container is a `listitem`, which can't have
44006
+ * `aria-pressed`
44007
+ */ key: "onChangeActivated",
43992
44008
  value: function onChangeActivated() {
43993
- ;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
43994
- _get(_get_prototype_of(ToolbarButton.prototype), "onChangeActivated", this).call(this);
44009
+ ;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.isToggle ? this.state.activated : null);
44010
+ this.setMod('activated', this.state.activated || null);
43995
44011
  }
43996
44012
  },
43997
44013
  {
@@ -43999,6 +44015,8 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
43999
44015
  value: function onChangeText() {
44000
44016
  if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(this.control.template)) {
44001
44017
  this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
44018
+ // The name given before the text came would otherwise stay
44019
+ this.updateAriaLabel();
44002
44020
  } else {
44003
44021
  _get(_get_prototype_of(ToolbarButton.prototype), "onChangeText", this).call(this);
44004
44022
  }
@@ -44073,6 +44091,8 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
44073
44091
  state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_9__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
44074
44092
  }
44075
44093
  state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
44094
+ // UIButton's template makes every button a toggle
44095
+ this.onChangeActivated();
44076
44096
  }
44077
44097
  },
44078
44098
  {
@@ -44792,7 +44812,8 @@ ToolbarContent = __decorate([
44792
44812
  /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
44793
44813
  /* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
44794
44814
  /* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
44795
- /* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78644);
44815
+ /* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
44816
+ /* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78644);
44796
44817
  function _assert_this_initialized(self) {
44797
44818
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
44798
44819
  return self;
@@ -44894,6 +44915,7 @@ function _type_of(obj) {
44894
44915
 
44895
44916
 
44896
44917
 
44918
+
44897
44919
  var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44898
44920
  "use strict";
44899
44921
  _inherits(ToolbarSelect, ToolbarButton);
@@ -44908,6 +44930,13 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44908
44930
  return 'ToolbarSelect';
44909
44931
  }
44910
44932
  },
44933
+ {
44934
+ key: "isToggle",
44935
+ get: // It shows its value, rather than being on or off
44936
+ function get() {
44937
+ return false;
44938
+ }
44939
+ },
44911
44940
  {
44912
44941
  key: "update",
44913
44942
  value: function update() {
@@ -44925,10 +44954,25 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44925
44954
  this.state.text = (_c = (_b = (_a = this.control).textTemplate) === null || _b === void 0 ? void 0 : _b.call(_a, this.jodit, text)) !== null && _c !== void 0 ? _c : text;
44926
44955
  }
44927
44956
  }
44957
+ },
44958
+ {
44959
+ /**
44960
+ * The button shows only the value, so its name says which control it
44961
+ * is too: "Font size, 16px"
44962
+ */ key: "updateAriaLabel",
44963
+ value: function updateAriaLabel() {
44964
+ var _a;
44965
+ _get(_get_prototype_of(ToolbarSelect.prototype), "updateAriaLabel", this).call(this);
44966
+ var tooltip = this.state.tooltip;
44967
+ var value = (_a = this.text.textContent) === null || _a === void 0 ? void 0 : _a.trim();
44968
+ if (tooltip && value) {
44969
+ (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__.attr)(this.button, 'aria-label', "".concat(this.jodit.i18n(tooltip), ", ").concat(value));
44970
+ }
44971
+ }
44928
44972
  }
44929
44973
  ]);
44930
44974
  return ToolbarSelect;
44931
- }(_button_js__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton);
44975
+ }(_button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton);
44932
44976
  ToolbarSelect = __decorate([
44933
44977
  _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
44934
44978
  ], ToolbarSelect);
@@ -47059,10 +47103,39 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
47059
47103
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47060
47104
  /* harmony export */ ColorPickerWidget: function() { return /* binding */ ColorPickerWidget; }
47061
47105
  /* harmony export */ });
47062
- /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22732);
47063
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
47064
- /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67510);
47065
- /* harmony import */ var _palette_svg_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37068);
47106
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
47107
+ /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
47108
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
47109
+ /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
47110
+ /* harmony import */ var _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37068);
47111
+ function _array_like_to_array(arr, len) {
47112
+ if (len == null || len > arr.length) len = arr.length;
47113
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
47114
+ return arr2;
47115
+ }
47116
+ function _array_without_holes(arr) {
47117
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
47118
+ }
47119
+ function _iterable_to_array(iter) {
47120
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
47121
+ return Array.from(iter);
47122
+ }
47123
+ }
47124
+ function _non_iterable_spread() {
47125
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47126
+ }
47127
+ function _to_consumable_array(arr) {
47128
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
47129
+ }
47130
+ function _unsupported_iterable_to_array(o, minLen) {
47131
+ if (!o) return;
47132
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
47133
+ var n = Object.prototype.toString.call(o).slice(8, -1);
47134
+ if (n === "Object" && o.constructor) n = o.constructor.name;
47135
+ if (n === "Map" || n === "Set") return Array.from(n);
47136
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
47137
+ }
47138
+ var _this = undefined;
47066
47139
  /*!
47067
47140
  * Jodit Editor (https://xdsoft.net/jodit/)
47068
47141
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -47071,7 +47144,8 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
47071
47144
 
47072
47145
 
47073
47146
 
47074
- _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
47147
+
47148
+ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
47075
47149
  /**
47076
47150
  * Build color picker
47077
47151
  *
@@ -47089,29 +47163,66 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47089
47163
  * });
47090
47164
  * ```
47091
47165
  */ var ColorPickerWidget = function ColorPickerWidget(editor, callback, coldColor) {
47092
- var cn = 'jodit-color-picker', valueHex = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.normalizeColor)(coldColor), form = editor.c.div(cn), iconPalette = editor.o.textIcons ? "<span>".concat(editor.i18n('palette'), "</span>") : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.get('palette'), eachColor = function eachColor1(colors) {
47166
+ var _a;
47167
+ var cn = 'jodit-color-picker', valueHex = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(coldColor), form = editor.c.div(cn), iconPalette = editor.o.textIcons ? "<span>".concat(editor.i18n('palette'), "</span>") : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('palette'), eachColor = function eachColor1(colors) {
47093
47168
  var stack = [];
47094
- if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(colors)) {
47169
+ if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(colors)) {
47095
47170
  Object.keys(colors).forEach(function(key) {
47096
47171
  stack.push('<div class="'.concat(cn, "__group ").concat(cn, "__group-").concat(key, '">'));
47097
47172
  stack.push(eachColor(colors[key]));
47098
47173
  stack.push('</div>');
47099
47174
  });
47100
- } else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(colors)) {
47175
+ } else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(colors)) {
47101
47176
  colors.forEach(function(color) {
47102
- stack.push("<span class='".concat(cn, "__color-item ").concat(valueHex === color ? cn + '__color-item_active_true' : '', "' title=\"").concat(color, '" style="background-color:').concat(color, '" data-color="').concat(color, '"></span>'));
47177
+ var active = valueHex === color;
47178
+ stack.push('<button type="button" class=\''.concat(cn, "__color-item ").concat(active ? cn + '__color-item_active_true' : '', "' title=\"").concat(color, '" aria-pressed="').concat(active, '" tabindex="-1" style="background-color:').concat(color, '" data-color="').concat(color, '"></button>'));
47103
47179
  });
47104
47180
  }
47105
47181
  return stack.join('');
47106
47182
  };
47107
47183
  // The group wrapper lays the colors out in rows, so a flat list needs one
47108
47184
  // too. See #1487
47109
- var groups = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(editor.o.colors) ? '<div class="'.concat(cn, '__group">').concat(eachColor(editor.o.colors), "</div>") : eachColor(editor.o.colors);
47110
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(form, editor.c.fromHTML('<div class="'.concat(cn, '__groups">').concat(groups, "</div>")));
47111
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(form, editor.c.fromHTML('<div data-ref="extra" class="'.concat(cn, '__extra"></div>')));
47112
- var extra = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.refs)(form).extra;
47113
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(extra, editor.c.fromHTML('<div class="'.concat(cn, '__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="').concat(valueHex || '', '"/></div>')));
47114
- var hexInput = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.refs)(form).hexInput;
47185
+ var groups = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(editor.o.colors) ? '<div class="'.concat(cn, '__group">').concat(eachColor(editor.o.colors), "</div>") : eachColor(editor.o.colors);
47186
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML('<div class="'.concat(cn, '__groups">').concat(groups, "</div>")));
47187
+ var items = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(form.querySelectorAll(".".concat(cn, "__color-item")));
47188
+ // Tab stops at one color, the current one or the first, and the arrow
47189
+ // keys move from it
47190
+ var tabStop = (_a = items.find(function(item) {
47191
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'aria-pressed') === 'true';
47192
+ })) !== null && _a !== void 0 ? _a : items[0];
47193
+ if (tabStop) {
47194
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(tabStop, 'tabindex', 0);
47195
+ }
47196
+ // Along a row, or to the nearest color in the row above or below, as the
47197
+ // palette is laid out
47198
+ var nextItem = function nextItem(item, key) {
47199
+ var index = items.indexOf(item);
47200
+ if (key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT) {
47201
+ var step = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ? -1 : 1;
47202
+ var rtl = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(item, 'direction') === 'rtl';
47203
+ return items[index + (rtl ? -step : step)];
47204
+ }
47205
+ var down = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN, rows = items.filter(function(other) {
47206
+ return down ? other.offsetTop > item.offsetTop : other.offsetTop < item.offsetTop;
47207
+ });
47208
+ if (!rows.length) {
47209
+ return;
47210
+ }
47211
+ var top = (down ? Math.min : Math.max).apply(_this, _to_consumable_array(rows.map(function(other) {
47212
+ return other.offsetTop;
47213
+ }))), distance = function distance(other) {
47214
+ return Math.abs(other.offsetLeft - item.offsetLeft);
47215
+ };
47216
+ return rows.filter(function(other) {
47217
+ return other.offsetTop === top;
47218
+ }).reduce(function(nearest, other) {
47219
+ return distance(other) < distance(nearest) ? other : nearest;
47220
+ });
47221
+ };
47222
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML('<div data-ref="extra" class="'.concat(cn, '__extra"></div>')));
47223
+ var extra = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form).extra;
47224
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML('<div class="'.concat(cn, '__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="').concat(valueHex || '', '"/></div>')));
47225
+ var hexInput = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form).hexInput;
47115
47226
  // Enter applies the value and closes the popup; removing the focused
47116
47227
  // input then makes Chrome fire `change` on it, which would apply the
47117
47228
  // same color a second time and toggle it off again. See #1459
@@ -47126,8 +47237,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47126
47237
  if (!isHex && !isRgb) {
47127
47238
  return;
47128
47239
  }
47129
- var color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
47130
- if (color && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(callback)) {
47240
+ var color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
47241
+ if (color && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
47131
47242
  appliedHexValue = raw;
47132
47243
  callback(color);
47133
47244
  }
@@ -47142,40 +47253,79 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47142
47253
  e.stopPropagation();
47143
47254
  applyHexInput();
47144
47255
  });
47145
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(extra, editor.c.fromHTML('<span class="'.concat(cn, '__remove" data-color="" title="').concat(editor.i18n('Remove'), '">').concat(editor.o.textIcons ? editor.i18n('Remove') : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.get('eraser'), "</span>")));
47146
- if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.hasBrowserColorPicker)()) {
47147
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(extra, editor.c.fromHTML('<div class="'.concat(cn, '__native">').concat(iconPalette, '<input type="color" value="#ffffff"/></div>')));
47256
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML('<button type="button" class="'.concat(cn, '__remove" data-color="" title="').concat(editor.i18n('Remove'), '">').concat(editor.o.textIcons ? editor.i18n('Remove') : _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('eraser'), "</button>")));
47257
+ if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.hasBrowserColorPicker)()) {
47258
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(extra, editor.c.fromHTML('<div class="'.concat(cn, '__native">').concat(iconPalette, '<input type="color" value="#ffffff"/></div>')));
47148
47259
  editor.e.on(form, 'change', function(e) {
47149
47260
  e.stopPropagation();
47150
47261
  var target = e.target;
47151
- if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(target, 'input') || target.type !== 'color') {
47262
+ if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(target, 'input') || target.type !== 'color') {
47152
47263
  return;
47153
47264
  }
47154
47265
  var color = target.value || '';
47155
- if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(callback)) {
47266
+ if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
47156
47267
  callback(color);
47157
47268
  }
47158
47269
  e.preventDefault();
47159
47270
  });
47160
47271
  }
47272
+ // The color of a swatch, or '' for Remove, from an event on it or its icon
47273
+ var colorOf = function colorOf(node) {
47274
+ var button = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(node, function(elm) {
47275
+ return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(elm) && (elm.classList.contains(cn + '__color-item') || elm.classList.contains(cn + '__remove'));
47276
+ }, form);
47277
+ return button ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(button, '-color') || '' : undefined;
47278
+ };
47279
+ var apply = function apply(color) {
47280
+ if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
47281
+ callback(color);
47282
+ }
47283
+ };
47284
+ // A pointer applies the color on `mousedown`, which keeps the selection.
47285
+ // The keyboard and screen readers press the button, which sends only
47286
+ // `click`, so a click after the pointer's `mousedown` is skipped
47287
+ var pointerPressed = false;
47161
47288
  editor.e.on(form, 'mousedown touchend', function(e) {
47162
47289
  // let the hex/native inputs receive focus and clicks
47163
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(e.target, 'input')) {
47290
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'input')) {
47164
47291
  e.stopPropagation();
47165
47292
  return;
47166
47293
  }
47167
47294
  e.stopPropagation();
47168
47295
  e.preventDefault();
47169
- var target = e.target;
47170
- if ((!target || !target.tagName || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(target, 'svg') || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(target, 'path')) && target.parentNode) {
47171
- target = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(target.parentNode, 'span', editor.editor);
47296
+ var color = colorOf(e.target);
47297
+ if (color !== undefined) {
47298
+ pointerPressed = e.type === 'mousedown';
47299
+ apply(color);
47172
47300
  }
47173
- if (!_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(target, 'span') || !target.classList.contains(cn + '__color-item') && !target.classList.contains(cn + '__remove')) {
47301
+ });
47302
+ editor.e.on(form, 'click', function(e) {
47303
+ var color = colorOf(e.target);
47304
+ if (color !== undefined && !pointerPressed) {
47305
+ apply(color);
47306
+ }
47307
+ pointerPressed = false;
47308
+ }).on(form, 'keydown', function(e) {
47309
+ var _a;
47310
+ pointerPressed = false;
47311
+ var item = e.target;
47312
+ if (!items.includes(item) || ![
47313
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
47314
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
47315
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
47316
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
47317
+ ].includes(e.key)) {
47174
47318
  return;
47175
47319
  }
47176
- var color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.attr)(target, '-color') || '';
47177
- if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(callback)) {
47178
- callback(color);
47320
+ // The toolbar's dropdown would walk every color one by one
47321
+ e.preventDefault();
47322
+ e.stopPropagation();
47323
+ (_a = nextItem(item, e.key)) === null || _a === void 0 ? void 0 : _a.focus();
47324
+ }).on(form, 'focusin', function(e) {
47325
+ if (items.includes(e.target)) {
47326
+ items.forEach(function(item) {
47327
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'tabindex', item === e.target ? 0 : -1);
47328
+ });
47179
47329
  }
47180
47330
  });
47181
47331
  editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
@@ -49094,7 +49244,8 @@ UiAiAssistant = __decorate([
49094
49244
  /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
49095
49245
  /* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
49096
49246
  /* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
49097
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50712);
49247
+ /* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12153);
49248
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50712);
49098
49249
  function _assert_this_initialized(self) {
49099
49250
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
49100
49251
  return self;
@@ -49224,16 +49375,23 @@ function _wrap_native_super(Class) {
49224
49375
 
49225
49376
 
49226
49377
 
49227
- var ICON = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E\")";
49228
- var MARKER = [
49229
- 'id',
49230
- 'name'
49231
- ].map(function(key) {
49232
- return ".jodit-wysiwyg a[".concat(key, "]:not([href]):empty::before");
49233
- }).join(',');
49378
+
49379
+ /**
49380
+ * The editing area of an editor with the plugin, when it shares its document
49381
+ * with the page and so with any other editor on it
49382
+ */ var WITH_ANCHORS = 'jodit-wysiwyg_anchors';
49234
49383
  /**
49235
- * Each anchor's marker, in the editing area only
49236
- */ var MARKER_STYLE = "".concat(MARKER, "{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background:").concat(ICON, " center/contain no-repeat;cursor:pointer;content:''}");
49384
+ * Each anchor's marker, in the editing areas `scope` picks out
49385
+ */ function markerStyle(scope) {
49386
+ var marker = [
49387
+ 'id',
49388
+ 'name'
49389
+ ].map(function(key) {
49390
+ return ".jodit-wysiwyg".concat(scope, " a[").concat(key, "]:not([href]):empty::before");
49391
+ }).join(',');
49392
+ var icon = 'url("data:image/svg+xml,'.concat(encodeURIComponent(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__.Icon.get('anchor')), '") center/contain no-repeat');
49393
+ return "".concat(marker, "{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background-color:var(--jd-color-icon,#4c4c4c);-webkit-mask:").concat(icon, ";mask:").concat(icon, ";cursor:pointer;content:''}");
49394
+ }
49237
49395
  /**
49238
49396
  * The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
49239
49397
  */ var MARK = ' contenteditable="false"';
@@ -49264,8 +49422,14 @@ var MARKER = [
49264
49422
  {
49265
49423
  /** @override */ key: "afterInit",
49266
49424
  value: function afterInit(jodit) {
49425
+ // An iframe's document is the editor's alone, and its body is part of
49426
+ // the value with `editHTMLDocumentMode`, so it gets no class
49427
+ var shared = jodit.ed === jodit.od;
49428
+ if (shared) {
49429
+ jodit.editor.classList.add(WITH_ANCHORS);
49430
+ }
49267
49431
  // It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
49268
- ;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = MARKER_STYLE;
49432
+ ;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = markerStyle(shared ? '.' + WITH_ANCHORS : '');
49269
49433
  jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
49270
49434
  top: true
49271
49435
  });
@@ -49312,6 +49476,27 @@ var MARKER = [
49312
49476
  },
49313
49477
  {
49314
49478
  /**
49479
+ * A pasted or dropped copy of an anchor the document already has gets the
49480
+ * next free name, as `fees-2`, and the links that came with it follow it
49481
+ */ key: "onBeforePasteInsert",
49482
+ value: function onBeforePasteInsert(html) {
49483
+ if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(html) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isFragment(html)) {
49484
+ this.__renameCopies(html);
49485
+ return;
49486
+ }
49487
+ if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) || !/<a\s/i.test(html)) {
49488
+ return;
49489
+ }
49490
+ // Inert, so nothing in it loads
49491
+ var template = this.j.createInside.element('template');
49492
+ template.innerHTML = html;
49493
+ if (this.__renameCopies(template.content)) {
49494
+ return template.innerHTML;
49495
+ }
49496
+ }
49497
+ },
49498
+ {
49499
+ /**
49315
49500
  * The form that names a new anchor, or renames or removes `target`
49316
49501
  */ key: "__generateForm",
49317
49502
  value: function __generateForm(target, close) {
@@ -49469,10 +49654,60 @@ var MARKER = [
49469
49654
  });
49470
49655
  }
49471
49656
  },
49657
+ {
49658
+ /**
49659
+ * Gives each anchor in `root` whose name the document already has the
49660
+ * next free one, avoiding the names in `root` too, and points the links
49661
+ * in `root` to it at the new name. Whether any was renamed
49662
+ */ key: "__renameCopies",
49663
+ value: function __renameCopies(root) {
49664
+ var _this = this;
49665
+ var inRoot = new Set((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('[id], a[name]')).map(function(elm) {
49666
+ return elm.id || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'name');
49667
+ }));
49668
+ var renamed = new Map();
49669
+ var anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(root) ? [
49670
+ root
49671
+ ] : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(root);
49672
+ anchors.forEach(function(anchor) {
49673
+ var name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
49674
+ if (!_this.__isTaken(name, null)) {
49675
+ return;
49676
+ }
49677
+ var copy = name;
49678
+ for(var n = 2; inRoot.has(copy) || _this.__isTaken(copy, null); n += 1){
49679
+ copy = "".concat(name, "-").concat(n);
49680
+ }
49681
+ [
49682
+ 'id',
49683
+ 'name'
49684
+ ].forEach(function(key) {
49685
+ if (anchor.hasAttribute(key)) {
49686
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, key, copy);
49687
+ }
49688
+ });
49689
+ inRoot.add(copy);
49690
+ renamed.set(name, copy);
49691
+ });
49692
+ if (!renamed.size) {
49693
+ return false;
49694
+ }
49695
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('a[href]')).forEach(function(link) {
49696
+ var _a;
49697
+ var href = (_a = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href')) !== null && _a !== void 0 ? _a : '';
49698
+ var copy = href[0] === '#' && renamed.get(href.slice(1));
49699
+ if (copy) {
49700
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + copy);
49701
+ }
49702
+ });
49703
+ return true;
49704
+ }
49705
+ },
49472
49706
  {
49473
49707
  /** @override */ key: "beforeDestruct",
49474
49708
  value: function beforeDestruct(jodit) {
49475
49709
  this.__dropForm();
49710
+ jodit.editor.classList.remove(WITH_ANCHORS);
49476
49711
  jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
49477
49712
  }
49478
49713
  }
@@ -49493,6 +49728,9 @@ __decorate([
49493
49728
  __decorate([
49494
49729
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
49495
49730
  ], anchor.prototype, "onAfterGetValueFromEditor", null);
49731
+ __decorate([
49732
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
49733
+ ], anchor.prototype, "onBeforePasteInsert", null);
49496
49734
  __decorate([
49497
49735
  _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
49498
49736
  ], anchor.prototype, "__generateForm", null);
@@ -58624,6 +58862,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
58624
58862
  exec: function exec(editor) {
58625
58863
  editor.toggleFullSize();
58626
58864
  },
58865
+ // Makes it a toggle. `update` sets the state, which holds while the editor doesn't have the focus
58866
+ isActive: function isActive(editor) {
58867
+ return editor.isFullSize;
58868
+ },
58627
58869
  update: function update(editor, button) {
58628
58870
  var mode = editor.isFullSize ? 'shrink' : 'fullsize';
58629
58871
  button.state.activated = editor.isFullSize;
@@ -59115,9 +59357,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
59115
59357
  _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
59116
59358
  _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
59117
59359
  command: 'insertHorizontalRule',
59118
- tags: [
59119
- 'hr'
59120
- ],
59121
59360
  tooltip: 'Insert Horizontal Line'
59122
59361
  };
59123
59362
  function hr(editor) {
@@ -66576,9 +66815,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
66576
66815
  _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
66577
66816
  _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
66578
66817
  command: 'applyLineHeight',
66579
- tags: [
66580
- 'ol'
66581
- ],
66582
66818
  tooltip: 'Line height',
66583
66819
  list: [
66584
66820
  1,
@@ -68300,7 +68536,9 @@ var formTemplate = function formTemplate(editor) {
68300
68536
  new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIBlock(editor, [
68301
68537
  new _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_1__.UIInput(editor, {
68302
68538
  name: 'url',
68303
- type: 'text',
68539
+ // Touch keyboards leave a URL field as typed, with no capital or
68540
+ // correction. The form is `novalidate`, so any address still goes in
68541
+ type: 'url',
68304
68542
  ref: 'url_input',
68305
68543
  label: 'URL',
68306
68544
  placeholder: 'http://',
@@ -73216,6 +73454,19 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
73216
73454
  },
73217
73455
  {
73218
73456
  /**
73457
+ * A tap that selects an image sends no `click` (iPadOS), so `touchend`
73458
+ * stands in for it. A tick later, after `onClickOutside` has had the same
73459
+ * `touchend`, as `click` comes after `mouseup`
73460
+ */ key: "onEditorTouchEnd",
73461
+ value: function onEditorTouchEnd(e) {
73462
+ var _this = this;
73463
+ this.j.async.setTimeout(function() {
73464
+ return _this.onEditorClick(e);
73465
+ }, 1);
73466
+ }
73467
+ },
73468
+ {
73469
+ /**
73219
73470
  * Click in the editor area
73220
73471
  */ key: "onEditorClick",
73221
73472
  value: function onEditorClick(e) {
@@ -73667,6 +73918,9 @@ var IFRAME_WRAPPER = '[data-jodit_iframe_wrapper]';
73667
73918
  ]);
73668
73919
  return resizer;
73669
73920
  }(_wrap_native_super(_core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_7__.Plugin));
73921
+ __decorate([
73922
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':touchend')
73923
+ ], resizer.prototype, "onEditorTouchEnd", null);
73670
73924
  __decorate([
73671
73925
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':click')
73672
73926
  ], resizer.prototype, "onEditorClick", null);