jodit-pro 2.0.0-beta.28 → 2.0.0-beta.32

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 (346) hide show
  1. package/es2015/jodit.css +320 -41
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +499 -333
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  9. package/es2015/plugins/backup/backup.css +1 -1
  10. package/es2015/plugins/backup/backup.js +3 -1
  11. package/es2015/plugins/backup/backup.min.js +1 -1
  12. package/es2015/plugins/button-generator/button-generator.css +1 -1
  13. package/es2015/plugins/button-generator/button-generator.js +6 -1
  14. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  15. package/es2015/plugins/change-case/change-case.js +1 -1
  16. package/es2015/plugins/change-case/change-case.min.js +1 -1
  17. package/es2015/plugins/color-picker/color-picker.css +1 -1
  18. package/es2015/plugins/color-picker/color-picker.js +2 -1
  19. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  20. package/es2015/plugins/emoji/emoji.css +1 -1
  21. package/es2015/plugins/emoji/emoji.js +4 -3
  22. package/es2015/plugins/emoji/emoji.min.js +2 -2
  23. package/es2015/plugins/export-docs/export-docs.js +1 -1
  24. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  25. package/es2015/plugins/finder/finder.css +1 -1
  26. package/es2015/plugins/finder/finder.js +21 -2
  27. package/es2015/plugins/finder/finder.min.js +2 -2
  28. package/es2015/plugins/google-maps/google-maps.css +1 -1
  29. package/es2015/plugins/google-maps/google-maps.js +9 -1
  30. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  31. package/es2015/plugins/google-search/google-search.js +1 -1
  32. package/es2015/plugins/google-search/google-search.min.js +1 -1
  33. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  34. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  35. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  36. package/es2015/plugins/iframe-editor/iframe-editor.js +2 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  38. package/es2015/plugins/keyboard/keyboard.css +1 -1
  39. package/es2015/plugins/keyboard/keyboard.js +2 -1
  40. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  41. package/es2015/plugins/mobile-view/mobile-view.js +13 -16
  42. package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
  43. package/es2015/plugins/page-break/page-break.js +1 -1
  44. package/es2015/plugins/page-break/page-break.min.js +1 -1
  45. package/es2015/plugins/paste-code/paste-code.css +1 -1
  46. package/es2015/plugins/paste-code/paste-code.js +2 -1
  47. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  48. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  49. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  50. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  51. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  52. package/es2015/plugins/todo-list/todo-list.css +1 -1
  53. package/es2015/plugins/todo-list/todo-list.js +1 -1
  54. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  55. package/es2015/plugins/translate/translate.css +1 -1
  56. package/es2015/plugins/translate/translate.js +3 -1
  57. package/es2015/plugins/translate/translate.min.js +1 -1
  58. package/es2015/plugins/tune-block/tune-block.css +1 -1
  59. package/es2015/plugins/tune-block/tune-block.js +5 -4
  60. package/es2015/plugins/tune-block/tune-block.min.js +2 -2
  61. package/es2018/jodit.css +320 -41
  62. package/es2018/jodit.fat.min.css +1 -1
  63. package/es2018/jodit.fat.min.js +2 -2
  64. package/es2018/jodit.js +500 -332
  65. package/es2018/jodit.min.css +1 -1
  66. package/es2018/jodit.min.js +2 -2
  67. package/es2018/plugins/autocomplete/autocomplete.js +1 -1
  68. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  69. package/es2018/plugins/backup/backup.css +1 -1
  70. package/es2018/plugins/backup/backup.js +3 -1
  71. package/es2018/plugins/backup/backup.min.js +1 -1
  72. package/es2018/plugins/button-generator/button-generator.css +1 -1
  73. package/es2018/plugins/button-generator/button-generator.js +6 -1
  74. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  75. package/es2018/plugins/change-case/change-case.js +1 -1
  76. package/es2018/plugins/change-case/change-case.min.js +1 -1
  77. package/es2018/plugins/color-picker/color-picker.css +1 -1
  78. package/es2018/plugins/color-picker/color-picker.js +2 -1
  79. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  80. package/es2018/plugins/emoji/emoji.css +1 -1
  81. package/es2018/plugins/emoji/emoji.js +4 -3
  82. package/es2018/plugins/emoji/emoji.min.js +2 -2
  83. package/es2018/plugins/export-docs/export-docs.js +1 -1
  84. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  85. package/es2018/plugins/finder/finder.css +1 -1
  86. package/es2018/plugins/finder/finder.js +21 -2
  87. package/es2018/plugins/finder/finder.min.js +2 -2
  88. package/es2018/plugins/google-maps/google-maps.css +1 -1
  89. package/es2018/plugins/google-maps/google-maps.js +9 -1
  90. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  91. package/es2018/plugins/google-search/google-search.js +1 -1
  92. package/es2018/plugins/google-search/google-search.min.js +1 -1
  93. package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
  94. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  95. package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
  96. package/es2018/plugins/iframe-editor/iframe-editor.js +2 -1
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  98. package/es2018/plugins/keyboard/keyboard.css +1 -1
  99. package/es2018/plugins/keyboard/keyboard.js +2 -1
  100. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  101. package/es2018/plugins/mobile-view/mobile-view.js +13 -16
  102. package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
  103. package/es2018/plugins/page-break/page-break.js +1 -1
  104. package/es2018/plugins/page-break/page-break.min.js +1 -1
  105. package/es2018/plugins/paste-code/paste-code.css +1 -1
  106. package/es2018/plugins/paste-code/paste-code.js +2 -1
  107. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  108. package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
  109. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  110. package/es2018/plugins/show-blocks/show-blocks.js +1 -1
  111. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  112. package/es2018/plugins/todo-list/todo-list.css +1 -1
  113. package/es2018/plugins/todo-list/todo-list.js +1 -1
  114. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  115. package/es2018/plugins/translate/translate.css +1 -1
  116. package/es2018/plugins/translate/translate.js +3 -1
  117. package/es2018/plugins/translate/translate.min.js +1 -1
  118. package/es2018/plugins/tune-block/tune-block.css +1 -1
  119. package/es2018/plugins/tune-block/tune-block.js +5 -4
  120. package/es2018/plugins/tune-block/tune-block.min.js +2 -2
  121. package/es2021/jodit.css +320 -41
  122. package/es2021/jodit.fat.min.css +1 -1
  123. package/es2021/jodit.fat.min.js +2 -2
  124. package/es2021/jodit.js +490 -330
  125. package/es2021/jodit.min.css +1 -1
  126. package/es2021/jodit.min.js +2 -2
  127. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  128. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  129. package/es2021/plugins/backup/backup.css +1 -1
  130. package/es2021/plugins/backup/backup.js +3 -1
  131. package/es2021/plugins/backup/backup.min.js +1 -1
  132. package/es2021/plugins/button-generator/button-generator.css +1 -1
  133. package/es2021/plugins/button-generator/button-generator.js +6 -1
  134. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  135. package/es2021/plugins/change-case/change-case.js +1 -1
  136. package/es2021/plugins/change-case/change-case.min.js +1 -1
  137. package/es2021/plugins/color-picker/color-picker.css +1 -1
  138. package/es2021/plugins/color-picker/color-picker.js +2 -1
  139. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  140. package/es2021/plugins/emoji/emoji.css +1 -1
  141. package/es2021/plugins/emoji/emoji.js +4 -3
  142. package/es2021/plugins/emoji/emoji.min.js +2 -2
  143. package/es2021/plugins/export-docs/export-docs.js +1 -1
  144. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  145. package/es2021/plugins/finder/finder.css +1 -1
  146. package/es2021/plugins/finder/finder.js +21 -2
  147. package/es2021/plugins/finder/finder.min.js +2 -2
  148. package/es2021/plugins/google-maps/google-maps.css +1 -1
  149. package/es2021/plugins/google-maps/google-maps.js +9 -1
  150. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  151. package/es2021/plugins/google-search/google-search.js +1 -1
  152. package/es2021/plugins/google-search/google-search.min.js +1 -1
  153. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  154. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  155. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  156. package/es2021/plugins/iframe-editor/iframe-editor.js +2 -1
  157. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +2 -1
  160. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  161. package/es2021/plugins/mobile-view/mobile-view.js +13 -15
  162. package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
  163. package/es2021/plugins/page-break/page-break.js +1 -1
  164. package/es2021/plugins/page-break/page-break.min.js +1 -1
  165. package/es2021/plugins/paste-code/paste-code.css +1 -1
  166. package/es2021/plugins/paste-code/paste-code.js +2 -1
  167. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  168. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  169. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  170. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  171. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  172. package/es2021/plugins/todo-list/todo-list.css +1 -1
  173. package/es2021/plugins/todo-list/todo-list.js +1 -1
  174. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  175. package/es2021/plugins/translate/translate.css +1 -1
  176. package/es2021/plugins/translate/translate.js +3 -1
  177. package/es2021/plugins/translate/translate.min.js +1 -1
  178. package/es2021/plugins/tune-block/tune-block.css +1 -1
  179. package/es2021/plugins/tune-block/tune-block.js +5 -4
  180. package/es2021/plugins/tune-block/tune-block.min.js +2 -2
  181. package/es2021.en/jodit.css +320 -41
  182. package/es2021.en/jodit.fat.min.css +1 -1
  183. package/es2021.en/jodit.fat.min.js +2 -2
  184. package/es2021.en/jodit.js +490 -330
  185. package/es2021.en/jodit.min.css +1 -1
  186. package/es2021.en/jodit.min.js +2 -2
  187. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  188. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  189. package/es2021.en/plugins/backup/backup.css +1 -1
  190. package/es2021.en/plugins/backup/backup.js +3 -1
  191. package/es2021.en/plugins/backup/backup.min.js +1 -1
  192. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  193. package/es2021.en/plugins/button-generator/button-generator.js +6 -1
  194. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  195. package/es2021.en/plugins/change-case/change-case.js +1 -1
  196. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  197. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  198. package/es2021.en/plugins/color-picker/color-picker.js +2 -1
  199. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  200. package/es2021.en/plugins/emoji/emoji.css +1 -1
  201. package/es2021.en/plugins/emoji/emoji.js +4 -3
  202. package/es2021.en/plugins/emoji/emoji.min.js +2 -2
  203. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  204. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  205. package/es2021.en/plugins/finder/finder.css +1 -1
  206. package/es2021.en/plugins/finder/finder.js +21 -2
  207. package/es2021.en/plugins/finder/finder.min.js +2 -2
  208. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  209. package/es2021.en/plugins/google-maps/google-maps.js +9 -1
  210. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  211. package/es2021.en/plugins/google-search/google-search.js +1 -1
  212. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  213. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  214. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  215. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  216. package/es2021.en/plugins/iframe-editor/iframe-editor.js +2 -1
  217. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  218. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  219. package/es2021.en/plugins/keyboard/keyboard.js +2 -1
  220. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  221. package/es2021.en/plugins/mobile-view/mobile-view.js +13 -15
  222. package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
  223. package/es2021.en/plugins/page-break/page-break.js +1 -1
  224. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  225. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  226. package/es2021.en/plugins/paste-code/paste-code.js +2 -1
  227. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  228. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  229. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  230. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  231. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  232. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  233. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  234. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  235. package/es2021.en/plugins/translate/translate.css +1 -1
  236. package/es2021.en/plugins/translate/translate.js +3 -1
  237. package/es2021.en/plugins/translate/translate.min.js +1 -1
  238. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  239. package/es2021.en/plugins/tune-block/tune-block.js +5 -4
  240. package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
  241. package/es5/jodit.css +397 -54
  242. package/es5/jodit.fat.min.css +1 -1
  243. package/es5/jodit.fat.min.js +2 -2
  244. package/es5/jodit.js +645 -465
  245. package/es5/jodit.min.css +3 -3
  246. package/es5/jodit.min.js +2 -2
  247. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  248. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  249. package/es5/plugins/backup/backup.css +1 -1
  250. package/es5/plugins/backup/backup.js +5 -3
  251. package/es5/plugins/backup/backup.min.js +2 -2
  252. package/es5/plugins/button-generator/button-generator.css +1 -1
  253. package/es5/plugins/button-generator/button-generator.js +8 -3
  254. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  255. package/es5/plugins/change-case/change-case.js +2 -1
  256. package/es5/plugins/change-case/change-case.min.js +1 -1
  257. package/es5/plugins/color-picker/color-picker.css +1 -1
  258. package/es5/plugins/color-picker/color-picker.js +3 -1
  259. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  260. package/es5/plugins/emoji/emoji.css +1 -1
  261. package/es5/plugins/emoji/emoji.js +5 -3
  262. package/es5/plugins/emoji/emoji.min.js +2 -2
  263. package/es5/plugins/export-docs/export-docs.js +3 -3
  264. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  265. package/es5/plugins/finder/finder.css +1 -1
  266. package/es5/plugins/finder/finder.js +33 -19
  267. package/es5/plugins/finder/finder.min.js +2 -2
  268. package/es5/plugins/google-maps/google-maps.css +1 -1
  269. package/es5/plugins/google-maps/google-maps.js +25 -22
  270. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  271. package/es5/plugins/google-search/google-search.js +2 -1
  272. package/es5/plugins/google-search/google-search.min.js +1 -1
  273. package/es5/plugins/highlight-signature/highlight-signature.js +2 -1
  274. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  275. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  276. package/es5/plugins/iframe-editor/iframe-editor.js +3 -1
  277. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  278. package/es5/plugins/keyboard/keyboard.css +1 -1
  279. package/es5/plugins/keyboard/keyboard.js +9 -13
  280. package/es5/plugins/keyboard/keyboard.min.js +2 -2
  281. package/es5/plugins/mobile-view/mobile-view.js +15 -17
  282. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  283. package/es5/plugins/page-break/page-break.js +2 -1
  284. package/es5/plugins/page-break/page-break.min.js +1 -1
  285. package/es5/plugins/paste-code/paste-code.css +1 -1
  286. package/es5/plugins/paste-code/paste-code.js +5 -6
  287. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  288. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  289. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  290. package/es5/plugins/show-blocks/show-blocks.js +3 -3
  291. package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
  292. package/es5/plugins/todo-list/todo-list.css +1 -1
  293. package/es5/plugins/todo-list/todo-list.js +3 -3
  294. package/es5/plugins/todo-list/todo-list.min.js +2 -2
  295. package/es5/plugins/translate/translate.css +1 -1
  296. package/es5/plugins/translate/translate.js +6 -5
  297. package/es5/plugins/translate/translate.min.js +2 -2
  298. package/es5/plugins/tune-block/tune-block.css +1 -1
  299. package/es5/plugins/tune-block/tune-block.js +6 -4
  300. package/es5/plugins/tune-block/tune-block.min.js +2 -2
  301. package/esm/config.js +1 -1
  302. package/esm/core/ui/form/range/range.js +1 -1
  303. package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
  304. package/esm/plugins/backup/ui/box.js +1 -1
  305. package/esm/plugins/backup/ui/list.js +1 -1
  306. package/esm/plugins/button-generator/ui/button/button.js +2 -2
  307. package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
  308. package/esm/plugins/button-generator/ui/preview/preview.js +2 -2
  309. package/esm/plugins/color-picker/ui/input/color-input.js +1 -1
  310. package/esm/plugins/emoji/config.js +1 -1
  311. package/esm/plugins/emoji/ui/emoji.js +1 -1
  312. package/esm/plugins/finder/browser.js +1 -1
  313. package/esm/plugins/finder/helpers/context-menu.js +1 -1
  314. package/esm/plugins/finder/helpers/history-manager.js +1 -1
  315. package/esm/plugins/finder/helpers/loading-manager.js +1 -1
  316. package/esm/plugins/finder/helpers/persistent-store.js +2 -2
  317. package/esm/plugins/finder/ui/folder/folder.js +1 -1
  318. package/esm/plugins/finder/ui/header/header.js +1 -1
  319. package/esm/plugins/finder/ui/item/item.js +1 -1
  320. package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
  321. package/esm/plugins/finder/ui/panel/panel.js +1 -1
  322. package/esm/plugins/finder/ui/preview/preview.js +2 -2
  323. package/esm/plugins/finder/ui/progress/progress.js +2 -2
  324. package/esm/plugins/finder/ui/settings/settings.js +1 -1
  325. package/esm/plugins/finder/ui/sidebar/sidebar.js +2 -2
  326. package/esm/plugins/finder/ui/source/source.js +1 -1
  327. package/esm/plugins/finder/ui/sources/sources.js +1 -1
  328. package/esm/plugins/finder/ui/statusbar/statusbar.js +1 -1
  329. package/esm/plugins/finder/ui/tree/tree.js +1 -1
  330. package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
  331. package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
  332. package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
  333. package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
  334. package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
  335. package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -1
  336. package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
  337. package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -1
  338. package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
  339. package/esm/plugins/mobile-view/config.js +1 -1
  340. package/esm/plugins/paste-code/paste-code.js +1 -1
  341. package/esm/plugins/paste-from-word/element/style.js +1 -1
  342. package/esm/plugins/translate/ui/list/list.js +1 -1
  343. package/esm/plugins/translate/ui/settings/settings.js +1 -1
  344. package/esm/plugins/tune-block/config.js +1 -1
  345. package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
  346. 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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -218,7 +218,6 @@ __webpack_require__.r(__webpack_exports__);
218
218
  var keyboard = /** @class */ (function (_super) {
219
219
  (0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__extends */ .ZT)(keyboard, _super);
220
220
  function keyboard(jodit) {
221
- var _a;
222
221
  var _this = _super.call(this, jodit) || this;
223
222
  /** @override */
224
223
  _this.hasStyle = !jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_1__/* .JoditPro */ .y.fatMode;
@@ -229,7 +228,7 @@ var keyboard = /** @class */ (function (_super) {
229
228
  name: 'keyboard'
230
229
  }
231
230
  ];
232
- var extraKeyButtons = (_a = jodit.o.keyboard, _a.extraKeyButtons), extraKeyGroup = _a.extraKeyGroup;
231
+ var _a = jodit.o.keyboard, extraKeyButtons = _a.extraKeyButtons, extraKeyGroup = _a.extraKeyGroup;
233
232
  if (extraKeyButtons.length) {
234
233
  extraKeyButtons.forEach(function (key, index) {
235
234
  var id = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_7__/* .isString */ .HD)(key) ? key : key.key, hotkeys = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_7__/* .isString */ .HD)(key) || !key.hotkeys
@@ -267,7 +266,6 @@ var keyboard = /** @class */ (function (_super) {
267
266
  * Show or hide virtual Keyboard
268
267
  */
269
268
  keyboard.prototype.toggleKeyboard = function () {
270
- var _a;
271
269
  if (!this.__keyboard) {
272
270
  this.__keyboard = new jodit_modules__WEBPACK_IMPORTED_MODULE_5__.Dialog({
273
271
  toolbarButtonSize: 'tiny'
@@ -277,7 +275,7 @@ var keyboard = /** @class */ (function (_super) {
277
275
  .setMod('slim', true)
278
276
  .setMod('adaptive', false)
279
277
  .setContent(ui_1);
280
- var showLayoutSwitcher = (_a = this.j.o.keyboard, _a.showLayoutSwitcher), layoutSwitchList = _a.layoutSwitchList, layoutList_1 = _a.layoutList;
278
+ var _a = this.j.o.keyboard, showLayoutSwitcher = _a.showLayoutSwitcher, layoutSwitchList = _a.layoutSwitchList, layoutList_1 = _a.layoutList;
281
279
  if (showLayoutSwitcher) {
282
280
  var switcher = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UISelect */ .Cj(this.__keyboard, {
283
281
  value: ui_1.state.currentLayout,
@@ -322,6 +320,7 @@ var keyboard = /** @class */ (function (_super) {
322
320
  ], keyboard.prototype, "toggleKeyboard", null);
323
321
  return keyboard;
324
322
  }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S));
323
+
325
324
  jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_1__/* .JoditPro */ .y.plugins.add('keyboard', keyboard);
326
325
 
327
326
 
@@ -389,8 +388,7 @@ var UIKeyboard = /** @class */ (function (_super) {
389
388
  };
390
389
  /** @override */
391
390
  UIKeyboard.prototype.render = function () {
392
- var _a;
393
- var layout = (_a = this.j.options.keyboard, _a.layout), keySize = _a.keySize, rowCount = layout.length;
391
+ var _a = this.j.options.keyboard, layout = _a.layout, keySize = _a.keySize, rowCount = layout.length;
394
392
  return "<div>".concat((function () {
395
393
  var rows = [];
396
394
  for (var i = 0; i < rowCount; i += 1) {
@@ -404,8 +402,7 @@ var UIKeyboard = /** @class */ (function (_super) {
404
402
  })(), "</div>");
405
403
  };
406
404
  UIKeyboard.prototype.onStateChange = function () {
407
- var _a;
408
- var currentLayout = (_a = this.state, _a.currentLayout), options = _a.options, shift = _a.shift, caps = _a.caps, keys = this.j.o.keyboard.layoutList[currentLayout].keys;
405
+ var _a = this.state, currentLayout = _a.currentLayout, options = _a.options, shift = _a.shift, caps = _a.caps, keys = this.j.o.keyboard.layoutList[currentLayout].keys;
409
406
  var index = 0;
410
407
  for (var i = 0; i < keys.length; i += 1) {
411
408
  for (var j = 0; j < keys[i].length; j += 1) {
@@ -432,13 +429,12 @@ var UIKeyboard = /** @class */ (function (_super) {
432
429
  return c.toLowerCase() !== c.toUpperCase();
433
430
  };
434
431
  UIKeyboard.prototype.setKeyValue = function (index, value) {
435
- var _a;
436
432
  var elm = this._keys[index];
437
433
  if (!elm) {
438
434
  return;
439
435
  }
440
436
  var active = false;
441
- var options = (_a = this.state, _a.options), shift = _a.shift, caps = _a.caps;
437
+ var _a = this.state, options = _a.options, shift = _a.shift, caps = _a.caps;
442
438
  switch (value) {
443
439
  case 'Caps':
444
440
  active = caps;
@@ -473,7 +469,6 @@ var UIKeyboard = /** @class */ (function (_super) {
473
469
  }
474
470
  };
475
471
  UIKeyboard.prototype.onKeyDown = function (e, timeout) {
476
- var _a;
477
472
  var _this = this;
478
473
  if (timeout === void 0) { timeout = 0; }
479
474
  var target = e.target;
@@ -510,7 +505,7 @@ var UIKeyboard = /** @class */ (function (_super) {
510
505
  }
511
506
  key && this.j.s.insertNode(this.j.createInside.text(key));
512
507
  }
513
- var periodKeyRepeat = (_a = this.j.o.keyboard, _a.periodKeyRepeat), delayKeyRepeat = _a.delayKeyRepeat;
508
+ var _a = this.j.o.keyboard, periodKeyRepeat = _a.periodKeyRepeat, delayKeyRepeat = _a.delayKeyRepeat;
514
509
  this.reKeyDownTimeout = this.j.async.setTimeout(function () { return _this.onKeyDown(e, periodKeyRepeat); }, timeout || delayKeyRepeat);
515
510
  return false;
516
511
  };
@@ -562,6 +557,7 @@ var UIKeyboard = /** @class */ (function (_super) {
562
557
  }(jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u1));
563
558
 
564
559
 
560
+
565
561
  /***/ })
566
562
 
567
563
  },
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var s in o)("object"==typeof exports?exports:t)[s]=o[s]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[283],{48326:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},31169:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},37967:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},92100:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},44660:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},82333:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},72257:function(t,e,o){"use strict";var s=o(77628),n=o(48326),r=o.n(n);s.D.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.D.prototype.controls.keyboard={tooltip:"Keyboard",icon:r(),isActive:function(t){return Boolean(t.e.fire("isKeyboardOpened"))},command:"toggleKeyboard"},s.D.prototype.controls.extraKeyboardButtons={}},34295:function(t,e,o){"use strict";o.r(e),o.d(e,{keyboard:function(){return y}});var s=o(97582),n=o(7324),r=o(53852),a=o(21295),i=o(50526),c=(o(72257),o(8079)),p=o(75004),h=o(71350),u=o(77628),y=function(t){function e(e){var o,s=t.call(this,e)||this;s.hasStyle=!r.y.fatMode,s.buttons=[{group:"insert",name:"keyboard"}];var n=(o=e.o.keyboard).extraKeyButtons,a=o.extraKeyGroup;return n.length&&n.forEach((function(t,o){var s=(0,h.HD)(t)?t:t.key,n=(0,h.HD)(t)||!t.hotkeys?["ctrl+".concat(o+1)]:t.hotkeys;e.registerButton({name:"extraKeyboardButtons.".concat(s),group:a}),u.D.defaultOptions.controls.extraKeyboardButtons[s]={name:s,tooltip:s,args:[s],hotkeys:n,command:"insertChar"}})),s}return(0,s.ZT)(e,t),e.prototype.afterInit=function(t){var e=this;t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",(function(){var t;return null===(t=e.__keyboard)||void 0===t?void 0:t.isOpened}))},e.prototype.insertChar=function(t,e,o){this.j.s.insertNode(this.j.createInside.text(o))},e.prototype.toggleKeyboard=function(){var t;if(!this.__keyboard){this.__keyboard=new c.Dialog({toolbarButtonSize:"tiny"});var e=new a.r(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(e);var o=(t=this.j.o.keyboard).showLayoutSwitcher,s=t.layoutList;if(o){var n=new p.Cj(this.__keyboard,{value:e.state.currentLayout,options:t.layoutSwitchList.map((function(t){var e,o;return{text:null!==(o=null===(e=s[t])||void 0===e?void 0:e.title)&&void 0!==o?o:t,value:t}})),onChange:function(t){e.state.currentLayout=t}});n.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(n)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()},e.prototype.beforeDestruct=function(t){var e;null===(e=this.__keyboard)||void 0===e||e.destruct()},e.requires=["license"],(0,s.gn)([i.autobind],e.prototype,"insertChar",null),(0,s.gn)([i.autobind],e.prototype,"toggleKeyboard",null),e}(n.S);r.y.plugins.add("keyboard",y)},21295:function(t,e,o){"use strict";o.d(e,{r:function(){return k}});var s=o(97582),n=o(75004),r=o(50526),a=o(98478),i=o(11612),c=o(31169),p=o.n(c),h=o(44660),u=o.n(h),y=o(37967),l=o.n(y),d=o(92100),f=o.n(d),v=o(82333),g=o.n(v),k=function(t){function e(e){var o=t.call(this,e)||this;return o.state={caps:!1,shift:!1,options:!1,currentLayout:o.j.o.keyboard.defaultLayoutSet},o._keys=o.getElms("key"),o.pressed=!1,o.reKeyDownTimeout=0,o.onStateChange(),o}var o;return(0,s.ZT)(e,t),o=e,e.prototype.className=function(){return"UIKeyboard"},e.prototype.render=function(){var t,e=(t=this.j.options.keyboard).layout,o=t.keySize,s=e.length;return"<div>".concat(function(){for(var t=[],n=0;s>n;n+=1){for(var r=[],a=0;e[n].length>a;a+=1)r.push('<div style="width:'.concat(o*e[n][a],"px;height:").concat(o,'px;" class="&__key"></div>'));t.push("<div class='&__row'>".concat(r.join("\n"),"</div>"))}return t.join("\n")}(),"</div>")},e.prototype.onStateChange=function(){for(var t,e=(t=this.state).currentLayout,s=t.options,n=t.shift,r=t.caps,a=this.j.o.keyboard.layoutList[e].keys,i=0,c=0;a.length>c;c+=1)for(var p=0;a[c].length>p;p+=1){var h=a[c][p].split(" "),u=h[0];n&&(u=h[1]),!n&&r&&h[1]&&o.isLetter(h[0])&&(u=h[1]),s&&(u=h[2]),this.setKeyValue(i,null!=u?u:h[0]),i+=1}},e.isLetter=function(t){return t.toLowerCase()!==t.toUpperCase()},e.prototype.setKeyValue=function(t,e){var s,n=this._keys[t];if(n){var r=!1,i=(s=this.state).options,c=s.shift,p=s.caps;switch(e){case"Caps":r=p;break;case"Options":r=i;break;case"Shift":r=c}n.innerHTML=o.decorate(e),n.classList.toggle(this.getFullElName("key","active",!0),r),(0,a.attr)(n,"-key",e)}},e.prototype.onKeyUp=function(){this.pressed&&this.stopPress()},e.prototype.onReady=function(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)},e.prototype.stopPress=function(){var t=this;this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((function(e){e.classList.remove(t.getFullElName("key","pressed",!0))})))},e.prototype.onKeyDown=function(t,e){var o,s=this;void 0===e&&(e=0);var n=t.target;if(!n||!n.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,n.classList.add(this.getFullElName("key","pressed",!0));var r=(0,a.attr)(n,"-key");switch(r){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:r,preventDefault:function(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(i.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),r&&this.j.s.insertNode(this.j.createInside.text(r))}var c=(o=this.j.o.keyboard).periodKeyRepeat;return this.reKeyDownTimeout=this.j.async.setTimeout((function(){return s.onKeyDown(t,c)}),e||o.delayKeyRepeat),!1},e.decorate=function(t){switch(t){case"Space":return"";case"Enter":return n.JO.get("enter");case"Backspace":return p();case"Shift":return u();case"Caps":return l();case"Options":return f();case"Tab":return g();default:return t}},(0,s.gn)([(0,r.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],e.prototype,"onStateChange",null),(0,s.gn)([(0,r.watch)(["ow:mouseup"])],e.prototype,"onKeyUp",null),(0,s.gn)([(0,r.hook)("ready")],e.prototype,"onReady",null),(0,s.gn)([r.autobind],e.prototype,"stopPress",null),(0,s.gn)([(0,r.watch)(["container:mousedown","container:touchstart"])],e.prototype,"onKeyDown",null),o=(0,s.gn)([r.component],e)}(n.u1)}},function(t){return t(t.s=34295)}])}));
10
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var s in o)("object"==typeof exports?exports:t)[s]=o[s]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[283],{48326:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},31169:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},37967:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},92100:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},44660:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},82333:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},72257:function(t,e,o){"use strict";var s=o(77628),n=o(48326),r=o.n(n);s.D.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.D.prototype.controls.keyboard={tooltip:"Keyboard",icon:r(),isActive:function(t){return Boolean(t.e.fire("isKeyboardOpened"))},command:"toggleKeyboard"},s.D.prototype.controls.extraKeyboardButtons={}},34295:function(t,e,o){"use strict";o.r(e),o.d(e,{keyboard:function(){return y}});var s=o(97582),n=o(7324),r=o(53852),a=o(21295),i=o(50526),c=(o(72257),o(8079)),p=o(75004),h=o(71350),u=o(77628),y=function(t){function e(e){var o=t.call(this,e)||this;o.hasStyle=!r.y.fatMode,o.buttons=[{group:"insert",name:"keyboard"}];var s=e.o.keyboard,n=s.extraKeyButtons,a=s.extraKeyGroup;return n.length&&n.forEach((function(t,o){var s=(0,h.HD)(t)?t:t.key,n=(0,h.HD)(t)||!t.hotkeys?["ctrl+".concat(o+1)]:t.hotkeys;e.registerButton({name:"extraKeyboardButtons.".concat(s),group:a}),u.D.defaultOptions.controls.extraKeyboardButtons[s]={name:s,tooltip:s,args:[s],hotkeys:n,command:"insertChar"}})),o}return(0,s.ZT)(e,t),e.prototype.afterInit=function(t){var e=this;t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",(function(){var t;return null===(t=e.__keyboard)||void 0===t?void 0:t.isOpened}))},e.prototype.insertChar=function(t,e,o){this.j.s.insertNode(this.j.createInside.text(o))},e.prototype.toggleKeyboard=function(){if(!this.__keyboard){this.__keyboard=new c.Dialog({toolbarButtonSize:"tiny"});var t=new a.r(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);var e=this.j.o.keyboard,o=e.layoutList;if(e.showLayoutSwitcher){var s=new p.Cj(this.__keyboard,{value:t.state.currentLayout,options:e.layoutSwitchList.map((function(t){var e,s;return{text:null!==(s=null===(e=o[t])||void 0===e?void 0:e.title)&&void 0!==s?s:t,value:t}})),onChange:function(e){t.state.currentLayout=e}});s.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(s)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()},e.prototype.beforeDestruct=function(t){var e;null===(e=this.__keyboard)||void 0===e||e.destruct()},e.requires=["license"],(0,s.gn)([i.autobind],e.prototype,"insertChar",null),(0,s.gn)([i.autobind],e.prototype,"toggleKeyboard",null),e}(n.S);r.y.plugins.add("keyboard",y)},21295:function(t,e,o){"use strict";o.d(e,{r:function(){return k}});var s=o(97582),n=o(75004),r=o(50526),a=o(98478),i=o(11612),c=o(31169),p=o.n(c),h=o(44660),u=o.n(h),y=o(37967),l=o.n(y),d=o(92100),f=o.n(d),v=o(82333),g=o.n(v),k=function(t){function e(e){var o=t.call(this,e)||this;return o.state={caps:!1,shift:!1,options:!1,currentLayout:o.j.o.keyboard.defaultLayoutSet},o._keys=o.getElms("key"),o.pressed=!1,o.reKeyDownTimeout=0,o.onStateChange(),o}var o;return(0,s.ZT)(e,t),o=e,e.prototype.className=function(){return"UIKeyboard"},e.prototype.render=function(){var t=this.j.options.keyboard,e=t.layout,o=t.keySize,s=e.length;return"<div>".concat(function(){for(var t=[],n=0;s>n;n+=1){for(var r=[],a=0;e[n].length>a;a+=1)r.push('<div style="width:'.concat(o*e[n][a],"px;height:").concat(o,'px;" class="&__key"></div>'));t.push("<div class='&__row'>".concat(r.join("\n"),"</div>"))}return t.join("\n")}(),"</div>")},e.prototype.onStateChange=function(){for(var t=this.state,e=t.options,s=t.shift,n=t.caps,r=this.j.o.keyboard.layoutList[t.currentLayout].keys,a=0,i=0;r.length>i;i+=1)for(var c=0;r[i].length>c;c+=1){var p=r[i][c].split(" "),h=p[0];s&&(h=p[1]),!s&&n&&p[1]&&o.isLetter(p[0])&&(h=p[1]),e&&(h=p[2]),this.setKeyValue(a,null!=h?h:p[0]),a+=1}},e.isLetter=function(t){return t.toLowerCase()!==t.toUpperCase()},e.prototype.setKeyValue=function(t,e){var s=this._keys[t];if(s){var n=!1,r=this.state,i=r.options,c=r.shift,p=r.caps;switch(e){case"Caps":n=p;break;case"Options":n=i;break;case"Shift":n=c}s.innerHTML=o.decorate(e),s.classList.toggle(this.getFullElName("key","active",!0),n),(0,a.attr)(s,"-key",e)}},e.prototype.onKeyUp=function(){this.pressed&&this.stopPress()},e.prototype.onReady=function(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)},e.prototype.stopPress=function(){var t=this;this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((function(e){e.classList.remove(t.getFullElName("key","pressed",!0))})))},e.prototype.onKeyDown=function(t,e){var o=this;void 0===e&&(e=0);var s=t.target;if(!s||!s.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,s.classList.add(this.getFullElName("key","pressed",!0));var n=(0,a.attr)(s,"-key");switch(n){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:n,preventDefault:function(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(i.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),n&&this.j.s.insertNode(this.j.createInside.text(n))}var r=this.j.o.keyboard,c=r.periodKeyRepeat;return this.reKeyDownTimeout=this.j.async.setTimeout((function(){return o.onKeyDown(t,c)}),e||r.delayKeyRepeat),!1},e.decorate=function(t){switch(t){case"Space":return"";case"Enter":return n.JO.get("enter");case"Backspace":return p();case"Shift":return u();case"Caps":return l();case"Options":return f();case"Tab":return g();default:return t}},(0,s.gn)([(0,r.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],e.prototype,"onStateChange",null),(0,s.gn)([(0,r.watch)(["ow:mouseup"])],e.prototype,"onKeyUp",null),(0,s.gn)([(0,r.hook)("ready")],e.prototype,"onReady",null),(0,s.gn)([r.autobind],e.prototype,"stopPress",null),(0,s.gn)([(0,r.watch)(["container:mousedown","container:touchstart"])],e.prototype,"onKeyDown",null),o=(0,s.gn)([r.component],e)}(n.u1)}},function(t){return t(t.s=34295)}])}));
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -54,14 +54,11 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.mob
54
54
  tooltip: 'Mobile View',
55
55
  icon: (_icon_svg__WEBPACK_IMPORTED_MODULE_2___default()),
56
56
  command: 'mobileView',
57
- isActive: function (editor, control) {
57
+ isActive: function (editor) {
58
58
  return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(editor, dataBindCurrentKey) &&
59
59
  (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(editor, dataBindCurrentKey) !== 'default';
60
60
  },
61
- isChildActive: function (editor, control) {
62
- var _a;
63
- return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(editor, dataBindCurrentKey) === ((_a = control.args) === null || _a === void 0 ? void 0 : _a[1]);
64
- },
61
+ isChildActive: function (editor, btn) { var _a; return (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(editor, dataBindCurrentKey) === ((_a = btn.control.args) === null || _a === void 0 ? void 0 : _a[1]); },
65
62
  exec: function (editor) {
66
63
  if ((0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(editor, dataBindStoredKey)) {
67
64
  editor.execCommand('mobileView', false, (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_1__/* .dataBind */ .q)(editor, dataBindStoredKey));
@@ -69,18 +66,19 @@ jodit_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .D.prototype.controls.mob
69
66
  }
70
67
  return false;
71
68
  },
72
- childExec: function (editor, node, btn) {
73
- var _a, _b;
74
- editor.execCommand('mobileView', false, (_b = (_a = btn.control) === null || _a === void 0 ? void 0 : _a.args) === null || _b === void 0 ? void 0 : _b[1]);
69
+ childExec: function (editor, node, _a) {
70
+ var _b, _c;
71
+ var button = _a.button;
72
+ editor.execCommand('mobileView', false, Number((_c = (_b = button.control) === null || _b === void 0 ? void 0 : _b.args) === null || _c === void 0 ? void 0 : _c[0]));
75
73
  },
76
- list: [
77
- { value: 'default', title: 'Default' },
78
- { value: 375, title: 'iPhone SE' },
79
- { value: 414, title: 'iPhone XR' },
80
- { value: 390, title: 'iPhone 12 Pro' },
81
- { value: 393, title: 'Pixel 5' },
82
- { value: 820, title: 'iPad Air' }
83
- ]
74
+ list: {
75
+ default: 'Default',
76
+ 375: 'iPhone SE',
77
+ 414: 'iPhone XR',
78
+ 390: 'iPhone 12 Pro',
79
+ 393: 'Pixel 5',
80
+ 820: 'iPad Air'
81
+ }
84
82
  };
85
83
 
86
84
 
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[906],{74937:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},74404:function(e,t,o){"use strict";o.d(t,{D:function(){return a},d:function(){return l}});var i=o(77628),n=o(16992),r=o(74937),u=o.n(r);i.D.prototype.mobileView={mode:"default"};var l="buttonmobileSView",a="buttonmobileCView";i.D.prototype.controls.mobileView={tooltip:"Mobile View",icon:u(),command:"mobileView",isActive:function(e,t){return(0,n.q)(e,a)&&"default"!==(0,n.q)(e,a)},isChildActive:function(e,t){var o;return(0,n.q)(e,a)===(null===(o=t.args)||void 0===o?void 0:o[1])},exec:function(e){if(!(0,n.q)(e,l))return!1;e.execCommand("mobileView",!1,(0,n.q)(e,l))},childExec:function(e,t,o){var i,n;e.execCommand("mobileView",!1,null===(n=null===(i=o.control)||void 0===i?void 0:i.args)||void 0===n?void 0:n[1])},list:[{value:"default",title:"Default"},{value:375,title:"iPhone SE"},{value:414,title:"iPhone XR"},{value:390,title:"iPhone 12 Pro"},{value:393,title:"Pixel 5"},{value:820,title:"iPad Air"}]}},34115:function(e,t,o){"use strict";o.r(t);var i=o(97582),n=o(7324),r=o(53852),u=o(50526),l=o(98478),a=o(74404),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttons=[{name:"mobileView",group:"state"}],t.__currentMode="default",t}return(0,i.ZT)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("mobileView",{exec:function(o,i,n){t.__currentMode===n&&(n="default"),t.__currentMode=n,(0,l.dataBind)(e,a.D,n),"default"!==t.__currentMode&&(0,l.dataBind)(e,a.d,n),"default"===n?(0,l.css)(t.jodit.workplace,{width:null,margin:null}):(0,l.css)(t.j.workplace,{width:n,margin:"0 auto"})}}),e.events.on("beforeSetMode",(function(){}))},t.prototype.__beforeSetMode=function(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")},t.prototype.beforeDestruct=function(e){},t.requires=["license"],(0,i.gn)([(0,u.watch)(":beforeSetMode.mobileView")],t.prototype,"__beforeSetMode",null),(0,i.gn)([u.component],t)}(n.S);r.y.plugins.add("mobileView",d)}},function(e){return e(e.s=34115)}])}));
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 o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[906],{74937:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},74404:function(e,t,o){"use strict";o.d(t,{D:function(){return a},d:function(){return l}});var n=o(77628),i=o(16992),r=o(74937),u=o.n(r);n.D.prototype.mobileView={mode:"default"};var l="buttonmobileSView",a="buttonmobileCView";n.D.prototype.controls.mobileView={tooltip:"Mobile View",icon:u(),command:"mobileView",isActive:function(e){return(0,i.q)(e,a)&&"default"!==(0,i.q)(e,a)},isChildActive:function(e,t){var o;return(0,i.q)(e,a)===(null===(o=t.control.args)||void 0===o?void 0:o[1])},exec:function(e){if(!(0,i.q)(e,l))return!1;e.execCommand("mobileView",!1,(0,i.q)(e,l))},childExec:function(e,t,o){var n,i;e.execCommand("mobileView",!1,Number(null===(i=null===(n=o.button.control)||void 0===n?void 0:n.args)||void 0===i?void 0:i[0]))},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},34115:function(e,t,o){"use strict";o.r(t);var n=o(97582),i=o(7324),r=o(53852),u=o(50526),l=o(98478),a=o(74404),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttons=[{name:"mobileView",group:"state"}],t.__currentMode="default",t}return(0,n.ZT)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("mobileView",{exec:function(o,n,i){t.__currentMode===i&&(i="default"),t.__currentMode=i,(0,l.dataBind)(e,a.D,i),"default"!==t.__currentMode&&(0,l.dataBind)(e,a.d,i),"default"===i?(0,l.css)(t.jodit.workplace,{width:null,margin:null}):(0,l.css)(t.j.workplace,{width:i,margin:"0 auto"})}}),e.events.on("beforeSetMode",(function(){}))},t.prototype.__beforeSetMode=function(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")},t.prototype.beforeDestruct=function(e){},t.requires=["license"],(0,n.gn)([(0,u.watch)(":beforeSetMode.mobileView")],t.prototype,"__beforeSetMode",null),(0,n.gn)([u.component],t)}(i.S);r.y.plugins.add("mobileView",d)}},function(e){return e(e.s=34115)}])}));
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -157,6 +157,7 @@ var PageBreak = /** @class */ (function (_super) {
157
157
  ], PageBreak.prototype, "onAfterGetValueFromEditor", null);
158
158
  return PageBreak;
159
159
  }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S));
160
+
160
161
  jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_1__/* .JoditPro */ .y.plugins.add('pageBreak', PageBreak);
161
162
 
162
163
 
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -153,10 +153,9 @@ var pasteCode = /** @class */ (function (_super) {
153
153
  jodit.registerCommand('pasteCode', function () { return _this.openCodeEditDialog(); });
154
154
  };
155
155
  pasteCode.prototype.openCodeEditDialog = function (defLanguage, defValue, pre) {
156
- var _a;
157
156
  var _this = this;
158
157
  var jodit = this.j;
159
- var form = this.createForm(), code = (_a = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.refs)(form), _a.code), language = _a.language;
158
+ var form = this.createForm(), _a = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.refs)(form), code = _a.code, language = _a.language;
160
159
  if (defLanguage) {
161
160
  language.value = defLanguage;
162
161
  }
@@ -242,12 +241,11 @@ var pasteCode = /** @class */ (function (_super) {
242
241
  };
243
242
  pasteCode.prototype.highlightCode = function (pre) {
244
243
  return (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__awaiter */ .mG)(this, void 0, Promise, function () {
245
- var globalHighlightLib, css, js, langUrl, highlight, isLangLoaded, language, container;
246
- var _a, _b;
244
+ var _a, globalHighlightLib, _b, css, js, langUrl, highlight, isLangLoaded, language, container;
247
245
  return (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__generator */ .Jh)(this, function (_c) {
248
246
  switch (_c.label) {
249
247
  case 0:
250
- globalHighlightLib = (_a = this.j.o.pasteCode, _a.globalHighlightLib), css = (_b = _a.highlightLib, _b.css), js = _b.js, langUrl = _b.langUrl, highlight = _b.highlight, isLangLoaded = _b.isLangLoaded;
248
+ _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;
251
249
  if (!(!this.prismJSIsLoaded && !globalHighlightLib)) return [3 /*break*/, 2];
252
250
  return [4 /*yield*/, Promise.all([
253
251
  (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__.loadNextStyle)(this.jodit, css),
@@ -336,6 +334,7 @@ var pasteCode = /** @class */ (function (_super) {
336
334
  ], pasteCode);
337
335
  return pasteCode;
338
336
  }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */ .S));
337
+
339
338
  jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_5__/* .JoditPro */ .y.plugins.add('paste-code', pasteCode);
340
339
 
341
340
 
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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 a=t();for(var o in a)("object"==typeof exports?exports:e)[o]=a[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[535],{75118: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>'},66757:function(e,t,a){"use strict";var o=a(77628),n=a(83221),i=a(75118);o.D.prototype.controls.pasteCode={icon:a.n(i)(),tooltip:"Paste code",command:"pasteCode"},o.D.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 Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t)},isLangLoaded:function(e){return Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,a){return'<pre class="language-'.concat(t,'">').concat((0,n.$)(a),"</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}}},29782:function(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:function(){return u}});var o=a(97582),n=(a(66757),a(7324)),i=a(75004),r=a(50526),s=a(95582),l=a(53852),c=a(8079),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttons=[{name:"pasteCode",group:"clipboard"}],t.prismJSIsLoaded=!1,t}return(0,o.ZT)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("pasteCode",(function(){return t.openCodeEditDialog()}))},t.prototype.openCodeEditDialog=function(e,t,a){var o,n=this,i=this.j,r=this.createForm(),l=(o=(0,s.refs)(r)).code,u=o.language;e&&(u.value=e),t&&(l.value=t),i.async.requestIdleCallback((function(){l.focus()})),i.s.save(),this.createDialog((function(){if(!r.validate())return!1;i.s.restore();var e=i.createInside.fromHTML(i.o.pasteCode.insertTemplate(i,u.value,l.value));if(a)c.Dom.replace(a,e,i.createInside,!1,!0);else{var t=i.s.current(),o=c.Dom.up(t,c.Dom.isBlock,i.editor);o?c.Dom.after(o,e):i.s.insertNode(e)}n.onChange()}),(function(){i.s.restore()})).setContent(r.container).open(!0)},t.prototype.beforeDestruct=function(e){},t.prototype.createForm=function(){var e=this.jodit;return new i.x4(e,[new i.Cj(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new i.GJ(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 a=new c.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,i.zx)(a,"","Cancel","default").onAction((function(){a.close(),t()})),(0,i.zx)(a,"save","Save","primary").onAction((function(){a.close(),e()}))]),a},t.prototype.onChange=function(){var e=this;(0,s.$$)("pre",this.j.editor).forEach((function(t){(0,s.attr)(t,"contenteditable")||((0,s.attr)(t,"contenteditable",!1),e.highlightCode(t))}))},t.prototype.highlightCode=function(e){return(0,o.mG)(this,void 0,Promise,(function(){var t,a,n,i,r,l,u,p,d,h;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return t=(d=this.j.o.pasteCode).globalHighlightLib,a=(h=d.highlightLib).css,n=h.js,i=h.langUrl,r=h.highlight,l=h.isLangLoaded,this.prismJSIsLoaded||t?[3,2]:[4,Promise.all([(0,s.loadNextStyle)(this.jodit,a),(0,s.loadNext)(this.jodit,n)])];case 1:o.sent(),this.prismJSIsLoaded=!0,o.label=2;case 2:return u=this.parseLanguage(e),l(u)||t?[3,4]:[4,(0,s.appendScriptAsync)(this.jodit,i(u)).catch((function(){return null}))];case 3:o.sent(),o.label=4;case 4:return p=e,e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&(p=e.firstElementChild),p.innerHTML=r(p.innerText,u),[2]}}))}))},t.prototype.onPreEdit=function(e){var t=c.Dom.isNode(e)&&c.Dom.isTag(e,"pre")?e:c.Dom.closest(e.target,"pre",this.j.editor);if(t){var a=this.parseLanguage(t);this.openCodeEditDialog(a,t.innerText,t)}},t.prototype.parseLanguage=function(e){var t=null,a=function(e){return e.classList.forEach((function(e){if(/language-/.test(e)){var a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}}))};return a(e),null==t&&e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")},t.prototype.onAfterGetValueFromEditor=function(e){var t=this,a=function(e,a,o,n,i,r){return"".concat(a.trim()).concat(n).concat((0,s.stripTags)(i,t.j.ed,new Set(["br"]))).concat(r)};e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,a).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,a)},t.requires=["license"],(0,o.gn)([r.autobind],t.prototype,"openCodeEditDialog",null),(0,o.gn)([(0,r.watch)("?:change"),(0,r.debounce)()],t.prototype,"onChange",null),(0,o.gn)([(0,r.watch)(["?:dblclick","?:editPreInPasteCode"])],t.prototype,"onPreEdit",null),(0,o.gn)([(0,r.watch)("?:afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),(0,o.gn)([r.component],t)}(n.S);l.y.plugins.add("paste-code",u)}},function(e){return e(e.s=29782)}])}));
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 a=t();for(var o in a)("object"==typeof exports?exports:e)[o]=a[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[535],{75118: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>'},66757:function(e,t,a){"use strict";var o=a(77628),n=a(83221),i=a(75118);o.D.prototype.controls.pasteCode={icon:a.n(i)(),tooltip:"Paste code",command:"pasteCode"},o.D.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 Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t)},isLangLoaded:function(e){return Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,a){return'<pre class="language-'.concat(t,'">').concat((0,n.$)(a),"</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}}},29782:function(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:function(){return u}});var o=a(97582),n=(a(66757),a(7324)),i=a(75004),r=a(50526),s=a(95582),l=a(53852),c=a(8079),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttons=[{name:"pasteCode",group:"clipboard"}],t.prismJSIsLoaded=!1,t}return(0,o.ZT)(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("pasteCode",(function(){return t.openCodeEditDialog()}))},t.prototype.openCodeEditDialog=function(e,t,a){var o=this,n=this.j,i=this.createForm(),r=(0,s.refs)(i),l=r.code,u=r.language;e&&(u.value=e),t&&(l.value=t),n.async.requestIdleCallback((function(){l.focus()})),n.s.save(),this.createDialog((function(){if(!i.validate())return!1;n.s.restore();var e=n.createInside.fromHTML(n.o.pasteCode.insertTemplate(n,u.value,l.value));if(a)c.Dom.replace(a,e,n.createInside,!1,!0);else{var t=n.s.current(),r=c.Dom.up(t,c.Dom.isBlock,n.editor);r?c.Dom.after(r,e):n.s.insertNode(e)}o.onChange()}),(function(){n.s.restore()})).setContent(i.container).open(!0)},t.prototype.beforeDestruct=function(e){},t.prototype.createForm=function(){var e=this.jodit;return new i.x4(e,[new i.Cj(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new i.GJ(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 a=new c.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,i.zx)(a,"","Cancel","default").onAction((function(){a.close(),t()})),(0,i.zx)(a,"save","Save","primary").onAction((function(){a.close(),e()}))]),a},t.prototype.onChange=function(){var e=this;(0,s.$$)("pre",this.j.editor).forEach((function(t){(0,s.attr)(t,"contenteditable")||((0,s.attr)(t,"contenteditable",!1),e.highlightCode(t))}))},t.prototype.highlightCode=function(e){return(0,o.mG)(this,void 0,Promise,(function(){var t,a,n,i,r,l,u,p,d,h;return(0,o.Jh)(this,(function(o){switch(o.label){case 0:return a=(t=this.j.o.pasteCode).globalHighlightLib,i=(n=t.highlightLib).css,r=n.js,l=n.langUrl,u=n.highlight,p=n.isLangLoaded,this.prismJSIsLoaded||a?[3,2]:[4,Promise.all([(0,s.loadNextStyle)(this.jodit,i),(0,s.loadNext)(this.jodit,r)])];case 1:o.sent(),this.prismJSIsLoaded=!0,o.label=2;case 2:return d=this.parseLanguage(e),p(d)||a?[3,4]:[4,(0,s.appendScriptAsync)(this.jodit,l(d)).catch((function(){return null}))];case 3:o.sent(),o.label=4;case 4:return h=e,e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&(h=e.firstElementChild),h.innerHTML=u(h.innerText,d),[2]}}))}))},t.prototype.onPreEdit=function(e){var t=c.Dom.isNode(e)&&c.Dom.isTag(e,"pre")?e:c.Dom.closest(e.target,"pre",this.j.editor);if(t){var a=this.parseLanguage(t);this.openCodeEditDialog(a,t.innerText,t)}},t.prototype.parseLanguage=function(e){var t=null,a=function(e){return e.classList.forEach((function(e){if(/language-/.test(e)){var a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}}))};return a(e),null==t&&e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")},t.prototype.onAfterGetValueFromEditor=function(e){var t=this,a=function(e,a,o,n,i,r){return"".concat(a.trim()).concat(n).concat((0,s.stripTags)(i,t.j.ed,new Set(["br"]))).concat(r)};e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,a).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,a)},t.requires=["license"],(0,o.gn)([r.autobind],t.prototype,"openCodeEditDialog",null),(0,o.gn)([(0,r.watch)("?:change"),(0,r.debounce)()],t.prototype,"onChange",null),(0,o.gn)([(0,r.watch)(["?:dblclick","?:editPreInPasteCode"])],t.prototype,"onPreEdit",null),(0,o.gn)([(0,r.watch)("?:afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),(0,o.gn)([r.component],t)}(n.S);l.y.plugins.add("paste-code",u)}},function(e){return e(e.s=29782)}])}));
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -577,11 +577,10 @@ var showBlocks = /** @class */ (function (_super) {
577
577
  * Enable showing block
578
578
  */
579
579
  showBlocks.prototype.enable = function () {
580
- var _a;
581
580
  var _this = this;
582
581
  this.isEnabled = true;
583
582
  var root = this.j.o.iframe ? 'body' : '.jodit-wysiwyg';
584
- var tagList = (_a = this.j.o.showBlocks, _a.tagList), color = _a.color;
583
+ var _a = this.j.o.showBlocks, tagList = _a.tagList, color = _a.color;
585
584
  this.style.innerHTML = tagList
586
585
  .map(function (tag) { return "".concat(root, " ").concat(tag, "{\n\t\t\t\t\toutline: 1px dashed ").concat(color, ";\n\t\t\t\t\tbackground-image: url(\"").concat(svgToUrl('<svg xmlns="http://www.w3.org/2000/svg" width="50px">' +
587
586
  '<text dominant-baseline="hanging" text-anchor="end" style="fill: ' +
@@ -639,6 +638,7 @@ var showBlocks = /** @class */ (function (_super) {
639
638
  ], showBlocks.prototype, "toggle", null);
640
639
  return showBlocks;
641
640
  }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_1__/* .Plugin */ .S));
641
+
642
642
  jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_6__/* .JoditPro */ .y.plugins.add('show-blocks', showBlocks);
643
643
 
644
644
 
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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(t,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var e=o();for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[876],{23530:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},56766:function(t,o,e){"use strict";var n=e(77628);n.D.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},n.D.prototype.controls.showBlocks={isActive:function(t){return Boolean(t.e.fire("showBlocksEnabled"))},tooltip:"Show Blocks",command:"toggleShowBlocks"}},33548:function(t){"use strict";t.exports={"Show Blocks":"تظهر كتل"}},6974:function(t){"use strict";t.exports={"Show Blocks":"Ukázat Bloky"}},24274:function(t){"use strict";t.exports={"Show Blocks":"Zeigen Blöcke"}},82725:function(t){"use strict";t.exports={"Show Blocks":"Mostrar Bloques"}},25702:function(t){"use strict";t.exports={"Show Blocks":"نشان می دهد بلوک"}},10342:function(t){"use strict";t.exports={"Show Blocks":"Afficher Les Blocs"}},98455:function(t){"use strict";t.exports={"Show Blocks":"תראה רחובות"}},6561:function(t){"use strict";t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},44642:function(t){"use strict";t.exports={"Show Blocks":"Menunjukkan Blok"}},60841:function(t,o,e){"use strict";e.r(o),e.d(o,{ar:function(){return n},cs_cz:function(){return s},de:function(){return r},es:function(){return i},fa:function(){return c},fr:function(){return u},he:function(){return l},hu:function(){return a},id:function(){return f},it:function(){return p},ja:function(){return h},ko:function(){return d},nl:function(){return k},pl:function(){return b},pt_br:function(){return g},ru:function(){return w},tr:function(){return B},zh_cn:function(){return x},zh_tw:function(){return m}});var n=e(33548),s=e(6974),r=e(24274),i=e(82725),c=e(25702),u=e(10342),l=e(98455),a=e(6561),f=e(44642),p=e(81483),h=e(51860),d=e(90069),k=e(52044),b=e(87205),g=e(821),w=e(76539),B=e(93793),x=e(40742),m=e(70142)},81483:function(t){"use strict";t.exports={"Show Blocks":"Visualizza Blocchi"}},51860:function(t){"use strict";t.exports={"Show Blocks":"ショーのブロック"}},90069:function(t){"use strict";t.exports={"Show Blocks":"쇼 블록"}},52044:function(t){"use strict";t.exports={"Show Blocks":"Toon Blokken"}},87205:function(t){"use strict";t.exports={"Show Blocks":"Pokaż Bloki"}},821:function(t){"use strict";t.exports={"Show Blocks":"Mostrar Blocos"}},76539:function(t){"use strict";t.exports={"Show Blocks":"Показать Блоки"}},93793:function(t){"use strict";t.exports={"Show Blocks":"Haritayı Blokları"}},40742:function(t){"use strict";t.exports={"Show Blocks":"显示块"}},70142:function(t){"use strict";t.exports={"Show Blocks":"แสดงช่วงตึก"}},87998:function(t,o,e){"use strict";e.r(o),e.d(o,{showBlocks:function(){return h}});var n=e(97582),s=(e(56766),e(7324)),r=e(44913),i=e(10503),c=e(81160),u=e(50526),l=e(53852),a=e(60841),f=e(23530),p=e.n(f),h=function(t){function o(o){var e=t.call(this,o)||this;return e.buttons=[{name:"showBlocks",group:"state"}],e.isEnabled=!1,(0,c.xl)(a),i.J.set("showBlocks",p()),e}return(0,n.ZT)(o,t),Object.defineProperty(o.prototype,"style",{get:function(){return(0,c.ZO)(this.jodit,o,"style",!0)},enumerable:!1,configurable:!0}),o.prototype.enable=function(){var t,o=this;this.isEnabled=!0;var e=this.j.o.iframe?"body":".jodit-wysiwyg",n=(t=this.j.o.showBlocks).tagList,s=t.color;this.style.innerHTML=n.map((function(t){return"".concat(e," ").concat(t,"{\n\t\t\t\t\toutline: 1px dashed ").concat(s,';\n\t\t\t\t\tbackground-image: url("').concat((n='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+s+';font: 10px sans-serif" x="50px" y="0">'+t+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(n))),'");\n\t\t\t\t\tbackground-position: top 2px ').concat("rtl"===o.j.o.direction?"left":"right"," 4px;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tposition: relative;\n\t\t\t\t}");var n})).join("")},o.prototype.disable=function(){this.isEnabled=!1,this.style.innerHTML=""},o.prototype.toggle=function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")},o.prototype.afterInit=function(t){var o=this;t.e.on("showBlocksEnabled",(function(){return o.isEnabled})),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()},o.prototype.beforeDestruct=function(t){this.disable(),r.i.safeRemove(this.style)},o.requires=["license"],(0,n.gn)([u.cache],o.prototype,"style",null),(0,n.gn)([u.autobind],o.prototype,"enable",null),(0,n.gn)([u.autobind],o.prototype,"disable",null),(0,n.gn)([u.autobind],o.prototype,"toggle",null),o}(s.S);l.y.plugins.add("show-blocks",h)}},function(t){return t(t.s=87998)}])}));
10
+ !function(t,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var e=o();for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[876],{23530:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},56766:function(t,o,e){"use strict";var n=e(77628);n.D.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},n.D.prototype.controls.showBlocks={isActive:function(t){return Boolean(t.e.fire("showBlocksEnabled"))},tooltip:"Show Blocks",command:"toggleShowBlocks"}},33548:function(t){"use strict";t.exports={"Show Blocks":"تظهر كتل"}},6974:function(t){"use strict";t.exports={"Show Blocks":"Ukázat Bloky"}},24274:function(t){"use strict";t.exports={"Show Blocks":"Zeigen Blöcke"}},82725:function(t){"use strict";t.exports={"Show Blocks":"Mostrar Bloques"}},25702:function(t){"use strict";t.exports={"Show Blocks":"نشان می دهد بلوک"}},10342:function(t){"use strict";t.exports={"Show Blocks":"Afficher Les Blocs"}},98455:function(t){"use strict";t.exports={"Show Blocks":"תראה רחובות"}},6561:function(t){"use strict";t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},44642:function(t){"use strict";t.exports={"Show Blocks":"Menunjukkan Blok"}},60841:function(t,o,e){"use strict";e.r(o),e.d(o,{ar:function(){return n},cs_cz:function(){return s},de:function(){return r},es:function(){return i},fa:function(){return c},fr:function(){return u},he:function(){return l},hu:function(){return a},id:function(){return f},it:function(){return p},ja:function(){return h},ko:function(){return d},nl:function(){return k},pl:function(){return b},pt_br:function(){return g},ru:function(){return w},tr:function(){return B},zh_cn:function(){return x},zh_tw:function(){return m}});var n=e(33548),s=e(6974),r=e(24274),i=e(82725),c=e(25702),u=e(10342),l=e(98455),a=e(6561),f=e(44642),p=e(81483),h=e(51860),d=e(90069),k=e(52044),b=e(87205),g=e(821),w=e(76539),B=e(93793),x=e(40742),m=e(70142)},81483:function(t){"use strict";t.exports={"Show Blocks":"Visualizza Blocchi"}},51860:function(t){"use strict";t.exports={"Show Blocks":"ショーのブロック"}},90069:function(t){"use strict";t.exports={"Show Blocks":"쇼 블록"}},52044:function(t){"use strict";t.exports={"Show Blocks":"Toon Blokken"}},87205:function(t){"use strict";t.exports={"Show Blocks":"Pokaż Bloki"}},821:function(t){"use strict";t.exports={"Show Blocks":"Mostrar Blocos"}},76539:function(t){"use strict";t.exports={"Show Blocks":"Показать Блоки"}},93793:function(t){"use strict";t.exports={"Show Blocks":"Haritayı Blokları"}},40742:function(t){"use strict";t.exports={"Show Blocks":"显示块"}},70142:function(t){"use strict";t.exports={"Show Blocks":"แสดงช่วงตึก"}},87998:function(t,o,e){"use strict";e.r(o),e.d(o,{showBlocks:function(){return h}});var n=e(97582),s=(e(56766),e(7324)),r=e(44913),i=e(10503),c=e(81160),u=e(50526),l=e(53852),a=e(60841),f=e(23530),p=e.n(f),h=function(t){function o(o){var e=t.call(this,o)||this;return e.buttons=[{name:"showBlocks",group:"state"}],e.isEnabled=!1,(0,c.xl)(a),i.J.set("showBlocks",p()),e}return(0,n.ZT)(o,t),Object.defineProperty(o.prototype,"style",{get:function(){return(0,c.ZO)(this.jodit,o,"style",!0)},enumerable:!1,configurable:!0}),o.prototype.enable=function(){var t=this;this.isEnabled=!0;var o=this.j.o.iframe?"body":".jodit-wysiwyg",e=this.j.o.showBlocks,n=e.color;this.style.innerHTML=e.tagList.map((function(e){return"".concat(o," ").concat(e,"{\n\t\t\t\t\toutline: 1px dashed ").concat(n,';\n\t\t\t\t\tbackground-image: url("').concat((s='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+n+';font: 10px sans-serif" x="50px" y="0">'+e+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(s))),'");\n\t\t\t\t\tbackground-position: top 2px ').concat("rtl"===t.j.o.direction?"left":"right"," 4px;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tposition: relative;\n\t\t\t\t}");var s})).join("")},o.prototype.disable=function(){this.isEnabled=!1,this.style.innerHTML=""},o.prototype.toggle=function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")},o.prototype.afterInit=function(t){var o=this;t.e.on("showBlocksEnabled",(function(){return o.isEnabled})),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()},o.prototype.beforeDestruct=function(t){this.disable(),r.i.safeRemove(this.style)},o.requires=["license"],(0,n.gn)([u.cache],o.prototype,"style",null),(0,n.gn)([u.autobind],o.prototype,"enable",null),(0,n.gn)([u.autobind],o.prototype,"disable",null),(0,n.gn)([u.autobind],o.prototype,"toggle",null),o}(s.S);l.y.plugins.add("show-blocks",h)}},function(t){return t(t.s=87998)}])}));
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -143,9 +143,8 @@ var TodoList = /** @class */ (function (_super) {
143
143
  return false;
144
144
  };
145
145
  TodoList.prototype.__prependInputLabel = function (li) {
146
- var _a;
147
146
  var jodit = this.jodit;
148
- var labelClassName = (_a = this.j.o.todoList, _a.labelClassName), inputFactory = _a.inputFactory;
147
+ var _a = this.j.o.todoList, labelClassName = _a.labelClassName, inputFactory = _a.inputFactory;
149
148
  if (li.querySelector('label.' + labelClassName)) {
150
149
  return;
151
150
  }
@@ -312,6 +311,7 @@ var TodoList = /** @class */ (function (_super) {
312
311
  ], TodoList.prototype, "isTodoLeafLabel", null);
313
312
  return TodoList;
314
313
  }(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S));
314
+
315
315
  jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_6__/* .JoditPro */ .y.plugins.add('todo-list', TodoList);
316
316
 
317
317
 
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
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(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[588],{78263:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},39991:function(t,e,o){"use strict";var i=o(77628),n=o(10503),s=o(44913),r=o(78263),a=o.n(r);i.D.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:function(t){return t.createInside.element("input",{type:"checkbox",tabindex:-1})}},i.D.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive:function(t){var e=t.s.current();return Boolean(e&&s.i.closest(e,(function(t){return s.i.isElement(t)&&s.i.isTag(t,"ul")&&t.classList.contains("todo-list")}),t.editor))}},n.J.set("todo-list",a())},45268:function(t,e,o){"use strict";o.r(e),o.d(e,{TodoList:function(){return u}});var i=o(97582),n=o(7324),s=o(50526),r=o(98478),a=o(44913),l=o(11612),p=o(60593),c=o(53852),u=(o(39991),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttons=[{name:"todoList",group:"list"}],e.__isOwnCommand=!1,e}return(0,i.ZT)(e,t),e.prototype.afterInit=function(t){t.registerCommand("todoList",this.onCommand)},e.prototype.onCommand=function(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1},e.prototype.__prependInputLabel=function(t){var e,o=this.jodit,i=(e=this.j.o.todoList).labelClassName,n=e.inputFactory;if(!t.querySelector("label."+i)){var s=o.createInside.element("label",{contenteditable:"false",class:i}),r=n(o);s.appendChild(r),a.i.prepend(t,s)}},e.prototype.__afterToggleList=function(t,e){return t!==p.Ve&&t!==p.J5||!this.__isOwnCommand?t===p.Nc||t===p.J5||t===p.Ve?this.__removeInputs(e):void 0:this.__appendInputs(e)},e.prototype.__appendInputs=function(t){t.querySelectorAll("li").forEach(this.__prependInputLabel)},e.prototype.__removeInputs=function(t){t.querySelectorAll("label."+this.j.o.todoList.labelClassName).forEach(a.i.safeRemove)},e.prototype.__beforeToggleOrderedList=function(t,e,o){var i,n="__beforeToggleOrderedList";if(t!==p.J5&&(e.classList.contains(this.j.o.todoList.className)||o.isApplied(e,n))&&("ul"===o.element||"ol"===o.element)&&(null===(i=o.options.attributes)||void 0===i?void 0:i.class)!==this.j.o.todoList.className){var s=a.i.replace(e,o.element,this.jodit.createInside);return o.setApplied(s,n),this.__removeInputs(s),s}},e.prototype.__afterEnter=function(){(0,r.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)},e.prototype.__afterTab=function(){(0,r.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(a.i.safeRemove)},e.prototype.__changeSelection=function(t){var e=this.j.s.current();this.isTodoLeafLabel(e)&&(t.preventDefault(),t.stopPropagation(),this.j.s.setCursorAfter(e))},e.prototype.__isEmptyListLeaf=function(t){var e=this;return a.i.isEmpty(t,(function(t){return("input"!==t.nodeName.toLowerCase()||!e.isTodoLeafLabel(t.parentElement))&&l.NO_EMPTY_TAGS.has(t.tagName.toLowerCase())}))},e.prototype.__backSpaceBeforeCases=function(t,e){if(t){var o=a.i.findNotEmptySibling(e,!0);this.isTodoLeafLabel(o)&&a.i.safeRemove(o)}},e.prototype.__isInvisibleForCursor=function(t){if(this.isTodoLeafLabel(t))return!0},e.prototype.__backSpaceAfterDelete=function(){var t=this;(0,r.$$)("label."+this.j.o.todoList.labelClassName,this.jodit.editor).forEach((function(e){e.closest("ul."+t.j.o.todoList.className)?e.previousSibling&&e.parentElement&&a.i.prepend(e.parentElement,e):a.i.safeRemove(e)}))},e.prototype.__afterWrapList=function(t,e){t===p.Qu&&this.__appendInputs(e)},e.prototype.__onClickInput=function(t){var e=t.target;e&&a.i.isTag(e,"input")&&"checkbox"===e.type&&this.isTodoLeafLabel(e.parentElement)&&(0,r.attr)(e,"checked",e.checked?"checked":null)},e.prototype.isTodoLeafLabel=function(t){var e=this.j.o.todoList.labelClassName;return a.i.isHTMLElement(t)&&t.classList.contains(e)},e.prototype.beforeDestruct=function(t){},e.requires=["license"],(0,i.gn)([s.autobind],e.prototype,"onCommand",null),(0,i.gn)([s.autobind],e.prototype,"__prependInputLabel",null),(0,i.gn)([(0,s.watch)(":commitStyleAfterToggleList")],e.prototype,"__afterToggleList",null),(0,i.gn)([(0,s.watch)(":commitStyleBeforeUnwrapList")],e.prototype,"__beforeToggleOrderedList",null),(0,i.gn)([(0,s.watch)(":afterEnter")],e.prototype,"__afterEnter",null),(0,i.gn)([(0,s.watch)(":afterTab")],e.prototype,"__afterTab",null),(0,i.gn)([(0,s.watch)("j.ed:selectionchange"),(0,s.watch)(":afterEnter")],e.prototype,"__changeSelection",null),(0,i.gn)([(0,s.watch)(":enterIsEmptyListLeaf")],e.prototype,"__isEmptyListLeaf",null),(0,i.gn)([(0,s.watch)(":backSpaceBeforeCases")],e.prototype,"__backSpaceBeforeCases",null),(0,i.gn)([(0,s.watch)(":backSpaceIsMovedIgnore"),(0,s.watch)(":isInvisibleForCursor")],e.prototype,"__isInvisibleForCursor",null),(0,i.gn)([(0,s.watch)(":backSpaceAfterDelete")],e.prototype,"__backSpaceAfterDelete",null),(0,i.gn)([s.autobind],e.prototype,"__afterWrapList",null),(0,i.gn)([(0,s.watch)(":click")],e.prototype,"__onClickInput",null),(0,i.gn)([s.autobind],e.prototype,"isTodoLeafLabel",null),e}(n.S));c.y.plugins.add("todo-list",u)}},function(t){return t(t.s=45268)}])}));
10
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[588],{78263:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},39991:function(t,e,o){"use strict";var i=o(77628),n=o(10503),s=o(44913),r=o(78263),a=o.n(r);i.D.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:function(t){return t.createInside.element("input",{type:"checkbox",tabindex:-1})}},i.D.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive:function(t){var e=t.s.current();return Boolean(e&&s.i.closest(e,(function(t){return s.i.isElement(t)&&s.i.isTag(t,"ul")&&t.classList.contains("todo-list")}),t.editor))}},n.J.set("todo-list",a())},45268:function(t,e,o){"use strict";o.r(e),o.d(e,{TodoList:function(){return u}});var i=o(97582),n=o(7324),s=o(50526),r=o(98478),a=o(44913),l=o(11612),p=o(60593),c=o(53852),u=(o(39991),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttons=[{name:"todoList",group:"list"}],e.__isOwnCommand=!1,e}return(0,i.ZT)(e,t),e.prototype.afterInit=function(t){t.registerCommand("todoList",this.onCommand)},e.prototype.onCommand=function(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1},e.prototype.__prependInputLabel=function(t){var e=this.jodit,o=this.j.o.todoList,i=o.labelClassName,n=o.inputFactory;if(!t.querySelector("label."+i)){var s=e.createInside.element("label",{contenteditable:"false",class:i}),r=n(e);s.appendChild(r),a.i.prepend(t,s)}},e.prototype.__afterToggleList=function(t,e){return t!==p.Ve&&t!==p.J5||!this.__isOwnCommand?t===p.Nc||t===p.J5||t===p.Ve?this.__removeInputs(e):void 0:this.__appendInputs(e)},e.prototype.__appendInputs=function(t){t.querySelectorAll("li").forEach(this.__prependInputLabel)},e.prototype.__removeInputs=function(t){t.querySelectorAll("label."+this.j.o.todoList.labelClassName).forEach(a.i.safeRemove)},e.prototype.__beforeToggleOrderedList=function(t,e,o){var i,n="__beforeToggleOrderedList";if(t!==p.J5&&(e.classList.contains(this.j.o.todoList.className)||o.isApplied(e,n))&&("ul"===o.element||"ol"===o.element)&&(null===(i=o.options.attributes)||void 0===i?void 0:i.class)!==this.j.o.todoList.className){var s=a.i.replace(e,o.element,this.jodit.createInside);return o.setApplied(s,n),this.__removeInputs(s),s}},e.prototype.__afterEnter=function(){(0,r.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)},e.prototype.__afterTab=function(){(0,r.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(a.i.safeRemove)},e.prototype.__changeSelection=function(t){var e=this.j.s.current();this.isTodoLeafLabel(e)&&(t.preventDefault(),t.stopPropagation(),this.j.s.setCursorAfter(e))},e.prototype.__isEmptyListLeaf=function(t){var e=this;return a.i.isEmpty(t,(function(t){return("input"!==t.nodeName.toLowerCase()||!e.isTodoLeafLabel(t.parentElement))&&l.NO_EMPTY_TAGS.has(t.tagName.toLowerCase())}))},e.prototype.__backSpaceBeforeCases=function(t,e){if(t){var o=a.i.findNotEmptySibling(e,!0);this.isTodoLeafLabel(o)&&a.i.safeRemove(o)}},e.prototype.__isInvisibleForCursor=function(t){if(this.isTodoLeafLabel(t))return!0},e.prototype.__backSpaceAfterDelete=function(){var t=this;(0,r.$$)("label."+this.j.o.todoList.labelClassName,this.jodit.editor).forEach((function(e){e.closest("ul."+t.j.o.todoList.className)?e.previousSibling&&e.parentElement&&a.i.prepend(e.parentElement,e):a.i.safeRemove(e)}))},e.prototype.__afterWrapList=function(t,e){t===p.Qu&&this.__appendInputs(e)},e.prototype.__onClickInput=function(t){var e=t.target;e&&a.i.isTag(e,"input")&&"checkbox"===e.type&&this.isTodoLeafLabel(e.parentElement)&&(0,r.attr)(e,"checked",e.checked?"checked":null)},e.prototype.isTodoLeafLabel=function(t){var e=this.j.o.todoList.labelClassName;return a.i.isHTMLElement(t)&&t.classList.contains(e)},e.prototype.beforeDestruct=function(t){},e.requires=["license"],(0,i.gn)([s.autobind],e.prototype,"onCommand",null),(0,i.gn)([s.autobind],e.prototype,"__prependInputLabel",null),(0,i.gn)([(0,s.watch)(":commitStyleAfterToggleList")],e.prototype,"__afterToggleList",null),(0,i.gn)([(0,s.watch)(":commitStyleBeforeUnwrapList")],e.prototype,"__beforeToggleOrderedList",null),(0,i.gn)([(0,s.watch)(":afterEnter")],e.prototype,"__afterEnter",null),(0,i.gn)([(0,s.watch)(":afterTab")],e.prototype,"__afterTab",null),(0,i.gn)([(0,s.watch)("j.ed:selectionchange"),(0,s.watch)(":afterEnter")],e.prototype,"__changeSelection",null),(0,i.gn)([(0,s.watch)(":enterIsEmptyListLeaf")],e.prototype,"__isEmptyListLeaf",null),(0,i.gn)([(0,s.watch)(":backSpaceBeforeCases")],e.prototype,"__backSpaceBeforeCases",null),(0,i.gn)([(0,s.watch)(":backSpaceIsMovedIgnore"),(0,s.watch)(":isInvisibleForCursor")],e.prototype,"__isInvisibleForCursor",null),(0,i.gn)([(0,s.watch)(":backSpaceAfterDelete")],e.prototype,"__backSpaceAfterDelete",null),(0,i.gn)([s.autobind],e.prototype,"__afterWrapList",null),(0,i.gn)([(0,s.watch)(":click")],e.prototype,"__onClickInput",null),(0,i.gn)([s.autobind],e.prototype,"isTodoLeafLabel",null),e}(n.S));c.y.plugins.add("todo-list",u)}},function(t){return t(t.s=45268)}])}));
@@ -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: v2.0.0-beta.28
4
+ * Version: v2.0.0-beta.32
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */