jodit-pro 4.18.9 → 4.18.11

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 (348) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +12 -12
  3. package/es2015/jodit.js +127 -34
  4. package/es2015/jodit.min.js +7 -7
  5. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
  8. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  11. package/es2015/plugins/backup/backup.css +1 -1
  12. package/es2015/plugins/backup/backup.js +14 -7
  13. package/es2015/plugins/backup/backup.min.js +2 -2
  14. package/es2015/plugins/button-generator/button-generator.css +1 -1
  15. package/es2015/plugins/button-generator/button-generator.js +26 -19
  16. package/es2015/plugins/button-generator/button-generator.min.js +3 -3
  17. package/es2015/plugins/change-case/change-case.js +1 -1
  18. package/es2015/plugins/change-case/change-case.min.js +1 -1
  19. package/es2015/plugins/chart/chart.css +1 -1
  20. package/es2015/plugins/chart/chart.js +1 -1
  21. package/es2015/plugins/chart/chart.min.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.css +1 -1
  23. package/es2015/plugins/color-picker/color-picker.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  25. package/es2015/plugins/emoji/emoji.css +1 -1
  26. package/es2015/plugins/emoji/emoji.js +1 -1
  27. package/es2015/plugins/emoji/emoji.min.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.js +1 -1
  29. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  30. package/es2015/plugins/finder/finder.css +1 -1
  31. package/es2015/plugins/finder/finder.js +1 -1
  32. package/es2015/plugins/finder/finder.min.js +1 -1
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  36. package/es2015/plugins/google-search/google-search.js +1 -1
  37. package/es2015/plugins/google-search/google-search.min.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  39. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  43. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  44. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  46. package/es2015/plugins/keyboard/keyboard.css +1 -1
  47. package/es2015/plugins/keyboard/keyboard.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  49. package/es2015/plugins/math/math.css +1 -1
  50. package/es2015/plugins/math/math.js +1 -1
  51. package/es2015/plugins/math/math.min.js +1 -1
  52. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  53. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  54. package/es2015/plugins/page-break/page-break.js +1 -1
  55. package/es2015/plugins/page-break/page-break.min.js +1 -1
  56. package/es2015/plugins/paste-code/paste-code.css +1 -1
  57. package/es2015/plugins/paste-code/paste-code.js +1 -1
  58. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  59. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  60. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  61. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  62. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  63. package/es2015/plugins/style/style.css +1 -1
  64. package/es2015/plugins/style/style.js +1 -1
  65. package/es2015/plugins/style/style.min.js +1 -1
  66. package/es2015/plugins/templates/templates.css +1 -1
  67. package/es2015/plugins/templates/templates.js +1 -1
  68. package/es2015/plugins/templates/templates.min.js +1 -1
  69. package/es2015/plugins/todo-list/todo-list.css +1 -1
  70. package/es2015/plugins/todo-list/todo-list.js +1 -1
  71. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  72. package/es2015/plugins/translate/translate.css +1 -1
  73. package/es2015/plugins/translate/translate.js +1 -1
  74. package/es2015/plugins/translate/translate.min.js +1 -1
  75. package/es2015/plugins/tune-block/tune-block.css +1 -1
  76. package/es2015/plugins/tune-block/tune-block.js +1 -1
  77. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  78. package/es2018/jodit.fat.min.js +15 -15
  79. package/es2018/jodit.min.js +7 -7
  80. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
  81. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  82. package/es2018/plugins/backup/backup.min.js +2 -2
  83. package/es2018/plugins/button-generator/button-generator.min.js +3 -3
  84. package/es2018/plugins/change-case/change-case.min.js +1 -1
  85. package/es2018/plugins/chart/chart.min.js +1 -1
  86. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  87. package/es2018/plugins/emoji/emoji.min.js +1 -1
  88. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  89. package/es2018/plugins/finder/finder.min.js +1 -1
  90. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  91. package/es2018/plugins/google-search/google-search.min.js +1 -1
  92. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  93. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  94. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  95. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  96. package/es2018/plugins/math/math.min.js +1 -1
  97. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  98. package/es2018/plugins/page-break/page-break.min.js +1 -1
  99. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  100. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  101. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  102. package/es2018/plugins/style/style.min.js +1 -1
  103. package/es2018/plugins/templates/templates.min.js +1 -1
  104. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  105. package/es2018/plugins/translate/translate.min.js +1 -1
  106. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  107. package/es2021/jodit.css +1 -1
  108. package/es2021/jodit.fat.min.js +18 -18
  109. package/es2021/jodit.js +127 -34
  110. package/es2021/jodit.min.js +7 -7
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  112. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
  113. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
  114. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  115. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  116. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  117. package/es2021/plugins/backup/backup.css +1 -1
  118. package/es2021/plugins/backup/backup.js +14 -7
  119. package/es2021/plugins/backup/backup.min.js +2 -2
  120. package/es2021/plugins/button-generator/button-generator.css +1 -1
  121. package/es2021/plugins/button-generator/button-generator.js +26 -19
  122. package/es2021/plugins/button-generator/button-generator.min.js +3 -3
  123. package/es2021/plugins/change-case/change-case.js +1 -1
  124. package/es2021/plugins/change-case/change-case.min.js +1 -1
  125. package/es2021/plugins/chart/chart.css +1 -1
  126. package/es2021/plugins/chart/chart.js +1 -1
  127. package/es2021/plugins/chart/chart.min.js +1 -1
  128. package/es2021/plugins/color-picker/color-picker.css +1 -1
  129. package/es2021/plugins/color-picker/color-picker.js +1 -1
  130. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  131. package/es2021/plugins/emoji/emoji.css +1 -1
  132. package/es2021/plugins/emoji/emoji.js +1 -1
  133. package/es2021/plugins/emoji/emoji.min.js +1 -1
  134. package/es2021/plugins/export-docs/export-docs.js +1 -1
  135. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  136. package/es2021/plugins/finder/finder.css +1 -1
  137. package/es2021/plugins/finder/finder.js +1 -1
  138. package/es2021/plugins/finder/finder.min.js +1 -1
  139. package/es2021/plugins/google-maps/google-maps.css +1 -1
  140. package/es2021/plugins/google-maps/google-maps.js +1 -1
  141. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  142. package/es2021/plugins/google-search/google-search.js +1 -1
  143. package/es2021/plugins/google-search/google-search.min.js +1 -1
  144. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  145. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  146. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  147. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  148. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  149. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  150. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  151. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.css +1 -1
  153. package/es2021/plugins/keyboard/keyboard.js +1 -1
  154. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  155. package/es2021/plugins/math/math.css +1 -1
  156. package/es2021/plugins/math/math.js +1 -1
  157. package/es2021/plugins/math/math.min.js +1 -1
  158. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  159. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  160. package/es2021/plugins/page-break/page-break.js +1 -1
  161. package/es2021/plugins/page-break/page-break.min.js +1 -1
  162. package/es2021/plugins/paste-code/paste-code.css +1 -1
  163. package/es2021/plugins/paste-code/paste-code.js +1 -1
  164. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  165. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  166. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  167. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  168. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  169. package/es2021/plugins/style/style.css +1 -1
  170. package/es2021/plugins/style/style.js +1 -1
  171. package/es2021/plugins/style/style.min.js +1 -1
  172. package/es2021/plugins/templates/templates.css +1 -1
  173. package/es2021/plugins/templates/templates.js +1 -1
  174. package/es2021/plugins/templates/templates.min.js +1 -1
  175. package/es2021/plugins/todo-list/todo-list.css +1 -1
  176. package/es2021/plugins/todo-list/todo-list.js +1 -1
  177. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  178. package/es2021/plugins/translate/translate.css +1 -1
  179. package/es2021/plugins/translate/translate.js +1 -1
  180. package/es2021/plugins/translate/translate.min.js +1 -1
  181. package/es2021/plugins/tune-block/tune-block.css +1 -1
  182. package/es2021/plugins/tune-block/tune-block.js +1 -1
  183. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  184. package/es2021.en/jodit.css +1 -1
  185. package/es2021.en/jodit.fat.min.js +16 -16
  186. package/es2021.en/jodit.js +127 -34
  187. package/es2021.en/jodit.min.js +7 -7
  188. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  189. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
  190. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +26 -26
  191. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  192. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  193. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  194. package/es2021.en/plugins/backup/backup.css +1 -1
  195. package/es2021.en/plugins/backup/backup.js +14 -7
  196. package/es2021.en/plugins/backup/backup.min.js +2 -2
  197. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  198. package/es2021.en/plugins/button-generator/button-generator.js +26 -19
  199. package/es2021.en/plugins/button-generator/button-generator.min.js +3 -3
  200. package/es2021.en/plugins/change-case/change-case.js +1 -1
  201. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  202. package/es2021.en/plugins/chart/chart.css +1 -1
  203. package/es2021.en/plugins/chart/chart.js +1 -1
  204. package/es2021.en/plugins/chart/chart.min.js +1 -1
  205. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  206. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  207. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  208. package/es2021.en/plugins/emoji/emoji.css +1 -1
  209. package/es2021.en/plugins/emoji/emoji.js +1 -1
  210. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  211. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  212. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  213. package/es2021.en/plugins/finder/finder.css +1 -1
  214. package/es2021.en/plugins/finder/finder.js +1 -1
  215. package/es2021.en/plugins/finder/finder.min.js +1 -1
  216. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  217. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  218. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  219. package/es2021.en/plugins/google-search/google-search.js +1 -1
  220. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  221. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  222. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  223. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  224. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  225. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  226. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  227. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  228. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  229. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  230. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  231. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  232. package/es2021.en/plugins/math/math.css +1 -1
  233. package/es2021.en/plugins/math/math.js +1 -1
  234. package/es2021.en/plugins/math/math.min.js +1 -1
  235. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  236. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  237. package/es2021.en/plugins/page-break/page-break.js +1 -1
  238. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  239. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  240. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  241. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  242. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  243. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  244. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  245. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  246. package/es2021.en/plugins/style/style.css +1 -1
  247. package/es2021.en/plugins/style/style.js +1 -1
  248. package/es2021.en/plugins/style/style.min.js +1 -1
  249. package/es2021.en/plugins/templates/templates.css +1 -1
  250. package/es2021.en/plugins/templates/templates.js +1 -1
  251. package/es2021.en/plugins/templates/templates.min.js +1 -1
  252. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  253. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  254. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  255. package/es2021.en/plugins/translate/translate.css +1 -1
  256. package/es2021.en/plugins/translate/translate.js +1 -1
  257. package/es2021.en/plugins/translate/translate.min.js +1 -1
  258. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  259. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  260. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  261. package/es5/jodit.css +2 -2
  262. package/es5/jodit.fat.min.js +2 -2
  263. package/es5/jodit.js +131 -30
  264. package/es5/jodit.min.css +2 -2
  265. package/es5/jodit.min.js +2 -2
  266. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  267. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
  268. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  269. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  270. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  271. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  272. package/es5/plugins/backup/backup.css +1 -1
  273. package/es5/plugins/backup/backup.js +14 -7
  274. package/es5/plugins/backup/backup.min.js +2 -2
  275. package/es5/plugins/button-generator/button-generator.css +1 -1
  276. package/es5/plugins/button-generator/button-generator.js +26 -19
  277. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  278. package/es5/plugins/change-case/change-case.js +1 -1
  279. package/es5/plugins/change-case/change-case.min.js +1 -1
  280. package/es5/plugins/chart/chart.css +1 -1
  281. package/es5/plugins/chart/chart.js +1 -1
  282. package/es5/plugins/chart/chart.min.js +1 -1
  283. package/es5/plugins/color-picker/color-picker.css +1 -1
  284. package/es5/plugins/color-picker/color-picker.js +1 -1
  285. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  286. package/es5/plugins/emoji/emoji.css +1 -1
  287. package/es5/plugins/emoji/emoji.js +1 -1
  288. package/es5/plugins/emoji/emoji.min.js +1 -1
  289. package/es5/plugins/export-docs/export-docs.js +1 -1
  290. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  291. package/es5/plugins/finder/finder.css +1 -1
  292. package/es5/plugins/finder/finder.js +1 -1
  293. package/es5/plugins/finder/finder.min.js +1 -1
  294. package/es5/plugins/google-maps/google-maps.css +1 -1
  295. package/es5/plugins/google-maps/google-maps.js +1 -1
  296. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  297. package/es5/plugins/google-search/google-search.js +1 -1
  298. package/es5/plugins/google-search/google-search.min.js +1 -1
  299. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  300. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  301. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  302. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  303. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  304. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  305. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  306. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  307. package/es5/plugins/keyboard/keyboard.css +1 -1
  308. package/es5/plugins/keyboard/keyboard.js +1 -1
  309. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  310. package/es5/plugins/math/math.css +1 -1
  311. package/es5/plugins/math/math.js +1 -1
  312. package/es5/plugins/math/math.min.js +1 -1
  313. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  314. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  315. package/es5/plugins/page-break/page-break.js +1 -1
  316. package/es5/plugins/page-break/page-break.min.js +1 -1
  317. package/es5/plugins/paste-code/paste-code.css +1 -1
  318. package/es5/plugins/paste-code/paste-code.js +1 -1
  319. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  320. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  321. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  322. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  323. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  324. package/es5/plugins/style/style.css +1 -1
  325. package/es5/plugins/style/style.js +1 -1
  326. package/es5/plugins/style/style.min.js +1 -1
  327. package/es5/plugins/templates/templates.css +1 -1
  328. package/es5/plugins/templates/templates.js +1 -1
  329. package/es5/plugins/templates/templates.min.js +1 -1
  330. package/es5/plugins/todo-list/todo-list.css +1 -1
  331. package/es5/plugins/todo-list/todo-list.js +1 -1
  332. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  333. package/es5/plugins/translate/translate.css +1 -1
  334. package/es5/plugins/translate/translate.js +1 -1
  335. package/es5/plugins/translate/translate.min.js +1 -1
  336. package/es5/plugins/tune-block/tune-block.css +1 -1
  337. package/es5/plugins/tune-block/tune-block.js +1 -1
  338. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  339. package/es5/polyfills.fat.min.js +1 -1
  340. package/es5/polyfills.js +1 -1
  341. package/es5/polyfills.min.js +1 -1
  342. package/esm/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
  343. package/esm/plugins/ai-assistant-pro/core/panel-resize.d.ts +4 -0
  344. package/esm/plugins/ai-assistant-pro/core/panel-resize.js +1 -1
  345. package/esm/plugins/backup/ui/item.js +1 -1
  346. package/esm/plugins/button-generator/ui/form/form.js +2 -2
  347. package/package.json +1 -1
  348. package/types/plugins/ai-assistant-pro/core/panel-resize.d.ts +4 -0
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.18.9
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -2331,7 +2331,7 @@ function _unsupported_iterable_to_array(o, minLen) {
2331
2331
  if (n === "Map" || n === "Set") return Array.from(n);
2332
2332
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
2333
2333
  }
2334
- var APP_VERSION = "4.18.9";
2334
+ var APP_VERSION = "4.18.11";
2335
2335
  // prettier-ignore
2336
2336
  var ES = "es5";
2337
2337
  var IS_ES_MODERN = false;
@@ -3139,6 +3139,8 @@ function _unsupported_iterable_to_array(o, minLen) {
3139
3139
  */ ;
3140
3140
 
3141
3141
  var componentRegistry = new Map();
3142
+ var decoratedClasses = new WeakSet();
3143
+ var warnedClasses = new WeakSet();
3142
3144
  /**
3143
3145
  * Decorate components and set status isReady after constructor
3144
3146
  * @param constructorFunction - Component constructor class
@@ -3162,11 +3164,18 @@ var componentRegistry = new Map();
3162
3164
  Object.setPrototypeOf(_this, newConstructorFunction.prototype);
3163
3165
  }
3164
3166
  _this.setStatus('ready');
3167
+ } else if (!_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && !decoratedClasses.has(_this.constructor) && !warnedClasses.has(_this.constructor)) {
3168
+ // Only the outermost class's decorator sets `ready`, so a subclass
3169
+ // without its own decorator stays in `beforeInit`. See #1685
3170
+ warnedClasses.add(_this.constructor);
3171
+ console.warn('Component "'.concat(_this.constructor.name || (0,_helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_1__.getClassName)(_this), '" extends a @component class without being decorated itself, so it never becomes ready and its @watch, @debounce, @throttle and @hook handlers never run'));
3165
3172
  }
3166
3173
  return _this;
3167
3174
  }
3168
3175
  return newConstructorFunction;
3169
3176
  }(constructorFunction);
3177
+ decoratedClasses.add(constructorFunction);
3178
+ decoratedClasses.add(newConstructorFunction);
3170
3179
  var name = (0,_helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_1__.getClassName)(constructorFunction.prototype);
3171
3180
  if (componentRegistry.has(name) && !_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
3172
3181
  throw new Error('Component with name "'.concat(name, '" is already registered'));
@@ -24554,6 +24563,7 @@ function _unsupported_iterable_to_array(o, minLen) {
24554
24563
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24555
24564
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24556
24565
  };
24566
+ var Popup_1;
24557
24567
 
24558
24568
 
24559
24569
 
@@ -24570,7 +24580,7 @@ var EVENTS_FOR_AUTOCLOSE = [
24570
24580
  'backSpaceAfterDelete',
24571
24581
  'beforeCommandDelete'
24572
24582
  ];
24573
- var Popup = /*#__PURE__*/ function(UIGroup) {
24583
+ var Popup = Popup_1 = /*#__PURE__*/ function(UIGroup) {
24574
24584
  "use strict";
24575
24585
  _inherits(Popup, UIGroup);
24576
24586
  function Popup(jodit) {
@@ -24614,7 +24624,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
24614
24624
  key: "updateParentElement",
24615
24625
  value: function updateParentElement(target) {
24616
24626
  var _this = this;
24617
- if (target !== this && _component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(target, Popup)) {
24627
+ if (target !== this && _component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(target, Popup_1)) {
24618
24628
  this.__childrenPopups.forEach(function(popup) {
24619
24629
  if (!target.closest(popup) && popup.isOpened) {
24620
24630
  popup.close();
@@ -24663,7 +24673,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
24663
24673
  if (parentContainer) {
24664
24674
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.append(parentContainer, this.container);
24665
24675
  } else {
24666
- var popupContainer = (0,_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.jodit, Popup);
24676
+ var popupContainer = (0,_global_js__WEBPACK_IMPORTED_MODULE_3__.getContainer)(this.jodit, Popup_1);
24667
24677
  if (parentContainer !== this.container.parentElement) {
24668
24678
  _dom_dom_js__WEBPACK_IMPORTED_MODULE_2__.Dom.append(popupContainer, this.container);
24669
24679
  }
@@ -24799,11 +24809,11 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
24799
24809
  };
24800
24810
  var getMatchStrategy = function getMatchStrategy(inBox) {
24801
24811
  var strategy;
24802
- if (Popup.boxInView(getPointByStrategy(defaultStrategy), inBox)) {
24812
+ if (Popup_1.boxInView(getPointByStrategy(defaultStrategy), inBox)) {
24803
24813
  strategy = defaultStrategy;
24804
24814
  } else {
24805
24815
  strategy = list.find(function(key) {
24806
- if (Popup.boxInView(getPointByStrategy(key), inBox)) {
24816
+ if (Popup_1.boxInView(getPointByStrategy(key), inBox)) {
24807
24817
  return key;
24808
24818
  }
24809
24819
  return;
@@ -24814,7 +24824,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
24814
24824
  // Try to find match position inside Jodit.container
24815
24825
  var strategy = getMatchStrategy((0,_helpers_index_js__WEBPACK_IMPORTED_MODULE_4__.position)(this.j.container, this.j));
24816
24826
  // If not found or is not inside window view
24817
- if (!strategy || !Popup.boxInView(getPointByStrategy(strategy), view)) {
24827
+ if (!strategy || !Popup_1.boxInView(getPointByStrategy(strategy), view)) {
24818
24828
  // Find match strategy inside window view
24819
24829
  strategy = getMatchStrategy(view) || strategy || defaultStrategy;
24820
24830
  }
@@ -24869,7 +24879,7 @@ var Popup = /*#__PURE__*/ function(UIGroup) {
24869
24879
  if (!e.target) {
24870
24880
  return false;
24871
24881
  }
24872
- var box = _element_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(e.target, Popup);
24882
+ var box = _element_js__WEBPACK_IMPORTED_MODULE_7__.UIElement.closestElement(e.target, Popup_1);
24873
24883
  return Boolean(box && (this === box || box.closest(this)));
24874
24884
  }
24875
24885
  },
@@ -24952,6 +24962,10 @@ __decorate([
24952
24962
  __decorate([
24953
24963
  _decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.autobind
24954
24964
  ], Popup.prototype, "__closeOnOutsideClick", null);
24965
+ Popup = Popup_1 = __decorate([
24966
+ _decorators_index_js__WEBPACK_IMPORTED_MODULE_1__.component
24967
+ ], Popup);
24968
+
24955
24969
 
24956
24970
 
24957
24971
  /***/ }),
@@ -26883,7 +26897,7 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
26883
26897
  commands.push(command);
26884
26898
  if (!(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(command)) {
26885
26899
  var hotkeys = this.o.commandToHotkeys[commandName] || this.o.commandToHotkeys[commandNameOriginal] || command.hotkeys;
26886
- if (hotkeys) {
26900
+ if (hotkeys && hotkeys.length) {
26887
26901
  this.registerHotkeyToCommand(hotkeys, commandName, options === null || options === void 0 ? void 0 : options.stopPropagation);
26888
26902
  }
26889
26903
  }
@@ -26897,6 +26911,10 @@ var Jodit = Jodit_1 = /*#__PURE__*/ function(ViewWithToolbar) {
26897
26911
  value: function registerHotkeyToCommand(hotkeys, commandName) {
26898
26912
  var _this = this;
26899
26913
  var shouldStop = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
26914
+ // An empty list (e.g. `commandToHotkeys: { cmd: [] }`) turns the key off
26915
+ if (!hotkeys || !hotkeys.length) {
26916
+ return;
26917
+ }
26900
26918
  var shortcuts = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.asArray)(hotkeys).map(_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.normalizeKeyAliases).map(function(hotkey) {
26901
26919
  return hotkey + '.hotkey';
26902
26920
  }).join(' ');
@@ -38507,7 +38525,8 @@ var DEFAULT_SOURCE_NAME = 'default';
38507
38525
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
38508
38526
  /* harmony export */ FileBrowserFiles: function() { return /* binding */ FileBrowserFiles; }
38509
38527
  /* harmony export */ });
38510
- /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67510);
38528
+ /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
38529
+ /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67510);
38511
38530
  function _assert_this_initialized(self) {
38512
38531
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
38513
38532
  return self;
@@ -38579,7 +38598,14 @@ function _type_of(obj) {
38579
38598
  * Jodit Editor (https://xdsoft.net/jodit/)
38580
38599
  * Released under MIT see LICENSE.txt in the project root for license information.
38581
38600
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
38582
- */ ;
38601
+ */ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
38602
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38603
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
38604
+ else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
38605
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
38606
+ };
38607
+
38608
+
38583
38609
  var FileBrowserFiles = /*#__PURE__*/ function(UIGroup) {
38584
38610
  "use strict";
38585
38611
  _inherits(FileBrowserFiles, UIGroup);
@@ -38596,7 +38622,11 @@ var FileBrowserFiles = /*#__PURE__*/ function(UIGroup) {
38596
38622
  }
38597
38623
  ]);
38598
38624
  return FileBrowserFiles;
38599
- }(_core_ui_index_js__WEBPACK_IMPORTED_MODULE_0__.UIGroup);
38625
+ }(_core_ui_index_js__WEBPACK_IMPORTED_MODULE_1__.UIGroup);
38626
+ FileBrowserFiles = __decorate([
38627
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
38628
+ ], FileBrowserFiles);
38629
+
38600
38630
 
38601
38631
 
38602
38632
  /***/ }),
@@ -38628,7 +38658,8 @@ var FileBrowserFiles = /*#__PURE__*/ function(UIGroup) {
38628
38658
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
38629
38659
  /* harmony export */ FileBrowserTree: function() { return /* binding */ FileBrowserTree; }
38630
38660
  /* harmony export */ });
38631
- /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67510);
38661
+ /* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
38662
+ /* harmony import */ var _core_ui_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67510);
38632
38663
  function _assert_this_initialized(self) {
38633
38664
  if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
38634
38665
  return self;
@@ -38700,7 +38731,14 @@ function _type_of(obj) {
38700
38731
  * Jodit Editor (https://xdsoft.net/jodit/)
38701
38732
  * Released under MIT see LICENSE.txt in the project root for license information.
38702
38733
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
38703
- */ ;
38734
+ */ var __decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
38735
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38736
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
38737
+ else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
38738
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
38739
+ };
38740
+
38741
+
38704
38742
  var FileBrowserTree = /*#__PURE__*/ function(UIGroup) {
38705
38743
  "use strict";
38706
38744
  _inherits(FileBrowserTree, UIGroup);
@@ -38717,7 +38755,11 @@ var FileBrowserTree = /*#__PURE__*/ function(UIGroup) {
38717
38755
  }
38718
38756
  ]);
38719
38757
  return FileBrowserTree;
38720
- }(_core_ui_index_js__WEBPACK_IMPORTED_MODULE_0__.UIGroup);
38758
+ }(_core_ui_index_js__WEBPACK_IMPORTED_MODULE_1__.UIGroup);
38759
+ FileBrowserTree = __decorate([
38760
+ _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.component
38761
+ ], FileBrowserTree);
38762
+
38721
38763
 
38722
38764
 
38723
38765
  /***/ }),
@@ -47560,9 +47602,11 @@ function moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace) {
47560
47602
  * ```html
47561
47603
  * t|st
47562
47604
  * ```
47605
+ * With `stopBeforeSpace`, nothing is removed when the next char is a space.
47563
47606
  * @private
47564
47607
  */ // eslint-disable-next-line complexity
47565
47608
  function checkRemoveChar(jodit, fakeNode, backspace, mode) {
47609
+ var stopBeforeSpace = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
47566
47610
  var _a, _b;
47567
47611
  var step = backspace ? -1 : 1;
47568
47612
  var anotherSibling = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.sibling(fakeNode, !backspace);
@@ -47581,6 +47625,9 @@ function checkRemoveChar(jodit, fakeNode, backspace, mode) {
47581
47625
  break;
47582
47626
  }
47583
47627
  if ((_a = sibling.nodeValue) === null || _a === void 0 ? void 0 : _a.length) {
47628
+ if (stopBeforeSpace && isSpace(nextChar(sibling.nodeValue, backspace))) {
47629
+ break;
47630
+ }
47584
47631
  removed = tryRemoveChar(sibling, backspace, step, anotherSibling);
47585
47632
  if (!sibling.nodeValue.length && _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isInlineBlock(sibling.parentNode)) {
47586
47633
  sibling.nodeValue = _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE;
@@ -47688,10 +47735,26 @@ function replaceSpaceOnNBSP(anotherSibling, backspace, value) {
47688
47735
  }
47689
47736
  function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed, jodit) {
47690
47737
  ;(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.call)(backspace ? _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.after : _core_dom_index_js__WEBPACK_IMPORTED_MODULE_1__.Dom.before, sibling, fakeNode);
47691
- if (mode === 'sentence' || mode === 'word' && removed !== ' ' && removed !== _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE) {
47692
- checkRemoveChar(jodit, fakeNode, backspace, mode);
47738
+ var wordChar = mode === 'word' && !isSpace(removed);
47739
+ // Backspace by word removes the spaces before the caret, then the word, and keeps the space in front of it
47740
+ if (mode === 'sentence' || wordChar || mode === 'word' && backspace) {
47741
+ checkRemoveChar(jodit, fakeNode, backspace, mode, wordChar && backspace);
47693
47742
  }
47694
47743
  }
47744
+ /**
47745
+ * The char tryRemoveChar would remove next
47746
+ */ function nextChar(value, backspace) {
47747
+ var chars = (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.toArray)(value);
47748
+ var step = backspace ? -1 : 1;
47749
+ var index = backspace ? chars.length - 1 : 0;
47750
+ while(chars[index] === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.INVISIBLE_SPACE){
47751
+ index += step;
47752
+ }
47753
+ return chars[index];
47754
+ }
47755
+ function isSpace(char) {
47756
+ return char === ' ' || char === _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.NBSP_SPACE;
47757
+ }
47695
47758
 
47696
47759
 
47697
47760
  /***/ }),
@@ -48103,7 +48166,8 @@ function _unsupported_iterable_to_array(o, minLen) {
48103
48166
  /***/ 32496:
48104
48167
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
48105
48168
 
48106
- /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
48169
+ /* harmony import */ var _core_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
48170
+ /* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6441);
48107
48171
  /*!
48108
48172
  * Jodit Editor (https://xdsoft.net/jodit/)
48109
48173
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -48111,13 +48175,18 @@ function _unsupported_iterable_to_array(o, minLen) {
48111
48175
  */ /**
48112
48176
  * @module plugins/backspace
48113
48177
  */
48114
- _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.delete = {
48178
+
48179
+ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.delete = {
48115
48180
  hotkeys: {
48116
- delete: [
48181
+ delete: _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_MAC ? [
48182
+ 'delete'
48183
+ ] : [
48117
48184
  'delete',
48118
48185
  'cmd+backspace'
48119
48186
  ],
48120
- deleteWord: [
48187
+ deleteWord: _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_MAC ? [
48188
+ 'ctrl+delete'
48189
+ ] : [
48121
48190
  'ctrl+delete',
48122
48191
  'cmd+alt+backspace',
48123
48192
  'ctrl+alt+backspace'
@@ -48129,7 +48198,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.delete = {
48129
48198
  backspace: [
48130
48199
  'backspace'
48131
48200
  ],
48132
- backspaceWord: [
48201
+ backspaceWord: _core_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_MAC ? [] : [
48133
48202
  'ctrl+backspace'
48134
48203
  ],
48135
48204
  backspaceSentence: [
@@ -56663,8 +56732,12 @@ function _wrap_native_super(Class) {
56663
56732
  dialog.close();
56664
56733
  });
56665
56734
  buttons.remove.onAction(function() {
56735
+ var caret = j.s.createRange();
56736
+ caret.setStartBefore(_this.state.sourceImage);
56737
+ caret.collapse(true);
56666
56738
  j.s.removeNode(_this.state.sourceImage);
56667
56739
  dialog.close();
56740
+ j.s.selectRange(caret);
56668
56741
  });
56669
56742
  buttons.cancel.onAction(function() {
56670
56743
  dialog.close();
@@ -56678,10 +56751,20 @@ function _wrap_native_super(Class) {
56678
56751
  ],
56679
56752
  buttons.check
56680
56753
  ]);
56681
- j.e.on(dialog, 'afterClose', function() {
56682
- if (_this.state.image.parentNode && j.o.image.selectImageAfterClose) {
56683
- j.s.select(_this.state.sourceImage);
56754
+ // The dialog fires `afterClose` on its own emitter, not the editor's
56755
+ dialog.e.on(dialog, 'afterClose', function() {
56756
+ var sourceImage = _this.state.sourceImage;
56757
+ if (j.isInDestruct || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isOrContains(j.editor, sourceImage)) {
56758
+ return;
56684
56759
  }
56760
+ if (j.o.image.selectImageAfterClose) {
56761
+ j.s.select(sourceImage);
56762
+ return;
56763
+ }
56764
+ var caret = j.s.createRange();
56765
+ caret.setStartAfter(sourceImage);
56766
+ caret.collapse(true);
56767
+ j.s.selectRange(caret);
56685
56768
  });
56686
56769
  dialog.setSize(j.o.image.dialogWidth);
56687
56770
  (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.markOwner)(j, dialog.container);
@@ -56719,6 +56802,7 @@ function _wrap_native_super(Class) {
56719
56802
  this.activeTabState.activeTab = 'Image';
56720
56803
  this.__lock();
56721
56804
  this.dialog.open().setModal(true).setPosition();
56805
+ this.__focusFirstField();
56722
56806
  this.async.promise(function(resolve, reject) {
56723
56807
  return (0,_readers_index_js__WEBPACK_IMPORTED_MODULE_10__.readValuesFromImage)(_this.j, _this.state).then(resolve, reject);
56724
56808
  }).catch(function(e) {
@@ -56731,6 +56815,21 @@ function _wrap_native_super(Class) {
56731
56815
  return false;
56732
56816
  }
56733
56817
  },
56818
+ {
56819
+ /**
56820
+ * Keys typed while the dialog is open must not reach the editor behind it,
56821
+ * so focus the active tab's first field, or else the first field shown
56822
+ */ key: "__focusFirstField",
56823
+ value: function __focusFirstField() {
56824
+ var _a;
56825
+ var fields = function fields(box) {
56826
+ return (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_3__.toArray)(box.querySelectorAll('input, select, textarea'));
56827
+ };
56828
+ (_a = fields(this.form.getElm('tabsBox')).concat(fields(this.form.container)).find(function(field) {
56829
+ return field.offsetParent != null;
56830
+ })) === null || _a === void 0 ? void 0 : _a.focus();
56831
+ }
56832
+ },
56734
56833
  {
56735
56834
  key: "__lock",
56736
56835
  value: function __lock() {
@@ -63386,9 +63485,11 @@ var isButtonSeparator = function isButtonSeparator(item) {
63386
63485
  return cleaned;
63387
63486
  }
63388
63487
  /**
63389
- * The width that decides which breakpoint set the toolbar uses. A toolbar
63390
- * rendered into an external container (`toolbar` set to an element or a
63391
- * selector) lays out in that container, so its width is what matters there.
63488
+ * The width that decides which breakpoint set the toolbar uses: the editor's
63489
+ * own width, or its parent's while the editor has none yet (for example
63490
+ * while hidden at init). A toolbar rendered into an external container
63491
+ * (`toolbar` set to an element or a selector) lays out in that container, so
63492
+ * its width is what matters there.
63392
63493
  */ function adaptiveWidth(editor) {
63393
63494
  var _a;
63394
63495
  var toolbar = editor.o.toolbar;
@@ -63398,7 +63499,7 @@ var isButtonSeparator = function isButtonSeparator(item) {
63398
63499
  return width;
63399
63500
  }
63400
63501
  }
63401
- return ((_a = editor.container.parentElement) !== null && _a !== void 0 ? _a : editor.container).offsetWidth;
63502
+ return editor.container.offsetWidth || ((_a = editor.container.parentElement) !== null && _a !== void 0 ? _a : editor.container).offsetWidth;
63402
63503
  }
63403
63504
  /**
63404
63505
  * Rebuild toolbar in depends on editor's width
package/es5/jodit.min.css CHANGED
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.9
4
+ * Version: v4.18.11
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
8
  /*!
9
9
  * jodit-pro - PRO Version of Jodit Editor
10
10
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
11
- * Version: v4.18.9
11
+ * Version: v4.18.11
12
12
  * Url: https://xdsoft.net/jodit/pro/
13
13
  * License(s): SEE LICENSE IN LICENSE.md
14
14
  */