jodit-pro 4.2.35 → 4.2.41

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 (314) hide show
  1. package/es2015/889.fat.min.js +1 -1
  2. package/es2015/889.min.js +1 -1
  3. package/es2015/jodit.css +7 -1
  4. package/es2015/jodit.fat.min.css +1 -1
  5. package/es2015/jodit.fat.min.js +2 -2
  6. package/es2015/jodit.js +190 -88
  7. package/es2015/jodit.min.css +1 -1
  8. package/es2015/jodit.min.js +2 -2
  9. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  11. package/es2015/plugins/backup/backup.css +1 -1
  12. package/es2015/plugins/backup/backup.js +1 -1
  13. package/es2015/plugins/backup/backup.min.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.css +1 -1
  15. package/es2015/plugins/button-generator/button-generator.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  17. package/es2015/plugins/change-case/change-case.js +1 -1
  18. package/es2015/plugins/change-case/change-case.min.js +1 -1
  19. package/es2015/plugins/color-picker/color-picker.css +1 -1
  20. package/es2015/plugins/color-picker/color-picker.js +1 -1
  21. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  22. package/es2015/plugins/emoji/emoji.css +1 -1
  23. package/es2015/plugins/emoji/emoji.js +1 -1
  24. package/es2015/plugins/emoji/emoji.min.js +1 -1
  25. package/es2015/plugins/export-docs/export-docs.js +1 -1
  26. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  27. package/es2015/plugins/finder/finder.css +1 -1
  28. package/es2015/plugins/finder/finder.js +1 -1
  29. package/es2015/plugins/finder/finder.min.js +1 -1
  30. package/es2015/plugins/google-maps/google-maps.css +1 -1
  31. package/es2015/plugins/google-maps/google-maps.js +1 -1
  32. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  33. package/es2015/plugins/google-search/google-search.js +1 -1
  34. package/es2015/plugins/google-search/google-search.min.js +1 -1
  35. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  36. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  38. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  39. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  40. package/es2015/plugins/keyboard/keyboard.css +1 -1
  41. package/es2015/plugins/keyboard/keyboard.js +1 -1
  42. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  43. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  44. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  45. package/es2015/plugins/page-break/page-break.js +1 -1
  46. package/es2015/plugins/page-break/page-break.min.js +1 -1
  47. package/es2015/plugins/paste-code/paste-code.css +1 -1
  48. package/es2015/plugins/paste-code/paste-code.js +1 -1
  49. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  50. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  51. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  52. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  53. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  54. package/es2015/plugins/todo-list/todo-list.css +1 -1
  55. package/es2015/plugins/todo-list/todo-list.js +1 -1
  56. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  57. package/es2015/plugins/translate/translate.css +1 -1
  58. package/es2015/plugins/translate/translate.js +1 -1
  59. package/es2015/plugins/translate/translate.min.js +1 -1
  60. package/es2015/plugins/tune-block/tune-block.css +1 -1
  61. package/es2015/plugins/tune-block/tune-block.js +1 -1
  62. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  63. package/es2018/889.fat.min.js +1 -1
  64. package/es2018/889.min.js +1 -1
  65. package/es2018/jodit.css +7 -1
  66. package/es2018/jodit.fat.min.css +1 -1
  67. package/es2018/jodit.fat.min.js +2 -2
  68. package/es2018/jodit.js +190 -88
  69. package/es2018/jodit.min.css +1 -1
  70. package/es2018/jodit.min.js +2 -2
  71. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  72. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  73. package/es2018/plugins/backup/backup.css +1 -1
  74. package/es2018/plugins/backup/backup.js +1 -1
  75. package/es2018/plugins/backup/backup.min.js +1 -1
  76. package/es2018/plugins/button-generator/button-generator.css +1 -1
  77. package/es2018/plugins/button-generator/button-generator.js +1 -1
  78. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  79. package/es2018/plugins/change-case/change-case.js +1 -1
  80. package/es2018/plugins/change-case/change-case.min.js +1 -1
  81. package/es2018/plugins/color-picker/color-picker.css +1 -1
  82. package/es2018/plugins/color-picker/color-picker.js +1 -1
  83. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  84. package/es2018/plugins/emoji/emoji.css +1 -1
  85. package/es2018/plugins/emoji/emoji.js +1 -1
  86. package/es2018/plugins/emoji/emoji.min.js +1 -1
  87. package/es2018/plugins/export-docs/export-docs.js +1 -1
  88. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  89. package/es2018/plugins/finder/finder.css +1 -1
  90. package/es2018/plugins/finder/finder.js +1 -1
  91. package/es2018/plugins/finder/finder.min.js +1 -1
  92. package/es2018/plugins/google-maps/google-maps.css +1 -1
  93. package/es2018/plugins/google-maps/google-maps.js +1 -1
  94. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  95. package/es2018/plugins/google-search/google-search.js +1 -1
  96. package/es2018/plugins/google-search/google-search.min.js +1 -1
  97. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  98. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  99. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  100. package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
  101. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  102. package/es2018/plugins/keyboard/keyboard.css +1 -1
  103. package/es2018/plugins/keyboard/keyboard.js +1 -1
  104. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  105. package/es2018/plugins/mobile-view/mobile-view.js +1 -1
  106. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  107. package/es2018/plugins/page-break/page-break.js +1 -1
  108. package/es2018/plugins/page-break/page-break.min.js +1 -1
  109. package/es2018/plugins/paste-code/paste-code.css +1 -1
  110. package/es2018/plugins/paste-code/paste-code.js +1 -1
  111. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  112. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  113. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  114. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  115. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  116. package/es2018/plugins/todo-list/todo-list.css +1 -1
  117. package/es2018/plugins/todo-list/todo-list.js +1 -1
  118. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  119. package/es2018/plugins/translate/translate.css +1 -1
  120. package/es2018/plugins/translate/translate.js +1 -1
  121. package/es2018/plugins/translate/translate.min.js +1 -1
  122. package/es2018/plugins/tune-block/tune-block.css +1 -1
  123. package/es2018/plugins/tune-block/tune-block.js +1 -1
  124. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  125. package/es2021/889.fat.min.js +1 -1
  126. package/es2021/889.min.js +1 -1
  127. package/es2021/jodit.css +7 -1
  128. package/es2021/jodit.fat.min.css +1 -1
  129. package/es2021/jodit.fat.min.js +2 -2
  130. package/es2021/jodit.js +190 -87
  131. package/es2021/jodit.min.css +1 -1
  132. package/es2021/jodit.min.js +2 -2
  133. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  134. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  135. package/es2021/plugins/backup/backup.css +1 -1
  136. package/es2021/plugins/backup/backup.js +1 -1
  137. package/es2021/plugins/backup/backup.min.js +1 -1
  138. package/es2021/plugins/button-generator/button-generator.css +1 -1
  139. package/es2021/plugins/button-generator/button-generator.js +1 -1
  140. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  141. package/es2021/plugins/change-case/change-case.js +1 -1
  142. package/es2021/plugins/change-case/change-case.min.js +1 -1
  143. package/es2021/plugins/color-picker/color-picker.css +1 -1
  144. package/es2021/plugins/color-picker/color-picker.js +1 -1
  145. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  146. package/es2021/plugins/emoji/emoji.css +1 -1
  147. package/es2021/plugins/emoji/emoji.js +1 -1
  148. package/es2021/plugins/emoji/emoji.min.js +1 -1
  149. package/es2021/plugins/export-docs/export-docs.js +1 -1
  150. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  151. package/es2021/plugins/finder/finder.css +1 -1
  152. package/es2021/plugins/finder/finder.js +1 -1
  153. package/es2021/plugins/finder/finder.min.js +1 -1
  154. package/es2021/plugins/google-maps/google-maps.css +1 -1
  155. package/es2021/plugins/google-maps/google-maps.js +1 -1
  156. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  157. package/es2021/plugins/google-search/google-search.js +1 -1
  158. package/es2021/plugins/google-search/google-search.min.js +1 -1
  159. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  160. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  161. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  162. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  163. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  164. package/es2021/plugins/keyboard/keyboard.css +1 -1
  165. package/es2021/plugins/keyboard/keyboard.js +1 -1
  166. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  167. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  168. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  169. package/es2021/plugins/page-break/page-break.js +1 -1
  170. package/es2021/plugins/page-break/page-break.min.js +1 -1
  171. package/es2021/plugins/paste-code/paste-code.css +1 -1
  172. package/es2021/plugins/paste-code/paste-code.js +1 -1
  173. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  174. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  175. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  176. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  177. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  178. package/es2021/plugins/todo-list/todo-list.css +1 -1
  179. package/es2021/plugins/todo-list/todo-list.js +1 -1
  180. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  181. package/es2021/plugins/translate/translate.css +1 -1
  182. package/es2021/plugins/translate/translate.js +1 -1
  183. package/es2021/plugins/translate/translate.min.js +1 -1
  184. package/es2021/plugins/tune-block/tune-block.css +1 -1
  185. package/es2021/plugins/tune-block/tune-block.js +1 -1
  186. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  187. package/es2021.en/889.fat.min.js +1 -1
  188. package/es2021.en/889.min.js +1 -1
  189. package/es2021.en/jodit.css +7 -1
  190. package/es2021.en/jodit.fat.min.css +1 -1
  191. package/es2021.en/jodit.fat.min.js +2 -2
  192. package/es2021.en/jodit.js +190 -87
  193. package/es2021.en/jodit.min.css +1 -1
  194. package/es2021.en/jodit.min.js +2 -2
  195. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  196. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  197. package/es2021.en/plugins/backup/backup.css +1 -1
  198. package/es2021.en/plugins/backup/backup.js +1 -1
  199. package/es2021.en/plugins/backup/backup.min.js +1 -1
  200. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  201. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  202. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  203. package/es2021.en/plugins/change-case/change-case.js +1 -1
  204. package/es2021.en/plugins/change-case/change-case.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/keyboard/keyboard.css +1 -1
  227. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  228. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  229. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  230. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  231. package/es2021.en/plugins/page-break/page-break.js +1 -1
  232. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  233. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  234. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  235. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  236. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  237. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  238. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  239. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  240. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  241. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  242. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  243. package/es2021.en/plugins/translate/translate.css +1 -1
  244. package/es2021.en/plugins/translate/translate.js +1 -1
  245. package/es2021.en/plugins/translate/translate.min.js +1 -1
  246. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  247. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  248. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  249. package/es5/292.fat.min.js +2 -2
  250. package/es5/292.js +6 -6
  251. package/es5/292.min.js +2 -2
  252. package/es5/889.fat.min.js +1 -1
  253. package/es5/889.min.js +1 -1
  254. package/es5/jodit.css +11 -2
  255. package/es5/jodit.fat.min.css +1 -1
  256. package/es5/jodit.fat.min.js +2 -2
  257. package/es5/jodit.js +197 -103
  258. package/es5/jodit.min.css +3 -3
  259. package/es5/jodit.min.js +2 -2
  260. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  261. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  262. package/es5/plugins/backup/backup.css +1 -1
  263. package/es5/plugins/backup/backup.js +1 -1
  264. package/es5/plugins/backup/backup.min.js +1 -1
  265. package/es5/plugins/button-generator/button-generator.css +1 -1
  266. package/es5/plugins/button-generator/button-generator.js +1 -1
  267. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  268. package/es5/plugins/change-case/change-case.js +1 -1
  269. package/es5/plugins/change-case/change-case.min.js +1 -1
  270. package/es5/plugins/color-picker/color-picker.css +1 -1
  271. package/es5/plugins/color-picker/color-picker.js +1 -1
  272. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  273. package/es5/plugins/emoji/emoji.css +1 -1
  274. package/es5/plugins/emoji/emoji.js +1 -1
  275. package/es5/plugins/emoji/emoji.min.js +1 -1
  276. package/es5/plugins/export-docs/export-docs.js +1 -1
  277. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  278. package/es5/plugins/finder/finder.css +1 -1
  279. package/es5/plugins/finder/finder.js +1 -1
  280. package/es5/plugins/finder/finder.min.js +1 -1
  281. package/es5/plugins/google-maps/google-maps.css +1 -1
  282. package/es5/plugins/google-maps/google-maps.js +1 -1
  283. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  284. package/es5/plugins/google-search/google-search.js +1 -1
  285. package/es5/plugins/google-search/google-search.min.js +1 -1
  286. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  287. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  288. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  289. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  290. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  291. package/es5/plugins/keyboard/keyboard.css +1 -1
  292. package/es5/plugins/keyboard/keyboard.js +1 -1
  293. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  294. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  295. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  296. package/es5/plugins/page-break/page-break.js +1 -1
  297. package/es5/plugins/page-break/page-break.min.js +1 -1
  298. package/es5/plugins/paste-code/paste-code.css +1 -1
  299. package/es5/plugins/paste-code/paste-code.js +1 -1
  300. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  301. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  302. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  303. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  304. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  305. package/es5/plugins/todo-list/todo-list.css +1 -1
  306. package/es5/plugins/todo-list/todo-list.js +1 -1
  307. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  308. package/es5/plugins/translate/translate.css +1 -1
  309. package/es5/plugins/translate/translate.js +1 -1
  310. package/es5/plugins/translate/translate.min.js +1 -1
  311. package/es5/plugins/tune-block/tune-block.css +1 -1
  312. package/es5/plugins/tune-block/tune-block.js +1 -1
  313. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  314. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v4.2.35
4
+ * Version: v4.2.41
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -2303,7 +2303,7 @@ __webpack_require__.r(__webpack_exports__);
2303
2303
  * Released under MIT see LICENSE.txt in the project root for license information.
2304
2304
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
2305
2305
  */
2306
- const APP_VERSION = "4.2.35";
2306
+ const APP_VERSION = "4.2.41";
2307
2307
  // prettier-ignore
2308
2308
  const ES = "es2021";
2309
2309
  const IS_ES_MODERN = true;
@@ -8100,10 +8100,10 @@ const buildQuery = (data, prefix) => {
8100
8100
  * Released under MIT see LICENSE.txt in the project root for license information.
8101
8101
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
8102
8102
  */
8103
-
8104
8103
  /**
8105
8104
  * @module helpers/utils
8106
8105
  */
8106
+
8107
8107
  const completeUrl = (url) => {
8108
8108
  if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
8109
8109
  url = 'https:' + url;
@@ -8239,11 +8239,12 @@ function ConfigFlatten(obj) {
8239
8239
  /**
8240
8240
  * Javascript url pattern converter replace youtube/vimeo url in embed code.
8241
8241
  */
8242
- const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
8242
+ const convertMediaUrlToVideoEmbed = (url, { width = 400, height = 345 } = {}) => {
8243
8243
  if (!(0,jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_1__/* .isURL */ .m)(url)) {
8244
8244
  return url;
8245
8245
  }
8246
- const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a'), pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
8246
+ const parser = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument.createElement('a');
8247
+ const pattern1 = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
8247
8248
  parser.href = url;
8248
8249
  if (!width) {
8249
8250
  width = 400;
@@ -8270,7 +8271,10 @@ const convertMediaUrlToVideoEmbed = (url, width = 400, height = 345) => {
8270
8271
  case 'www.youtu.be': {
8271
8272
  const query = parser.search
8272
8273
  ? (0,_parse_query__WEBPACK_IMPORTED_MODULE_2__/* .parseQuery */ .m)(parser.search)
8273
- : { v: parser.pathname.substr(1) };
8274
+ : { v: parser.pathname.substring(1) };
8275
+ if (/^embed\/.*/.test(query.v)) {
8276
+ query.v = query.v.substring(6);
8277
+ }
8274
8278
  return query.v
8275
8279
  ? '<iframe width="' +
8276
8280
  width +
@@ -11815,6 +11819,7 @@ function extractSelectedPart(wrapper, font, jodit) {
11815
11819
  }
11816
11820
  /**
11817
11821
  * Retrieves content before after the selected area, clears it if it is empty, and inserts before after the framed selection
11822
+ * @private
11818
11823
  */
11819
11824
  function extractAndMove(wrapper, range, left) {
11820
11825
  const fragment = range.extractContents();
@@ -13978,6 +13983,7 @@ const JODIT_EVENTS_ON_HIDE = [
13978
13983
  'changePlace.tooltip',
13979
13984
  'afterOpenPopup.tooltip',
13980
13985
  'hidePopup.tooltip',
13986
+ 'beforePopupClose.tooltip',
13981
13987
  'closeAllPopups.tooltip'
13982
13988
  ];
13983
13989
  let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_5__/* .UIElement */ .D {
@@ -13990,6 +13996,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
13990
13996
  constructor(view) {
13991
13997
  super(view);
13992
13998
  this.__isOpened = false;
13999
+ this.__attachedContainers = new Set();
13993
14000
  this.__listenClose = false;
13994
14001
  this.__currentTarget = null;
13995
14002
  this.__delayShowTimeout = 0;
@@ -14008,7 +14015,16 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
14008
14015
  __onAttach(container) {
14009
14016
  // TODO Move it inside __show method. Now it is here because testcase failed with capturing
14010
14017
  (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .getContainer */ .My)(this.j, UITooltip_1).appendChild(this.container);
14011
- this.j.e.on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
14018
+ this.__attachedContainers.add(container);
14019
+ this.__attachedContainers.add(this.j.container);
14020
+ this.j.e
14021
+ .on(container, 'mouseenter.tooltip', this.__onMouseEnter, {
14022
+ capture: true
14023
+ })
14024
+ .on(container, 'mouseleave.tooltip', this.__onMouseLeave, {
14025
+ capture: true
14026
+ })
14027
+ .on(this.j.container, 'mouseleave.tooltip', this.__onMouseLeave, {
14012
14028
  capture: true
14013
14029
  });
14014
14030
  }
@@ -14020,10 +14036,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
14020
14036
  const view = this.j;
14021
14037
  view.e
14022
14038
  .on(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
14023
- .on(JODIT_EVENTS_ON_HIDE, this.__hide)
14024
- .on(view.container, 'mouseleave.tooltip', this.__onMouseLeave, {
14025
- capture: true
14026
- });
14039
+ .on(JODIT_EVENTS_ON_HIDE, this.__hide);
14027
14040
  }
14028
14041
  __removeListenersOnLeave() {
14029
14042
  if (!this.__listenClose) {
@@ -14033,8 +14046,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
14033
14046
  const view = this.j;
14034
14047
  view.e
14035
14048
  .off(view.ow, WINDOW_EVENTS_ON_HIDE, this.__hide)
14036
- .off(JODIT_EVENTS_ON_HIDE, this.__hide)
14037
- .off(view.container, 'mouseleave.tooltip', this.__onMouseLeave);
14049
+ .off(JODIT_EVENTS_ON_HIDE, this.__hide);
14038
14050
  }
14039
14051
  __onMouseLeave(e) {
14040
14052
  if (this.__currentTarget === e.target) {
@@ -14111,7 +14123,11 @@ let UITooltip = UITooltip_1 = class UITooltip extends jodit_core_ui_element__WEB
14111
14123
  this.__hideTimeout = this.async.setTimeout(this.__hide, this.j.defaultTimeout);
14112
14124
  }
14113
14125
  destruct() {
14114
- this.j.e.off(this.j.container, 'mouseenter.tooltip', this.__onMouseEnter);
14126
+ this.__attachedContainers.forEach(container => {
14127
+ this.j.e
14128
+ .off(container, 'mouseenter.tooltip', this.__onMouseEnter)
14129
+ .off(container, 'mouseleave.tooltip', this.__onMouseLeave);
14130
+ });
14115
14131
  this.__hide();
14116
14132
  super.destruct();
14117
14133
  }
@@ -16330,17 +16346,18 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
16330
16346
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16331
16347
  /* harmony export */ T: function() { return /* binding */ ViewWithToolbar; }
16332
16348
  /* harmony export */ });
16333
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31635);
16349
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
16334
16350
  /* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33894);
16335
- /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(33442);
16351
+ /* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33442);
16336
16352
  /* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24014);
16337
16353
  /* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23545);
16338
16354
  /* harmony import */ var jodit_core_helpers_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23462);
16339
- /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(26986);
16355
+ /* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26986);
16340
16356
  /* harmony import */ var jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52989);
16341
- /* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(73246);
16342
- /* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50313);
16343
- /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78072);
16357
+ /* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76185);
16358
+ /* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73246);
16359
+ /* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(50313);
16360
+ /* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78072);
16344
16361
  /*!
16345
16362
  * Jodit Editor (https://xdsoft.net/jodit/)
16346
16363
  * Released under MIT see LICENSE.txt in the project root for license information.
@@ -16358,13 +16375,14 @@ class ProgressBar extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_1__/* .
16358
16375
 
16359
16376
 
16360
16377
 
16361
- class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/* .View */ .S {
16378
+
16379
+ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_6__/* .View */ .S {
16362
16380
  /**
16363
16381
  * Container for toolbar
16364
16382
  */
16365
16383
  get toolbarContainer() {
16366
16384
  if (!this.o.fullsize &&
16367
- ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_7__/* .isString */ .K)(this.o.toolbar) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(this.o.toolbar))) {
16385
+ ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__/* .isString */ .K)(this.o.toolbar) || jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom */ .J.isHTMLElement(this.o.toolbar))) {
16368
16386
  return (0,jodit_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_4__/* .resolveElement */ .tI)(this.o.toolbar, this.o.shadowRoot || this.od);
16369
16387
  }
16370
16388
  this.o.toolbar &&
@@ -16436,7 +16454,7 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
16436
16454
  beforeToolbarBuild(items) {
16437
16455
  if (Object.keys(this.groupToButtons).length) {
16438
16456
  return items.map(item => {
16439
- if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_8__/* .isButtonGroup */ .i)(item) &&
16457
+ if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_9__/* .isButtonGroup */ .i)(item) &&
16440
16458
  item.group &&
16441
16459
  this.groupToButtons[item.group]) {
16442
16460
  return {
@@ -16454,11 +16472,12 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
16454
16472
  /** @override **/
16455
16473
  constructor(options, isJodit = false) {
16456
16474
  super(options, isJodit);
16457
- this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_6__/* .makeCollection */ .$K)(this);
16475
+ this.toolbar = (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_7__/* .makeCollection */ .$K)(this);
16458
16476
  this.__defaultToolbarContainer = this.c.div('jodit-toolbar__box');
16459
16477
  this.registeredButtons = new Set();
16460
16478
  this.groupToButtons = {};
16461
16479
  this.isJodit = false;
16480
+ this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_5__/* .UITooltip */ .SB(this);
16462
16481
  this.isJodit = isJodit;
16463
16482
  this.e.on('beforeToolbarBuild', this.beforeToolbarBuild);
16464
16483
  }
@@ -16468,17 +16487,18 @@ class ViewWithToolbar extends jodit_core_view_view__WEBPACK_IMPORTED_MODULE_5__/
16468
16487
  }
16469
16488
  this.setStatus(jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__/* .STATUSES */ .f.beforeDestruct);
16470
16489
  this.e.off('beforeToolbarBuild', this.beforeToolbarBuild);
16490
+ this.__tooltip.destruct();
16471
16491
  this.toolbar.destruct();
16472
16492
  // @ts-ignore After destruct, we are not responsible for anything
16473
16493
  this.toolbar = undefined;
16474
16494
  super.destruct();
16475
16495
  }
16476
16496
  }
16477
- (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
16497
+ (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
16478
16498
  (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
16479
16499
  ], ViewWithToolbar.prototype, "buildToolbar", null);
16480
- (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .Cg)([
16481
- jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Ay
16500
+ (0,tslib__WEBPACK_IMPORTED_MODULE_10__/* .__decorate */ .Cg)([
16501
+ jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Ay
16482
16502
  ], ViewWithToolbar.prototype, "beforeToolbarBuild", null);
16483
16503
 
16484
16504
 
@@ -16983,7 +17003,17 @@ let Jodit = Jodit_1 = class Jodit extends jodit_modules__WEBPACK_IMPORTED_MODULE
16983
17003
  : jodit_config__WEBPACK_IMPORTED_MODULE_6__/* .Config */ .T.defaultOptions.defaultTimeout;
16984
17004
  }
16985
17005
  /**
16986
- * Method wrap usual Has Object in Object helper for prevent deep object merging in options*
17006
+ * Method wrap usual object in Object helper for prevent deep object merging in options*
17007
+ * ```js
17008
+ * const editor = Jodit.make('#editor', {
17009
+ * controls: {
17010
+ * fontsize: {
17011
+ * list: Jodit.atom([8, 9, 10])
17012
+ * }
17013
+ * }
17014
+ * });
17015
+ * ```
17016
+ * In this case, the array [8, 9, 10] will not be combined with other arrays, but will replace them
16987
17017
  */
16988
17018
  static atom(object) {
16989
17019
  return (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.markAsAtomic)(object);
@@ -21516,6 +21546,7 @@ class Snapshot extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .View
21516
21546
  constructor() {
21517
21547
  super(...arguments);
21518
21548
  this.__isBlocked = false;
21549
+ this.__levelOfTransaction = 0;
21519
21550
  }
21520
21551
  /** @override */
21521
21552
  className() {
@@ -21596,6 +21627,7 @@ class Snapshot extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .View
21596
21627
  }
21597
21628
  transaction(changes) {
21598
21629
  this.__block(true);
21630
+ this.__levelOfTransaction += 1;
21599
21631
  try {
21600
21632
  changes();
21601
21633
  }
@@ -21604,7 +21636,12 @@ class Snapshot extends jodit_core_component__WEBPACK_IMPORTED_MODULE_0__/* .View
21604
21636
  throw e;
21605
21637
  }
21606
21638
  }
21607
- this.__block(false);
21639
+ finally {
21640
+ this.__levelOfTransaction -= 1;
21641
+ if (this.__levelOfTransaction === 0) {
21642
+ this.__block(false);
21643
+ }
21644
+ }
21608
21645
  }
21609
21646
  /**
21610
21647
  * Creates object a snapshot of editor: html and the current selection. Current selection calculate by
@@ -23841,17 +23878,26 @@ let ToolbarButton = class ToolbarButton extends jodit_core_ui_button__WEBPACK_IM
23841
23878
  if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(ctr.popup)) {
23842
23879
  const popup = this.openPopup();
23843
23880
  popup.parentElement = this;
23844
- if (this.j.e.fire((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
23845
- const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
23846
- const elm = ctr.popup(this.j, target, this.__closePopup, this);
23847
- if (elm) {
23848
- popup
23849
- .setContent((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(elm) ? this.j.c.fromHTML(elm) : elm)
23850
- .open(() => (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(this.container), false, this.j.o.allowTabNavigation
23851
- ? this.container
23852
- : undefined);
23881
+ try {
23882
+ if (this.j.e.fire((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
23883
+ const target = this.toolbar?.getTarget(this) ?? this.target ?? null;
23884
+ const elm = ctr.popup(this.j, target, this.__closePopup, this);
23885
+ if (elm) {
23886
+ popup
23887
+ .setContent((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(elm) ? this.j.c.fromHTML(elm) : elm)
23888
+ .open(() => (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(this.container), false, this.j.o.allowTabNavigation
23889
+ ? this.container
23890
+ : undefined);
23891
+ }
23892
+ else {
23893
+ this.__closePopup();
23894
+ }
23853
23895
  }
23854
23896
  }
23897
+ catch (e) {
23898
+ this.__closePopup();
23899
+ throw e;
23900
+ }
23855
23901
  /**
23856
23902
  * Fired after the popup was opened for some control button
23857
23903
  */
@@ -24235,7 +24281,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
24235
24281
  super(jodit);
24236
24282
  this.__listenEvents = 'updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize ' +
24237
24283
  'selectionchange changeSelection focus afterSetMode touchstart focus blur';
24238
- this.__tooltip = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UITooltip */ .SB(this.jodit);
24239
24284
  }
24240
24285
  __initEvents() {
24241
24286
  this.j.e
@@ -24265,8 +24310,6 @@ let ToolbarCollection = class ToolbarCollection extends jodit_core_ui__WEBPACK_I
24265
24310
  if (this.isDestructed) {
24266
24311
  return;
24267
24312
  }
24268
- this.__tooltip?.destruct();
24269
- this.__tooltip = null;
24270
24313
  this.j.e
24271
24314
  .off(this.__listenEvents, this.update)
24272
24315
  .off('afterSetMode focus', this.__immediateUpdate);
@@ -26193,6 +26236,9 @@ __webpack_require__.r(__webpack_exports__);
26193
26236
  * Released under MIT see LICENSE.txt in the project root for license information.
26194
26237
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
26195
26238
  */
26239
+ /**
26240
+ * @module plugins/ai-assistant
26241
+ */
26196
26242
 
26197
26243
 
26198
26244
 
@@ -29793,9 +29839,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__/* .pluginSystem */ .fg.add('enter
29793
29839
  */
29794
29840
  function checkBR(fake, jodit, shiftKeyPressed) {
29795
29841
  const isMultiLineBlock = Boolean(jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['pre', 'blockquote'], jodit.editor));
29842
+ const isCell = !isMultiLineBlock && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.closest(fake, ['td', 'th'], jodit.editor);
29796
29843
  const isBRMode = jodit.o.enter.toLowerCase() === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR.toLowerCase();
29797
29844
  // if you use <br> defaultTag for break line or when was entered SHIFt key or in <td> or <th> or <blockquote>
29798
29845
  if (isBRMode ||
29846
+ isCell ||
29799
29847
  (shiftKeyPressed && !isMultiLineBlock) ||
29800
29848
  (!shiftKeyPressed && isMultiLineBlock)) {
29801
29849
  // 2 BR before
@@ -31767,7 +31815,9 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('image
31767
31815
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
31768
31816
  */
31769
31817
 
31770
- /** @private */
31818
+ /**
31819
+ * @private
31820
+ */
31771
31821
  function readAlign(image, values) {
31772
31822
  // Align
31773
31823
  if (image.style.cssFloat &&
@@ -31888,6 +31938,9 @@ function readLink(state, j, values) {
31888
31938
  * Released under MIT see LICENSE.txt in the project root for license information.
31889
31939
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
31890
31940
  */
31941
+ /**
31942
+ * @module plugins/image-properties
31943
+ */
31891
31944
 
31892
31945
  /** @private */
31893
31946
  function readMargins(image, values, state) {
@@ -31931,6 +31984,9 @@ function readMargins(image, values, state) {
31931
31984
  * Released under MIT see LICENSE.txt in the project root for license information.
31932
31985
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
31933
31986
  */
31987
+ /**
31988
+ * @module plugins/image-properties
31989
+ */
31934
31990
 
31935
31991
 
31936
31992
 
@@ -32744,6 +32800,9 @@ function openImagePopup(j, dialog, state, button) {
32744
32800
  * Released under MIT see LICENSE.txt in the project root for license information.
32745
32801
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
32746
32802
  */
32803
+ /**
32804
+ * @module plugins/image-properties
32805
+ */
32747
32806
 
32748
32807
 
32749
32808
  /** @private */
@@ -32932,6 +32991,9 @@ function applyMargin(j, marginTop, marginRight, marginBottom, marginLeft, image,
32932
32991
  * Released under MIT see LICENSE.txt in the project root for license information.
32933
32992
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
32934
32993
  */
32994
+ /**
32995
+ * @module plugins/image-properties
32996
+ */
32935
32997
 
32936
32998
 
32937
32999
 
@@ -33272,6 +33334,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .pluginSystem */ .fg.add('inden
33272
33334
 
33273
33335
 
33274
33336
 
33337
+ // import 'jodit/plugins/debug/debug';
33275
33338
 
33276
33339
 
33277
33340
 
@@ -33901,10 +33964,10 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
33901
33964
  if (!this.j.o.toolbarInlineForSelection) {
33902
33965
  return;
33903
33966
  }
33904
- const type = 'selection', sel = this.j.s.sel, range = this.j.s.range;
33905
- if (sel?.isCollapsed ||
33906
- this.isSelectedTarget(range) ||
33907
- this.tableModule.getAllSelectedCells().length) {
33967
+ const type = 'selection';
33968
+ const sel = this.j.s.sel;
33969
+ const range = this.j.s.range;
33970
+ if (sel?.isCollapsed || this.isSelectedTarget(range)) {
33908
33971
  if (this.type === type && this.popup.isOpened) {
33909
33972
  this.hidePopup();
33910
33973
  }
@@ -33929,9 +33992,9 @@ class inlinePopup extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plug
33929
33992
  /**
33930
33993
  * Shortcut for Table module
33931
33994
  */
33932
- get tableModule() {
33933
- return this.j.getInstance('Table', this.j.o);
33934
- }
33995
+ // private get tableModule(): Table {
33996
+ // return this.j.getInstance<Table>('Table', this.j.o);
33997
+ // }
33935
33998
  /** @override **/
33936
33999
  beforeDestruct(jodit) {
33937
34000
  jodit.e
@@ -34656,7 +34719,11 @@ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .
34656
34719
  }
34657
34720
  jodit.e.stopPropagation('processPaste');
34658
34721
  if (jodit.o.link.processVideoLink) {
34659
- const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.convertMediaUrlToVideoEmbed)(html);
34722
+ const embed = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.call)(jodit.o.video?.parseUrlToVideoEmbed ??
34723
+ jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.convertMediaUrlToVideoEmbed, html, {
34724
+ width: jodit.o.video?.defaultWidth,
34725
+ height: jodit.o.video?.defaultHeight
34726
+ });
34660
34727
  if (embed !== html) {
34661
34728
  return jodit.createInside.fromHTML(embed);
34662
34729
  }
@@ -40821,14 +40888,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.sym
40821
40888
  editor.e.on(container, 'close_dialog', close);
40822
40889
  return box;
40823
40890
  }
40824
- else {
40825
- editor
40826
- .alert(container, 'Select Special Character', undefined, 'jodit-symbols')
40827
- .bindDestruct(editor);
40828
- const a = container.querySelector('a');
40829
- a && a.focus();
40830
- }
40891
+ editor
40892
+ .alert(container, 'Select Special Character', undefined, 'jodit-symbols')
40893
+ .bindDestruct(editor);
40894
+ const a = container.querySelector('a');
40895
+ a && a.focus();
40831
40896
  }
40897
+ return;
40832
40898
  }
40833
40899
  };
40834
40900
 
@@ -40929,17 +40995,15 @@ __webpack_require__.r(__webpack_exports__);
40929
40995
  class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__/* .Plugin */ .k {
40930
40996
  constructor(jodit) {
40931
40997
  super(jodit);
40932
- /** @override */
40933
40998
  this.buttons = [
40934
40999
  {
40935
41000
  name: 'symbols',
40936
41001
  group: 'insert'
40937
41002
  }
40938
41003
  ];
40939
- this.countInRow = 17;
41004
+ this.__countInRow = 17;
40940
41005
  (0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__/* .extendLang */ .JW)(_langs__WEBPACK_IMPORTED_MODULE_6__);
40941
41006
  }
40942
- /** @override */
40943
41007
  afterInit(jodit) {
40944
41008
  jodit.e.on('generateSpecialCharactersTable.symbols', () => {
40945
41009
  const container = jodit.c.fromHTML(`<div class="jodit-symbols__container">
@@ -40949,10 +41013,15 @@ class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__/* .P
40949
41013
  <div class="jodit-symbols__container_preview">
40950
41014
  <div class="jodit-symbols__preview"></div>
40951
41015
  </div>
40952
- </div>`), preview = container.querySelector('.jodit-symbols__preview'), table = container.querySelector('table'), body = table.tBodies[0], chars = [];
41016
+ </div>`);
41017
+ const preview = container.querySelector('.jodit-symbols__preview');
41018
+ const table = container.querySelector('table');
41019
+ const body = table.tBodies[0];
41020
+ const chars = [];
40953
41021
  for (let i = 0; i < jodit.o.specialCharacters.length;) {
40954
41022
  const tr = jodit.c.element('tr');
40955
- for (let j = 0; j < this.countInRow && i < jodit.o.specialCharacters.length; j += 1, i += 1) {
41023
+ for (let j = 0; j < this.__countInRow &&
41024
+ i < jodit.o.specialCharacters.length; j += 1, i += 1) {
40956
41025
  const td = jodit.c.element('td'), a = jodit.c.fromHTML(`<a
40957
41026
  data-index="${i}"
40958
41027
  data-index-j="${j}"
@@ -40974,7 +41043,9 @@ class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__/* .P
40974
41043
  if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isTag(this, 'a')) {
40975
41044
  jodit.s.focus();
40976
41045
  jodit.s.insertHTML(this.innerHTML);
40977
- jodit.e.fire(this, 'close_dialog');
41046
+ if (!e?.shiftKey) {
41047
+ jodit.e.fire(this, 'close_dialog');
41048
+ }
40978
41049
  e && e.preventDefault();
40979
41050
  e && e.stopImmediatePropagation();
40980
41051
  }
@@ -40994,18 +41065,18 @@ class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_4__/* .P
40994
41065
  case jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN:
40995
41066
  newIndex =
40996
41067
  e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP
40997
- ? index - self.countInRow
40998
- : index + self.countInRow;
41068
+ ? index - self.__countInRow
41069
+ : index + self.__countInRow;
40999
41070
  if (chars[newIndex] === undefined) {
41000
41071
  newIndex =
41001
41072
  e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP
41002
41073
  ? Math.floor(chars.length /
41003
- self.countInRow) *
41004
- self.countInRow +
41074
+ self.__countInRow) *
41075
+ self.__countInRow +
41005
41076
  jIndex
41006
41077
  : jIndex;
41007
41078
  if (newIndex > chars.length - 1) {
41008
- newIndex -= self.countInRow;
41079
+ newIndex -= self.__countInRow;
41009
41080
  }
41010
41081
  }
41011
41082
  chars[newIndex] && chars[newIndex].focus();
@@ -41620,12 +41691,17 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__/* .pluginSystem */ .fg.add('table
41620
41691
 
41621
41692
 
41622
41693
 
41694
+ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.video = {
41695
+ parseUrlToVideoEmbed: jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed,
41696
+ defaultWidth: 400,
41697
+ defaultHeight: 345
41698
+ };
41623
41699
  jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_3__/* .Icon */ .I.set('video', (_video_svg__WEBPACK_IMPORTED_MODULE_6___default()));
41624
41700
  jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.video = {
41625
- popup: (editor, current, close) => {
41626
- const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
41627
- new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
41628
- new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(editor, {
41701
+ popup: (jodit, current, close) => {
41702
+ const formLink = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
41703
+ new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
41704
+ new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS(jodit, {
41629
41705
  name: 'url',
41630
41706
  required: true,
41631
41707
  label: 'URL',
@@ -41633,26 +41709,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
41633
41709
  validators: ['url']
41634
41710
  })
41635
41711
  ]),
41636
- new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
41637
- (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(editor, '', 'Insert', 'primary').onAction(() => formLink.submit())
41712
+ new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
41713
+ (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formLink.submit())
41638
41714
  ])
41639
- ]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(editor, [
41640
- new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
41641
- new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(editor, {
41715
+ ]), formCode = new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV(jodit, [
41716
+ new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
41717
+ new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UITextArea */ .F0(jodit, {
41642
41718
  name: 'code',
41643
41719
  required: true,
41644
41720
  label: 'Embed code'
41645
41721
  })
41646
41722
  ]),
41647
- new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(editor, [
41648
- (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(editor, '', 'Insert', 'primary').onAction(() => formCode.submit())
41723
+ new jodit_core_ui_form__WEBPACK_IMPORTED_MODULE_2__/* .UIBlock */ .Yh(jodit, [
41724
+ (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_1__/* .Button */ .$n)(jodit, '', 'Insert', 'primary').onAction(() => formCode.submit())
41649
41725
  ])
41650
41726
  ]), tabs = [], insertCode = (code) => {
41651
- editor.s.restore();
41652
- editor.s.insertHTML(code);
41727
+ jodit.s.restore();
41728
+ jodit.s.insertHTML(code);
41653
41729
  close();
41654
41730
  };
41655
- editor.s.save();
41731
+ jodit.s.save();
41656
41732
  tabs.push({
41657
41733
  icon: 'link',
41658
41734
  name: 'Link',
@@ -41663,12 +41739,16 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__/* .Config */ .T.prototype.controls.vid
41663
41739
  content: formCode.container
41664
41740
  });
41665
41741
  formLink.onSubmit(data => {
41666
- insertCode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed)(data.url));
41742
+ insertCode((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.call)(jodit.o.video?.parseUrlToVideoEmbed ??
41743
+ jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__.convertMediaUrlToVideoEmbed, data.url, {
41744
+ width: jodit.o.video?.defaultWidth,
41745
+ height: jodit.o.video?.defaultHeight
41746
+ }));
41667
41747
  });
41668
41748
  formCode.onSubmit(data => {
41669
41749
  insertCode(data.code);
41670
41750
  });
41671
- return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(editor, tabs);
41751
+ return (0,jodit_modules_widget__WEBPACK_IMPORTED_MODULE_5__/* .TabsWidget */ .Zg)(jodit, tabs);
41672
41752
  },
41673
41753
  tags: ['iframe'],
41674
41754
  tooltip: 'Insert youtube/vimeo video'
@@ -44451,7 +44531,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__41324__;
44451
44531
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44452
44532
  /* harmony export */ Cg: function() { return /* binding */ __decorate; }
44453
44533
  /* harmony export */ });
44454
- /* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources */
44534
+ /* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension */
44455
44535
  /******************************************************************************
44456
44536
  Copyright (c) Microsoft Corporation.
44457
44537
 
@@ -44717,10 +44797,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
44717
44797
  o["default"] = v;
44718
44798
  };
44719
44799
 
44800
+ var ownKeys = function(o) {
44801
+ ownKeys = Object.getOwnPropertyNames || function (o) {
44802
+ var ar = [];
44803
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
44804
+ return ar;
44805
+ };
44806
+ return ownKeys(o);
44807
+ };
44808
+
44720
44809
  function __importStar(mod) {
44721
44810
  if (mod && mod.__esModule) return mod;
44722
44811
  var result = {};
44723
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44812
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44724
44813
  __setModuleDefault(result, mod);
44725
44814
  return result;
44726
44815
  }
@@ -44801,12 +44890,25 @@ function __disposeResources(env) {
44801
44890
  return next();
44802
44891
  }
44803
44892
 
44893
+ function __rewriteRelativeImportExtension(path, preserveJsx) {
44894
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
44895
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
44896
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
44897
+ });
44898
+ }
44899
+ return path;
44900
+ }
44901
+
44804
44902
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
44805
44903
  __extends,
44806
44904
  __assign,
44807
44905
  __rest,
44808
44906
  __decorate,
44809
44907
  __param,
44908
+ __esDecorate,
44909
+ __runInitializers,
44910
+ __propKey,
44911
+ __setFunctionName,
44810
44912
  __metadata,
44811
44913
  __awaiter,
44812
44914
  __generator,
@@ -44829,6 +44931,7 @@ function __disposeResources(env) {
44829
44931
  __classPrivateFieldIn,
44830
44932
  __addDisposableResource,
44831
44933
  __disposeResources,
44934
+ __rewriteRelativeImportExtension,
44832
44935
  });
44833
44936
 
44834
44937
 
@@ -45114,7 +45217,7 @@ function __disposeResources(env) {
45114
45217
  /******/
45115
45218
  /************************************************************************/
45116
45219
  var __webpack_exports__ = {};
45117
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
45220
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
45118
45221
  !function() {
45119
45222
  "use strict";
45120
45223
  __webpack_require__.r(__webpack_exports__);