jodit-pro 4.5.17 → 4.5.21

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 (299) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +2 -2
  3. package/es2015/jodit.js +2 -2
  4. package/es2015/jodit.min.js +2 -2
  5. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  6. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  7. package/es2015/plugins/backup/backup.css +1 -1
  8. package/es2015/plugins/backup/backup.js +1 -1
  9. package/es2015/plugins/backup/backup.min.js +1 -1
  10. package/es2015/plugins/button-generator/button-generator.css +1 -1
  11. package/es2015/plugins/button-generator/button-generator.js +1 -1
  12. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  13. package/es2015/plugins/change-case/change-case.js +1 -1
  14. package/es2015/plugins/change-case/change-case.min.js +1 -1
  15. package/es2015/plugins/color-picker/color-picker.css +1 -1
  16. package/es2015/plugins/color-picker/color-picker.js +1 -1
  17. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  18. package/es2015/plugins/emoji/emoji.css +1 -1
  19. package/es2015/plugins/emoji/emoji.js +1 -1
  20. package/es2015/plugins/emoji/emoji.min.js +1 -1
  21. package/es2015/plugins/export-docs/export-docs.js +1 -1
  22. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  23. package/es2015/plugins/finder/finder.css +1 -1
  24. package/es2015/plugins/finder/finder.js +1 -1
  25. package/es2015/plugins/finder/finder.min.js +1 -1
  26. package/es2015/plugins/google-maps/google-maps.css +1 -1
  27. package/es2015/plugins/google-maps/google-maps.js +1 -1
  28. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  29. package/es2015/plugins/google-search/google-search.js +1 -1
  30. package/es2015/plugins/google-search/google-search.min.js +1 -1
  31. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  32. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  33. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  34. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  36. package/es2015/plugins/keyboard/keyboard.css +1 -1
  37. package/es2015/plugins/keyboard/keyboard.js +1 -1
  38. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  39. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  40. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  41. package/es2015/plugins/page-break/page-break.js +1 -1
  42. package/es2015/plugins/page-break/page-break.min.js +1 -1
  43. package/es2015/plugins/paste-code/paste-code.css +1 -1
  44. package/es2015/plugins/paste-code/paste-code.js +30 -8
  45. package/es2015/plugins/paste-code/paste-code.min.js +2 -2
  46. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  47. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  48. package/es2015/plugins/show-blocks/show-blocks.js +6 -3
  49. package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
  50. package/es2015/plugins/todo-list/todo-list.css +1 -1
  51. package/es2015/plugins/todo-list/todo-list.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  53. package/es2015/plugins/translate/translate.css +1 -1
  54. package/es2015/plugins/translate/translate.js +1 -1
  55. package/es2015/plugins/translate/translate.min.js +1 -1
  56. package/es2015/plugins/tune-block/tune-block.css +1 -1
  57. package/es2015/plugins/tune-block/tune-block.js +1 -1
  58. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  59. package/es2018/jodit.css +1 -1
  60. package/es2018/jodit.fat.min.js +2 -2
  61. package/es2018/jodit.js +2 -2
  62. package/es2018/jodit.min.js +2 -2
  63. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  64. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  65. package/es2018/plugins/backup/backup.css +1 -1
  66. package/es2018/plugins/backup/backup.js +1 -1
  67. package/es2018/plugins/backup/backup.min.js +1 -1
  68. package/es2018/plugins/button-generator/button-generator.css +1 -1
  69. package/es2018/plugins/button-generator/button-generator.js +1 -1
  70. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  71. package/es2018/plugins/change-case/change-case.js +1 -1
  72. package/es2018/plugins/change-case/change-case.min.js +1 -1
  73. package/es2018/plugins/color-picker/color-picker.css +1 -1
  74. package/es2018/plugins/color-picker/color-picker.js +1 -1
  75. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  76. package/es2018/plugins/emoji/emoji.css +1 -1
  77. package/es2018/plugins/emoji/emoji.js +1 -1
  78. package/es2018/plugins/emoji/emoji.min.js +1 -1
  79. package/es2018/plugins/export-docs/export-docs.js +1 -1
  80. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  81. package/es2018/plugins/finder/finder.css +1 -1
  82. package/es2018/plugins/finder/finder.js +1 -1
  83. package/es2018/plugins/finder/finder.min.js +1 -1
  84. package/es2018/plugins/google-maps/google-maps.css +1 -1
  85. package/es2018/plugins/google-maps/google-maps.js +1 -1
  86. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  87. package/es2018/plugins/google-search/google-search.js +1 -1
  88. package/es2018/plugins/google-search/google-search.min.js +1 -1
  89. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  90. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  91. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  92. package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
  93. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  94. package/es2018/plugins/keyboard/keyboard.css +1 -1
  95. package/es2018/plugins/keyboard/keyboard.js +1 -1
  96. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  97. package/es2018/plugins/mobile-view/mobile-view.js +1 -1
  98. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  99. package/es2018/plugins/page-break/page-break.js +1 -1
  100. package/es2018/plugins/page-break/page-break.min.js +1 -1
  101. package/es2018/plugins/paste-code/paste-code.css +1 -1
  102. package/es2018/plugins/paste-code/paste-code.js +30 -8
  103. package/es2018/plugins/paste-code/paste-code.min.js +2 -2
  104. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  105. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  106. package/es2018/plugins/show-blocks/show-blocks.js +6 -3
  107. package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
  108. package/es2018/plugins/todo-list/todo-list.css +1 -1
  109. package/es2018/plugins/todo-list/todo-list.js +1 -1
  110. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  111. package/es2018/plugins/translate/translate.css +1 -1
  112. package/es2018/plugins/translate/translate.js +1 -1
  113. package/es2018/plugins/translate/translate.min.js +1 -1
  114. package/es2018/plugins/tune-block/tune-block.css +1 -1
  115. package/es2018/plugins/tune-block/tune-block.js +1 -1
  116. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  117. package/es2021/jodit.css +1 -1
  118. package/es2021/jodit.fat.min.js +2 -2
  119. package/es2021/jodit.js +2 -2
  120. package/es2021/jodit.min.js +2 -2
  121. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  122. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  123. package/es2021/plugins/backup/backup.css +1 -1
  124. package/es2021/plugins/backup/backup.js +1 -1
  125. package/es2021/plugins/backup/backup.min.js +1 -1
  126. package/es2021/plugins/button-generator/button-generator.css +1 -1
  127. package/es2021/plugins/button-generator/button-generator.js +1 -1
  128. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  129. package/es2021/plugins/change-case/change-case.js +1 -1
  130. package/es2021/plugins/change-case/change-case.min.js +1 -1
  131. package/es2021/plugins/color-picker/color-picker.css +1 -1
  132. package/es2021/plugins/color-picker/color-picker.js +1 -1
  133. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  134. package/es2021/plugins/emoji/emoji.css +1 -1
  135. package/es2021/plugins/emoji/emoji.js +1 -1
  136. package/es2021/plugins/emoji/emoji.min.js +1 -1
  137. package/es2021/plugins/export-docs/export-docs.js +1 -1
  138. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  139. package/es2021/plugins/finder/finder.css +1 -1
  140. package/es2021/plugins/finder/finder.js +1 -1
  141. package/es2021/plugins/finder/finder.min.js +1 -1
  142. package/es2021/plugins/google-maps/google-maps.css +1 -1
  143. package/es2021/plugins/google-maps/google-maps.js +1 -1
  144. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  145. package/es2021/plugins/google-search/google-search.js +1 -1
  146. package/es2021/plugins/google-search/google-search.min.js +1 -1
  147. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  148. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  149. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  150. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  151. package/es2021/plugins/iframe-editor/iframe-editor.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/mobile-view/mobile-view.js +1 -1
  156. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  157. package/es2021/plugins/page-break/page-break.js +1 -1
  158. package/es2021/plugins/page-break/page-break.min.js +1 -1
  159. package/es2021/plugins/paste-code/paste-code.css +1 -1
  160. package/es2021/plugins/paste-code/paste-code.js +30 -8
  161. package/es2021/plugins/paste-code/paste-code.min.js +2 -2
  162. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  163. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  164. package/es2021/plugins/show-blocks/show-blocks.js +6 -3
  165. package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
  166. package/es2021/plugins/todo-list/todo-list.css +1 -1
  167. package/es2021/plugins/todo-list/todo-list.js +1 -1
  168. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  169. package/es2021/plugins/translate/translate.css +1 -1
  170. package/es2021/plugins/translate/translate.js +1 -1
  171. package/es2021/plugins/translate/translate.min.js +1 -1
  172. package/es2021/plugins/tune-block/tune-block.css +1 -1
  173. package/es2021/plugins/tune-block/tune-block.js +1 -1
  174. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  175. package/es2021.en/jodit.css +1 -1
  176. package/es2021.en/jodit.fat.min.js +2 -2
  177. package/es2021.en/jodit.js +2 -2
  178. package/es2021.en/jodit.min.js +2 -2
  179. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  180. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  181. package/es2021.en/plugins/backup/backup.css +1 -1
  182. package/es2021.en/plugins/backup/backup.js +1 -1
  183. package/es2021.en/plugins/backup/backup.min.js +1 -1
  184. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  185. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  186. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  187. package/es2021.en/plugins/change-case/change-case.js +1 -1
  188. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  189. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  190. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  191. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  192. package/es2021.en/plugins/emoji/emoji.css +1 -1
  193. package/es2021.en/plugins/emoji/emoji.js +1 -1
  194. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  195. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  196. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  197. package/es2021.en/plugins/finder/finder.css +1 -1
  198. package/es2021.en/plugins/finder/finder.js +1 -1
  199. package/es2021.en/plugins/finder/finder.min.js +1 -1
  200. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  201. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  202. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  203. package/es2021.en/plugins/google-search/google-search.js +1 -1
  204. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  205. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  206. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  207. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  208. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  209. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  210. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  211. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  212. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  213. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  214. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  215. package/es2021.en/plugins/page-break/page-break.js +1 -1
  216. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  217. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  218. package/es2021.en/plugins/paste-code/paste-code.js +30 -8
  219. package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
  220. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  221. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  222. package/es2021.en/plugins/show-blocks/show-blocks.js +6 -3
  223. package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
  224. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  225. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  226. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  227. package/es2021.en/plugins/translate/translate.css +1 -1
  228. package/es2021.en/plugins/translate/translate.js +1 -1
  229. package/es2021.en/plugins/translate/translate.min.js +1 -1
  230. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  231. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  232. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  233. package/es5/jodit.css +2 -2
  234. package/es5/jodit.fat.min.js +2 -2
  235. package/es5/jodit.js +2 -2
  236. package/es5/jodit.min.css +2 -2
  237. package/es5/jodit.min.js +2 -2
  238. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  239. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  240. package/es5/plugins/backup/backup.css +1 -1
  241. package/es5/plugins/backup/backup.js +1 -1
  242. package/es5/plugins/backup/backup.min.js +1 -1
  243. package/es5/plugins/button-generator/button-generator.css +1 -1
  244. package/es5/plugins/button-generator/button-generator.js +1 -1
  245. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  246. package/es5/plugins/change-case/change-case.js +1 -1
  247. package/es5/plugins/change-case/change-case.min.js +1 -1
  248. package/es5/plugins/color-picker/color-picker.css +1 -1
  249. package/es5/plugins/color-picker/color-picker.js +1 -1
  250. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  251. package/es5/plugins/emoji/emoji.css +1 -1
  252. package/es5/plugins/emoji/emoji.js +1 -1
  253. package/es5/plugins/emoji/emoji.min.js +1 -1
  254. package/es5/plugins/export-docs/export-docs.js +1 -1
  255. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  256. package/es5/plugins/finder/finder.css +1 -1
  257. package/es5/plugins/finder/finder.js +1 -1
  258. package/es5/plugins/finder/finder.min.js +1 -1
  259. package/es5/plugins/google-maps/google-maps.css +1 -1
  260. package/es5/plugins/google-maps/google-maps.js +1 -1
  261. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  262. package/es5/plugins/google-search/google-search.js +1 -1
  263. package/es5/plugins/google-search/google-search.min.js +1 -1
  264. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  265. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  266. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  267. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  268. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  269. package/es5/plugins/keyboard/keyboard.css +1 -1
  270. package/es5/plugins/keyboard/keyboard.js +1 -1
  271. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  272. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  273. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  274. package/es5/plugins/page-break/page-break.js +1 -1
  275. package/es5/plugins/page-break/page-break.min.js +1 -1
  276. package/es5/plugins/paste-code/paste-code.css +1 -1
  277. package/es5/plugins/paste-code/paste-code.js +36 -11
  278. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  279. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  280. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  281. package/es5/plugins/show-blocks/show-blocks.js +6 -3
  282. package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
  283. package/es5/plugins/todo-list/todo-list.css +1 -1
  284. package/es5/plugins/todo-list/todo-list.js +1 -1
  285. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  286. package/es5/plugins/translate/translate.css +1 -1
  287. package/es5/plugins/translate/translate.js +1 -1
  288. package/es5/plugins/translate/translate.min.js +1 -1
  289. package/es5/plugins/tune-block/tune-block.css +1 -1
  290. package/es5/plugins/tune-block/tune-block.js +1 -1
  291. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  292. package/esm/config.d.ts +3 -0
  293. package/esm/plugins/paste-code/config.d.ts +3 -1
  294. package/esm/plugins/paste-code/config.js +1 -1
  295. package/esm/plugins/paste-code/paste-code.js +1 -1
  296. package/esm/plugins/show-blocks/show-blocks.js +1 -1
  297. package/package.json +1 -1
  298. package/types/config.d.ts +3 -0
  299. package/types/plugins/paste-code/config.d.ts +3 -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -53,6 +53,12 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteCod
53
53
  return lang;
54
54
  },
55
55
  highlightLib: {
56
+ beforeLibLoad: function () {
57
+ // @ts-ignore
58
+ window.Prism = window.Prism || {};
59
+ // @ts-ignore
60
+ window.Prism.manual = true;
61
+ },
56
62
  highlight: function (code, language) {
57
63
  return typeof Prism !== 'undefined'
58
64
  ? Prism.highlight(code, Prism.languages[language] || Prism.languages.plain, language)
@@ -67,7 +73,8 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteCod
67
73
  : false;
68
74
  },
69
75
  js: [
70
- 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js'
76
+ 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js',
77
+ 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js'
71
78
  ],
72
79
  langUrl: function (lang) {
73
80
  return "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(lang, ".min.js");
@@ -81,10 +88,14 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteCod
81
88
  return "<pre class=\"language-".concat(language, "\">").concat((0,jodit_esm_core_helpers_html_htmlspecialchars__WEBPACK_IMPORTED_MODULE_2__/* .htmlspecialchars */ .G)(value), "</pre>");
82
89
  },
83
90
  languages: [
84
- { value: 'html', text: 'HTML/XML' },
85
91
  { value: 'plaintext', text: 'Plain' },
92
+ { value: 'html', text: 'HTML/XML' },
86
93
  { value: 'bash', text: 'Bash' },
94
+ { value: 'php', text: 'PHP' },
87
95
  { value: 'javascript', text: 'JavaScript' },
96
+ { value: 'typescript', text: 'TypeScript' },
97
+ { value: 'jsx', text: 'JSX' },
98
+ { value: 'java', text: 'Java' },
88
99
  { value: 'css', text: 'CSS' },
89
100
  { value: 'php', text: 'PHP' },
90
101
  { value: 'ruby', text: 'Ruby' },
@@ -92,7 +103,16 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.pasteCod
92
103
  { value: 'java', text: 'Java' },
93
104
  { value: 'c', text: 'C' },
94
105
  { value: 'csharp', text: 'C#' },
95
- { value: 'cpp', text: 'C++' }
106
+ { value: 'cpp', text: 'C++' },
107
+ { value: 'sql', text: 'SQL' },
108
+ { value: 'docker', text: 'Docker' },
109
+ { value: 'http', text: 'HTTP' },
110
+ { value: 'ini', text: 'INI' },
111
+ { value: 'yaml', text: 'YAML' },
112
+ { value: 'json', text: 'JSON' },
113
+ { value: 'json5', text: 'JSON5' },
114
+ { value: 'makefile', text: 'Makefile' },
115
+ { value: 'swift', text: 'Swift' }
96
116
  ],
97
117
  dialog: {
98
118
  width: 700,
@@ -153,16 +173,21 @@ var pasteCode = /** @class */ (function (_super) {
153
173
  _this.__highlightLibJSIsLoaded = false;
154
174
  _this.__loadLanguage = new Map();
155
175
  _this.__initHighlightLibLoading = function (language) { return (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__awaiter */ .sH)(_this, void 0, Promise, function () {
156
- var _a, globalHighlightLib, _b, css, js, langUrl, highlight, isLangLoaded;
176
+ var _a, globalHighlightLib, _b, css, js, langUrl, highlight, isLangLoaded, beforeLibLoad, afterLibLoad;
177
+ var _this = this;
157
178
  return (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__generator */ .YH)(this, function (_c) {
158
179
  switch (_c.label) {
159
180
  case 0:
160
- _a = this.j.o.pasteCode, globalHighlightLib = _a.globalHighlightLib, _b = _a.highlightLib, css = _b.css, js = _b.js, langUrl = _b.langUrl, highlight = _b.highlight, isLangLoaded = _b.isLangLoaded;
181
+ _a = this.j.o.pasteCode, globalHighlightLib = _a.globalHighlightLib, _b = _a.highlightLib, css = _b.css, js = _b.js, langUrl = _b.langUrl, highlight = _b.highlight, isLangLoaded = _b.isLangLoaded, beforeLibLoad = _b.beforeLibLoad, afterLibLoad = _b.afterLibLoad;
161
182
  if (!this.__highlightLibJSIsLoaded && !globalHighlightLib) {
162
- this.__highlightLibJSIsLoaded = waitingPromise(this.async, Promise.allSettled([
163
- (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNextStyle)(this.jodit, css).catch(function () { return null; }),
164
- (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNext)(this.jodit, js).catch(function () { return null; })
165
- ]));
183
+ this.__highlightLibJSIsLoaded = Promise.resolve(beforeLibLoad === null || beforeLibLoad === void 0 ? void 0 : beforeLibLoad())
184
+ .then(function () {
185
+ return waitingPromise(_this.async, Promise.allSettled([
186
+ (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNextStyle)(_this.jodit, css).catch(function () { return null; }),
187
+ (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.loadNext)(_this.jodit, js).catch(function () { return null; })
188
+ ]));
189
+ })
190
+ .then(function () { return afterLibLoad === null || afterLibLoad === void 0 ? void 0 : afterLibLoad(); });
166
191
  }
167
192
  if (!!(0,jodit_esm_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_10__/* .isBoolean */ .L)(this.__highlightLibJSIsLoaded)) return [3 /*break*/, 2];
168
193
  return [4 /*yield*/, this.__highlightLibJSIsLoaded];
@@ -282,7 +307,7 @@ var pasteCode = /** @class */ (function (_super) {
282
307
  (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.$$)('pre', this.j.editor).forEach(function (pre) {
283
308
  if (!(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(pre, 'contenteditable')) {
284
309
  (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(pre, 'contenteditable', false);
285
- _this.__highlightCode(pre);
310
+ _this.__highlightCode(pre).catch(function () { return null; });
286
311
  }
287
312
  });
288
313
  };
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valeriy <chupurnov@gmail.com>
4
- * Version: v4.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
8
 
9
9
 
10
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{54402:function(e,t,n){"use strict";var i=n(75689),a=n.n(i),o=n(6441),r=n(53326);o.T.prototype.controls.pasteCode={icon:a(),tooltip:"Paste code",command:"pasteCode"},o.T.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{highlight:function(e,t){return"undefined"!=typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,r.G)(e)},isLangLoaded:function(e){return"html"===e||"undefined"!=typeof Prism&&Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,n){return'<pre class="language-'.concat(t,'">').concat((0,r.G)(n),"</pre>")},languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}}},66603:function(e,t,n){"use strict";n.r(t),n.d(t,{pasteCode:function(){return d}});var i=n(31635),a=(n(54402),n(82758),n(65478)),o=n(21537),r=n(87612),s=n(53326),l=n(50911),c=n(67510),u=n(41409),h=n(34013),d=function(e){function t(){var t=e.apply(this,(0,i.fX)([],(0,i.zs)(arguments),!1))||this;return t.buttons=[{name:"pasteCode",group:"clipboard"}],t.__highlightLibJSIsLoaded=!1,t.__loadLanguage=new Map,t.__initHighlightLibLoading=function(e){return(0,i.sH)(t,void 0,Promise,(function(){var t,n,a,s,l,c,u,h;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return n=(t=this.j.o.pasteCode).globalHighlightLib,s=(a=t.highlightLib).css,l=a.js,c=a.langUrl,u=a.highlight,h=a.isLangLoaded,this.__highlightLibJSIsLoaded||n||(this.__highlightLibJSIsLoaded=p(this.async,Promise.allSettled([(0,o.loadNextStyle)(this.jodit,s).catch((function(){return null})),(0,o.loadNext)(this.jodit,l).catch((function(){return null}))]))),(0,r.L)(this.__highlightLibJSIsLoaded)?[3,2]:[4,this.__highlightLibJSIsLoaded];case 1:i.sent(),i.label=2;case 2:return!e||h(e)||n?[3,4]:(this.__loadLanguage.has(e)||this.__loadLanguage.set(e,p(this.async,(0,o.appendScriptAsync)(this.jodit,c(e)).catch((function(){return null})))),[4,this.__loadLanguage.get(e)]);case 3:i.sent(),i.label=4;case 4:return[2,{highlight:u}]}}))}))},t}return(0,i.C6)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("pasteCode",(function(){return t.__openCodeEditDialog()})),e.async.requestIdleCallback((function(){return t.__initHighlightLibLoading()}))},t.prototype.__openCodeEditDialog=function(e,t,n){var i=this,a=this.j,r=this.__createForm(),s=(0,o.refs)(r.container),l=s.code,c=s.language;e&&(c.value=e),t&&(l.value=t),a.async.requestIdleCallback((function(){l.focus()})),a.s.save(),this.__createDialog((function(){if(!r.validate())return!1;a.s.restore();var e=a.createInside.fromHTML(a.o.pasteCode.insertTemplate(a,c.value,l.value));if(n)u.Dom.replace(n,e,a.createInside,!1,!0);else{var t=a.s.current(),o=u.Dom.up(t,u.Dom.isBlock,a.editor);o&&!u.Dom.isCell(o)?u.Dom.after(o,e):a.s.insertNode(e)}i.__imdOnChange()}),(function(){a.s.restore()})).setContent(r.container).open(!0)},t.prototype.beforeDestruct=function(e){},t.prototype.__createForm=function(){var e=this.jodit;return new c.XV(e,[new c.$6(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new c.F0(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})},t.prototype.__createDialog=function(e,t){var n=new u.Dialog({language:this.j.o.language});return n.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,c.$n)(n,"","Cancel","default").onAction((function(){n.close(),t()})),(0,c.$n)(n,"save","Save","primary").onAction((function(){n.close(),e()}))]),n},t.prototype.__onChange=function(){this.__imdOnChange()},t.prototype.__imdOnChange=function(){var e=this;(0,o.$$)("pre",this.j.editor).forEach((function(t){(0,o.attr)(t,"contenteditable")||((0,o.attr)(t,"contenteditable",!1),e.__highlightCode(t))}))},t.prototype.__highlightCode=function(e){return(0,i.sH)(this,void 0,Promise,(function(){var t,n,a;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return t=this.__parseLanguage(e),[4,this.__initHighlightLibLoading(t)];case 1:return n=i.sent().highlight,a=e,e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&(a=e.firstElementChild),a.innerHTML=n(a.innerText,t),[2]}}))}))},t.prototype.onPreEdit=function(e){var t=u.Dom.isNode(e)&&u.Dom.isTag(e,"pre")?e:u.Dom.closest(e.target,"pre",this.j.editor);if(t){var n=this.__parseLanguage(t);this.__openCodeEditDialog(n,t.innerText,t)}},t.prototype.__parseLanguage=function(e){var t=null,n=function(e){return e.classList.forEach((function(e){if(/language-/.test(e)){var n=/language-(.*)/.exec(e);n&&n[1]&&(t=n[1])}}))};return n(e),null==t&&e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&n(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")},t.prototype.onAfterGetValueFromEditor=function(e){var t=this,n=function(e,n,i,a,r,l){return"".concat(n.trim()).concat(a).concat((0,s.G)((0,o.stripTags)(r,t.j.ed,new Set(["br"])))).concat(l)};e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,n).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,n)},t.requires=["license"],(0,i.Cg)([a.autobind],t.prototype,"__openCodeEditDialog",null),(0,i.Cg)([(0,a.watch)(["?:change","?:afterInit"]),(0,a.debounce)()],t.prototype,"__onChange",null),(0,i.Cg)([(0,a.watch)(["?:dblclick","?:editPreInPasteCode"])],t.prototype,"onPreEdit",null),(0,i.Cg)([(0,a.watch)("?:afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),(0,i.Cg)([a.component],t)}(l.k);function p(e,t){return e.promise((function(e,n){t.then(e).catch(n)})).catch((function(){return null}))}h.A.plugins.add("paste-code",d)},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'}},function(e){return e(e.s=66603)}])}));
10
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{54402:function(e,t,n){"use strict";var i=n(75689),a=n.n(i),o=n(6441),r=n(53326);o.T.prototype.controls.pasteCode={icon:a(),tooltip:"Paste code",command:"pasteCode"},o.T.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad:function(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:function(e,t){return"undefined"!=typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,r.G)(e)},isLangLoaded:function(e){return"html"===e||"undefined"!=typeof Prism&&Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,n){return'<pre class="language-'.concat(t,'">').concat((0,r.G)(n),"</pre>")},languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}},66603:function(e,t,n){"use strict";n.r(t),n.d(t,{pasteCode:function(){return d}});var i=n(31635),a=(n(54402),n(82758),n(65478)),o=n(21537),r=n(87612),s=n(53326),l=n(50911),c=n(67510),u=n(41409),h=n(34013),d=function(e){function t(){var t=e.apply(this,(0,i.fX)([],(0,i.zs)(arguments),!1))||this;return t.buttons=[{name:"pasteCode",group:"clipboard"}],t.__highlightLibJSIsLoaded=!1,t.__loadLanguage=new Map,t.__initHighlightLibLoading=function(e){return(0,i.sH)(t,void 0,Promise,(function(){var t,n,a,s,l,c,u,h,d,g,f=this;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return n=(t=this.j.o.pasteCode).globalHighlightLib,s=(a=t.highlightLib).css,l=a.js,c=a.langUrl,u=a.highlight,h=a.isLangLoaded,d=a.beforeLibLoad,g=a.afterLibLoad,this.__highlightLibJSIsLoaded||n||(this.__highlightLibJSIsLoaded=Promise.resolve(null==d?void 0:d()).then((function(){return p(f.async,Promise.allSettled([(0,o.loadNextStyle)(f.jodit,s).catch((function(){return null})),(0,o.loadNext)(f.jodit,l).catch((function(){return null}))]))})).then((function(){return null==g?void 0:g()}))),(0,r.L)(this.__highlightLibJSIsLoaded)?[3,2]:[4,this.__highlightLibJSIsLoaded];case 1:i.sent(),i.label=2;case 2:return!e||h(e)||n?[3,4]:(this.__loadLanguage.has(e)||this.__loadLanguage.set(e,p(this.async,(0,o.appendScriptAsync)(this.jodit,c(e)).catch((function(){return null})))),[4,this.__loadLanguage.get(e)]);case 3:i.sent(),i.label=4;case 4:return[2,{highlight:u}]}}))}))},t}return(0,i.C6)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("pasteCode",(function(){return t.__openCodeEditDialog()})),e.async.requestIdleCallback((function(){return t.__initHighlightLibLoading()}))},t.prototype.__openCodeEditDialog=function(e,t,n){var i=this,a=this.j,r=this.__createForm(),s=(0,o.refs)(r.container),l=s.code,c=s.language;e&&(c.value=e),t&&(l.value=t),a.async.requestIdleCallback((function(){l.focus()})),a.s.save(),this.__createDialog((function(){if(!r.validate())return!1;a.s.restore();var e=a.createInside.fromHTML(a.o.pasteCode.insertTemplate(a,c.value,l.value));if(n)u.Dom.replace(n,e,a.createInside,!1,!0);else{var t=a.s.current(),o=u.Dom.up(t,u.Dom.isBlock,a.editor);o&&!u.Dom.isCell(o)?u.Dom.after(o,e):a.s.insertNode(e)}i.__imdOnChange()}),(function(){a.s.restore()})).setContent(r.container).open(!0)},t.prototype.beforeDestruct=function(e){},t.prototype.__createForm=function(){var e=this.jodit;return new c.XV(e,[new c.$6(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new c.F0(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})},t.prototype.__createDialog=function(e,t){var n=new u.Dialog({language:this.j.o.language});return n.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,c.$n)(n,"","Cancel","default").onAction((function(){n.close(),t()})),(0,c.$n)(n,"save","Save","primary").onAction((function(){n.close(),e()}))]),n},t.prototype.__onChange=function(){this.__imdOnChange()},t.prototype.__imdOnChange=function(){var e=this;(0,o.$$)("pre",this.j.editor).forEach((function(t){(0,o.attr)(t,"contenteditable")||((0,o.attr)(t,"contenteditable",!1),e.__highlightCode(t).catch((function(){return null})))}))},t.prototype.__highlightCode=function(e){return(0,i.sH)(this,void 0,Promise,(function(){var t,n,a;return(0,i.YH)(this,(function(i){switch(i.label){case 0:return t=this.__parseLanguage(e),[4,this.__initHighlightLibLoading(t)];case 1:return n=i.sent().highlight,a=e,e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&(a=e.firstElementChild),a.innerHTML=n(a.innerText,t),[2]}}))}))},t.prototype.onPreEdit=function(e){var t=u.Dom.isNode(e)&&u.Dom.isTag(e,"pre")?e:u.Dom.closest(e.target,"pre",this.j.editor);if(t){var n=this.__parseLanguage(t);this.__openCodeEditDialog(n,t.innerText,t)}},t.prototype.__parseLanguage=function(e){var t=null,n=function(e){return e.classList.forEach((function(e){if(/language-/.test(e)){var n=/language-(.*)/.exec(e);n&&n[1]&&(t=n[1])}}))};return n(e),null==t&&e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&n(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")},t.prototype.onAfterGetValueFromEditor=function(e){var t=this,n=function(e,n,i,a,r,l){return"".concat(n.trim()).concat(a).concat((0,s.G)((0,o.stripTags)(r,t.j.ed,new Set(["br"])))).concat(l)};e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,n).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,n)},t.requires=["license"],(0,i.Cg)([a.autobind],t.prototype,"__openCodeEditDialog",null),(0,i.Cg)([(0,a.watch)(["?:change","?:afterInit"]),(0,a.debounce)()],t.prototype,"__onChange",null),(0,i.Cg)([(0,a.watch)(["?:dblclick","?:editPreInPasteCode"])],t.prototype,"onPreEdit",null),(0,i.Cg)([(0,a.watch)("?:afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),(0,i.Cg)([a.component],t)}(l.k);function p(e,t){return e.promise((function(e,n){t.then(e).catch(n)})).catch((function(){return null}))}h.A.plugins.add("paste-code",d)},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'}},function(e){return e(e.s=66603)}])}));
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.5.17
4
+ * Version: v4.5.21
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -542,7 +542,10 @@ var showBlocks = /** @class */ (function (_super) {
542
542
  */
543
543
  showBlocks.prototype.disable = function () {
544
544
  this.isEnabled = false;
545
- this.style.innerHTML = '';
545
+ var style = (0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cached)(this, 'style');
546
+ if (style) {
547
+ style.innerHTML = '';
548
+ }
546
549
  };
547
550
  /**
548
551
  * Toggle showing block
@@ -566,7 +569,7 @@ var showBlocks = /** @class */ (function (_super) {
566
569
  /** @override */
567
570
  showBlocks.prototype.beforeDestruct = function (jodit) {
568
571
  this.disable();
569
- jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .J.safeRemove(this.style);
572
+ jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom */ .J.safeRemove((0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.cached)(this, 'style'));
570
573
  };
571
574
  /** @override */
572
575
  showBlocks.requires = ['license'];