jodit-pro 4.20.2 → 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 +5 -5
  4. package/es2015/jodit.js +220 -52
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +5 -5
  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 +5 -5
  82. package/es2018/jodit.min.css +1 -1
  83. package/es2018/jodit.min.js +5 -5
  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 +5 -5
  114. package/es2021/jodit.js +220 -52
  115. package/es2021/jodit.min.css +1 -1
  116. package/es2021/jodit.min.js +5 -5
  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 +5 -5
  193. package/es2021.en/jodit.js +220 -52
  194. package/es2021.en/jodit.min.css +1 -1
  195. package/es2021.en/jodit.min.js +5 -5
  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 +286 -54
  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.2
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.2";
2337
+ var APP_VERSION = "4.20.3";
2338
2338
  // prettier-ignore
2339
2339
  var ES = "es5";
2340
2340
  var IS_ES_MODERN = false;
@@ -43990,10 +43990,24 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
43990
43990
  }
43991
43991
  },
43992
43992
  {
43993
- 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",
43994
44008
  value: function onChangeActivated() {
43995
- ;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.state.activated);
43996
- _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);
43997
44011
  }
43998
44012
  },
43999
44013
  {
@@ -44077,6 +44091,8 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
44077
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;
44078
44092
  }
44079
44093
  state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
44094
+ // UIButton's template makes every button a toggle
44095
+ this.onChangeActivated();
44080
44096
  }
44081
44097
  },
44082
44098
  {
@@ -44796,7 +44812,8 @@ ToolbarContent = __decorate([
44796
44812
  /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
44797
44813
  /* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
44798
44814
  /* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
44799
- /* 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);
44800
44817
  function _assert_this_initialized(self) {
44801
44818
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
44802
44819
  return self;
@@ -44898,6 +44915,7 @@ function _type_of(obj) {
44898
44915
 
44899
44916
 
44900
44917
 
44918
+
44901
44919
  var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44902
44920
  "use strict";
44903
44921
  _inherits(ToolbarSelect, ToolbarButton);
@@ -44912,6 +44930,13 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44912
44930
  return 'ToolbarSelect';
44913
44931
  }
44914
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
+ },
44915
44940
  {
44916
44941
  key: "update",
44917
44942
  value: function update() {
@@ -44929,10 +44954,25 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44929
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;
44930
44955
  }
44931
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
+ }
44932
44972
  }
44933
44973
  ]);
44934
44974
  return ToolbarSelect;
44935
- }(_button_js__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton);
44975
+ }(_button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton);
44936
44976
  ToolbarSelect = __decorate([
44937
44977
  _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
44938
44978
  ], ToolbarSelect);
@@ -47063,10 +47103,39 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
47063
47103
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47064
47104
  /* harmony export */ ColorPickerWidget: function() { return /* binding */ ColorPickerWidget; }
47065
47105
  /* harmony export */ });
47066
- /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22732);
47067
- /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21537);
47068
- /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67510);
47069
- /* 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;
47070
47139
  /*!
47071
47140
  * Jodit Editor (https://xdsoft.net/jodit/)
47072
47141
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -47075,7 +47144,8 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
47075
47144
 
47076
47145
 
47077
47146
 
47078
- _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"]);
47079
47149
  /**
47080
47150
  * Build color picker
47081
47151
  *
@@ -47093,29 +47163,66 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47093
47163
  * });
47094
47164
  * ```
47095
47165
  */ var ColorPickerWidget = function ColorPickerWidget(editor, callback, coldColor) {
47096
- 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) {
47097
47168
  var stack = [];
47098
- 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)) {
47099
47170
  Object.keys(colors).forEach(function(key) {
47100
47171
  stack.push('<div class="'.concat(cn, "__group ").concat(cn, "__group-").concat(key, '">'));
47101
47172
  stack.push(eachColor(colors[key]));
47102
47173
  stack.push('</div>');
47103
47174
  });
47104
- } 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)) {
47105
47176
  colors.forEach(function(color) {
47106
- 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>'));
47107
47179
  });
47108
47180
  }
47109
47181
  return stack.join('');
47110
47182
  };
47111
47183
  // The group wrapper lays the colors out in rows, so a flat list needs one
47112
47184
  // too. See #1487
47113
- 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);
47114
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(form, editor.c.fromHTML('<div class="'.concat(cn, '__groups">').concat(groups, "</div>")));
47115
- _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(form, editor.c.fromHTML('<div data-ref="extra" class="'.concat(cn, '__extra"></div>')));
47116
- var extra = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.refs)(form).extra;
47117
- _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>')));
47118
- 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;
47119
47226
  // Enter applies the value and closes the popup; removing the focused
47120
47227
  // input then makes Chrome fire `change` on it, which would apply the
47121
47228
  // same color a second time and toggle it off again. See #1459
@@ -47130,8 +47237,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47130
47237
  if (!isHex && !isRgb) {
47131
47238
  return;
47132
47239
  }
47133
- var color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
47134
- 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)) {
47135
47242
  appliedHexValue = raw;
47136
47243
  callback(color);
47137
47244
  }
@@ -47146,40 +47253,79 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47146
47253
  e.stopPropagation();
47147
47254
  applyHexInput();
47148
47255
  });
47149
- _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>")));
47150
- if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.hasBrowserColorPicker)()) {
47151
- _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>')));
47152
47259
  editor.e.on(form, 'change', function(e) {
47153
47260
  e.stopPropagation();
47154
47261
  var target = e.target;
47155
- 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') {
47156
47263
  return;
47157
47264
  }
47158
47265
  var color = target.value || '';
47159
- 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)) {
47160
47267
  callback(color);
47161
47268
  }
47162
47269
  e.preventDefault();
47163
47270
  });
47164
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;
47165
47288
  editor.e.on(form, 'mousedown touchend', function(e) {
47166
47289
  // let the hex/native inputs receive focus and clicks
47167
- 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')) {
47168
47291
  e.stopPropagation();
47169
47292
  return;
47170
47293
  }
47171
47294
  e.stopPropagation();
47172
47295
  e.preventDefault();
47173
- var target = e.target;
47174
- 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) {
47175
- 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);
47176
47300
  }
47177
- 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)) {
47178
47318
  return;
47179
47319
  }
47180
- var color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.attr)(target, '-color') || '';
47181
- if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(callback)) {
47182
- 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
+ });
47183
47329
  }
47184
47330
  });
47185
47331
  editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
@@ -49098,7 +49244,8 @@ UiAiAssistant = __decorate([
49098
49244
  /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
49099
49245
  /* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
49100
49246
  /* harmony import */ var _core_ui_form_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2525);
49101
- /* 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);
49102
49249
  function _assert_this_initialized(self) {
49103
49250
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
49104
49251
  return self;
@@ -49228,16 +49375,23 @@ function _wrap_native_super(Class) {
49228
49375
 
49229
49376
 
49230
49377
 
49231
- 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\")";
49232
- var MARKER = [
49233
- 'id',
49234
- 'name'
49235
- ].map(function(key) {
49236
- return ".jodit-wysiwyg a[".concat(key, "]:not([href]):empty::before");
49237
- }).join(',');
49378
+
49238
49379
  /**
49239
- * Each anchor's marker, in the editing area only
49240
- */ 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:''}");
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';
49383
+ /**
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
+ }
49241
49395
  /**
49242
49396
  * The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
49243
49397
  */ var MARK = ' contenteditable="false"';
@@ -49268,8 +49422,14 @@ var MARKER = [
49268
49422
  {
49269
49423
  /** @override */ key: "afterInit",
49270
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
+ }
49271
49431
  // It goes in the editing document, so iframe mode has it whatever `iframeStyle` holds
49272
- ;(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 : '');
49273
49433
  jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
49274
49434
  top: true
49275
49435
  });
@@ -49316,6 +49476,27 @@ var MARKER = [
49316
49476
  },
49317
49477
  {
49318
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
+ /**
49319
49500
  * The form that names a new anchor, or renames or removes `target`
49320
49501
  */ key: "__generateForm",
49321
49502
  value: function __generateForm(target, close) {
@@ -49473,10 +49654,60 @@ var MARKER = [
49473
49654
  });
49474
49655
  }
49475
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
+ },
49476
49706
  {
49477
49707
  /** @override */ key: "beforeDestruct",
49478
49708
  value: function beforeDestruct(jodit) {
49479
49709
  this.__dropForm();
49710
+ jodit.editor.classList.remove(WITH_ANCHORS);
49480
49711
  jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
49481
49712
  }
49482
49713
  }
@@ -49497,6 +49728,9 @@ __decorate([
49497
49728
  __decorate([
49498
49729
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
49499
49730
  ], anchor.prototype, "onAfterGetValueFromEditor", null);
49731
+ __decorate([
49732
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
49733
+ ], anchor.prototype, "onBeforePasteInsert", null);
49500
49734
  __decorate([
49501
49735
  _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
49502
49736
  ], anchor.prototype, "__generateForm", null);
@@ -58628,6 +58862,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
58628
58862
  exec: function exec(editor) {
58629
58863
  editor.toggleFullSize();
58630
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
+ },
58631
58869
  update: function update(editor, button) {
58632
58870
  var mode = editor.isFullSize ? 'shrink' : 'fullsize';
58633
58871
  button.state.activated = editor.isFullSize;
@@ -59119,9 +59357,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
59119
59357
  _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
59120
59358
  _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
59121
59359
  command: 'insertHorizontalRule',
59122
- tags: [
59123
- 'hr'
59124
- ],
59125
59360
  tooltip: 'Insert Horizontal Line'
59126
59361
  };
59127
59362
  function hr(editor) {
@@ -66580,9 +66815,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
66580
66815
  _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
66581
66816
  _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
66582
66817
  command: 'applyLineHeight',
66583
- tags: [
66584
- 'ol'
66585
- ],
66586
66818
  tooltip: 'Line height',
66587
66819
  list: [
66588
66820
  1,