jodit-pro 4.13.47 → 4.13.49

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 (317) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +3 -3
  3. package/es2015/jodit.js +27 -6
  4. package/es2015/jodit.min.js +2 -2
  5. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  11. package/es2015/plugins/backup/backup.css +1 -1
  12. package/es2015/plugins/backup/backup.js +1 -1
  13. package/es2015/plugins/backup/backup.min.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.css +1 -1
  15. package/es2015/plugins/button-generator/button-generator.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  17. package/es2015/plugins/change-case/change-case.js +1 -1
  18. package/es2015/plugins/change-case/change-case.min.js +1 -1
  19. package/es2015/plugins/color-picker/color-picker.css +1 -1
  20. package/es2015/plugins/color-picker/color-picker.js +1 -1
  21. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  22. package/es2015/plugins/emoji/emoji.css +1 -1
  23. package/es2015/plugins/emoji/emoji.js +1 -1
  24. package/es2015/plugins/emoji/emoji.min.js +1 -1
  25. package/es2015/plugins/export-docs/export-docs.js +1 -1
  26. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  27. package/es2015/plugins/finder/finder.css +1 -1
  28. package/es2015/plugins/finder/finder.js +1 -1
  29. package/es2015/plugins/finder/finder.min.js +1 -1
  30. package/es2015/plugins/google-maps/google-maps.css +1 -1
  31. package/es2015/plugins/google-maps/google-maps.js +1 -1
  32. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  33. package/es2015/plugins/google-search/google-search.js +1 -1
  34. package/es2015/plugins/google-search/google-search.min.js +1 -1
  35. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  36. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  38. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  39. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  40. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  41. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  42. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  43. package/es2015/plugins/keyboard/keyboard.css +1 -1
  44. package/es2015/plugins/keyboard/keyboard.js +1 -1
  45. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  46. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  47. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  48. package/es2015/plugins/page-break/page-break.js +1 -1
  49. package/es2015/plugins/page-break/page-break.min.js +1 -1
  50. package/es2015/plugins/paste-code/paste-code.css +1 -1
  51. package/es2015/plugins/paste-code/paste-code.js +1 -1
  52. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  53. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  54. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  55. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  56. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  57. package/es2015/plugins/style/style.css +1 -1
  58. package/es2015/plugins/style/style.js +52 -8
  59. package/es2015/plugins/style/style.min.js +2 -2
  60. package/es2015/plugins/templates/templates.css +1 -1
  61. package/es2015/plugins/templates/templates.js +1 -1
  62. package/es2015/plugins/templates/templates.min.js +1 -1
  63. package/es2015/plugins/todo-list/todo-list.css +1 -1
  64. package/es2015/plugins/todo-list/todo-list.js +1 -1
  65. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  66. package/es2015/plugins/translate/translate.css +1 -1
  67. package/es2015/plugins/translate/translate.js +1 -1
  68. package/es2015/plugins/translate/translate.min.js +1 -1
  69. package/es2015/plugins/tune-block/tune-block.css +1 -1
  70. package/es2015/plugins/tune-block/tune-block.js +1 -1
  71. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  72. package/es2018/jodit.fat.min.js +3 -3
  73. package/es2018/jodit.min.js +2 -2
  74. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  75. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  76. package/es2018/plugins/backup/backup.min.js +1 -1
  77. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  78. package/es2018/plugins/change-case/change-case.min.js +1 -1
  79. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  80. package/es2018/plugins/emoji/emoji.min.js +1 -1
  81. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  82. package/es2018/plugins/finder/finder.min.js +1 -1
  83. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  84. package/es2018/plugins/google-search/google-search.min.js +1 -1
  85. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  86. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  87. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  88. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  89. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  90. package/es2018/plugins/page-break/page-break.min.js +1 -1
  91. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  92. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  93. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  94. package/es2018/plugins/style/style.min.js +2 -2
  95. package/es2018/plugins/templates/templates.min.js +1 -1
  96. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  97. package/es2018/plugins/translate/translate.min.js +1 -1
  98. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  99. package/es2021/jodit.css +1 -1
  100. package/es2021/jodit.fat.min.js +3 -3
  101. package/es2021/jodit.js +27 -6
  102. package/es2021/jodit.min.js +2 -2
  103. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  104. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  105. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  106. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  107. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  108. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  109. package/es2021/plugins/backup/backup.css +1 -1
  110. package/es2021/plugins/backup/backup.js +1 -1
  111. package/es2021/plugins/backup/backup.min.js +1 -1
  112. package/es2021/plugins/button-generator/button-generator.css +1 -1
  113. package/es2021/plugins/button-generator/button-generator.js +1 -1
  114. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  115. package/es2021/plugins/change-case/change-case.js +1 -1
  116. package/es2021/plugins/change-case/change-case.min.js +1 -1
  117. package/es2021/plugins/color-picker/color-picker.css +1 -1
  118. package/es2021/plugins/color-picker/color-picker.js +1 -1
  119. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  120. package/es2021/plugins/emoji/emoji.css +1 -1
  121. package/es2021/plugins/emoji/emoji.js +1 -1
  122. package/es2021/plugins/emoji/emoji.min.js +1 -1
  123. package/es2021/plugins/export-docs/export-docs.js +1 -1
  124. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  125. package/es2021/plugins/finder/finder.css +1 -1
  126. package/es2021/plugins/finder/finder.js +1 -1
  127. package/es2021/plugins/finder/finder.min.js +1 -1
  128. package/es2021/plugins/google-maps/google-maps.css +1 -1
  129. package/es2021/plugins/google-maps/google-maps.js +1 -1
  130. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  131. package/es2021/plugins/google-search/google-search.js +1 -1
  132. package/es2021/plugins/google-search/google-search.min.js +1 -1
  133. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  134. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  135. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  136. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  137. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  138. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  139. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  140. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  141. package/es2021/plugins/keyboard/keyboard.css +1 -1
  142. package/es2021/plugins/keyboard/keyboard.js +1 -1
  143. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  144. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  145. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  146. package/es2021/plugins/page-break/page-break.js +1 -1
  147. package/es2021/plugins/page-break/page-break.min.js +1 -1
  148. package/es2021/plugins/paste-code/paste-code.css +1 -1
  149. package/es2021/plugins/paste-code/paste-code.js +1 -1
  150. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  151. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  152. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  153. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  154. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  155. package/es2021/plugins/style/style.css +1 -1
  156. package/es2021/plugins/style/style.js +51 -8
  157. package/es2021/plugins/style/style.min.js +2 -2
  158. package/es2021/plugins/templates/templates.css +1 -1
  159. package/es2021/plugins/templates/templates.js +1 -1
  160. package/es2021/plugins/templates/templates.min.js +1 -1
  161. package/es2021/plugins/todo-list/todo-list.css +1 -1
  162. package/es2021/plugins/todo-list/todo-list.js +1 -1
  163. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  164. package/es2021/plugins/translate/translate.css +1 -1
  165. package/es2021/plugins/translate/translate.js +1 -1
  166. package/es2021/plugins/translate/translate.min.js +1 -1
  167. package/es2021/plugins/tune-block/tune-block.css +1 -1
  168. package/es2021/plugins/tune-block/tune-block.js +1 -1
  169. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  170. package/es2021.en/jodit.css +1 -1
  171. package/es2021.en/jodit.fat.min.js +3 -3
  172. package/es2021.en/jodit.js +27 -6
  173. package/es2021.en/jodit.min.js +2 -2
  174. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  175. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  176. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  177. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  178. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  179. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  180. package/es2021.en/plugins/backup/backup.css +1 -1
  181. package/es2021.en/plugins/backup/backup.js +1 -1
  182. package/es2021.en/plugins/backup/backup.min.js +1 -1
  183. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  184. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  185. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  186. package/es2021.en/plugins/change-case/change-case.js +1 -1
  187. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  188. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  189. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  190. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  191. package/es2021.en/plugins/emoji/emoji.css +1 -1
  192. package/es2021.en/plugins/emoji/emoji.js +1 -1
  193. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  194. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  195. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  196. package/es2021.en/plugins/finder/finder.css +1 -1
  197. package/es2021.en/plugins/finder/finder.js +1 -1
  198. package/es2021.en/plugins/finder/finder.min.js +1 -1
  199. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  200. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  201. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  202. package/es2021.en/plugins/google-search/google-search.js +1 -1
  203. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  204. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  205. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  206. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  207. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  208. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  209. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  210. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  211. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  212. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  213. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  214. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  215. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  216. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  217. package/es2021.en/plugins/page-break/page-break.js +1 -1
  218. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  219. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  220. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  221. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  222. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  223. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  224. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  225. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  226. package/es2021.en/plugins/style/style.css +1 -1
  227. package/es2021.en/plugins/style/style.js +51 -8
  228. package/es2021.en/plugins/style/style.min.js +2 -2
  229. package/es2021.en/plugins/templates/templates.css +1 -1
  230. package/es2021.en/plugins/templates/templates.js +1 -1
  231. package/es2021.en/plugins/templates/templates.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 +1 -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 +1 -1
  240. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  241. package/es5/jodit.css +2 -2
  242. package/es5/jodit.fat.min.js +2 -2
  243. package/es5/jodit.js +27 -6
  244. package/es5/jodit.min.css +2 -2
  245. package/es5/jodit.min.js +2 -2
  246. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  247. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  248. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  249. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  250. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  251. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  252. package/es5/plugins/backup/backup.css +1 -1
  253. package/es5/plugins/backup/backup.js +1 -1
  254. package/es5/plugins/backup/backup.min.js +1 -1
  255. package/es5/plugins/button-generator/button-generator.css +1 -1
  256. package/es5/plugins/button-generator/button-generator.js +1 -1
  257. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  258. package/es5/plugins/change-case/change-case.js +1 -1
  259. package/es5/plugins/change-case/change-case.min.js +1 -1
  260. package/es5/plugins/color-picker/color-picker.css +1 -1
  261. package/es5/plugins/color-picker/color-picker.js +1 -1
  262. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  263. package/es5/plugins/emoji/emoji.css +1 -1
  264. package/es5/plugins/emoji/emoji.js +1 -1
  265. package/es5/plugins/emoji/emoji.min.js +1 -1
  266. package/es5/plugins/export-docs/export-docs.js +1 -1
  267. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  268. package/es5/plugins/finder/finder.css +1 -1
  269. package/es5/plugins/finder/finder.js +1 -1
  270. package/es5/plugins/finder/finder.min.js +1 -1
  271. package/es5/plugins/google-maps/google-maps.css +1 -1
  272. package/es5/plugins/google-maps/google-maps.js +1 -1
  273. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  274. package/es5/plugins/google-search/google-search.js +1 -1
  275. package/es5/plugins/google-search/google-search.min.js +1 -1
  276. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  277. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  278. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  279. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  280. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  281. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  282. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  283. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  284. package/es5/plugins/keyboard/keyboard.css +1 -1
  285. package/es5/plugins/keyboard/keyboard.js +1 -1
  286. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  287. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  288. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  289. package/es5/plugins/page-break/page-break.js +1 -1
  290. package/es5/plugins/page-break/page-break.min.js +1 -1
  291. package/es5/plugins/paste-code/paste-code.css +1 -1
  292. package/es5/plugins/paste-code/paste-code.js +1 -1
  293. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  294. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  295. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  296. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  297. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  298. package/es5/plugins/style/style.css +1 -1
  299. package/es5/plugins/style/style.js +101 -19
  300. package/es5/plugins/style/style.min.js +2 -2
  301. package/es5/plugins/templates/templates.css +1 -1
  302. package/es5/plugins/templates/templates.js +1 -1
  303. package/es5/plugins/templates/templates.min.js +1 -1
  304. package/es5/plugins/todo-list/todo-list.css +1 -1
  305. package/es5/plugins/todo-list/todo-list.js +1 -1
  306. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  307. package/es5/plugins/translate/translate.css +1 -1
  308. package/es5/plugins/translate/translate.js +1 -1
  309. package/es5/plugins/translate/translate.min.js +1 -1
  310. package/es5/plugins/tune-block/tune-block.css +1 -1
  311. package/es5/plugins/tune-block/tune-block.js +1 -1
  312. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  313. package/es5/polyfills.fat.min.js +1 -1
  314. package/es5/polyfills.js +1 -1
  315. package/es5/polyfills.min.js +1 -1
  316. package/esm/plugins/style/helpers/apply-style.js +1 -1
  317. package/package.json +1 -1
@@ -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.13.47
4
+ * Version: v4.13.49
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -107,9 +107,13 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.style =
107
107
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
108
108
  /* harmony export */ applyStyle: function() { return /* binding */ applyStyle; }
109
109
  /* harmony export */ });
110
- /* harmony import */ var _detect_active_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69341);
111
- /* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
112
- /* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
110
+ /* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43284);
111
+ /* harmony import */ var _swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61200);
112
+ /* harmony import */ var _detect_active_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69341);
113
+ /* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82758);
114
+ /* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2748);
115
+ /* harmony import */ var jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
116
+ /* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41180);
113
117
  /*!
114
118
  * Jodit Editor PRO (https://xdsoft.net/jodit/)
115
119
  * See LICENSE.md in the project root for license information.
@@ -117,17 +121,21 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.style =
117
121
  */
118
122
 
119
123
 
124
+
125
+
126
+
127
+
120
128
  function findTarget(editor, def) {
121
129
  var current = editor.s.current();
122
130
  if (!current) {
123
131
  return null;
124
132
  }
125
- if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_BLOCK.test(def.element)) {
126
- return jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, editor.editor);
133
+ if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__.IS_BLOCK.test(def.element)) {
134
+ return jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, editor.editor);
127
135
  }
128
- var node = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(current) ? current : current.parentNode;
136
+ var node = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(current) ? current : current.parentNode;
129
137
  while(node && node !== editor.editor){
130
- if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isElement(node) && node.nodeName.toLowerCase() === def.element) {
138
+ if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(node) && node.nodeName.toLowerCase() === def.element) {
131
139
  return node;
132
140
  }
133
141
  node = node.parentNode;
@@ -169,8 +177,8 @@ function cleanupExtraClasses(editor, def) {
169
177
  if (!current) {
170
178
  return;
171
179
  }
172
- if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_BLOCK.test(def.element)) {
173
- var block = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isBlock, editor.editor);
180
+ if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__.IS_BLOCK.test(def.element)) {
181
+ var block = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, editor.editor);
174
182
  if (block) {
175
183
  removeClassesFromElement(block, classes.slice(1));
176
184
  }
@@ -179,7 +187,7 @@ function cleanupExtraClasses(editor, def) {
179
187
  if (target) {
180
188
  removeClassesFromElement(target, classes.slice(1));
181
189
  if (target.nodeName.toLowerCase() === 'span' && !target.attributes.length) {
182
- jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.unwrap(target);
190
+ jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.unwrap(target);
183
191
  }
184
192
  }
185
193
  }
@@ -198,6 +206,71 @@ function addExtraClasses(editor, def) {
198
206
  target.classList.add(classes[i]);
199
207
  }
200
208
  }
209
+ function removeBlockStyleAttributes(editor, def) {
210
+ var _def_classes;
211
+ var current = editor.s.current();
212
+ if (!current) {
213
+ return;
214
+ }
215
+ var block = jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(current, jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isBlock, editor.editor);
216
+ if (!block || block.nodeName.toLowerCase() !== def.element) {
217
+ return;
218
+ }
219
+ var classes = (_def_classes = def.classes) === null || _def_classes === void 0 ? void 0 : _def_classes.filter(Boolean);
220
+ if (classes === null || classes === void 0 ? void 0 : classes.length) {
221
+ removeClassesFromElement(block, classes);
222
+ }
223
+ if (def.attributes) {
224
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
225
+ try {
226
+ for(var _iterator = Object.entries(def.attributes)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
227
+ var _step_value = (0,_swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_0__._)(_step.value, 2), key = _step_value[0], value = _step_value[1];
228
+ if (value == null) {
229
+ continue;
230
+ }
231
+ if (key === 'class' && typeof value === 'string') {
232
+ removeClassesFromElement(block, value.split(/\s+/));
233
+ } else if (key === 'style' && (typeof value === "undefined" ? "undefined" : (0,_swc_helpers_type_of__WEBPACK_IMPORTED_MODULE_1__._)(value)) === 'object') {
234
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
235
+ try {
236
+ for(var _iterator1 = Object.keys(value)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
237
+ var prop = _step1.value;
238
+ (0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_6__.css)(block, prop, null);
239
+ }
240
+ } catch (err) {
241
+ _didIteratorError1 = true;
242
+ _iteratorError1 = err;
243
+ } finally{
244
+ try {
245
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
246
+ _iterator1.return();
247
+ }
248
+ } finally{
249
+ if (_didIteratorError1) {
250
+ throw _iteratorError1;
251
+ }
252
+ }
253
+ }
254
+ } else if ((0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(block, key) === String(value)) {
255
+ (0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(block, key, null);
256
+ }
257
+ }
258
+ } catch (err) {
259
+ _didIteratorError = true;
260
+ _iteratorError = err;
261
+ } finally{
262
+ try {
263
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
264
+ _iterator.return();
265
+ }
266
+ } finally{
267
+ if (_didIteratorError) {
268
+ throw _iteratorError;
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
201
274
  function buildCommitStyleOptions(def) {
202
275
  var _def_classes;
203
276
  if (def.attributes) {
@@ -220,14 +293,23 @@ function buildCommitStyleOptions(def) {
220
293
  };
221
294
  }
222
295
  function applyStyle(editor, def, definitions) {
223
- var active = (0,_detect_active_style__WEBPACK_IMPORTED_MODULE_0__.detectActiveStyle)(editor, definitions);
224
- if (active && jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_BLOCK.test(active.element) === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_BLOCK.test(def.element)) {
225
- editor.s.commitStyle(buildCommitStyleOptions(active));
226
- if (!active.attributes) {
227
- cleanupExtraClasses(editor, active);
228
- }
229
- if (active === def) {
230
- return;
296
+ var active = (0,_detect_active_style__WEBPACK_IMPORTED_MODULE_2__.detectActiveStyle)(editor, definitions);
297
+ var isBlockDef = jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__.IS_BLOCK.test(def.element);
298
+ if (active && jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__.IS_BLOCK.test(active.element) === isBlockDef) {
299
+ if (isBlockDef && active !== def) {
300
+ // Unsetting a block style via commitStyle unwraps the current
301
+ // block, so the new style would land on the surrounding container
302
+ // (e.g. the div around an h3). Strip the old definition's
303
+ // classes/attributes in place; commitStyle below replaces the tag.
304
+ removeBlockStyleAttributes(editor, active);
305
+ } else {
306
+ editor.s.commitStyle(buildCommitStyleOptions(active));
307
+ if (!active.attributes) {
308
+ cleanupExtraClasses(editor, active);
309
+ }
310
+ if (active === def) {
311
+ return;
312
+ }
231
313
  }
232
314
  }
233
315
  editor.s.commitStyle(buildCommitStyleOptions(def));
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.47
4
+ * Version: v4.13.49
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
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 r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},28609:function(t,e,r){"use strict";var n=r(69341),i=r(5440),o=r(78955),l=r.n(o),s=r(6441);s.Config.prototype.customStyles={definitions:[]},s.Config.prototype.controls.style={tooltip:"Styles",icon:l(),isDisabled:function(t){return!t.o.customStyles.definitions.length},isActive:function(t){var e=t.o.customStyles.definitions;return!!e.length&&null!=(0,n.detectActiveStyle)(t,e)},update:function(t,e){var r,i=t.o.customStyles.definitions;if(i.length){var o=(0,n.detectActiveStyle)(t,i),l=(null==(r=e.control)?void 0:r.component)==="select";(t.o.textIcons||l)&&(o?e.state.text=o.name:e.state.text=l?t.i18n("Styles"):"")}},exec:function(){return!1},popup:function(t,e,r){var n=t.o.customStyles.definitions;if(!n.length)return!1;t.s.current()||t.s.focus(),t.s.save();var o=(0,i.buildStylePopup)(t,n,function(){t.s.restore(),r()});return t.e.one("beforePopupClose",function(){t.s.restore()}),o}}},31105:function(t,e,r){"use strict";r.d(e,{applyStyle:function(){return u}});var n=r(69341),i=r(82758),o=r(2748);function l(t,e){var r=t.s.current();if(!r)return null;if(i.IS_BLOCK.test(e.element))return o.Dom.closest(r,o.Dom.isBlock,t.editor);for(var n=o.Dom.isElement(r)?r:r.parentNode;n&&n!==t.editor;){if(o.Dom.isElement(n)&&n.nodeName.toLowerCase()===e.element)return n;n=n.parentNode}return null}function s(t,e){var r=!0,n=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var s=o.value;t.classList.remove(s)}}catch(t){n=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(n)throw i}}""===t.className&&t.removeAttribute("class")}function a(t){if(t.attributes)return{element:t.element,attributes:t.attributes};var e,r=null==(e=t.classes)?void 0:e.filter(Boolean)[0];return r?{element:t.element,attributes:{class:r}}:{element:t.element}}function u(t,e,r){var u=(0,n.detectActiveStyle)(t,r);(!u||i.IS_BLOCK.test(u.element)!==i.IS_BLOCK.test(e.element)||(t.s.commitStyle(a(u)),u.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var a=t.s.current();if(a)if(i.IS_BLOCK.test(e.element)){var u=o.Dom.closest(a,o.Dom.isBlock,t.editor);u&&s(u,n.slice(1))}else{var c=l(t,e);c&&(s(c,n.slice(1)),"span"!==c.nodeName.toLowerCase()||c.attributes.length||o.Dom.unwrap(c))}}}(t,u),u!==e))&&(t.s.commitStyle(a(e)),e.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=l(t,e);if(i)for(var o=1;o<n.length;o++)i.classList.add(n[o])}}(t,e))}},8060:function(t,e,r){"use strict";r.d(e,{classifyDefinitions:function(){return i}});var n=r(82758);function i(t){var e=[],r=[],i=!0,o=!1,l=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var u=s.value;n.IS_BLOCK.test(u.element)?e.push(u):r.push(u)}}catch(t){o=!0,l=t}finally{try{i||null==a.return||a.return()}finally{if(o)throw l}}var c=[];return e.length&&c.push({title:"Block styles",definitions:e}),r.length&&c.push({title:"Text styles",definitions:r}),c}},69341:function(t,e,r){"use strict";r.d(e,{detectActiveStyle:function(){return c}});var n=r(43284),i=r(61200),o=r(82758),l=r(2748),s=r(29960),a=r(41180);function u(t,e){if(t.nodeName.toLowerCase()!==e.element)return!1;if(e.attributes)return function(t,e){var r=!0,o=!1,l=void 0;try{for(var u,c=Object.entries(e)[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var f=(0,n._)(u.value,2),v=f[0],d=f[1];if(null!=d){if("class"===v){if("string"==typeof d&&!t.classList.contains(d))return!1}else if("style"===v){if((void 0===d?"undefined":(0,i._)(d))==="object"&&null!=d){var y=!0,m=!1,p=void 0;try{for(var h,b=Object.entries(d)[Symbol.iterator]();!(y=(h=b.next()).done);y=!0){var S=(0,n._)(h.value,2),_=S[0],x=S[1];if(null!=x&&(0,a.css)(t,_,!0)!==String(x))return!1}}catch(t){m=!0,p=t}finally{try{y||null==b.return||b.return()}finally{if(m)throw p}}}}else if((0,s.attr)(t,v)!==String(d))return!1}}}catch(t){o=!0,l=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw l}}return!0}(t,e.attributes);var r,o=null==(r=e.classes)?void 0:r.filter(Boolean);return null==o||!o.length||o.every(function(e){return t.classList.contains(e)})}function c(t,e){var r=t.s.current();if(!r)return null;var n=!0,i=!1,s=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var f=a.value;if(o.IS_BLOCK.test(f.element)){var v=l.Dom.closest(r,l.Dom.isBlock,t.editor);if(v&&u(v,f))return f}else for(var d=l.Dom.isElement(r)?r:r.parentNode;d&&d!==t.editor;){if(l.Dom.isElement(d)&&u(d,f))return f;d=d.parentNode}}}catch(t){i=!0,s=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw s}}return null}},75554:function(t,e,r){"use strict";r.r(e),r.d(e,{style:function(){return f}});var n=r(80294),i=r(20616),o=r(67709),l=r(82749),s=r(18766),a=r(23078);r(28609);var u=r(50911),c=r(2692),f=function(t){function e(){var t;return(0,i._)(this,e),t=(0,n._)(this,e,arguments),(0,l._)(t,"buttons",[{name:"style",group:"font"}]),t}return(0,s._)(e,t),(0,o._)(e,[{key:"afterInit",value:function(t){}},{key:"beforeDestruct",value:function(t){}}]),e}((0,a._)(u.Plugin));(0,l._)(f,"requires",["license"]),c.JoditPro.plugins.add("style",f)},5440:function(t,e,r){"use strict";r.d(e,{buildStylePopup:function(){return a}});var n=r(31105),i=r(8060),o=r(69341),l=r(29960),s="jodit-style-popup";function a(t,e,r){var a=(0,i.classifyDefinitions)(e),u=(0,o.detectActiveStyle)(t,e),c=t.c.div(s),f=!0,v=!1,d=void 0;try{for(var y,m=a[Symbol.iterator]();!(f=(y=m.next()).done);f=!0){var p=y.value,h=t.c.div("".concat(s,"__group-title"));h.textContent=t.i18n(p.title),c.appendChild(h);var b=t.c.div("".concat(s,"__grid")),S=!0,_=!1,x=void 0;try{for(var g,w=p.definitions[Symbol.iterator]();!(S=(g=w.next()).done);S=!0)!function(){var i=g.value,o=t.c.element("button");o.type="button";var a=u===i;o.className="".concat(s,"__card")+(a?" ".concat(s,"__card_active_true"):"");var c=t.c.div("".concat(s,"__card-preview")),f=t.c.element(i.element);if(i.attributes)(0,l.attr)(f,i.attributes);else{var v=!0,d=!1,y=void 0;try{for(var m,p,h,S=(null!=(m=null==(p=i.classes)?void 0:p.filter(Boolean))?m:[])[Symbol.iterator]();!(v=(h=S.next()).done);v=!0){var _=h.value;f.classList.add(_)}}catch(t){d=!0,y=t}finally{try{v||null==S.return||S.return()}finally{if(d)throw y}}}f.textContent=i.name,c.appendChild(f),o.appendChild(c);var x=t.c.div("".concat(s,"__card-label"));x.textContent=i.name,o.appendChild(x),t.e.on(o,"click",function(){t.s.focus(),(0,n.applyStyle)(t,i,e),t.synchronizeValues(),r()}),b.appendChild(o)}()}catch(t){_=!0,x=t}finally{try{S||null==w.return||w.return()}finally{if(_)throw x}}c.appendChild(b)}}catch(t){v=!0,d=t}finally{try{f||null==m.return||m.return()}finally{if(v)throw d}}return c}}},function(t){return t(t.s=75554)}])});
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 r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[850],{78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},28609:function(t,e,r){"use strict";var n=r(69341),i=r(5440),o=r(78955),l=r.n(o),a=r(6441);a.Config.prototype.customStyles={definitions:[]},a.Config.prototype.controls.style={tooltip:"Styles",icon:l(),isDisabled:function(t){return!t.o.customStyles.definitions.length},isActive:function(t){var e=t.o.customStyles.definitions;return!!e.length&&null!=(0,n.detectActiveStyle)(t,e)},update:function(t,e){var r,i=t.o.customStyles.definitions;if(i.length){var o=(0,n.detectActiveStyle)(t,i),l=(null==(r=e.control)?void 0:r.component)==="select";(t.o.textIcons||l)&&(o?e.state.text=o.name:e.state.text=l?t.i18n("Styles"):"")}},exec:function(){return!1},popup:function(t,e,r){var n=t.o.customStyles.definitions;if(!n.length)return!1;t.s.current()||t.s.focus(),t.s.save();var o=(0,i.buildStylePopup)(t,n,function(){t.s.restore(),r()});return t.e.one("beforePopupClose",function(){t.s.restore()}),o}}},31105:function(t,e,r){"use strict";r.d(e,{applyStyle:function(){return d}});var n=r(43284),i=r(61200),o=r(69341),l=r(82758),a=r(2748),s=r(29960),u=r(41180);function c(t,e){var r=t.s.current();if(!r)return null;if(l.IS_BLOCK.test(e.element))return a.Dom.closest(r,a.Dom.isBlock,t.editor);for(var n=a.Dom.isElement(r)?r:r.parentNode;n&&n!==t.editor;){if(a.Dom.isElement(n)&&n.nodeName.toLowerCase()===e.element)return n;n=n.parentNode}return null}function f(t,e){var r=!0,n=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var a=o.value;t.classList.remove(a)}}catch(t){n=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(n)throw i}}""===t.className&&t.removeAttribute("class")}function v(t){if(t.attributes)return{element:t.element,attributes:t.attributes};var e,r=null==(e=t.classes)?void 0:e.filter(Boolean)[0];return r?{element:t.element,attributes:{class:r}}:{element:t.element}}function d(t,e,r){var d=(0,o.detectActiveStyle)(t,r),y=l.IS_BLOCK.test(e.element);if(d&&l.IS_BLOCK.test(d.element)===y){if(y&&d!==e)!function(t,e){var r=t.s.current();if(r){var o=a.Dom.closest(r,a.Dom.isBlock,t.editor);if(o&&o.nodeName.toLowerCase()===e.element){var l=null==(y=e.classes)?void 0:y.filter(Boolean);if((null==l?void 0:l.length)&&f(o,l),e.attributes){var c=!0,v=!1,d=void 0;try{for(var y,m,p=Object.entries(e.attributes)[Symbol.iterator]();!(c=(m=p.next()).done);c=!0){var h=(0,n._)(m.value,2),b=h[0],S=h[1];if(null!=S)if("class"===b&&"string"==typeof S)f(o,S.split(/\s+/));else if("style"===b&&(void 0===S?"undefined":(0,i._)(S))==="object"){var _=!0,g=!1,x=void 0;try{for(var w,C=Object.keys(S)[Symbol.iterator]();!(_=(w=C.next()).done);_=!0){var B=w.value;(0,u.css)(o,B,null)}}catch(t){g=!0,x=t}finally{try{_||null==C.return||C.return()}finally{if(g)throw x}}}else(0,s.attr)(o,b)===String(S)&&(0,s.attr)(o,b,null)}}catch(t){v=!0,d=t}finally{try{c||null==p.return||p.return()}finally{if(v)throw d}}}}}}(t,d);else if(t.s.commitStyle(v(d)),d.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=t.s.current();if(i)if(l.IS_BLOCK.test(e.element)){var o=a.Dom.closest(i,a.Dom.isBlock,t.editor);o&&f(o,n.slice(1))}else{var s=c(t,e);s&&(f(s,n.slice(1)),"span"!==s.nodeName.toLowerCase()||s.attributes.length||a.Dom.unwrap(s))}}}(t,d),d===e)return}t.s.commitStyle(v(e)),e.attributes||function(t,e){var r,n=null==(r=e.classes)?void 0:r.filter(Boolean);if(n&&!(n.length<=1)){var i=c(t,e);if(i)for(var o=1;o<n.length;o++)i.classList.add(n[o])}}(t,e)}},8060:function(t,e,r){"use strict";r.d(e,{classifyDefinitions:function(){return i}});var n=r(82758);function i(t){var e=[],r=[],i=!0,o=!1,l=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var u=a.value;n.IS_BLOCK.test(u.element)?e.push(u):r.push(u)}}catch(t){o=!0,l=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}var c=[];return e.length&&c.push({title:"Block styles",definitions:e}),r.length&&c.push({title:"Text styles",definitions:r}),c}},69341:function(t,e,r){"use strict";r.d(e,{detectActiveStyle:function(){return c}});var n=r(43284),i=r(61200),o=r(82758),l=r(2748),a=r(29960),s=r(41180);function u(t,e){if(t.nodeName.toLowerCase()!==e.element)return!1;if(e.attributes)return function(t,e){var r=!0,o=!1,l=void 0;try{for(var u,c=Object.entries(e)[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var f=(0,n._)(u.value,2),v=f[0],d=f[1];if(null!=d){if("class"===v){if("string"==typeof d&&!t.classList.contains(d))return!1}else if("style"===v){if((void 0===d?"undefined":(0,i._)(d))==="object"&&null!=d){var y=!0,m=!1,p=void 0;try{for(var h,b=Object.entries(d)[Symbol.iterator]();!(y=(h=b.next()).done);y=!0){var S=(0,n._)(h.value,2),_=S[0],g=S[1];if(null!=g&&(0,s.css)(t,_,!0)!==String(g))return!1}}catch(t){m=!0,p=t}finally{try{y||null==b.return||b.return()}finally{if(m)throw p}}}}else if((0,a.attr)(t,v)!==String(d))return!1}}}catch(t){o=!0,l=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw l}}return!0}(t,e.attributes);var r,o=null==(r=e.classes)?void 0:r.filter(Boolean);return null==o||!o.length||o.every(function(e){return t.classList.contains(e)})}function c(t,e){var r=t.s.current();if(!r)return null;var n=!0,i=!1,a=void 0;try{for(var s,c=e[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var f=s.value;if(o.IS_BLOCK.test(f.element)){var v=l.Dom.closest(r,l.Dom.isBlock,t.editor);if(v&&u(v,f))return f}else for(var d=l.Dom.isElement(r)?r:r.parentNode;d&&d!==t.editor;){if(l.Dom.isElement(d)&&u(d,f))return f;d=d.parentNode}}}catch(t){i=!0,a=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw a}}return null}},75554:function(t,e,r){"use strict";r.r(e),r.d(e,{style:function(){return f}});var n=r(80294),i=r(20616),o=r(67709),l=r(82749),a=r(18766),s=r(23078);r(28609);var u=r(50911),c=r(2692),f=function(t){function e(){var t;return(0,i._)(this,e),t=(0,n._)(this,e,arguments),(0,l._)(t,"buttons",[{name:"style",group:"font"}]),t}return(0,a._)(e,t),(0,o._)(e,[{key:"afterInit",value:function(t){}},{key:"beforeDestruct",value:function(t){}}]),e}((0,s._)(u.Plugin));(0,l._)(f,"requires",["license"]),c.JoditPro.plugins.add("style",f)},5440:function(t,e,r){"use strict";r.d(e,{buildStylePopup:function(){return s}});var n=r(31105),i=r(8060),o=r(69341),l=r(29960),a="jodit-style-popup";function s(t,e,r){var s=(0,i.classifyDefinitions)(e),u=(0,o.detectActiveStyle)(t,e),c=t.c.div(a),f=!0,v=!1,d=void 0;try{for(var y,m=s[Symbol.iterator]();!(f=(y=m.next()).done);f=!0){var p=y.value,h=t.c.div("".concat(a,"__group-title"));h.textContent=t.i18n(p.title),c.appendChild(h);var b=t.c.div("".concat(a,"__grid")),S=!0,_=!1,g=void 0;try{for(var x,w=p.definitions[Symbol.iterator]();!(S=(x=w.next()).done);S=!0)!function(){var i=x.value,o=t.c.element("button");o.type="button";var s=u===i;o.className="".concat(a,"__card")+(s?" ".concat(a,"__card_active_true"):"");var c=t.c.div("".concat(a,"__card-preview")),f=t.c.element(i.element);if(i.attributes)(0,l.attr)(f,i.attributes);else{var v=!0,d=!1,y=void 0;try{for(var m,p,h,S=(null!=(m=null==(p=i.classes)?void 0:p.filter(Boolean))?m:[])[Symbol.iterator]();!(v=(h=S.next()).done);v=!0){var _=h.value;f.classList.add(_)}}catch(t){d=!0,y=t}finally{try{v||null==S.return||S.return()}finally{if(d)throw y}}}f.textContent=i.name,c.appendChild(f),o.appendChild(c);var g=t.c.div("".concat(a,"__card-label"));g.textContent=i.name,o.appendChild(g),t.e.on(o,"click",function(){t.s.focus(),(0,n.applyStyle)(t,i,e),t.synchronizeValues(),r()}),b.appendChild(o)}()}catch(t){_=!0,g=t}finally{try{S||null==w.return||w.return()}finally{if(_)throw g}}c.appendChild(b)}}catch(t){v=!0,d=t}finally{try{f||null==m.return||m.return()}finally{if(v)throw d}}return c}}},function(t){return t(t.s=75554)}])});
@@ -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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
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.13.47
4
+ * Version: v4.13.49
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1 +1 @@
1
- var f=Object.defineProperty;var r=(t,s)=>f(t,"name",{value:s,configurable:!0});import{detectActiveStyle as v}from"./detect-active-style.js";import{IS_BLOCK as a}from"jodit/esm/core/constants.js";import{Dom as i}from"jodit/esm/core/dom/dom.js";function c(t,s){const n=t.s.current();if(!n)return null;if(a.test(s.element))return i.closest(n,i.isBlock,t.editor);let e=i.isElement(n)?n:n.parentNode;for(;e&&e!==t.editor;){if(i.isElement(e)&&e.nodeName.toLowerCase()===s.element)return e;e=e.parentNode}return null}r(c,"findTarget");function u(t,s){for(const n of s)t.classList.remove(n);t.className===""&&t.removeAttribute("class")}r(u,"removeClassesFromElement");function p(t,s){var n;const e=(n=s.classes)===null||n===void 0?void 0:n.filter(Boolean);if(!e||e.length<=1)return;const o=t.s.current();if(o)if(a.test(s.element)){const l=i.closest(o,i.isBlock,t.editor);l&&u(l,e.slice(1))}else{const l=c(t,s);l&&(u(l,e.slice(1)),l.nodeName.toLowerCase()==="span"&&!l.attributes.length&&i.unwrap(l))}}r(p,"cleanupExtraClasses");function b(t,s){var n;const e=(n=s.classes)===null||n===void 0?void 0:n.filter(Boolean);if(!e||e.length<=1)return;const o=c(t,s);if(o)for(let l=1;l<e.length;l++)o.classList.add(e[l])}r(b,"addExtraClasses");function m(t){var s;if(t.attributes)return{element:t.element,attributes:t.attributes};const n=(s=t.classes)===null||s===void 0?void 0:s.filter(Boolean)[0];return n?{element:t.element,attributes:{class:n}}:{element:t.element}}r(m,"buildCommitStyleOptions");function S(t,s,n){const e=v(t,n);e&&a.test(e.element)===a.test(s.element)&&(t.s.commitStyle(m(e)),e.attributes||p(t,e),e===s)||(t.s.commitStyle(m(s)),s.attributes||b(t,s))}r(S,"applyStyle");export{S as applyStyle};
1
+ var y=Object.defineProperty;var i=(t,e)=>y(t,"name",{value:e,configurable:!0});import{detectActiveStyle as g}from"./detect-active-style.js";import{IS_BLOCK as u}from"jodit/esm/core/constants.js";import{Dom as r}from"jodit/esm/core/dom/dom.js";import{attr as f}from"jodit/esm/core/helpers/utils/attr.js";import{css as B}from"jodit/esm/core/helpers/utils/css.js";function v(t,e){const n=t.s.current();if(!n)return null;if(u.test(e.element))return r.closest(n,r.isBlock,t.editor);let s=r.isElement(n)?n:n.parentNode;for(;s&&s!==t.editor;){if(r.isElement(s)&&s.nodeName.toLowerCase()===e.element)return s;s=s.parentNode}return null}i(v,"findTarget");function m(t,e){for(const n of e)t.classList.remove(n);t.className===""&&t.removeAttribute("class")}i(m,"removeClassesFromElement");function k(t,e){var n;const s=(n=e.classes)===null||n===void 0?void 0:n.filter(Boolean);if(!s||s.length<=1)return;const o=t.s.current();if(o)if(u.test(e.element)){const l=r.closest(o,r.isBlock,t.editor);l&&m(l,s.slice(1))}else{const l=v(t,e);l&&(m(l,s.slice(1)),l.nodeName.toLowerCase()==="span"&&!l.attributes.length&&r.unwrap(l))}}i(k,"cleanupExtraClasses");function C(t,e){var n;const s=(n=e.classes)===null||n===void 0?void 0:n.filter(Boolean);if(!s||s.length<=1)return;const o=v(t,e);if(o)for(let l=1;l<s.length;l++)o.classList.add(s[l])}i(C,"addExtraClasses");function S(t,e){var n;const s=t.s.current();if(!s)return;const o=r.closest(s,r.isBlock,t.editor);if(!o||o.nodeName.toLowerCase()!==e.element)return;const l=(n=e.classes)===null||n===void 0?void 0:n.filter(Boolean);if(l?.length&&m(o,l),e.attributes){for(const[a,c]of Object.entries(e.attributes))if(c!=null)if(a==="class"&&typeof c=="string")m(o,c.split(/\s+/));else if(a==="style"&&typeof c=="object")for(const b of Object.keys(c))B(o,b,null);else f(o,a)===String(c)&&f(o,a,null)}}i(S,"removeBlockStyleAttributes");function p(t){var e;if(t.attributes)return{element:t.element,attributes:t.attributes};const n=(e=t.classes)===null||e===void 0?void 0:e.filter(Boolean)[0];return n?{element:t.element,attributes:{class:n}}:{element:t.element}}i(p,"buildCommitStyleOptions");function O(t,e,n){const s=g(t,n),o=u.test(e.element);if(s&&u.test(s.element)===o){if(o&&s!==e)S(t,s);else if(t.s.commitStyle(p(s)),s.attributes||k(t,s),s===e)return}t.s.commitStyle(p(e)),e.attributes||C(t,e)}i(O,"applyStyle");export{O as applyStyle};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit-pro",
3
- "version": "4.13.47",
3
+ "version": "4.13.49",
4
4
  "author": "Chupurnov Valerii <chupurnov@gmail.com>",
5
5
  "homepage": "https://xdsoft.net/jodit/pro/",
6
6
  "bugs": {