jodit-pro 4.20.2 → 4.20.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +7 -7
  4. package/es2015/jodit.js +308 -71
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +7 -7
  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 +7 -7
  82. package/es2018/jodit.min.css +1 -1
  83. package/es2018/jodit.min.js +7 -7
  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 +7 -7
  114. package/es2021/jodit.js +308 -71
  115. package/es2021/jodit.min.css +1 -1
  116. package/es2021/jodit.min.js +7 -7
  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 +7 -7
  193. package/es2021.en/jodit.js +308 -71
  194. package/es2021.en/jodit.min.css +1 -1
  195. package/es2021.en/jodit.min.js +7 -7
  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 +382 -73
  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.4
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.4";
2338
2338
  // prettier-ignore
2339
2339
  var ES = "es5";
2340
2340
  var IS_ES_MODERN = false;
@@ -37074,12 +37074,13 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
37074
37074
  }), temp_content = self.c.div(CLASS_PREVIEW, '<div class="jodit-icon_loader"></div>'), preview_box = self.c.div(CLASS_PREVIEW + '__box'), next = self.c.fromHTML(preview_tpl_next()), prev = self.c.fromHTML(preview_tpl_next('prev', 'left')), addLoadHandler = function addLoadHandler(src) {
37075
37075
  var image = self.c.element('img');
37076
37076
  (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__.attr)(image, 'src', src);
37077
+ (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__.attr)(image, 'alt', ga('data-name'));
37077
37078
  var onload = function onload() {
37078
37079
  var _a;
37079
37080
  if (self.isInDestruct) {
37080
37081
  return;
37081
37082
  }
37082
- self.e.off(image, 'load');
37083
+ self.e.off(image, 'load error');
37083
37084
  _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(temp_content);
37084
37085
  if (opt.showPreviewNavigation) {
37085
37086
  if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prevWithClass(item, self.files.getFullElName('item'))) {
@@ -37094,7 +37095,10 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
37094
37095
  preview.setPosition();
37095
37096
  (_a = self === null || self === void 0 ? void 0 : self.events) === null || _a === void 0 ? void 0 : _a.fire('previewOpenedAndLoaded');
37096
37097
  };
37097
- self.e.on(image, 'load', onload);
37098
+ // An image that can't load is shown too,
37099
+ // broken with the file's name, rather
37100
+ // than the loader for good
37101
+ self.e.on(image, 'load error', onload);
37098
37102
  if (image.complete) {
37099
37103
  onload();
37100
37104
  }
@@ -43990,10 +43994,24 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
43990
43994
  }
43991
43995
  },
43992
43996
  {
43993
- key: "onChangeActivated",
43997
+ key: "isToggle",
43998
+ get: /**
43999
+ * A button that its control can show as on is a toggle, and says whether
44000
+ * it's pressed
44001
+ */ function get() {
44002
+ var _this_control = this.control, isActive = _this_control.isActive, tags = _this_control.tags, css = _this_control.css;
44003
+ return Boolean(isActive || tags || css);
44004
+ }
44005
+ },
44006
+ {
44007
+ /**
44008
+ * The pressed look comes from the mod, as any button looks pressed while
44009
+ * its list is open, and the container is a `listitem`, which can't have
44010
+ * `aria-pressed`
44011
+ */ key: "onChangeActivated",
43994
44012
  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);
44013
+ ;(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_16__.attr)(this.button, 'aria-pressed', this.isToggle ? this.state.activated : null);
44014
+ this.setMod('activated', this.state.activated || null);
43997
44015
  }
43998
44016
  },
43999
44017
  {
@@ -44077,6 +44095,8 @@ var ToolbarButton = ToolbarButton_1 = /*#__PURE__*/ function(UIButton) {
44077
44095
  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
44096
  }
44079
44097
  state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
44098
+ // UIButton's template makes every button a toggle
44099
+ this.onChangeActivated();
44080
44100
  }
44081
44101
  },
44082
44102
  {
@@ -44796,7 +44816,8 @@ ToolbarContent = __decorate([
44796
44816
  /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
44797
44817
  /* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
44798
44818
  /* 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);
44819
+ /* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
44820
+ /* harmony import */ var _button_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78644);
44800
44821
  function _assert_this_initialized(self) {
44801
44822
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
44802
44823
  return self;
@@ -44898,6 +44919,7 @@ function _type_of(obj) {
44898
44919
 
44899
44920
 
44900
44921
 
44922
+
44901
44923
  var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44902
44924
  "use strict";
44903
44925
  _inherits(ToolbarSelect, ToolbarButton);
@@ -44912,6 +44934,13 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44912
44934
  return 'ToolbarSelect';
44913
44935
  }
44914
44936
  },
44937
+ {
44938
+ key: "isToggle",
44939
+ get: // It shows its value, rather than being on or off
44940
+ function get() {
44941
+ return false;
44942
+ }
44943
+ },
44915
44944
  {
44916
44945
  key: "update",
44917
44946
  value: function update() {
@@ -44929,10 +44958,25 @@ var ToolbarSelect = /*#__PURE__*/ function(ToolbarButton) {
44929
44958
  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
44959
  }
44931
44960
  }
44961
+ },
44962
+ {
44963
+ /**
44964
+ * The button shows only the value, so its name says which control it
44965
+ * is too: "Font size, 16px"
44966
+ */ key: "updateAriaLabel",
44967
+ value: function updateAriaLabel() {
44968
+ var _a;
44969
+ _get(_get_prototype_of(ToolbarSelect.prototype), "updateAriaLabel", this).call(this);
44970
+ var tooltip = this.state.tooltip;
44971
+ var value = (_a = this.text.textContent) === null || _a === void 0 ? void 0 : _a.trim();
44972
+ if (tooltip && value) {
44973
+ (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_3__.attr)(this.button, 'aria-label', "".concat(this.jodit.i18n(tooltip), ", ").concat(value));
44974
+ }
44975
+ }
44932
44976
  }
44933
44977
  ]);
44934
44978
  return ToolbarSelect;
44935
- }(_button_js__WEBPACK_IMPORTED_MODULE_3__.ToolbarButton);
44979
+ }(_button_js__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton);
44936
44980
  ToolbarSelect = __decorate([
44937
44981
  _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
44938
44982
  ], ToolbarSelect);
@@ -45585,7 +45629,9 @@ ToolbarEditorCollection = __decorate([
45585
45629
  function makeSelect(view, control) {
45586
45630
  var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
45587
45631
  var ToolbarSelect = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
45588
- return new ToolbarSelect(view, control, target);
45632
+ var select = new ToolbarSelect(view, control, target);
45633
+ select.state.tabIndex = view.o.allowTabNavigation ? 0 : -1;
45634
+ return select;
45589
45635
  }
45590
45636
 
45591
45637
 
@@ -47063,10 +47109,39 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
47063
47109
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
47064
47110
  /* harmony export */ ColorPickerWidget: function() { return /* binding */ ColorPickerWidget; }
47065
47111
  /* 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);
47112
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
47113
+ /* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
47114
+ /* harmony import */ var _core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
47115
+ /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
47116
+ /* harmony import */ var _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37068);
47117
+ function _array_like_to_array(arr, len) {
47118
+ if (len == null || len > arr.length) len = arr.length;
47119
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
47120
+ return arr2;
47121
+ }
47122
+ function _array_without_holes(arr) {
47123
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
47124
+ }
47125
+ function _iterable_to_array(iter) {
47126
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
47127
+ return Array.from(iter);
47128
+ }
47129
+ }
47130
+ function _non_iterable_spread() {
47131
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47132
+ }
47133
+ function _to_consumable_array(arr) {
47134
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
47135
+ }
47136
+ function _unsupported_iterable_to_array(o, minLen) {
47137
+ if (!o) return;
47138
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
47139
+ var n = Object.prototype.toString.call(o).slice(8, -1);
47140
+ if (n === "Object" && o.constructor) n = o.constructor.name;
47141
+ if (n === "Map" || n === "Set") return Array.from(n);
47142
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
47143
+ }
47144
+ var _this = undefined;
47070
47145
  /*!
47071
47146
  * Jodit Editor (https://xdsoft.net/jodit/)
47072
47147
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -47075,7 +47150,8 @@ var Uploader = /*#__PURE__*/ function(ViewComponent) {
47075
47150
 
47076
47151
 
47077
47152
 
47078
- _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
47153
+
47154
+ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_3__.Icon.set('palette', _palette_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
47079
47155
  /**
47080
47156
  * Build color picker
47081
47157
  *
@@ -47093,29 +47169,66 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47093
47169
  * });
47094
47170
  * ```
47095
47171
  */ 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) {
47172
+ var _a;
47173
+ 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
47174
  var stack = [];
47098
- if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(colors)) {
47175
+ if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(colors)) {
47099
47176
  Object.keys(colors).forEach(function(key) {
47100
47177
  stack.push('<div class="'.concat(cn, "__group ").concat(cn, "__group-").concat(key, '">'));
47101
47178
  stack.push(eachColor(colors[key]));
47102
47179
  stack.push('</div>');
47103
47180
  });
47104
- } else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isArray)(colors)) {
47181
+ } else if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(colors)) {
47105
47182
  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>'));
47183
+ var active = valueHex === color;
47184
+ 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
47185
  });
47108
47186
  }
47109
47187
  return stack.join('');
47110
47188
  };
47111
47189
  // The group wrapper lays the colors out in rows, so a flat list needs one
47112
47190
  // 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;
47191
+ 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);
47192
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML('<div class="'.concat(cn, '__groups">').concat(groups, "</div>")));
47193
+ var items = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(form.querySelectorAll(".".concat(cn, "__color-item")));
47194
+ // Tab stops at one color, the current one or the first, and the arrow
47195
+ // keys move from it
47196
+ var tabStop = (_a = items.find(function(item) {
47197
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'aria-pressed') === 'true';
47198
+ })) !== null && _a !== void 0 ? _a : items[0];
47199
+ if (tabStop) {
47200
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(tabStop, 'tabindex', 0);
47201
+ }
47202
+ // Along a row, or to the nearest color in the row above or below, as the
47203
+ // palette is laid out
47204
+ var nextItem = function nextItem(item, key) {
47205
+ var index = items.indexOf(item);
47206
+ if (key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT || key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT) {
47207
+ var step = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT ? -1 : 1;
47208
+ var rtl = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(item, 'direction') === 'rtl';
47209
+ return items[index + (rtl ? -step : step)];
47210
+ }
47211
+ var down = key === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN, rows = items.filter(function(other) {
47212
+ return down ? other.offsetTop > item.offsetTop : other.offsetTop < item.offsetTop;
47213
+ });
47214
+ if (!rows.length) {
47215
+ return;
47216
+ }
47217
+ var top = (down ? Math.min : Math.max).apply(_this, _to_consumable_array(rows.map(function(other) {
47218
+ return other.offsetTop;
47219
+ }))), distance = function distance(other) {
47220
+ return Math.abs(other.offsetLeft - item.offsetLeft);
47221
+ };
47222
+ return rows.filter(function(other) {
47223
+ return other.offsetTop === top;
47224
+ }).reduce(function(nearest, other) {
47225
+ return distance(other) < distance(nearest) ? other : nearest;
47226
+ });
47227
+ };
47228
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(form, editor.c.fromHTML('<div data-ref="extra" class="'.concat(cn, '__extra"></div>')));
47229
+ var extra = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form).extra;
47230
+ _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>')));
47231
+ var hexInput = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.refs)(form).hexInput;
47119
47232
  // Enter applies the value and closes the popup; removing the focused
47120
47233
  // input then makes Chrome fire `change` on it, which would apply the
47121
47234
  // same color a second time and toggle it off again. See #1459
@@ -47130,8 +47243,8 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47130
47243
  if (!isHex && !isRgb) {
47131
47244
  return;
47132
47245
  }
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)) {
47246
+ var color = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeColor)(isHex && !raw.startsWith('#') ? '#' + raw : raw);
47247
+ if (color && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
47135
47248
  appliedHexValue = raw;
47136
47249
  callback(color);
47137
47250
  }
@@ -47146,40 +47259,79 @@ _core_ui_index_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('palette', _palette_svg_
47146
47259
  e.stopPropagation();
47147
47260
  applyHexInput();
47148
47261
  });
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>')));
47262
+ _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>")));
47263
+ if (editor.o.showBrowserColorPicker && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.hasBrowserColorPicker)()) {
47264
+ _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
47265
  editor.e.on(form, 'change', function(e) {
47153
47266
  e.stopPropagation();
47154
47267
  var target = e.target;
47155
- if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(target, 'input') || target.type !== 'color') {
47268
+ if (!target || !target.tagName || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(target, 'input') || target.type !== 'color') {
47156
47269
  return;
47157
47270
  }
47158
47271
  var color = target.value || '';
47159
- if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(callback)) {
47272
+ if ((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
47160
47273
  callback(color);
47161
47274
  }
47162
47275
  e.preventDefault();
47163
47276
  });
47164
47277
  }
47278
+ // The color of a swatch, or '' for Remove, from an event on it or its icon
47279
+ var colorOf = function colorOf(node) {
47280
+ var button = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(node, function(elm) {
47281
+ return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(elm) && (elm.classList.contains(cn + '__color-item') || elm.classList.contains(cn + '__remove'));
47282
+ }, form);
47283
+ return button ? (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(button, '-color') || '' : undefined;
47284
+ };
47285
+ var apply = function apply(color) {
47286
+ if (callback && (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isFunction)(callback)) {
47287
+ callback(color);
47288
+ }
47289
+ };
47290
+ // A pointer applies the color on `mousedown`, which keeps the selection.
47291
+ // The keyboard and screen readers press the button, which sends only
47292
+ // `click`, so a click after the pointer's `mousedown` is skipped
47293
+ var pointerPressed = false;
47165
47294
  editor.e.on(form, 'mousedown touchend', function(e) {
47166
47295
  // let the hex/native inputs receive focus and clicks
47167
- if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(e.target, 'input')) {
47296
+ if (_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(e.target, 'input')) {
47168
47297
  e.stopPropagation();
47169
47298
  return;
47170
47299
  }
47171
47300
  e.stopPropagation();
47172
47301
  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);
47302
+ var color = colorOf(e.target);
47303
+ if (color !== undefined) {
47304
+ pointerPressed = e.type === 'mousedown';
47305
+ apply(color);
47306
+ }
47307
+ });
47308
+ editor.e.on(form, 'click', function(e) {
47309
+ var color = colorOf(e.target);
47310
+ if (color !== undefined && !pointerPressed) {
47311
+ apply(color);
47176
47312
  }
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')) {
47313
+ pointerPressed = false;
47314
+ }).on(form, 'keydown', function(e) {
47315
+ var _a;
47316
+ pointerPressed = false;
47317
+ var item = e.target;
47318
+ if (!items.includes(item) || ![
47319
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT,
47320
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT,
47321
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_UP,
47322
+ _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN
47323
+ ].includes(e.key)) {
47178
47324
  return;
47179
47325
  }
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);
47326
+ // The toolbar's dropdown would walk every color one by one
47327
+ e.preventDefault();
47328
+ e.stopPropagation();
47329
+ (_a = nextItem(item, e.key)) === null || _a === void 0 ? void 0 : _a.focus();
47330
+ }).on(form, 'focusin', function(e) {
47331
+ if (items.includes(e.target)) {
47332
+ items.forEach(function(item) {
47333
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.attr)(item, 'tabindex', item === e.target ? 0 : -1);
47334
+ });
47183
47335
  }
47184
47336
  });
47185
47337
  editor.e.fire('afterGenerateColorPicker', form, extra, callback, valueHex);
@@ -49098,7 +49250,8 @@ UiAiAssistant = __decorate([
49098
49250
  /* harmony import */ var _core_plugin_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50911);
49099
49251
  /* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62843);
49100
49252
  /* 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);
49253
+ /* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12153);
49254
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50712);
49102
49255
  function _assert_this_initialized(self) {
49103
49256
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
49104
49257
  return self;
@@ -49228,16 +49381,23 @@ function _wrap_native_super(Class) {
49228
49381
 
49229
49382
 
49230
49383
 
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(',');
49384
+
49238
49385
  /**
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:''}");
49386
+ * The editing area of an editor with the plugin, when it shares its document
49387
+ * with the page and so with any other editor on it
49388
+ */ var WITH_ANCHORS = 'jodit-wysiwyg_anchors';
49389
+ /**
49390
+ * Each anchor's marker, in the editing areas `scope` picks out
49391
+ */ function markerStyle(scope) {
49392
+ var marker = [
49393
+ 'id',
49394
+ 'name'
49395
+ ].map(function(key) {
49396
+ return ".jodit-wysiwyg".concat(scope, " a[").concat(key, "]:not([href]):empty::before");
49397
+ }).join(',');
49398
+ var icon = 'url("data:image/svg+xml,'.concat(encodeURIComponent(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_8__.Icon.get('anchor')), '") center/contain no-repeat');
49399
+ 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:''}");
49400
+ }
49241
49401
  /**
49242
49402
  * The attribute `markAnchor` gives an anchor: an empty `<a>` with no `href`
49243
49403
  */ var MARK = ' contenteditable="false"';
@@ -49268,8 +49428,14 @@ var MARKER = [
49268
49428
  {
49269
49429
  /** @override */ key: "afterInit",
49270
49430
  value: function afterInit(jodit) {
49431
+ // An iframe's document is the editor's alone, and its body is part of
49432
+ // the value with `editHTMLDocumentMode`, so it gets no class
49433
+ var shared = jodit.ed === jodit.od;
49434
+ if (shared) {
49435
+ jodit.editor.classList.add(WITH_ANCHORS);
49436
+ }
49271
49437
  // 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;
49438
+ ;(0,_core_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(jodit, 'anchor', 'style', true).textContent = markerStyle(shared ? '.' + WITH_ANCHORS : '');
49273
49439
  jodit.e.on('generateAnchorForm.anchor', this.__generateForm).on('clickA touchstartA', this.__onClickA, {
49274
49440
  top: true
49275
49441
  });
@@ -49316,6 +49482,27 @@ var MARKER = [
49316
49482
  },
49317
49483
  {
49318
49484
  /**
49485
+ * A pasted or dropped copy of an anchor the document already has gets the
49486
+ * next free name, as `fees-2`, and the links that came with it follow it
49487
+ */ key: "onBeforePasteInsert",
49488
+ value: function onBeforePasteInsert(html) {
49489
+ if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(html) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isFragment(html)) {
49490
+ this.__renameCopies(html);
49491
+ return;
49492
+ }
49493
+ if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isString)(html) || !/<a\s/i.test(html)) {
49494
+ return;
49495
+ }
49496
+ // Inert, so nothing in it loads
49497
+ var template = this.j.createInside.element('template');
49498
+ template.innerHTML = html;
49499
+ if (this.__renameCopies(template.content)) {
49500
+ return template.innerHTML;
49501
+ }
49502
+ }
49503
+ },
49504
+ {
49505
+ /**
49319
49506
  * The form that names a new anchor, or renames or removes `target`
49320
49507
  */ key: "__generateForm",
49321
49508
  value: function __generateForm(target, close) {
@@ -49473,10 +49660,60 @@ var MARKER = [
49473
49660
  });
49474
49661
  }
49475
49662
  },
49663
+ {
49664
+ /**
49665
+ * Gives each anchor in `root` whose name the document already has the
49666
+ * next free one, avoiding the names in `root` too, and points the links
49667
+ * in `root` to it at the new name. Whether any was renamed
49668
+ */ key: "__renameCopies",
49669
+ value: function __renameCopies(root) {
49670
+ var _this = this;
49671
+ var inRoot = new Set((0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('[id], a[name]')).map(function(elm) {
49672
+ return elm.id || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(elm, 'name');
49673
+ }));
49674
+ var renamed = new Map();
49675
+ var anchors = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.isAnchor)(root) ? [
49676
+ root
49677
+ ] : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchors)(root);
49678
+ anchors.forEach(function(anchor) {
49679
+ var name = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.getAnchorName)(anchor);
49680
+ if (!_this.__isTaken(name, null)) {
49681
+ return;
49682
+ }
49683
+ var copy = name;
49684
+ for(var n = 2; inRoot.has(copy) || _this.__isTaken(copy, null); n += 1){
49685
+ copy = "".concat(name, "-").concat(n);
49686
+ }
49687
+ [
49688
+ 'id',
49689
+ 'name'
49690
+ ].forEach(function(key) {
49691
+ if (anchor.hasAttribute(key)) {
49692
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(anchor, key, copy);
49693
+ }
49694
+ });
49695
+ inRoot.add(copy);
49696
+ renamed.set(name, copy);
49697
+ });
49698
+ if (!renamed.size) {
49699
+ return false;
49700
+ }
49701
+ ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.toArray)(root.querySelectorAll('a[href]')).forEach(function(link) {
49702
+ var _a;
49703
+ var href = (_a = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href')) !== null && _a !== void 0 ? _a : '';
49704
+ var copy = href[0] === '#' && renamed.get(href.slice(1));
49705
+ if (copy) {
49706
+ (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.attr)(link, 'href', '#' + copy);
49707
+ }
49708
+ });
49709
+ return true;
49710
+ }
49711
+ },
49476
49712
  {
49477
49713
  /** @override */ key: "beforeDestruct",
49478
49714
  value: function beforeDestruct(jodit) {
49479
49715
  this.__dropForm();
49716
+ jodit.editor.classList.remove(WITH_ANCHORS);
49480
49717
  jodit.e.off('generateAnchorForm.anchor', this.__generateForm).off('clickA touchstartA', this.__onClickA);
49481
49718
  }
49482
49719
  }
@@ -49497,6 +49734,9 @@ __decorate([
49497
49734
  __decorate([
49498
49735
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':afterGetValueFromEditor')
49499
49736
  ], anchor.prototype, "onAfterGetValueFromEditor", null);
49737
+ __decorate([
49738
+ (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.watch)(':beforePasteInsert')
49739
+ ], anchor.prototype, "onBeforePasteInsert", null);
49500
49740
  __decorate([
49501
49741
  _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
49502
49742
  ], anchor.prototype, "__generateForm", null);
@@ -50448,7 +50688,7 @@ function moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace) {
50448
50688
  * @private
50449
50689
  */ function checkNotCollapsed(jodit) {
50450
50690
  if (!jodit.s.isCollapsed()) {
50451
- jodit.execCommand('Delete');
50691
+ jodit.execCommand('delete', false, true);
50452
50692
  return true;
50453
50693
  }
50454
50694
  return false;
@@ -54628,6 +54868,13 @@ var KEEPS_SPACES = new Set([
54628
54868
  'pre-wrap',
54629
54869
  'break-spaces'
54630
54870
  ]);
54871
+ /**
54872
+ * Formatting that the next letter keeps once all of the text in it is
54873
+ * deleted with a key: a formatting tag, or a span with styles of its own.
54874
+ * Not a link, which new text isn't added to, or a wrapper such as a video's
54875
+ */ function keepsFormat(node) {
54876
+ return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(node) && !node.hasAttribute('contenteditable') && !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTemporary(node) && (/^(STRONG|B|EM|I|U|S|SUB|SUP)$/.test(node.nodeName) || _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'span') && node.hasAttribute('style'));
54877
+ }
54631
54878
  /**
54632
54879
  * A plain space beside this neighbor isn't shown: there is none, or it's a
54633
54880
  * line break, a block or text starting (or ending) with a plain space
@@ -54697,7 +54944,7 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
54697
54944
  },
54698
54945
  {
54699
54946
  key: "__onDeleteCommand",
54700
- value: function __onDeleteCommand() {
54947
+ value: function __onDeleteCommand(command, showUI, keepFormat) {
54701
54948
  var jodit = this.jodit;
54702
54949
  if (jodit.s.isCollapsed()) {
54703
54950
  return;
@@ -54705,6 +54952,7 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
54705
54952
  jodit.s.expandSelection();
54706
54953
  var range = jodit.s.range;
54707
54954
  this.__moveEdgesIntoCells(range);
54955
+ var format = keepFormat === true ? this.__formatTakenWhole(range) : [];
54708
54956
  var caret = this.__clearSelectedCells(range);
54709
54957
  if (caret && range.collapsed) {
54710
54958
  jodit.s.selectRange(caret);
@@ -54720,8 +54968,12 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
54720
54968
  this.__keepSpacesVisibleBesideTable(fake);
54721
54969
  range.setStartBefore(fake);
54722
54970
  range.collapse(true);
54723
- this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
54724
- this.__addBrInEmptyBlock(fake, range);
54971
+ if (format.length && !caret) {
54972
+ this.__keepFormat(format, fake, range);
54973
+ } else {
54974
+ this.__moveCursorInEditableSibling(jodit, leftSibling, fake, range);
54975
+ this.__addBrInEmptyBlock(fake, range);
54976
+ }
54725
54977
  _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(fake);
54726
54978
  jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
54727
54979
  return false;
@@ -54748,6 +55000,56 @@ var deleteCommand = /*#__PURE__*/ function(Plugin) {
54748
55000
  },
54749
55001
  {
54750
55002
  /**
55003
+ * The formatting elements the deletion takes whole from its start,
55004
+ * outermost first: `<strong>` and `<em>` for all of the text in
55005
+ * `<strong><em>cd</em></strong>`
55006
+ */ key: "__formatTakenWhole",
55007
+ value: function __formatTakenWhole(range) {
55008
+ var format = [];
55009
+ var whole = this.jodit.s.createRange();
55010
+ var startContainer = range.startContainer, startOffset = range.startOffset;
55011
+ var node = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(startContainer) ? null : startContainer.childNodes[startOffset];
55012
+ // Through a block taken whole, as a line holding only the word is
55013
+ while(_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isHTMLElement(node)){
55014
+ whole.selectNode(node);
55015
+ if (range.compareBoundaryPoints(Range.END_TO_END, whole) < 0) {
55016
+ break;
55017
+ }
55018
+ if (keepsFormat(node)) {
55019
+ format.push(node);
55020
+ } else if (format.length || !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(node)) {
55021
+ break;
55022
+ }
55023
+ node = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(node.childNodes).find(function(child) {
55024
+ var _a;
55025
+ return !_core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isText(child) || (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.trimInv)((_a = child.nodeValue) !== null && _a !== void 0 ? _a : '');
55026
+ });
55027
+ }
55028
+ return format;
55029
+ }
55030
+ },
55031
+ {
55032
+ /**
55033
+ * As the browsers do, the next letter typed keeps the formatting that was
55034
+ * deleted whole: empty copies go where it was, round an invisible space,
55035
+ * as Bold does at a collapsed caret, and the caret goes inside (#1784)
55036
+ */ key: "__keepFormat",
55037
+ value: function __keepFormat(format, fake, range) {
55038
+ var copies = format.map(function(element) {
55039
+ return element.cloneNode(false);
55040
+ });
55041
+ for(var i = 1; i < copies.length; i += 1){
55042
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(copies[i - 1], copies[i]);
55043
+ }
55044
+ var text = this.jodit.createInside.text(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE);
55045
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.append(copies[copies.length - 1], text);
55046
+ _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before(fake, copies[0]);
55047
+ range.setStartAfter(text);
55048
+ range.collapse(true);
55049
+ }
55050
+ },
55051
+ {
55052
+ /**
54751
55053
  * A selection that starts or ends in a table cell clears the selected part
54752
55054
  * of each cell it covers and keeps the cells, as the browsers do.
54753
55055
  * `deleteContents` would remove the cells it fully covers, and the cells
@@ -55884,7 +56186,13 @@ var brBoxes = new Set([
55884
56186
  // text; moving it before the `<br>` would put it on a line of its own
55885
56187
  // below the block (#1315)
55886
56188
  if (!_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isOrContains(node, jodit.s.range.startContainer)) {
55887
- jodit.s.setCursorBefore(br);
56189
+ // Not with setCursorBefore: the text node it adds for the caret
56190
+ // stays after the inserted element once the `<br>` has gone, and
56191
+ // Right or End then take the caret into it, out of the element
56192
+ var range = jodit.s.createRange();
56193
+ range.setStartBefore(br);
56194
+ range.collapse(true);
56195
+ jodit.s.selectRange(range);
55888
56196
  }
55889
56197
  _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(br);
55890
56198
  }
@@ -58628,6 +58936,10 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.fullsize = {
58628
58936
  exec: function exec(editor) {
58629
58937
  editor.toggleFullSize();
58630
58938
  },
58939
+ // Makes it a toggle. `update` sets the state, which holds while the editor doesn't have the focus
58940
+ isActive: function isActive(editor) {
58941
+ return editor.isFullSize;
58942
+ },
58631
58943
  update: function update(editor, button) {
58632
58944
  var mode = editor.isFullSize ? 'shrink' : 'fullsize';
58633
58945
  button.state.activated = editor.isFullSize;
@@ -59119,9 +59431,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
59119
59431
  _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_2__.Icon.set('hr', _hr_svg_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
59120
59432
  _config_js__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.hr = {
59121
59433
  command: 'insertHorizontalRule',
59122
- tags: [
59123
- 'hr'
59124
- ],
59125
59434
  tooltip: 'Insert Horizontal Line'
59126
59435
  };
59127
59436
  function hr(editor) {
@@ -66580,9 +66889,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.defaultLineHeight = nul
66580
66889
  _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_1__.Icon.set('line-height', _line_height_svg_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
66581
66890
  _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.lineHeight = {
66582
66891
  command: 'applyLineHeight',
66583
- tags: [
66584
- 'ol'
66585
- ],
66586
66892
  tooltip: 'Line height',
66587
66893
  list: [
66588
66894
  1,
@@ -70874,10 +71180,11 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.useInputsPlaceholder =
70874
71180
  /* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
70875
71181
  /* harmony import */ var _core_global_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
70876
71182
  /* harmony import */ var _core_helpers_checker_is_marker_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78116);
70877
- /* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
70878
- /* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
70879
- /* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(20356);
70880
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(61926);
71183
+ /* harmony import */ var _core_helpers_utils_anchor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70442);
71184
+ /* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(29960);
71185
+ /* harmony import */ var _core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41180);
71186
+ /* harmony import */ var _core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20356);
71187
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(61926);
70881
71188
  function _assert_this_initialized(self) {
70882
71189
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
70883
71190
  return self;
@@ -71008,6 +71315,7 @@ function _wrap_native_super(Class) {
71008
71315
 
71009
71316
 
71010
71317
 
71318
+
71011
71319
  /**
71012
71320
  * Check if root node is empty
71013
71321
  * @private
@@ -71036,8 +71344,9 @@ function isBlank(root) {
71036
71344
  if (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isText(first) && !next) {
71037
71345
  return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmptyTextNode(first);
71038
71346
  }
71347
+ // An anchor has no text, but it's content, shown as a marker
71039
71348
  return !next && _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.each(first, function(elm) {
71040
- return !(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isLeaf(elm) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isList(elm)) && (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmpty(elm) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(elm, 'br'));
71349
+ return !(_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isLeaf(elm) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isList(elm) || (0,_core_helpers_utils_anchor_js__WEBPACK_IMPORTED_MODULE_5__.isAnchor)(elm)) && (_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isEmpty(elm) || _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(elm, 'br'));
71041
71350
  });
71042
71351
  }
71043
71352
  /**
@@ -71055,7 +71364,7 @@ function isBlank(root) {
71055
71364
  _this.addEvents = function() {
71056
71365
  var editor = _this.j;
71057
71366
  if (editor.o.useInputsPlaceholder && editor.element.hasAttribute('placeholder')) {
71058
- _this.placeholderElm.innerHTML = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(editor.element, 'placeholder') || '';
71367
+ _this.placeholderElm.innerHTML = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_6__.attr)(editor.element, 'placeholder') || '';
71059
71368
  }
71060
71369
  editor.e.fire('placeholder', _this.placeholderElm.innerHTML);
71061
71370
  editor.e.off('.placeholder').on('changePlace.placeholder', _this.addNativeListeners).on('change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder ' + 'mousedown.placeholder afterSetMode.placeholder changePlace.placeholder ' + 'internalChange.placeholder afterCommand.placeholder resize.placeholder', _this.toggle).on(window, 'load', _this.toggle);
@@ -71074,7 +71383,7 @@ function isBlank(root) {
71074
71383
  }
71075
71384
  this.placeholderElm = editor.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(editor.i18n(editor.o.placeholder), "</span>"));
71076
71385
  if (editor.o.direction === 'rtl') {
71077
- (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.placeholderElm, {
71386
+ (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
71078
71387
  right: 0,
71079
71388
  direction: 'rtl'
71080
71389
  });
@@ -71106,19 +71415,19 @@ function isBlank(root) {
71106
71415
  var style2 = editor.ew.getComputedStyle(firstChild);
71107
71416
  marginTop = parseInt(style2.getPropertyValue('margin-top'), 10);
71108
71417
  marginLeft = parseInt(style2.getPropertyValue('margin-left'), 10);
71109
- (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.placeholderElm, {
71418
+ (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
71110
71419
  fontFamily: style2.getPropertyValue('font-family'),
71111
71420
  fontSize: parseInt(style2.getPropertyValue('font-size'), 10),
71112
71421
  lineHeight: style2.getPropertyValue('line-height')
71113
71422
  });
71114
71423
  } else {
71115
- (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.placeholderElm, {
71424
+ (0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
71116
71425
  fontFamily: style.getPropertyValue('font-family'),
71117
71426
  fontSize: parseInt(style.getPropertyValue('font-size'), 10),
71118
71427
  lineHeight: style.getPropertyValue('line-height')
71119
71428
  });
71120
71429
  }
71121
- ;(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_6__.css)(this.placeholderElm, {
71430
+ ;(0,_core_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_7__.css)(this.placeholderElm, {
71122
71431
  display: 'block',
71123
71432
  textAlign: style.getPropertyValue('text-align'),
71124
71433
  paddingTop: parseInt(styleEditor.paddingTop, 10) + 'px',
@@ -71162,7 +71471,7 @@ function isBlank(root) {
71162
71471
  }
71163
71472
  ]);
71164
71473
  return placeholder;
71165
- }(_wrap_native_super(_core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_7__.Plugin));
71474
+ }(_wrap_native_super(_core_plugin_plugin_js__WEBPACK_IMPORTED_MODULE_8__.Plugin));
71166
71475
  __decorate([
71167
71476
  (0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.debounce)(function(ctx) {
71168
71477
  return ctx.defaultTimeout / 10;