jodit-pro 4.18.7 → 4.18.9

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 (388) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +2 -0
  3. package/config.js +1 -0
  4. package/es2015/jodit.css +2 -2
  5. package/es2015/jodit.fat.min.css +1 -1
  6. package/es2015/jodit.fat.min.js +41 -26
  7. package/es2015/jodit.js +1117 -197
  8. package/es2015/jodit.min.css +1 -1
  9. package/es2015/jodit.min.js +11 -11
  10. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  11. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  12. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  13. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  14. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  15. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  16. package/es2015/plugins/backup/backup.css +1 -1
  17. package/es2015/plugins/backup/backup.js +1 -1
  18. package/es2015/plugins/backup/backup.min.js +1 -1
  19. package/es2015/plugins/button-generator/button-generator.css +1 -1
  20. package/es2015/plugins/button-generator/button-generator.js +1 -1
  21. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  22. package/es2015/plugins/change-case/change-case.js +1 -1
  23. package/es2015/plugins/change-case/change-case.min.js +1 -1
  24. package/es2015/plugins/chart/chart.css +3 -3
  25. package/es2015/plugins/chart/chart.js +1 -1
  26. package/es2015/plugins/chart/chart.min.css +1 -1
  27. package/es2015/plugins/chart/chart.min.js +1 -1
  28. package/es2015/plugins/color-picker/color-picker.css +1 -1
  29. package/es2015/plugins/color-picker/color-picker.js +1 -1
  30. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  31. package/es2015/plugins/emoji/emoji.css +1 -1
  32. package/es2015/plugins/emoji/emoji.js +1 -1
  33. package/es2015/plugins/emoji/emoji.min.js +1 -1
  34. package/es2015/plugins/export-docs/export-docs.js +1 -1
  35. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  36. package/es2015/plugins/finder/finder.css +1 -1
  37. package/es2015/plugins/finder/finder.js +1 -1
  38. package/es2015/plugins/finder/finder.min.js +1 -1
  39. package/es2015/plugins/google-maps/google-maps.css +1 -1
  40. package/es2015/plugins/google-maps/google-maps.js +1 -1
  41. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  42. package/es2015/plugins/google-search/google-search.js +1 -1
  43. package/es2015/plugins/google-search/google-search.min.js +1 -1
  44. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  45. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  46. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  47. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  48. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  49. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  50. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  51. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  52. package/es2015/plugins/keyboard/keyboard.css +1 -1
  53. package/es2015/plugins/keyboard/keyboard.js +1 -1
  54. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  55. package/es2015/plugins/math/math.css +196 -0
  56. package/es2015/plugins/math/math.js +1472 -0
  57. package/es2015/plugins/math/math.min.css +1 -0
  58. package/es2015/plugins/math/math.min.js +23 -0
  59. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  60. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  61. package/es2015/plugins/page-break/page-break.js +1 -1
  62. package/es2015/plugins/page-break/page-break.min.js +1 -1
  63. package/es2015/plugins/paste-code/paste-code.css +1 -1
  64. package/es2015/plugins/paste-code/paste-code.js +1 -1
  65. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  66. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  67. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  68. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  69. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  70. package/es2015/plugins/style/style.css +1 -1
  71. package/es2015/plugins/style/style.js +1 -1
  72. package/es2015/plugins/style/style.min.js +1 -1
  73. package/es2015/plugins/templates/templates.css +1 -1
  74. package/es2015/plugins/templates/templates.js +1 -1
  75. package/es2015/plugins/templates/templates.min.js +1 -1
  76. package/es2015/plugins/todo-list/todo-list.css +1 -1
  77. package/es2015/plugins/todo-list/todo-list.js +1 -1
  78. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  79. package/es2015/plugins/translate/translate.css +1 -1
  80. package/es2015/plugins/translate/translate.js +1 -1
  81. package/es2015/plugins/translate/translate.min.js +1 -1
  82. package/es2015/plugins/tune-block/tune-block.css +1 -1
  83. package/es2015/plugins/tune-block/tune-block.js +1 -1
  84. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  85. package/es2018/jodit.fat.min.css +1 -1
  86. package/es2018/jodit.fat.min.js +57 -42
  87. package/es2018/jodit.min.css +1 -1
  88. package/es2018/jodit.min.js +21 -21
  89. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  90. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  91. package/es2018/plugins/backup/backup.min.js +1 -1
  92. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  93. package/es2018/plugins/change-case/change-case.min.js +1 -1
  94. package/es2018/plugins/chart/chart.min.css +1 -1
  95. package/es2018/plugins/chart/chart.min.js +1 -1
  96. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  97. package/es2018/plugins/emoji/emoji.min.js +1 -1
  98. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  99. package/es2018/plugins/finder/finder.min.js +1 -1
  100. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  101. package/es2018/plugins/google-search/google-search.min.js +1 -1
  102. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  103. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  104. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  105. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  106. package/es2018/plugins/math/math.min.css +1 -0
  107. package/es2018/plugins/math/math.min.js +23 -0
  108. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  109. package/es2018/plugins/page-break/page-break.min.js +1 -1
  110. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  111. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  112. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  113. package/es2018/plugins/style/style.min.js +1 -1
  114. package/es2018/plugins/templates/templates.min.js +1 -1
  115. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  116. package/es2018/plugins/translate/translate.min.js +1 -1
  117. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  118. package/es2021/jodit.css +2 -2
  119. package/es2021/jodit.fat.min.css +1 -1
  120. package/es2021/jodit.fat.min.js +69 -54
  121. package/es2021/jodit.js +1092 -197
  122. package/es2021/jodit.min.css +1 -1
  123. package/es2021/jodit.min.js +14 -14
  124. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  125. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  126. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  127. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  128. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  129. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  130. package/es2021/plugins/backup/backup.css +1 -1
  131. package/es2021/plugins/backup/backup.js +1 -1
  132. package/es2021/plugins/backup/backup.min.js +1 -1
  133. package/es2021/plugins/button-generator/button-generator.css +1 -1
  134. package/es2021/plugins/button-generator/button-generator.js +1 -1
  135. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  136. package/es2021/plugins/change-case/change-case.js +1 -1
  137. package/es2021/plugins/change-case/change-case.min.js +1 -1
  138. package/es2021/plugins/chart/chart.css +3 -3
  139. package/es2021/plugins/chart/chart.js +1 -1
  140. package/es2021/plugins/chart/chart.min.css +1 -1
  141. package/es2021/plugins/chart/chart.min.js +1 -1
  142. package/es2021/plugins/color-picker/color-picker.css +1 -1
  143. package/es2021/plugins/color-picker/color-picker.js +1 -1
  144. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  145. package/es2021/plugins/emoji/emoji.css +1 -1
  146. package/es2021/plugins/emoji/emoji.js +1 -1
  147. package/es2021/plugins/emoji/emoji.min.js +1 -1
  148. package/es2021/plugins/export-docs/export-docs.js +1 -1
  149. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  150. package/es2021/plugins/finder/finder.css +1 -1
  151. package/es2021/plugins/finder/finder.js +1 -1
  152. package/es2021/plugins/finder/finder.min.js +1 -1
  153. package/es2021/plugins/google-maps/google-maps.css +1 -1
  154. package/es2021/plugins/google-maps/google-maps.js +1 -1
  155. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  156. package/es2021/plugins/google-search/google-search.js +1 -1
  157. package/es2021/plugins/google-search/google-search.min.js +1 -1
  158. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  159. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  160. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  161. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  162. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  163. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  164. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  165. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  166. package/es2021/plugins/keyboard/keyboard.css +1 -1
  167. package/es2021/plugins/keyboard/keyboard.js +1 -1
  168. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  169. package/es2021/plugins/math/math.css +196 -0
  170. package/es2021/plugins/math/math.js +1414 -0
  171. package/es2021/plugins/math/math.min.css +1 -0
  172. package/es2021/plugins/math/math.min.js +23 -0
  173. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  174. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  175. package/es2021/plugins/page-break/page-break.js +1 -1
  176. package/es2021/plugins/page-break/page-break.min.js +1 -1
  177. package/es2021/plugins/paste-code/paste-code.css +1 -1
  178. package/es2021/plugins/paste-code/paste-code.js +1 -1
  179. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  180. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  181. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  182. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  183. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  184. package/es2021/plugins/style/style.css +1 -1
  185. package/es2021/plugins/style/style.js +1 -1
  186. package/es2021/plugins/style/style.min.js +1 -1
  187. package/es2021/plugins/templates/templates.css +1 -1
  188. package/es2021/plugins/templates/templates.js +1 -1
  189. package/es2021/plugins/templates/templates.min.js +1 -1
  190. package/es2021/plugins/todo-list/todo-list.css +1 -1
  191. package/es2021/plugins/todo-list/todo-list.js +1 -1
  192. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  193. package/es2021/plugins/translate/translate.css +1 -1
  194. package/es2021/plugins/translate/translate.js +1 -1
  195. package/es2021/plugins/translate/translate.min.js +1 -1
  196. package/es2021/plugins/tune-block/tune-block.css +1 -1
  197. package/es2021/plugins/tune-block/tune-block.js +1 -1
  198. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  199. package/es2021.en/jodit.css +2 -2
  200. package/es2021.en/jodit.fat.min.css +1 -1
  201. package/es2021.en/jodit.fat.min.js +69 -54
  202. package/es2021.en/jodit.js +1092 -197
  203. package/es2021.en/jodit.min.css +1 -1
  204. package/es2021.en/jodit.min.js +30 -30
  205. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  206. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  207. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  208. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  209. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  210. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  211. package/es2021.en/plugins/backup/backup.css +1 -1
  212. package/es2021.en/plugins/backup/backup.js +1 -1
  213. package/es2021.en/plugins/backup/backup.min.js +1 -1
  214. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  215. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  216. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  217. package/es2021.en/plugins/change-case/change-case.js +1 -1
  218. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  219. package/es2021.en/plugins/chart/chart.css +3 -3
  220. package/es2021.en/plugins/chart/chart.js +1 -1
  221. package/es2021.en/plugins/chart/chart.min.css +1 -1
  222. package/es2021.en/plugins/chart/chart.min.js +1 -1
  223. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  224. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  225. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  226. package/es2021.en/plugins/emoji/emoji.css +1 -1
  227. package/es2021.en/plugins/emoji/emoji.js +1 -1
  228. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  229. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  230. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  231. package/es2021.en/plugins/finder/finder.css +1 -1
  232. package/es2021.en/plugins/finder/finder.js +1 -1
  233. package/es2021.en/plugins/finder/finder.min.js +1 -1
  234. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  235. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  236. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  237. package/es2021.en/plugins/google-search/google-search.js +1 -1
  238. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  239. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  240. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  241. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  242. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  243. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  244. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  245. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  246. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  247. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  248. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  249. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  250. package/es2021.en/plugins/math/math.css +196 -0
  251. package/es2021.en/plugins/math/math.js +1414 -0
  252. package/es2021.en/plugins/math/math.min.css +1 -0
  253. package/es2021.en/plugins/math/math.min.js +23 -0
  254. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  255. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  256. package/es2021.en/plugins/page-break/page-break.js +1 -1
  257. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  258. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  259. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  260. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  261. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  262. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  263. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  264. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  265. package/es2021.en/plugins/style/style.css +1 -1
  266. package/es2021.en/plugins/style/style.js +1 -1
  267. package/es2021.en/plugins/style/style.min.js +1 -1
  268. package/es2021.en/plugins/templates/templates.css +1 -1
  269. package/es2021.en/plugins/templates/templates.js +1 -1
  270. package/es2021.en/plugins/templates/templates.min.js +1 -1
  271. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  272. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  273. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  274. package/es2021.en/plugins/translate/translate.css +1 -1
  275. package/es2021.en/plugins/translate/translate.js +1 -1
  276. package/es2021.en/plugins/translate/translate.min.js +1 -1
  277. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  278. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  279. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  280. package/es5/jodit.css +3 -3
  281. package/es5/jodit.fat.min.css +1 -1
  282. package/es5/jodit.fat.min.js +2 -2
  283. package/es5/jodit.js +1254 -207
  284. package/es5/jodit.min.css +3 -3
  285. package/es5/jodit.min.js +2 -2
  286. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  287. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  288. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  289. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  290. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  291. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  292. package/es5/plugins/backup/backup.css +1 -1
  293. package/es5/plugins/backup/backup.js +1 -1
  294. package/es5/plugins/backup/backup.min.js +1 -1
  295. package/es5/plugins/button-generator/button-generator.css +1 -1
  296. package/es5/plugins/button-generator/button-generator.js +1 -1
  297. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  298. package/es5/plugins/change-case/change-case.js +1 -1
  299. package/es5/plugins/change-case/change-case.min.js +1 -1
  300. package/es5/plugins/chart/chart.css +3 -3
  301. package/es5/plugins/chart/chart.js +1 -1
  302. package/es5/plugins/chart/chart.min.css +1 -1
  303. package/es5/plugins/chart/chart.min.js +1 -1
  304. package/es5/plugins/color-picker/color-picker.css +1 -1
  305. package/es5/plugins/color-picker/color-picker.js +1 -1
  306. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  307. package/es5/plugins/emoji/emoji.css +1 -1
  308. package/es5/plugins/emoji/emoji.js +1 -1
  309. package/es5/plugins/emoji/emoji.min.js +1 -1
  310. package/es5/plugins/export-docs/export-docs.js +1 -1
  311. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  312. package/es5/plugins/finder/finder.css +1 -1
  313. package/es5/plugins/finder/finder.js +1 -1
  314. package/es5/plugins/finder/finder.min.js +1 -1
  315. package/es5/plugins/google-maps/google-maps.css +1 -1
  316. package/es5/plugins/google-maps/google-maps.js +1 -1
  317. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  318. package/es5/plugins/google-search/google-search.js +1 -1
  319. package/es5/plugins/google-search/google-search.min.js +1 -1
  320. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  321. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  322. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  323. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  324. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  325. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  326. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  327. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  328. package/es5/plugins/keyboard/keyboard.css +1 -1
  329. package/es5/plugins/keyboard/keyboard.js +1 -1
  330. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  331. package/es5/plugins/math/math.css +196 -0
  332. package/es5/plugins/math/math.js +1624 -0
  333. package/es5/plugins/math/math.min.css +1 -0
  334. package/es5/plugins/math/math.min.js +8 -0
  335. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  336. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  337. package/es5/plugins/page-break/page-break.js +1 -1
  338. package/es5/plugins/page-break/page-break.min.js +1 -1
  339. package/es5/plugins/paste-code/paste-code.css +1 -1
  340. package/es5/plugins/paste-code/paste-code.js +1 -1
  341. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  342. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  343. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  344. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  345. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  346. package/es5/plugins/style/style.css +1 -1
  347. package/es5/plugins/style/style.js +1 -1
  348. package/es5/plugins/style/style.min.js +1 -1
  349. package/es5/plugins/templates/templates.css +1 -1
  350. package/es5/plugins/templates/templates.js +1 -1
  351. package/es5/plugins/templates/templates.min.js +1 -1
  352. package/es5/plugins/todo-list/todo-list.css +1 -1
  353. package/es5/plugins/todo-list/todo-list.js +1 -1
  354. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  355. package/es5/plugins/translate/translate.css +1 -1
  356. package/es5/plugins/translate/translate.js +1 -1
  357. package/es5/plugins/translate/translate.min.js +1 -1
  358. package/es5/plugins/tune-block/tune-block.css +1 -1
  359. package/es5/plugins/tune-block/tune-block.js +1 -1
  360. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  361. package/es5/polyfills.fat.min.js +1 -1
  362. package/es5/polyfills.js +1 -1
  363. package/es5/polyfills.min.js +1 -1
  364. package/esm/config.d.ts +30 -0
  365. package/esm/plugins/all.js +1 -1
  366. package/esm/plugins/math/assets/math-block.svg.js +1 -0
  367. package/esm/plugins/math/assets/math-inline.svg.js +1 -0
  368. package/esm/plugins/math/assets/math.svg.js +1 -0
  369. package/esm/plugins/math/config.d.ts +34 -0
  370. package/esm/plugins/math/config.js +1 -0
  371. package/esm/plugins/math/helpers.d.ts +33 -0
  372. package/esm/plugins/math/helpers.js +1 -0
  373. package/esm/plugins/math/interface.d.ts +45 -0
  374. package/esm/plugins/math/interface.js +0 -0
  375. package/esm/plugins/math/math.d.ts +66 -0
  376. package/esm/plugins/math/math.js +1 -0
  377. package/esm/plugins/math/mathjax.d.ts +17 -0
  378. package/esm/plugins/math/mathjax.js +1 -0
  379. package/esm/plugins/math/ui/editor/editor.d.ts +56 -0
  380. package/esm/plugins/math/ui/editor/editor.js +16 -0
  381. package/package.json +1 -1
  382. package/types/config.d.ts +30 -0
  383. package/types/plugins/math/config.d.ts +34 -0
  384. package/types/plugins/math/helpers.d.ts +33 -0
  385. package/types/plugins/math/interface.d.ts +45 -0
  386. package/types/plugins/math/math.d.ts +66 -0
  387. package/types/plugins/math/mathjax.d.ts +17 -0
  388. package/types/plugins/math/ui/editor/editor.d.ts +56 -0
@@ -0,0 +1 @@
1
+ .jodit-ui-math-editor{display:flex;flex-direction:column;gap:var(--jd-padding-default);padding:var(--jd-padding-default)}.jodit-ui-math-editor__head{align-items:center;display:flex;gap:var(--jd-padding-default);justify-content:space-between}.jodit-ui-math-editor__templates{min-width:200px}.jodit-ui-math-editor__templates .jodit-ui-input{margin-bottom:0}.jodit-ui-math-editor__tabs{align-self:flex-start;border:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default);display:inline-flex;gap:2px;padding:2px}.jodit-ui-math-editor__tabs .jodit-ui-button{margin:0;min-width:90px}.jodit-ui-math-editor__symbols{display:flex;flex-wrap:wrap;gap:calc(var(--jd-padding-default)/2)}.jodit-ui-math-editor__symbols .jodit-ui-math-editor__symbol{border:1px solid var(--jd-color-border);font-size:16px;height:36px;margin:0;min-width:40px;padding:0 8px}.jodit-ui-math-editor__source .jodit-ui-input{margin-bottom:0}.jodit-ui-math-editor__source textarea{font-family:monospace;min-height:96px}.jodit-ui-math-editor__preview-title{color:var(--jd-color-label);font-size:var(--jd-font-size-small);text-transform:uppercase}.jodit-ui-math-editor__preview{align-items:center;background:var(--jd-color-background-light-gray);border:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default);display:flex;font-size:20px;justify-content:center;min-height:120px;overflow-x:auto;padding:var(--jd-padding-default) var(--jd-padding-default) var(--jd-padding-default) 140px;position:relative}.jodit-ui-math-editor__canvas{flex:1;min-width:0;text-align:center}.jodit-ui-math-editor__canvas svg{max-width:100%}.jodit-ui-math-editor__appearance{align-items:flex-start;display:flex;flex-direction:column;gap:calc(var(--jd-padding-default)/2);left:calc(var(--jd-padding-default)/2);position:absolute;top:calc(var(--jd-padding-default)/2)}.jodit-ui-math-editor__color-field{align-items:center;cursor:pointer;display:inline-flex;gap:calc(var(--jd-padding-default)/2)}.jodit-ui-math-editor__color-label{color:var(--jd-color-label);font-size:var(--jd-font-size-small);line-height:1}.jodit-ui-math-editor__color-input{background:transparent;border:0;border-radius:50%;cursor:pointer;height:22px;padding:0;width:22px}.jodit-ui-math-editor__color-input::-webkit-color-swatch-wrapper{padding:0}.jodit-ui-math-editor__color-input::-webkit-color-swatch{border:1px solid var(--jd-color-border);border-radius:50%}.jodit-ui-math-editor__color-input::-moz-color-swatch{border:1px solid var(--jd-color-border);border-radius:50%}.jodit-ui-math-editor__color-input_empty_true{background:conic-gradient(var(--jd-color-border) 25%,var(--jd-color-white) 0 50%,var(--jd-color-border) 0 75%,var(--jd-color-white) 0) 0 0 /8px 8px}.jodit-ui-math-editor__color-input_empty_true::-webkit-color-swatch{opacity:0}.jodit-ui-math-editor__color-input_empty_true::-moz-color-swatch{opacity:0}.jodit-ui-math-editor__color-reset{background:transparent;border:0;border-radius:50%;color:var(--jd-color-label);cursor:pointer;font-size:14px;height:18px;line-height:18px;padding:0;width:18px}.jodit-ui-math-editor__color-reset:hover{background:var(--jd-color-background-gray)}.jodit-ui-math-editor__align{border:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default);display:inline-flex;gap:2px;padding:2px}.jodit-ui-math-editor__align .jodit-ui-button{height:26px;margin:0;min-width:0;width:28px}.jodit-ui-math-editor__align [name=wrap]{font-size:var(--jd-font-size-small);padding:0 8px;width:auto}.jodit-ui-math-editor__placeholder{color:var(--jd-color-placeholder);font-size:var(--jd-font-size-default)}.jodit-ui-math-editor__error{color:var(--jd-color-error);font-size:var(--jd-font-size-small);min-height:1em}.jodit-wysiwyg .jodit-math{cursor:pointer}.jodit-wysiwyg .jodit-math svg{max-width:100%}.jodit-wysiwyg .jodit-math_block{display:block}.jodit-math-list-item{align-items:center;display:inline-flex;gap:calc(var(--jd-padding-default)/2)}.jodit-math-list-item svg{fill:currentcolor;height:var(--jd-icon-middle-size);width:var(--jd-icon-middle-size)}
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * jodit-pro - PRO Version of Jodit Editor
3
+ * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
+ * Version: v4.18.9
5
+ * Url: https://xdsoft.net/jodit/pro/
6
+ * License(s): SEE LICENSE IN LICENSE.md
7
+ */
8
+ !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 a in o)("object"==typeof exports?exports:t)[a]=o[a]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[680],{49417:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 4h18M3 20h18M7 9.5l5 5M12 9.5l-5 5M15 10.5h4M15 13.5h4"/> </g> </svg>'},92201:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 12h4M17 12h4M9 9.5l4 5M13 9.5l-4 5"/> </g> </svg>'},25733:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M4 8l6 8M10 8l-6 8M14 9.5h6M14 14.5h6"/> </g> </svg>'},65664:function(t,e,o){"use strict";var a=o(94899),n=o(25733),i=o.n(n),r=o(49417),m=o.n(r),l=o(92201),s=o.n(l),u=o(6441),c=o(12153);u.Config.prototype.math={className:"jodit-math",mathJaxUrl:"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js",defaultFormat:"latex",defaultDisplay:"block",defaultBackground:"",defaultTextColor:"",defaultBorderColor:"",defaultAlign:"center",defaultWrap:!1,allowChangeBackground:!0,allowChangeTextColor:!0,allowChangeBorderColor:!0,allowChangeAlign:!0,allowChangeWrap:!0,symbols:[{label:"\xbd",latex:"\\frac{1}{2}",mathml:"<mfrac><mn>1</mn><mn>2</mn></mfrac>"},{label:"√",latex:"\\sqrt{x}",mathml:"<msqrt><mi>x</mi></msqrt>"},{label:"ⁿ√",latex:"\\sqrt[n]{x}",mathml:"<mroot><mi>x</mi><mi>n</mi></mroot>"},{label:"x\xb2",latex:"x^{2}",mathml:"<msup><mi>x</mi><mn>2</mn></msup>"},{label:"xₙ",latex:"x_{n}",mathml:"<msub><mi>x</mi><mi>n</mi></msub>"},{label:"x̄",latex:"\\bar{x}",mathml:"<mover><mi>x</mi><mo>\xaf</mo></mover>"},{label:"vec",latex:"\\vec{x}",mathml:"<mover><mi>x</mi><mo>→</mo></mover>"},{label:"ẋ",latex:"\\dot{x}",mathml:"<mover><mi>x</mi><mo>˙</mo></mover>"},{label:"|x|",latex:"\\left| x \\right|",mathml:"<mrow><mo>|</mo><mi>x</mi><mo>|</mo></mrow>"},{label:"( )",latex:"\\left( x \\right)",mathml:"<mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow>"},{label:"Σ",latex:"\\sum_{i=1}^{n}",mathml:"<munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>n</mi></munderover>"},{label:"∏",latex:"\\prod_{i=1}^{n}",mathml:"<munderover><mo>∏</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>n</mi></munderover>"},{label:"∫",latex:"\\int_{a}^{b}",mathml:"<msubsup><mo>∫</mo><mi>a</mi><mi>b</mi></msubsup>"},{label:"∮",latex:"\\oint",mathml:"<mo>∮</mo>"},{label:"lim",latex:"\\lim_{x \\to \\infty}",mathml:"<munder><mo>lim</mo><mrow><mi>x</mi><mo>→</mo><mi>∞</mi></mrow></munder>"},{label:"∂",latex:"\\partial",mathml:"<mo>∂</mo>"},{label:"∇",latex:"\\nabla",mathml:"<mo>∇</mo>"},{label:"∞",latex:"\\infty",mathml:"<mi>∞</mi>"},{label:"\xb1",latex:"\\pm",mathml:"<mo>\xb1</mo>"},{label:"\xd7",latex:"\\times",mathml:"<mo>\xd7</mo>"},{label:"\xb7",latex:"\\cdot",mathml:"<mo>\xb7</mo>"},{label:"\xf7",latex:"\\div",mathml:"<mo>\xf7</mo>"},{label:"≠",latex:"\\neq",mathml:"<mo>≠</mo>"},{label:"≤",latex:"\\leq",mathml:"<mo>≤</mo>"},{label:"≥",latex:"\\geq",mathml:"<mo>≥</mo>"},{label:"≈",latex:"\\approx",mathml:"<mo>≈</mo>"},{label:"≡",latex:"\\equiv",mathml:"<mo>≡</mo>"},{label:"∝",latex:"\\propto",mathml:"<mo>∝</mo>"},{label:"→",latex:"\\to",mathml:"<mo>→</mo>"},{label:"⇒",latex:"\\Rightarrow",mathml:"<mo>⇒</mo>"},{label:"\xb0",latex:"^{\\circ}",mathml:"<mo>\xb0</mo>"},{label:"∈",latex:"\\in",mathml:"<mo>∈</mo>"},{label:"∉",latex:"\\notin",mathml:"<mo>∉</mo>"},{label:"⊂",latex:"\\subset",mathml:"<mo>⊂</mo>"},{label:"∪",latex:"\\cup",mathml:"<mo>∪</mo>"},{label:"∩",latex:"\\cap",mathml:"<mo>∩</mo>"},{label:"∀",latex:"\\forall",mathml:"<mo>∀</mo>"},{label:"∃",latex:"\\exists",mathml:"<mo>∃</mo>"},{label:"∅",latex:"\\emptyset",mathml:"<mi>∅</mi>"},{label:"π",latex:"\\pi",mathml:"<mi>π</mi>"},{label:"θ",latex:"\\theta",mathml:"<mi>θ</mi>"},{label:"α",latex:"\\alpha",mathml:"<mi>α</mi>"},{label:"β",latex:"\\beta",mathml:"<mi>β</mi>"},{label:"γ",latex:"\\gamma",mathml:"<mi>γ</mi>"},{label:"λ",latex:"\\lambda",mathml:"<mi>λ</mi>"},{label:"μ",latex:"\\mu",mathml:"<mi>μ</mi>"},{label:"σ",latex:"\\sigma",mathml:"<mi>σ</mi>"},{label:"φ",latex:"\\varphi",mathml:"<mi>φ</mi>"},{label:"ω",latex:"\\omega",mathml:"<mi>ω</mi>"},{label:"Δ",latex:"\\Delta",mathml:"<mi>Δ</mi>"},{label:"Ω",latex:"\\Omega",mathml:"<mi>Ω</mi>"},{label:"ħ",latex:"\\hbar",mathml:"<mi>ℏ</mi>"},{label:"[ ]",latex:"\\begin{bmatrix} a & b \\\\ c & d \\end{bmatrix}",mathml:"<mrow><mo>[</mo><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable><mo>]</mo></mrow>"}],templates:[{title:"Quadratic formula",latex:"x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}",mathml:"<mi>x</mi><mo>=</mo><mfrac><mrow><mo>−</mo><mi>b</mi><mo>\xb1</mo><msqrt><msup><mi>b</mi><mn>2</mn></msup><mo>−</mo><mn>4</mn><mi>a</mi><mi>c</mi></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac>"},{title:"Pythagorean theorem",latex:"a^2 + b^2 = c^2",mathml:"<msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><msup><mi>b</mi><mn>2</mn></msup><mo>=</mo><msup><mi>c</mi><mn>2</mn></msup>"},{title:"Euler's identity",latex:"e^{i\\pi} + 1 = 0",mathml:"<msup><mi>e</mi><mrow><mi>i</mi><mi>π</mi></mrow></msup><mo>+</mo><mn>1</mn><mo>=</mo><mn>0</mn>"},{title:"Mass–energy equivalence",latex:"E = mc^2",mathml:"<mi>E</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup>"},{title:"Derivative",latex:"f'(x) = \\lim_{h \\to 0} \\frac{f(x+h) - f(x)}{h}",mathml:"<msup><mi>f</mi><mo>′</mo></msup><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo><munder><mo>lim</mo><mrow><mi>h</mi><mo>→</mo><mn>0</mn></mrow></munder><mfrac><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>+</mo><mi>h</mi><mo>)</mo><mo>−</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mi>h</mi></mfrac>"},{title:"Gaussian integral",latex:"\\int_{-\\infty}^{\\infty} e^{-x^2}\\,dx = \\sqrt{\\pi}",mathml:"<msubsup><mo>∫</mo><mrow><mo>−</mo><mi>∞</mi></mrow><mi>∞</mi></msubsup><msup><mi>e</mi><mrow><mo>−</mo><msup><mi>x</mi><mn>2</mn></msup></mrow></msup><mi>d</mi><mi>x</mi><mo>=</mo><msqrt><mi>π</mi></msqrt>"},{title:"Sum of the first n integers",latex:"\\sum_{k=1}^{n} k = \\frac{n(n+1)}{2}",mathml:"<munderover><mo>∑</mo><mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow><mi>n</mi></munderover><mi>k</mi><mo>=</mo><mfrac><mrow><mi>n</mi><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow><mn>2</mn></mfrac>"},{title:"Binomial theorem",latex:"(a+b)^n = \\sum_{k=0}^{n} \\binom{n}{k} a^{n-k} b^{k}",mathml:'<msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><mi>n</mi></msup><mo>=</mo><munderover><mo>∑</mo><mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow><mi>n</mi></munderover><mrow><mo>(</mo><mfrac linethickness="0"><mi>n</mi><mi>k</mi></mfrac><mo>)</mo></mrow><msup><mi>a</mi><mrow><mi>n</mi><mo>−</mo><mi>k</mi></mrow></msup><msup><mi>b</mi><mi>k</mi></msup>'},{title:"Normal distribution",latex:"f(x) = \\frac{1}{\\sigma\\sqrt{2\\pi}} e^{-\\frac{(x-\\mu)^2}{2\\sigma^2}}",mathml:"<mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo><mfrac><mn>1</mn><mrow><mi>σ</mi><msqrt><mn>2</mn><mi>π</mi></msqrt></mrow></mfrac><msup><mi>e</mi><mrow><mo>−</mo><mfrac><msup><mrow><mo>(</mo><mi>x</mi><mo>−</mo><mi>μ</mi><mo>)</mo></mrow><mn>2</mn></msup><mrow><mn>2</mn><msup><mi>σ</mi><mn>2</mn></msup></mrow></mfrac></mrow></msup>"},{title:"Matrix 2\xd72",latex:"\\begin{pmatrix} a & b \\\\ c & d \\end{pmatrix}",mathml:"<mrow><mo>(</mo><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable><mo>)</mo></mrow>"}],popup:["mathEdit","mathRemove"],dialog:{width:620,height:700}},u.Config.prototype.controls.math={tooltip:"Insert equation",icon:"math",list:{block:"Block equation",inline:"Inline equation"},childTemplate:function(t,e,o){return'<span class="jodit-math-list-item">'.concat(c.Icon.get("block"===e?"math-block":"math-inline"),"<span>").concat(t.i18n(o),"</span></span>")},isActive:function(t){return!!t.e.fire("isMathEditorOpened")},exec:function(t){t.e.fire("openMathEditor")},childExec:function(t,e,o){var a,n=String((null==(a=o.control.args)?void 0:a[0])||"block");t.e.fire("openMathEditor",null,n)}},u.Config.prototype.controls.mathEdit={tooltip:"Edit equation",icon:"pencil",exec:function(t,e){t.e.fire("openMathEditor",e)}},u.Config.prototype.controls.mathRemove={tooltip:"Delete equation",icon:"bin",exec:function(t,e){t.e.fire("removeMath",e)}},u.Config.prototype.allowResizeTags=new Set((0,a._)(u.Config.prototype.allowResizeTags).concat(["figure"])),c.Icon.set("math",i()).set("math-block",m()).set("math-inline",s())},84853:function(t,e,o){"use strict";o.d(e,{FORMAT_TITLES:function(){return m},MATH_ATTR:function(){return r},applyMathData:function(){return v},createMath:function(){return _},decorateMath:function(){return f},defaultMathData:function(){return s},findMath:function(){return d},isMathDisplay:function(){return l},isMathElement:function(){return h},mathStyle:function(){return u},mathTag:function(){return x},pixels:function(){return g},readMathData:function(){return p},wrapMathML:function(){return c}});var a=o(2748),n=o(70799),i=o(29960),r="data-jodit-math",m={latex:"LaTeX",mathml:"MathML"};function l(t){return"block"===t||"inline"===t}function s(t,e){var o=t.o.math;return{format:o.defaultFormat,display:null!=e?e:o.defaultDisplay,source:"",background:o.defaultBackground,textColor:o.defaultTextColor,borderColor:o.defaultBorderColor,align:o.defaultAlign,wrap:o.defaultWrap}}function u(t){var e=[],o=!!(t.background||t.borderColor);if("block"===t.display){var a=t.align||"center";e.push("display: block",t.width?"width: ".concat(t.width,"px"):"width: fit-content","max-width: 100%","text-align: center"),"center"!==a&&t.wrap?e.push("float: ".concat(a),"left"===a?"margin: 0.5em 1.5em 0.5em 0":"margin: 0.5em 0 0.5em 1.5em"):e.push("margin: ".concat({left:"1em auto 1em 0",center:"1em auto",right:"1em 0 1em auto"}[a]))}else o&&e.push("display: inline-block");return t.background&&e.push("background: ".concat(t.background)),t.textColor&&e.push("color: ".concat(t.textColor)),t.borderColor&&e.push("border: 1px solid ".concat(t.borderColor)),o&&e.push("block"===t.display?"padding: 12px 16px":"padding: 2px 6px","border-radius: 6px"),e.join("; ")}function c(t,e){var o=t.trim();return/^<math[\s>]/i.test(o)?o:'<math xmlns="'.concat("http://www.w3.org/1998/Math/MathML",'" display="').concat(e,'">').concat(o,"</math>")}function h(t,e){return a.Dom.isHTMLElement(t)&&(t.hasAttribute(r)||t.classList.contains(e))}function d(t,e){return a.Dom.closest(e,function(e){return h(e,t.o.math.className)},t.editor)}function p(t,e){var o,a,m,u,c=(0,i.attr)(e,r);if(!c)return null;try{return o=JSON.parse(c),a=s(t),{format:"latex"===(m=o.format)||"mathml"===m?o.format:a.format,display:l(o.display)?o.display:a.display,source:(0,n.isString)(o.source)?o.source:a.source,background:(0,n.isString)(o.background)?o.background:a.background,textColor:(0,n.isString)(o.textColor)?o.textColor:a.textColor,borderColor:(0,n.isString)(o.borderColor)?o.borderColor:a.borderColor,align:"left"===(u=o.align)||"center"===u||"right"===u?o.align:a.align,wrap:"boolean"==typeof o.wrap?o.wrap:a.wrap,width:Number(o.width)>0?Math.round(Number(o.width)):void 0}}catch(t){return null}}function f(t,e){var o=t.o.math.className,n=!a.Dom.isTag(e,"span");(0,i.attr)(e,{class:n?"".concat(o," ").concat(o,"_block"):o,contenteditable:!1})}function v(t,e,o,a){f(t,e),(0,i.attr)(e,r,JSON.stringify(o)),(0,i.attr)(e,"style",u(o)||null),e.innerHTML=a;var n=e.querySelector("svg");n&&"block"===o.display&&o.width&&((0,i.attr)(n,{width:"100%",height:null}),n.style.verticalAlign="")}function g(t){return/^\d+(\.\d+)?px$/.test(t)?Math.round(parseFloat(t)):0}function x(t){return"block"===t?"figure":"span"}function _(t,e,o){var a=t.createInside.element(x(e.display));return v(t,a,e,o),a}},90484:function(t,e,o){"use strict";o.r(e),o.d(e,{MathPlugin:function(){return j}});var a=o(80294),n=o(20616),i=o(67709),r=o(82749),m=o(18766),l=o(56075),s=o(11886),u=o(31635),c=o(23078);o(65664);var h=o(69428),d=o(84853),p=o(17517),f=o(65478),v=o(2748),g=o(4510),x=o(70799),_=o(5700),b=o(50911),y=o(10830),w=o(56917),k=o(78584),M=o(21491),C=o(2692),j=function(t){function e(){var t;return(0,n._)(this,e),t=(0,a._)(this,e,arguments),(0,r._)(t,"buttons",[{name:"math",group:"insert"}]),(0,r._)(t,"__dialog",null),(0,r._)(t,"__editor",null),(0,r._)(t,"__saveButton",null),(0,r._)(t,"__popup",null),(0,r._)(t,"__toolbar",null),(0,r._)(t,"__target",null),t}return(0,m._)(e,t),(0,i._)(e,[{key:"afterInit",value:function(t){var e=this;t.e.on("openMathEditor",this.openEditor).on("removeMath",this.removeMath).on("isMathEditorOpened",function(){var t;return!!(null==(t=e.__dialog)?void 0:t.isOpened)}),t.registerCommand("insertMath",function(t,o,a){return e.openEditor(null,a),!1}),this.__decorateAll()}},{key:"beforeDestruct",value:function(){var t,e;this.closePopup(),null==(t=this.__popup)||t.destruct(),null==(e=this.__dialog)||e.destruct()}},{key:"openEditor",value:function(t,e){var o=this,a=(0,d.findMath)(this.j,null!=t?t:null),n=a&&(0,d.readMathData)(this.j,a)||(0,d.defaultMathData)(this.j,(0,d.isMathDisplay)(e)?e:void 0);this.closePopup(),this.j.s.save(),(0,p.loadMathJax)(this.j).catch(function(){return null});var i=this.__getDialog(),r=this.__editor;if(r){r.setData(n);var m=(0,y.Button)(i,"ok","Save","primary").onAction(function(){return o.__submit(a)});this.__saveButton=m,m.setState({disabled:!n.source});var l=[(0,y.Button)(i,"cancel","Cancel","default").onAction(function(){return i.close()})];a&&l.unshift((0,y.Button)(i,"bin","","default").onAction(function(){i.close(),o.removeMath(a)})),i.setHeader(this.j.i18n(a?"Edit equation":"Insert equation")).setFooter([l,m]).open(),r.focus()}}},{key:"removeMath",value:function(t){var e=(0,d.findMath)(this.j,null!=t?t:this.__target);this.closePopup(),e&&(this.j.s.setCursorAfter(e),v.Dom.safeRemove(e),this.j.synchronizeValues())}},{key:"__submit",value:function(t){var e=this,o=this.__editor,a=this.__dialog;if(o&&a){var n=o.getData();n.source&&(0,p.renderMath)(this.j,n).then(function(o){if(o.error)throw Error(o.error);a.close(),e.__save(t,n,o.svg)}).catch(function(t){e.j.message.error(t.message)})}}},{key:"__save",value:function(t,e,o){t&&!v.Dom.isTag(t,(0,d.mathTag)(e.display))&&(t=v.Dom.replace(t,(0,d.mathTag)(e.display),this.j.createInside)),t?(0,d.applyMathData)(this.j,t,e,o):(t=(0,d.createMath)(this.j,e,o),this.j.s.restore(),this.__insert(t,e.display)),this.j.s.setCursorAfter(t),this.j.synchronizeValues()}},{key:"__insert",value:function(t,e){if(this.j.s.insertNode(t,!1,!1),"block"===e)for(var o=t.parentElement;o&&o!==this.j.editor;){if(v.Dom.after(o,t),v.Dom.isBlock(o)){v.Dom.isEmpty(o)&&v.Dom.safeRemove(o);break}o=t.parentElement}}},{key:"__getDialog",value:function(){var t=this;if(!this.__dialog){var e=this.j.o.math.dialog;this.__dialog=new k.Dialog({language:this.j.o.language,theme:this.j.o.theme,shadowRoot:this.j.o.shadowRoot,events:this.j.o.events}),this.__editor=new h.UIMathEditor(this.j,{onSubmit:function(){var e;null==(e=t.__saveButton)||e.container.click()},onChange:function(e){var o;null==(o=t.__saveButton)||o.setState({disabled:!e.source})}}),this.__dialog.setContent(this.__editor).setSize(e.width,e.height),this.__dialog.e.on("beforeClose",function(){t.j.s.restore()})}return this.__dialog}},{key:"onClick",value:function(t){var e=(0,d.findMath)(this.j,t.target);e?this.openPopup(e):this.closePopup()}},{key:"onDblClick",value:function(t){var e=(0,d.findMath)(this.j,t.target);e&&this.openEditor(e)}},{key:"onOutsideClick",value:function(){this.closePopup()}},{key:"openPopup",value:function(t){var e=this;if(!this.j.o.readonly&&this.j.o.math.popup.length){this.__popup||(this.__popup=new w.Popup(this.j,!1),this.__toolbar=(0,M.makeCollection)(this.j,this.__popup));var o=this.__popup,a=this.__toolbar;a&&(this.__target=t,a.build(this.j.o.math.popup,t),o.setContent(a.container),o.isOpened?o.updatePosition():o.open(function(){return(0,_.position)(t,e.j)}))}}},{key:"closePopup",value:function(){var t;this.__target=null,null==(t=this.__popup)||t.close()}},{key:"onBeforeSetValue",value:function(t){var e=this;if((0,x.isString)(t)&&t.includes(d.MATH_ATTR)){var o=this.j.c.div();o.innerHTML=t;var a=!1;return(0,g.toArray)(o.querySelectorAll("[".concat(d.MATH_ATTR,"]"))).forEach(function(t){var o=(0,d.readMathData)(e.j,t);!o||t.querySelector("svg")||t.textContent||(t.textContent=o.source,a=!0)}),a?o.innerHTML:void 0}}},{key:"onChange",value:function(){this.__decorateAll(),this.__target&&!this.j.editor.contains(this.__target)&&this.closePopup()}},{key:"__decorateAll",value:function(){var t=this,e=!1;(0,g.toArray)(this.j.editor.querySelectorAll("[".concat(d.MATH_ATTR,"]"))).forEach(function(o){(0,d.isMathElement)(o,t.j.o.math.className)&&((0,d.decorateMath)(t.j,o),o.querySelector("svg")?e=t.__syncResized(o)||e:t.__renderMissing(o))}),e&&this.j.synchronizeValues()}},{key:"__syncResized",value:function(t){var e=(0,d.readMathData)(this.j,t);if(!e||"block"!==e.display)return!1;var o=(0,d.pixels)(t.style.width),a=(0,d.pixels)(t.style.height);if((!o||o===e.width)&&!a)return!1;var n=t.querySelector("svg");return!!n&&((0,d.applyMathData)(this.j,t,(0,s._)((0,l._)({},e),{width:o||e.width}),n.outerHTML),!0)}},{key:"__renderMissing",value:function(t){var e=this,o=(0,d.readMathData)(this.j,t);o&&o.source&&(0,p.renderMath)(this.j,o).then(function(a){e.j.editor.contains(t)&&((0,d.applyMathData)(e.j,t,o,a.svg),e.j.synchronizeValues())}).catch(function(){return null})}}]),e}((0,c._)(b.Plugin));(0,r._)(j,"requires",["license"]),(0,u.__decorate)([f.autobind],j.prototype,"openEditor",null),(0,u.__decorate)([f.autobind],j.prototype,"removeMath",null),(0,u.__decorate)([(0,f.watch)(":click")],j.prototype,"onClick",null),(0,u.__decorate)([(0,f.watch)(":dblclick")],j.prototype,"onDblClick",null),(0,u.__decorate)([(0,f.watch)(":outsideClick")],j.prototype,"onOutsideClick",null),(0,u.__decorate)([(0,f.watch)(":beforeSetValueToEditor")],j.prototype,"onBeforeSetValue",null),(0,u.__decorate)([(0,f.watch)([":change",":afterSetMode"]),(0,f.debounce)()],j.prototype,"onChange",null),C.JoditPro.plugins.add("math",j)},17517:function(t,e,o){"use strict";o.d(e,{loadMathJax:function(){return r},renderMath:function(){return m}});var a=o(84853),n=o(63799),i=o(29960);function r(t){var e,o=t.ow;return(null==(e=o.MathJax)?void 0:e.tex2svg)?Promise.resolve(o.MathJax):(o.MathJax||(o.MathJax={svg:{fontCache:"local"},startup:{typeset:!1}}),(0,n.appendScriptAsync)(t,t.o.math.mathJaxUrl).then(function(){var t,e;return null==(e=o.MathJax)||null==(t=e.startup)?void 0:t.promise}).then(function(){var t;if(!(null==(t=o.MathJax)?void 0:t.tex2svg))throw Error("MathJax did not initialize");return o.MathJax}))}function m(t,e){return r(t).then(function(t){var o,n="block"===e.display;null==(o=t.texReset)||o.call(t);var r=("mathml"===e.format?t.mathml2svg((0,a.wrapMathML)(e.source,e.display),{display:n}):t.tex2svg(e.source,{display:n})).querySelector("svg");if(!r)throw Error("MathJax did not return an SVG");var m=r.querySelector("[data-mjx-error]"),l=m?(0,i.attr)(m,"data-mjx-error")||"Syntax error":void 0;return(0,i.attr)(r,{role:"img","aria-label":e.source,focusable:null}),{svg:r.outerHTML,error:l}})}},69428:function(t,e,o){"use strict";o.d(e,{UIMathEditor:function(){return y}});var a=o(80294),n=o(20616),i=o(67709),r=o(82749),m=o(18766),l=o(56075),s=o(11886),u=o(43284),c=o(94899),h=o(31635),d=o(84853),p=o(17517),f=o(65478),v=o(38837),g=o(29960),x=o(67510),_=["latex","mathml"],b={latex:"e.g. x^2 + y^2 = r^2",mathml:"e.g. <msup><mi>x</mi><mn>2</mn></msup>"},y=function(t){function e(t,o){(0,n._)(this,e),i=(0,a._)(this,e,[t]),(0,r._)(i,"handlers",void 0),(0,r._)(i,"state",void 0),(0,r._)(i,"tabs",void 0),(0,r._)(i,"source",void 0),(0,r._)(i,"templates",void 0),(0,r._)(i,"colorInputs",void 0),(0,r._)(i,"alignButtons",void 0),(0,r._)(i,"alignBox",void 0),(0,r._)(i,"wrapButton",void 0),(0,r._)(i,"drafts",void 0),(0,r._)(i,"renderId",void 0),i.handlers=o,i.tabs={},i.templates=null,i.colorInputs={},i.alignButtons={},i.alignBox=null,i.wrapButton=null,i.drafts={latex:"",mathml:""},i.renderId=0;var i,m=i.getElm("tabs");(0,v.assert)(null!=m,"tabs element does not exist"),_.forEach(function(e){var o=(0,x.Button)(t,"",d.FORMAT_TITLES[e]).onAction(function(){return i.setFormat(e)});(0,g.attr)(o.container,"data-format",e),i.tabs[e]=o,m.appendChild(o.container)});var l=i.getElm("templates");(0,v.assert)(null!=l,"templates element does not exist"),t.o.math.templates.length&&(i.templates=new x.UISelect(t,{name:"template",options:[{value:"",text:t.i18n("Templates")}].concat((0,c._)(t.o.math.templates.map(function(e,o){return{value:String(o),text:t.i18n(e.title)}}))),onChange:function(t){return i.applyTemplate(t)}}),l.appendChild(i.templates.container));var s=i.getElm("symbols");(0,v.assert)(null!=s,"symbols element does not exist"),t.o.math.symbols.forEach(function(e){var o=(0,x.Button)(t,"",e.label).onAction(function(){return i.insertSymbol("mathml"===i.state.format?e.mathml:e.latex)});o.container.classList.add(i.getFullElName("symbol")),(0,g.attr)(o.container,"title",e.latex),s.appendChild(o.container)}),i.source=new x.UITextArea(t,{name:"source",label:d.FORMAT_TITLES.latex,placeholder:b.latex,resizable:!0,size:4,onChange:function(t){i.state.source=t,i.drafts[i.state.format]=t,i.handlers.onChange(i.getData()),i.refresh()}}),t.e.on(i.source.nativeInput,"keydown",function(t){"Enter"===t.key&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),i.handlers.onSubmit())});var u=i.getElm("source");return(0,v.assert)(null!=u,"source element does not exist"),u.appendChild(i.source.container),i.buildAppearance(),i}return(0,m._)(e,t),(0,i._)(e,[{key:"className",value:function(){return"UIMathEditor"}},{key:"render",value:function(){return'<div>\n <div class="&__head">\n <div class="&__tabs"></div>\n <div class="&__templates"></div>\n </div>\n <div class="&__symbols"></div>\n <div class="&__source"></div>\n <div class="&__preview-title">~Preview~</div>\n <div class="&__preview">\n <div class="&__appearance"></div>\n <div class="&__canvas">\n <span class="&__placeholder">~Your equation will render here~</span>\n </div>\n </div>\n <div class="&__error"></div>\n </div>'}},{key:"buildAppearance",value:function(){var t=this,e=this.j,o=e.o.math,a=this.getElm("appearance");(0,v.assert)(null!=a,"appearance element does not exist"),[["background","Background",o.allowChangeBackground],["textColor","Text",o.allowChangeTextColor],["borderColor","Border",o.allowChangeBorderColor]].forEach(function(e){var o=(0,u._)(e,3),n=o[0],i=o[1];o[2]&&a.appendChild(t.colorField(n,i))}),o.allowChangeAlign&&(this.alignBox=e.c.div(this.getFullElName("align")),["left","center","right"].forEach(function(o){var a,n=(0,x.Button)(e,o,"","initial").onAction(function(){t.state.align=o,t.syncAppearance(),t.__render()});(0,g.attr)(n.container,"data-align",o),t.alignButtons[o]=n,null==(a=t.alignBox)||a.appendChild(n.container)}),o.allowChangeWrap&&(this.wrapButton=(0,x.Button)(e,"","Wrap text","initial").onAction(function(){t.state.wrap=!t.state.wrap,t.syncAppearance(),t.__render()}),(0,g.attr)(this.wrapButton.container,"name","wrap"),this.alignBox.appendChild(this.wrapButton.container)),a.appendChild(this.alignBox)),a.childNodes.length||a.remove()}},{key:"colorField",value:function(t,e){var o=this,a=this.j,n=a.c.element("input",{type:"color",name:t,class:this.getFullElName("color-input")});a.e.on(n,"input",function(){o.state[t]=n.value,o.syncAppearance(),o.__render()});var i=a.c.element("button",{type:"button",name:"".concat(t,"Reset"),title:a.i18n("None"),class:this.getFullElName("color-reset")});return i.textContent="\xd7",a.e.on(i,"click",function(){o.state[t]="",o.syncAppearance(),o.__render()}),this.colorInputs[t]=n,a.c.element("label",{class:this.getFullElName("color-field")},[n,a.c.span(this.getFullElName("color-label"),a.i18n(e)),i])}},{key:"syncAppearance",value:function(){var t=this;if(Object.keys(this.colorInputs).forEach(function(e){var o=t.colorInputs[e];if(o){var a=t.state[e]||"";o.classList.toggle(t.getFullElName("color-input","empty"),!a),a&&(o.value=a)}}),Object.keys(this.alignButtons).forEach(function(e){var o;null==(o=t.alignButtons[e])||o.setState({variant:t.state.align===e?"primary":"initial"})}),this.alignBox&&(this.alignBox.style.display="block"===this.state.display?"":"none"),this.wrapButton){var e="center"!==this.state.align;this.wrapButton.container.style.display=e?"":"none",this.wrapButton.setState({variant:this.state.wrap&&e?"primary":"initial"})}}},{key:"setData",value:function(t){this.state=(0,l._)({},t),this.drafts={latex:"",mathml:""},this.drafts[t.format]=t.source,this.syncAppearance(),this.setFormat(t.format)}},{key:"getData",value:function(){return(0,s._)((0,l._)({},this.state),{source:this.state.source.trim()})}},{key:"focus",value:function(){this.source.focus()}},{key:"setFormat",value:function(t){var e=this;this.state.format=t,this.state.source=this.drafts[t],_.forEach(function(o){var a,n;null==(a=e.tabs[o])||a.setMod("active",o===t),null==(n=e.tabs[o])||n.setState({variant:o===t?"primary":"initial"})}),this.source.state.label=d.FORMAT_TITLES[t],this.source.state.placeholder=b[t],this.source.value=this.state.source,this.handlers.onChange(this.getData()),this.__render()}},{key:"applyTemplate",value:function(t){var e=this.j.o.math.templates[Number(t)];""!==t&&e&&this.templates&&(this.source.value="mathml"===this.state.format?e.mathml:e.latex,this.templates.value="",this.source.focus())}},{key:"insertSymbol",value:function(t){var e,o,a=this.source.nativeInput,n=null!=(e=a.selectionStart)?e:a.value.length,i=null!=(o=a.selectionEnd)?o:n;a.setRangeText(t,n,i,"end"),a.focus(),this.j.e.fire(a,"input")}},{key:"refresh",value:function(){this.__render()}},{key:"__render",value:function(){var t=this,e=this.getElm("canvas"),o=this.getElm("error"),a=this.getData(),n=++this.renderId;if(e&&o){if(o.textContent="",(0,g.attr)(e,"style",(0,d.mathStyle)(a)||null),!a.source){e.innerHTML='<span class="'.concat(this.getFullElName("placeholder"),'">').concat(this.j.i18n("Your equation will render here"),"</span>");return}(0,p.renderMath)(this.j,a).then(function(a){var i;n===t.renderId&&(e.innerHTML=a.svg,o.textContent=null!=(i=a.error)?i:"")}).catch(function(e){n===t.renderId&&(o.textContent=e.message)})}}}]),e}(x.UIElement);(0,h.__decorate)([(0,f.debounce)(300)],y.prototype,"refresh",null),y=(0,h.__decorate)([f.component],y)},11886:function(t,e,o){"use strict";function a(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e.push.apply(e,o)}return e})(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}),t}o.d(e,{_:function(){return a}})}},function(t){return t(90484)}])});
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
package/es5/polyfills.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
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 Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.7
4
+ * Version: v4.18.9
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
package/esm/config.d.ts CHANGED
@@ -21,6 +21,11 @@ import type { IJodit } from "jodit/esm/types/index";
21
21
  import type { IKeys } from "./plugins/keyboard/interface";
22
22
  import type { ButtonGroup } from "jodit/esm/types/index";
23
23
  import type { ILayoutKeys } from "./plugins/keyboard/interface";
24
+ import type { MathFormat } from "./plugins/math/interface";
25
+ import type { MathDisplay } from "./plugins/math/interface";
26
+ import type { MathAlign } from "./plugins/math/interface";
27
+ import type { IMathSymbol } from "./plugins/math/interface";
28
+ import type { IMathTemplate } from "./plugins/math/interface";
24
29
  import type { CanPromise } from "jodit/esm/types/index";
25
30
  import type { IUIOption } from "jodit/esm/types/index";
26
31
  import type { IStyleDefinition } from "./plugins/style/interface";
@@ -199,6 +204,31 @@ interface Config {
199
204
  periodKeyRepeat: number;
200
205
  };
201
206
  }
207
+ interface Config {
208
+ math: {
209
+ className: string;
210
+ mathJaxUrl: string;
211
+ defaultFormat: MathFormat;
212
+ defaultDisplay: MathDisplay;
213
+ defaultBackground: string;
214
+ defaultTextColor: string;
215
+ defaultBorderColor: string;
216
+ defaultAlign: MathAlign;
217
+ defaultWrap: boolean;
218
+ allowChangeBackground: boolean;
219
+ allowChangeTextColor: boolean;
220
+ allowChangeBorderColor: boolean;
221
+ allowChangeAlign: boolean;
222
+ allowChangeWrap: boolean;
223
+ symbols: IMathSymbol[];
224
+ templates: IMathTemplate[];
225
+ popup: Array<IControlType | string>;
226
+ dialog: {
227
+ width: number;
228
+ height: number;
229
+ };
230
+ };
231
+ }
202
232
  interface Config {
203
233
  mobileView: {
204
234
  mode: string | number;
@@ -1 +1 @@
1
- import"jodit/esm/plugins/all.js";import"./paste-from-word/paste-from-word.js";import"./license/license.js";import"./autocomplete/autocomplete.impl.js";import"jodit/esm/plugins/speech-recognize/speech-recognize.js";import"./ai-assistant-pro/ai-assistant-pro.js";import"./backup/backup.js";import"./button-generator/button-generator.js";import"./change-case/change-case.js";import"./chart/chart.js";import"./color-picker/color-picker.js";import"./emoji/emoji.js";import"./export-docs/export-docs.js";import"./finder/finder.js";import"./google-maps/google-maps.js";import"./google-search/google-search.js";import"./highlight-signature/highlight-signature.js";import"./image-editor-pro/image-editor-pro.js";import"./iframe-editor/iframe-editor.js";import"./keyboard/keyboard.js";import"./mobile-view/mobile-view.js";import"./page-break/page-break.js";import"./paste-code/paste-code.js";import"./show-blocks/show-blocks.js";import"./style/style.js";import"./templates/templates.js";import"./todo-list/todo-list.js";import"./translate/translate.js";import"./tune-block/tune-block.js";
1
+ import"jodit/esm/plugins/all.js";import"./paste-from-word/paste-from-word.js";import"./license/license.js";import"./autocomplete/autocomplete.impl.js";import"jodit/esm/plugins/speech-recognize/speech-recognize.js";import"./ai-assistant-pro/ai-assistant-pro.js";import"./backup/backup.js";import"./button-generator/button-generator.js";import"./change-case/change-case.js";import"./chart/chart.js";import"./color-picker/color-picker.js";import"./emoji/emoji.js";import"./export-docs/export-docs.js";import"./finder/finder.js";import"./google-maps/google-maps.js";import"./google-search/google-search.js";import"./highlight-signature/highlight-signature.js";import"./image-editor-pro/image-editor-pro.js";import"./iframe-editor/iframe-editor.js";import"./keyboard/keyboard.js";import"./math/math.js";import"./mobile-view/mobile-view.js";import"./page-break/page-break.js";import"./paste-code/paste-code.js";import"./show-blocks/show-blocks.js";import"./style/style.js";import"./templates/templates.js";import"./todo-list/todo-list.js";import"./translate/translate.js";import"./tune-block/tune-block.js";
@@ -0,0 +1 @@
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 4h18M3 20h18M7 9.5l5 5M12 9.5l-5 5M15 10.5h4M15 13.5h4"/> </g> </svg> ';export{o as default};
@@ -0,0 +1 @@
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 12h4M17 12h4M9 9.5l4 5M13 9.5l-4 5"/> </g> </svg> ';export{o as default};
@@ -0,0 +1 @@
1
+ var o='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M4 8l6 8M10 8l-6 8M14 9.5h6M14 14.5h6"/> </g> </svg> ';export{o as default};
@@ -0,0 +1,34 @@
1
+ /*!
2
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
+ * See LICENSE.md in the project root for license information.
4
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
+ */
6
+ import type { IControlType } from "jodit/esm/types/index";
7
+ import type { IMathSymbol, IMathTemplate, MathAlign, MathDisplay, MathFormat } from "./interface";
8
+ declare module 'jodit/esm/config' {
9
+ interface Config {
10
+ math: {
11
+ className: string;
12
+ mathJaxUrl: string;
13
+ defaultFormat: MathFormat;
14
+ defaultDisplay: MathDisplay;
15
+ defaultBackground: string;
16
+ defaultTextColor: string;
17
+ defaultBorderColor: string;
18
+ defaultAlign: MathAlign;
19
+ defaultWrap: boolean;
20
+ allowChangeBackground: boolean;
21
+ allowChangeTextColor: boolean;
22
+ allowChangeBorderColor: boolean;
23
+ allowChangeAlign: boolean;
24
+ allowChangeWrap: boolean;
25
+ symbols: IMathSymbol[];
26
+ templates: IMathTemplate[];
27
+ popup: Array<IControlType | string>;
28
+ dialog: {
29
+ width: number;
30
+ height: number;
31
+ };
32
+ };
33
+ }
34
+ }
@@ -0,0 +1 @@
1
+ var n=Object.defineProperty;var i=(m,o)=>n(m,"name",{value:o,configurable:!0});import x from"./assets/math.svg.js";import h from"./assets/math-block.svg.js";import s from"./assets/math-inline.svg.js";import{Config as t}from"jodit/esm/config.js";import{Icon as e}from"jodit/esm/core/ui/icon.js";t.prototype.math={className:"jodit-math",mathJaxUrl:"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js",defaultFormat:"latex",defaultDisplay:"block",defaultBackground:"",defaultTextColor:"",defaultBorderColor:"",defaultAlign:"center",defaultWrap:!1,allowChangeBackground:!0,allowChangeTextColor:!0,allowChangeBorderColor:!0,allowChangeAlign:!0,allowChangeWrap:!0,symbols:[{label:"\xBD",latex:"\\frac{1}{2}",mathml:"<mfrac><mn>1</mn><mn>2</mn></mfrac>"},{label:"\u221A",latex:"\\sqrt{x}",mathml:"<msqrt><mi>x</mi></msqrt>"},{label:"\u207F\u221A",latex:"\\sqrt[n]{x}",mathml:"<mroot><mi>x</mi><mi>n</mi></mroot>"},{label:"x\xB2",latex:"x^{2}",mathml:"<msup><mi>x</mi><mn>2</mn></msup>"},{label:"x\u2099",latex:"x_{n}",mathml:"<msub><mi>x</mi><mi>n</mi></msub>"},{label:"x\u0304",latex:"\\bar{x}",mathml:"<mover><mi>x</mi><mo>\xAF</mo></mover>"},{label:"vec",latex:"\\vec{x}",mathml:"<mover><mi>x</mi><mo>\u2192</mo></mover>"},{label:"\u1E8B",latex:"\\dot{x}",mathml:"<mover><mi>x</mi><mo>\u02D9</mo></mover>"},{label:"|x|",latex:"\\left| x \\right|",mathml:"<mrow><mo>|</mo><mi>x</mi><mo>|</mo></mrow>"},{label:"( )",latex:"\\left( x \\right)",mathml:"<mrow><mo>(</mo><mi>x</mi><mo>)</mo></mrow>"},{label:"\u03A3",latex:"\\sum_{i=1}^{n}",mathml:"<munderover><mo>\u2211</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>n</mi></munderover>"},{label:"\u220F",latex:"\\prod_{i=1}^{n}",mathml:"<munderover><mo>\u220F</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>n</mi></munderover>"},{label:"\u222B",latex:"\\int_{a}^{b}",mathml:"<msubsup><mo>\u222B</mo><mi>a</mi><mi>b</mi></msubsup>"},{label:"\u222E",latex:"\\oint",mathml:"<mo>\u222E</mo>"},{label:"lim",latex:"\\lim_{x \\to \\infty}",mathml:"<munder><mo>lim</mo><mrow><mi>x</mi><mo>\u2192</mo><mi>\u221E</mi></mrow></munder>"},{label:"\u2202",latex:"\\partial",mathml:"<mo>\u2202</mo>"},{label:"\u2207",latex:"\\nabla",mathml:"<mo>\u2207</mo>"},{label:"\u221E",latex:"\\infty",mathml:"<mi>\u221E</mi>"},{label:"\xB1",latex:"\\pm",mathml:"<mo>\xB1</mo>"},{label:"\xD7",latex:"\\times",mathml:"<mo>\xD7</mo>"},{label:"\xB7",latex:"\\cdot",mathml:"<mo>\xB7</mo>"},{label:"\xF7",latex:"\\div",mathml:"<mo>\xF7</mo>"},{label:"\u2260",latex:"\\neq",mathml:"<mo>\u2260</mo>"},{label:"\u2264",latex:"\\leq",mathml:"<mo>\u2264</mo>"},{label:"\u2265",latex:"\\geq",mathml:"<mo>\u2265</mo>"},{label:"\u2248",latex:"\\approx",mathml:"<mo>\u2248</mo>"},{label:"\u2261",latex:"\\equiv",mathml:"<mo>\u2261</mo>"},{label:"\u221D",latex:"\\propto",mathml:"<mo>\u221D</mo>"},{label:"\u2192",latex:"\\to",mathml:"<mo>\u2192</mo>"},{label:"\u21D2",latex:"\\Rightarrow",mathml:"<mo>\u21D2</mo>"},{label:"\xB0",latex:"^{\\circ}",mathml:"<mo>\xB0</mo>"},{label:"\u2208",latex:"\\in",mathml:"<mo>\u2208</mo>"},{label:"\u2209",latex:"\\notin",mathml:"<mo>\u2209</mo>"},{label:"\u2282",latex:"\\subset",mathml:"<mo>\u2282</mo>"},{label:"\u222A",latex:"\\cup",mathml:"<mo>\u222A</mo>"},{label:"\u2229",latex:"\\cap",mathml:"<mo>\u2229</mo>"},{label:"\u2200",latex:"\\forall",mathml:"<mo>\u2200</mo>"},{label:"\u2203",latex:"\\exists",mathml:"<mo>\u2203</mo>"},{label:"\u2205",latex:"\\emptyset",mathml:"<mi>\u2205</mi>"},{label:"\u03C0",latex:"\\pi",mathml:"<mi>\u03C0</mi>"},{label:"\u03B8",latex:"\\theta",mathml:"<mi>\u03B8</mi>"},{label:"\u03B1",latex:"\\alpha",mathml:"<mi>\u03B1</mi>"},{label:"\u03B2",latex:"\\beta",mathml:"<mi>\u03B2</mi>"},{label:"\u03B3",latex:"\\gamma",mathml:"<mi>\u03B3</mi>"},{label:"\u03BB",latex:"\\lambda",mathml:"<mi>\u03BB</mi>"},{label:"\u03BC",latex:"\\mu",mathml:"<mi>\u03BC</mi>"},{label:"\u03C3",latex:"\\sigma",mathml:"<mi>\u03C3</mi>"},{label:"\u03C6",latex:"\\varphi",mathml:"<mi>\u03C6</mi>"},{label:"\u03C9",latex:"\\omega",mathml:"<mi>\u03C9</mi>"},{label:"\u0394",latex:"\\Delta",mathml:"<mi>\u0394</mi>"},{label:"\u03A9",latex:"\\Omega",mathml:"<mi>\u03A9</mi>"},{label:"\u0127",latex:"\\hbar",mathml:"<mi>\u210F</mi>"},{label:"[ ]",latex:"\\begin{bmatrix} a & b \\\\ c & d \\end{bmatrix}",mathml:"<mrow><mo>[</mo><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable><mo>]</mo></mrow>"}],templates:[{title:"Quadratic formula",latex:"x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}",mathml:"<mi>x</mi><mo>=</mo><mfrac><mrow><mo>\u2212</mo><mi>b</mi><mo>\xB1</mo><msqrt><msup><mi>b</mi><mn>2</mn></msup><mo>\u2212</mo><mn>4</mn><mi>a</mi><mi>c</mi></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac>"},{title:"Pythagorean theorem",latex:"a^2 + b^2 = c^2",mathml:"<msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><msup><mi>b</mi><mn>2</mn></msup><mo>=</mo><msup><mi>c</mi><mn>2</mn></msup>"},{title:"Euler's identity",latex:"e^{i\\pi} + 1 = 0",mathml:"<msup><mi>e</mi><mrow><mi>i</mi><mi>\u03C0</mi></mrow></msup><mo>+</mo><mn>1</mn><mo>=</mo><mn>0</mn>"},{title:"Mass\u2013energy equivalence",latex:"E = mc^2",mathml:"<mi>E</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup>"},{title:"Derivative",latex:"f'(x) = \\lim_{h \\to 0} \\frac{f(x+h) - f(x)}{h}",mathml:"<msup><mi>f</mi><mo>\u2032</mo></msup><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo><munder><mo>lim</mo><mrow><mi>h</mi><mo>\u2192</mo><mn>0</mn></mrow></munder><mfrac><mrow><mi>f</mi><mo>(</mo><mi>x</mi><mo>+</mo><mi>h</mi><mo>)</mo><mo>\u2212</mo><mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo></mrow><mi>h</mi></mfrac>"},{title:"Gaussian integral",latex:"\\int_{-\\infty}^{\\infty} e^{-x^2}\\,dx = \\sqrt{\\pi}",mathml:"<msubsup><mo>\u222B</mo><mrow><mo>\u2212</mo><mi>\u221E</mi></mrow><mi>\u221E</mi></msubsup><msup><mi>e</mi><mrow><mo>\u2212</mo><msup><mi>x</mi><mn>2</mn></msup></mrow></msup><mi>d</mi><mi>x</mi><mo>=</mo><msqrt><mi>\u03C0</mi></msqrt>"},{title:"Sum of the first n integers",latex:"\\sum_{k=1}^{n} k = \\frac{n(n+1)}{2}",mathml:"<munderover><mo>\u2211</mo><mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow><mi>n</mi></munderover><mi>k</mi><mo>=</mo><mfrac><mrow><mi>n</mi><mo>(</mo><mi>n</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow><mn>2</mn></mfrac>"},{title:"Binomial theorem",latex:"(a+b)^n = \\sum_{k=0}^{n} \\binom{n}{k} a^{n-k} b^{k}",mathml:'<msup><mrow><mo>(</mo><mi>a</mi><mo>+</mo><mi>b</mi><mo>)</mo></mrow><mi>n</mi></msup><mo>=</mo><munderover><mo>\u2211</mo><mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow><mi>n</mi></munderover><mrow><mo>(</mo><mfrac linethickness="0"><mi>n</mi><mi>k</mi></mfrac><mo>)</mo></mrow><msup><mi>a</mi><mrow><mi>n</mi><mo>\u2212</mo><mi>k</mi></mrow></msup><msup><mi>b</mi><mi>k</mi></msup>'},{title:"Normal distribution",latex:"f(x) = \\frac{1}{\\sigma\\sqrt{2\\pi}} e^{-\\frac{(x-\\mu)^2}{2\\sigma^2}}",mathml:"<mi>f</mi><mo>(</mo><mi>x</mi><mo>)</mo><mo>=</mo><mfrac><mn>1</mn><mrow><mi>\u03C3</mi><msqrt><mn>2</mn><mi>\u03C0</mi></msqrt></mrow></mfrac><msup><mi>e</mi><mrow><mo>\u2212</mo><mfrac><msup><mrow><mo>(</mo><mi>x</mi><mo>\u2212</mo><mi>\u03BC</mi><mo>)</mo></mrow><mn>2</mn></msup><mrow><mn>2</mn><msup><mi>\u03C3</mi><mn>2</mn></msup></mrow></mfrac></mrow></msup>"},{title:"Matrix 2\xD72",latex:"\\begin{pmatrix} a & b \\\\ c & d \\end{pmatrix}",mathml:"<mrow><mo>(</mo><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable><mo>)</mo></mrow>"}],popup:["mathEdit","mathRemove"],dialog:{width:620,height:700}},t.prototype.controls.math={tooltip:"Insert equation",icon:"math",list:{block:"Block equation",inline:"Inline equation"},childTemplate:i((m,o,l)=>`<span class="jodit-math-list-item">${e.get(o==="block"?"math-block":"math-inline")}<span>${m.i18n(l)}</span></span>`,"childTemplate"),isActive(m){return!!m.e.fire("isMathEditorOpened")},exec(m){m.e.fire("openMathEditor")},childExec(m,o,{control:l}){var a;const r=String(((a=l.args)===null||a===void 0?void 0:a[0])||"block");m.e.fire("openMathEditor",null,r)}},t.prototype.controls.mathEdit={tooltip:"Edit equation",icon:"pencil",exec(m,o){m.e.fire("openMathEditor",o)}},t.prototype.controls.mathRemove={tooltip:"Delete equation",icon:"bin",exec(m,o){m.e.fire("removeMath",o)}},t.prototype.allowResizeTags=new Set([...t.prototype.allowResizeTags,"figure"]),e.set("math",x).set("math-block",h).set("math-inline",s);
@@ -0,0 +1,33 @@
1
+ /*!
2
+ * Jodit Editor PRO (https://xdsoft.net/jodit/)
3
+ * See LICENSE.md in the project root for license information.
4
+ * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
5
+ */
6
+ import type { IJodit, Nullable } from "jodit/esm/types/index";
7
+ import type { IMathData, MathAlign, MathDisplay, MathFormat } from "./interface";
8
+ export declare const MATH_ATTR = "data-jodit-math";
9
+ export declare const MATHML_NS = "http://www.w3.org/1998/Math/MathML";
10
+ export declare const FORMAT_TITLES: Record<MathFormat, string>;
11
+ export declare function isMathFormat(value: unknown): value is MathFormat;
12
+ export declare function isMathDisplay(value: unknown): value is MathDisplay;
13
+ export declare function isMathAlign(value: unknown): value is MathAlign;
14
+ export declare function normalizeMathData(raw: Partial<IMathData>, defaults: IMathData): IMathData;
15
+ export declare function defaultMathData(jodit: IJodit, display?: MathDisplay): IMathData;
16
+ /**
17
+ * Inline style of the formula element: colors and alignment live on the
18
+ * element itself so they survive outside the editor. The SVG uses
19
+ * `currentColor`, so `color` paints the formula.
20
+ */
21
+ export declare function mathStyle(data: IMathData): string;
22
+ /**
23
+ * MathJax expects a `<math>` root; bare MathML children are wrapped into one.
24
+ */
25
+ export declare function wrapMathML(source: string, display: MathDisplay): string;
26
+ export declare function isMathElement(node: Nullable<Node>, className: string): node is HTMLElement;
27
+ export declare function findMath(jodit: IJodit, node: Nullable<Node>): Nullable<HTMLElement>;
28
+ export declare function readMathData(jodit: IJodit, element: HTMLElement): Nullable<IMathData>;
29
+ export declare function decorateMath(jodit: IJodit, element: HTMLElement): void;
30
+ export declare function applyMathData(jodit: IJodit, element: HTMLElement, data: IMathData, svg: string): void;
31
+ export declare function pixels(value: string): number;
32
+ export declare function mathTag(display: MathDisplay): 'figure' | 'span';
33
+ export declare function createMath(jodit: IJodit, data: IMathData, svg: string): HTMLElement;
@@ -0,0 +1 @@
1
+ var p=Object.defineProperty;var e=(t,o)=>p(t,"name",{value:o,configurable:!0});import{Dom as s}from"jodit/esm/core/dom/dom.js";import{isString as c}from"jodit/esm/core/helpers/checker/is-string.js";import{attr as l}from"jodit/esm/core/helpers/utils/attr.js";const a="data-jodit-math",u="http://www.w3.org/1998/Math/MathML",A={latex:"LaTeX",mathml:"MathML"};function h(t){return t==="latex"||t==="mathml"}e(h,"isMathFormat");function m(t){return t==="block"||t==="inline"}e(m,"isMathDisplay");function f(t){return t==="left"||t==="center"||t==="right"}e(f,"isMathAlign");function d(t,o){return{format:h(t.format)?t.format:o.format,display:m(t.display)?t.display:o.display,source:c(t.source)?t.source:o.source,background:c(t.background)?t.background:o.background,textColor:c(t.textColor)?t.textColor:o.textColor,borderColor:c(t.borderColor)?t.borderColor:o.borderColor,align:f(t.align)?t.align:o.align,wrap:typeof t.wrap=="boolean"?t.wrap:o.wrap,width:Number(t.width)>0?Math.round(Number(t.width)):void 0}}e(d,"normalizeMathData");function x(t,o){const{math:r}=t.o;return{format:r.defaultFormat,display:o??r.defaultDisplay,source:"",background:r.defaultBackground,textColor:r.defaultTextColor,borderColor:r.defaultBorderColor,align:r.defaultAlign,wrap:r.defaultWrap}}e(x,"defaultMathData");function g(t){const o=[],r=!!(t.background||t.borderColor);if(t.display==="block"){const n=t.align||"center";if(o.push("display: block",t.width?`width: ${t.width}px`:"width: fit-content","max-width: 100%","text-align: center"),n!=="center"&&t.wrap)o.push(`float: ${n}`,n==="left"?"margin: 0.5em 1.5em 0.5em 0":"margin: 0.5em 0 0.5em 1.5em");else{const i={left:"1em auto 1em 0",center:"1em auto",right:"1em 0 1em auto"};o.push(`margin: ${i[n]}`)}}else r&&o.push("display: inline-block");return t.background&&o.push(`background: ${t.background}`),t.textColor&&o.push(`color: ${t.textColor}`),t.borderColor&&o.push(`border: 1px solid ${t.borderColor}`),r&&o.push(t.display==="block"?"padding: 12px 16px":"padding: 2px 6px","border-radius: 6px"),o.join("; ")}e(g,"mathStyle");function D(t,o){const r=t.trim();return/^<math[\s>]/i.test(r)?r:`<math xmlns="${u}" display="${o}">${r}</math>`}e(D,"wrapMathML");function b(t,o){return s.isHTMLElement(t)&&(t.hasAttribute(a)||t.classList.contains(o))}e(b,"isMathElement");function N(t,o){return s.closest(o,r=>b(r,t.o.math.className),t.editor)}e(N,"findMath");function S(t,o){const r=l(o,a);if(!r)return null;try{return d(JSON.parse(r),x(t))}catch{return null}}e(S,"readMathData");function M(t,o){const{className:r}=t.o.math,n=!s.isTag(o,"span");l(o,{class:n?`${r} ${r}_block`:r,contenteditable:!1})}e(M,"decorateMath");function y(t,o,r,n){M(t,o),l(o,a,JSON.stringify(r)),l(o,"style",g(r)||null),o.innerHTML=n;const i=o.querySelector("svg");i&&r.display==="block"&&r.width&&(l(i,{width:"100%",height:null}),i.style.verticalAlign="")}e(y,"applyMathData");function _(t){return/^\d+(\.\d+)?px$/.test(t)?Math.round(parseFloat(t)):0}e(_,"pixels");function k(t){return t==="block"?"figure":"span"}e(k,"mathTag");function w(t,o,r){const n=t.createInside.element(k(o.display));return y(t,n,o,r),n}e(w,"createMath");export{A as FORMAT_TITLES,u as MATHML_NS,a as MATH_ATTR,y as applyMathData,w as createMath,M as decorateMath,x as defaultMathData,N as findMath,f as isMathAlign,m as isMathDisplay,b as isMathElement,h as isMathFormat,g as mathStyle,k as mathTag,d as normalizeMathData,_ as pixels,S as readMathData,D as wrapMathML};