argous 1.2.201 → 1.2.203

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 (409) hide show
  1. package/dist/components/ConfirmModal/ModalProvider.d.ts +1 -1
  2. package/dist/components/DropArea/DropArea.js +2 -7
  3. package/dist/components/Editor/components/Editor.d.ts +4 -4
  4. package/dist/components/Editor/components/Editor.js +3 -3
  5. package/dist/components/Editor/skins/content/dark/content.d.ts +0 -0
  6. package/dist/components/Editor/skins/content/dark/content.js +3 -0
  7. package/dist/components/Editor/skins/content/default/content.d.ts +0 -0
  8. package/dist/components/Editor/skins/content/default/content.js +3 -0
  9. package/dist/components/Editor/skins/content/document/content.d.ts +0 -0
  10. package/dist/components/Editor/skins/content/document/content.js +3 -0
  11. package/dist/components/Editor/skins/content/tinymce-5/content.d.ts +0 -0
  12. package/dist/components/Editor/skins/content/tinymce-5/content.js +3 -0
  13. package/dist/components/Editor/skins/content/tinymce-5-dark/content.d.ts +0 -0
  14. package/dist/components/Editor/skins/content/tinymce-5-dark/content.js +3 -0
  15. package/dist/components/Editor/skins/content/writer/content.d.ts +0 -0
  16. package/dist/components/Editor/skins/content/writer/content.js +3 -0
  17. package/dist/components/Editor/skins/ui/oxide/content.d.ts +0 -0
  18. package/dist/components/Editor/skins/ui/oxide/content.inline.d.ts +0 -0
  19. package/dist/components/Editor/skins/ui/oxide/content.inline.js +3 -0
  20. package/dist/components/Editor/skins/ui/oxide/content.js +3 -0
  21. package/dist/components/Editor/skins/ui/oxide/skin.d.ts +0 -0
  22. package/dist/components/Editor/skins/ui/oxide/skin.js +3 -0
  23. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  24. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.js +3 -0
  25. package/dist/components/Editor/skins/ui/oxide-dark/content.d.ts +0 -0
  26. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  27. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.js +3 -0
  28. package/dist/components/Editor/skins/ui/oxide-dark/content.js +3 -0
  29. package/dist/components/Editor/skins/ui/oxide-dark/skin.d.ts +0 -0
  30. package/dist/components/Editor/skins/ui/oxide-dark/skin.js +3 -0
  31. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  32. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +3 -0
  33. package/dist/components/Editor/skins/ui/tinymce-5/content.d.ts +0 -0
  34. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.d.ts +0 -0
  35. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.js +3 -0
  36. package/dist/components/Editor/skins/ui/tinymce-5/content.js +3 -0
  37. package/dist/components/Editor/skins/ui/tinymce-5/skin.d.ts +0 -0
  38. package/dist/components/Editor/skins/ui/tinymce-5/skin.js +3 -0
  39. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.d.ts +0 -0
  40. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +3 -0
  41. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.d.ts +0 -0
  42. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.d.ts +0 -0
  43. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +3 -0
  44. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.js +3 -0
  45. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.d.ts +0 -0
  46. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.js +3 -0
  47. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.d.ts +0 -0
  48. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +3 -0
  49. package/dist/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  50. package/lib/components/DropArea/DropArea.js +9 -10
  51. package/lib/components/Editor/components/Editor.tsx +8 -8
  52. package/lib/components/Editor/skins/content/dark/content.js +2 -0
  53. package/lib/components/Editor/skins/content/dark/content.min.css +1 -8
  54. package/lib/components/Editor/skins/content/default/content.js +2 -0
  55. package/lib/components/Editor/skins/content/default/content.min.css +0 -7
  56. package/lib/components/Editor/skins/content/document/content.js +2 -0
  57. package/lib/components/Editor/skins/content/document/content.min.css +0 -7
  58. package/lib/components/Editor/skins/content/tinymce-5/content.js +2 -0
  59. package/lib/components/Editor/skins/content/tinymce-5/content.min.css +1 -0
  60. package/lib/components/Editor/skins/content/tinymce-5-dark/content.js +2 -0
  61. package/lib/components/Editor/skins/content/tinymce-5-dark/content.min.css +1 -0
  62. package/lib/components/Editor/skins/content/writer/content.js +2 -0
  63. package/lib/components/Editor/skins/content/writer/content.min.css +0 -7
  64. package/lib/components/Editor/skins/ui/oxide/content.inline.js +2 -0
  65. package/lib/components/Editor/skins/ui/oxide/content.inline.min.css +1 -0
  66. package/lib/components/Editor/skins/ui/oxide/content.js +2 -0
  67. package/lib/components/Editor/skins/ui/oxide/content.min.css +1 -0
  68. package/lib/components/Editor/skins/ui/oxide/skin.js +2 -0
  69. package/lib/components/Editor/skins/ui/oxide/skin.min.css +1 -0
  70. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.js +2 -0
  71. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  72. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.js +2 -0
  73. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.min.css +1 -0
  74. package/lib/components/Editor/skins/ui/oxide-dark/content.js +2 -0
  75. package/lib/components/Editor/skins/ui/oxide-dark/content.min.css +1 -0
  76. package/lib/components/Editor/skins/ui/oxide-dark/skin.js +2 -0
  77. package/lib/components/Editor/skins/ui/oxide-dark/skin.min.css +1 -0
  78. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  79. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  80. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.js +2 -0
  81. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.min.css +1 -0
  82. package/lib/components/Editor/skins/ui/tinymce-5/content.js +2 -0
  83. package/lib/components/Editor/skins/ui/tinymce-5/content.min.css +1 -0
  84. package/lib/components/Editor/skins/ui/tinymce-5/skin.js +2 -0
  85. package/lib/components/Editor/skins/ui/tinymce-5/skin.min.css +1 -0
  86. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  87. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  88. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  89. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  90. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.js +2 -0
  91. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.min.css +1 -0
  92. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.js +2 -0
  93. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  94. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  95. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  96. package/lib/components/Editor/tinymce/README.md +24 -14
  97. package/lib/components/Editor/tinymce/icons/default/icons.js +185 -163
  98. package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -1
  99. package/lib/components/Editor/tinymce/langs/README.md +1 -1
  100. package/lib/components/Editor/tinymce/license.txt +21 -504
  101. package/lib/components/Editor/tinymce/models/dom/model.js +8040 -0
  102. package/lib/components/Editor/tinymce/models/dom/model.min.js +4 -0
  103. package/lib/components/Editor/tinymce/plugins/accordion/plugin.js +1054 -0
  104. package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +4 -0
  105. package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +187 -208
  106. package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +2 -7
  107. package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +82 -84
  108. package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +2 -7
  109. package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +210 -167
  110. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +2 -7
  111. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +118 -97
  112. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +2 -7
  113. package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +129 -108
  114. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +2 -7
  115. package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +285 -333
  116. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +2 -7
  117. package/lib/components/Editor/tinymce/plugins/code/plugin.js +19 -26
  118. package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +2 -7
  119. package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2225 -2094
  120. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +2 -7
  121. package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +318 -243
  122. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +2 -7
  123. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -9424
  124. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -1
  125. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +1 -9423
  126. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +1 -1
  127. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +406 -416
  128. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +2 -7
  129. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +821 -604
  130. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +2 -7
  131. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
  132. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
  133. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
  134. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
  135. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
  136. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
  137. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
  138. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
  139. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
  140. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
  141. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
  142. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
  143. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
  144. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
  145. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
  146. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
  147. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
  148. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
  149. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
  150. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
  151. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
  152. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
  153. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
  154. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
  155. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
  156. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
  157. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
  158. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
  159. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
  160. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
  161. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
  162. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
  163. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
  164. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
  165. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
  166. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
  167. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
  168. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
  169. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
  170. package/lib/components/Editor/tinymce/plugins/help/plugin.js +428 -403
  171. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +2 -7
  172. package/lib/components/Editor/tinymce/plugins/image/plugin.js +887 -1043
  173. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +2 -7
  174. package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +163 -162
  175. package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +2 -7
  176. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +101 -91
  177. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +2 -7
  178. package/lib/components/Editor/tinymce/plugins/link/plugin.js +739 -784
  179. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +2 -7
  180. package/lib/components/Editor/tinymce/plugins/lists/plugin.js +1282 -1396
  181. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +2 -7
  182. package/lib/components/Editor/tinymce/plugins/media/plugin.js +641 -806
  183. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +2 -7
  184. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +76 -54
  185. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +2 -7
  186. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +58 -46
  187. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +2 -7
  188. package/lib/components/Editor/tinymce/plugins/preview/plugin.js +39 -69
  189. package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +2 -7
  190. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +307 -349
  191. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +2 -7
  192. package/lib/components/Editor/tinymce/plugins/save/plugin.js +50 -51
  193. package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +2 -7
  194. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +517 -587
  195. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +2 -7
  196. package/lib/components/Editor/tinymce/plugins/table/plugin.js +2666 -10142
  197. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +2 -7
  198. package/lib/components/Editor/tinymce/plugins/template/plugin.js +403 -413
  199. package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +2 -7
  200. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +42 -48
  201. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +2 -7
  202. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +352 -333
  203. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +2 -7
  204. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +184 -195
  205. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +2 -7
  206. package/lib/components/Editor/tinymce/skins/content/dark/content.css +2 -8
  207. package/lib/components/Editor/tinymce/skins/content/dark/content.js +2 -0
  208. package/lib/components/Editor/tinymce/skins/content/dark/content.js.map +1 -0
  209. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +2 -8
  210. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -1
  211. package/lib/components/Editor/tinymce/skins/content/default/content.css +0 -6
  212. package/lib/components/Editor/tinymce/skins/content/default/content.js +2 -0
  213. package/lib/components/Editor/tinymce/skins/content/default/content.js.map +1 -0
  214. package/lib/components/Editor/tinymce/skins/content/default/content.min.css +1 -7
  215. package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -1
  216. package/lib/components/Editor/tinymce/skins/content/document/content.css +0 -6
  217. package/lib/components/Editor/tinymce/skins/content/document/content.js +2 -0
  218. package/lib/components/Editor/tinymce/skins/content/document/content.js.map +1 -0
  219. package/lib/components/Editor/tinymce/skins/content/document/content.min.css +0 -6
  220. package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -1
  221. package/lib/components/Editor/{skins/content/default → tinymce/skins/content/tinymce-5}/content.css +0 -6
  222. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js +2 -0
  223. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js.map +1 -0
  224. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +2 -0
  225. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css.map +1 -0
  226. package/lib/components/Editor/{skins/content/dark → tinymce/skins/content/tinymce-5-dark}/content.css +1 -7
  227. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
  228. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js.map +1 -0
  229. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +2 -0
  230. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css.map +1 -0
  231. package/lib/components/Editor/tinymce/skins/content/writer/content.css +0 -6
  232. package/lib/components/Editor/tinymce/skins/content/writer/content.js +2 -0
  233. package/lib/components/Editor/tinymce/skins/content/writer/content.js.map +1 -0
  234. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +0 -6
  235. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -1
  236. package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +74 -21
  237. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +74 -21
  238. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
  239. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js.map +1 -0
  240. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
  241. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -1
  242. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js +2 -0
  243. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js.map +1 -0
  244. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +1 -7
  245. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -1
  246. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +1131 -402
  247. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js +2 -0
  248. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js.map +1 -0
  249. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +1 -7
  250. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -1
  251. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +8 -15
  252. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  253. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js.map +1 -0
  254. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
  255. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -1
  256. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +72 -20
  257. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +74 -21
  258. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  259. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js.map +1 -0
  260. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
  261. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
  262. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
  263. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js.map +1 -0
  264. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
  265. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -1
  266. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +1155 -423
  267. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  268. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js.map +1 -0
  269. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
  270. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -1
  271. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +8 -15
  272. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  273. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js.map +1 -0
  274. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
  275. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -1
  276. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.css +75 -22
  277. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.inline.css +75 -22
  278. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
  279. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js.map +1 -0
  280. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +2 -0
  281. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css.map +1 -0
  282. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
  283. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js.map +1 -0
  284. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +2 -0
  285. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css.map +1 -0
  286. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.css +1261 -438
  287. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
  288. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js.map +1 -0
  289. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +2 -0
  290. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css.map +1 -0
  291. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.shadowdom.css +8 -15
  292. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  293. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js.map +1 -0
  294. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +2 -0
  295. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css.map +1 -0
  296. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.css +73 -21
  297. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.inline.css +75 -22
  298. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  299. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js.map +1 -0
  300. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +2 -0
  301. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css.map +1 -0
  302. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
  303. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js.map +1 -0
  304. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +2 -0
  305. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css.map +1 -0
  306. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.css +1244 -421
  307. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
  308. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js.map +1 -0
  309. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +2 -0
  310. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css.map +1 -0
  311. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.shadowdom.css +8 -15
  312. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  313. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js.map +1 -0
  314. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +2 -0
  315. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.map +1 -0
  316. package/lib/components/Editor/tinymce/themes/silver/theme.js +23228 -24955
  317. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +2 -7
  318. package/lib/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  319. package/lib/components/Editor/tinymce/tinymce.js +23668 -22018
  320. package/lib/components/Editor/tinymce/tinymce.min.js +2 -30104
  321. package/package.json +1 -1
  322. package/lib/components/Editor/skins/content/dark/content.min.css.map +0 -1
  323. package/lib/components/Editor/skins/content/default/content.min.css.map +0 -1
  324. package/lib/components/Editor/skins/content/document/content.css +0 -72
  325. package/lib/components/Editor/skins/content/document/content.min.css.map +0 -1
  326. package/lib/components/Editor/skins/content/writer/content.css +0 -68
  327. package/lib/components/Editor/skins/content/writer/content.min.css.map +0 -1
  328. package/lib/components/Editor/skins/ui/dark/content.inline.min.css +0 -8
  329. package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +0 -1
  330. package/lib/components/Editor/skins/ui/dark/content.min.css +0 -8
  331. package/lib/components/Editor/skins/ui/dark/content.min.css.map +0 -1
  332. package/lib/components/Editor/skins/ui/dark/content.mobile.css +0 -29
  333. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +0 -8
  334. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +0 -1
  335. package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
  336. package/lib/components/Editor/skins/ui/dark/skin.min.css +0 -8
  337. package/lib/components/Editor/skins/ui/dark/skin.min.css.map +0 -1
  338. package/lib/components/Editor/skins/ui/dark/skin.mobile.css +0 -673
  339. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +0 -8
  340. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +0 -1
  341. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +0 -8
  342. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +0 -1
  343. package/lib/components/Editor/skins/ui/default/content.inline.min.css +0 -8
  344. package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +0 -1
  345. package/lib/components/Editor/skins/ui/default/content.min.css +0 -8
  346. package/lib/components/Editor/skins/ui/default/content.min.css.map +0 -1
  347. package/lib/components/Editor/skins/ui/default/content.mobile.css +0 -29
  348. package/lib/components/Editor/skins/ui/default/content.mobile.min.css +0 -8
  349. package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +0 -1
  350. package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
  351. package/lib/components/Editor/skins/ui/default/skin.min.css +0 -8
  352. package/lib/components/Editor/skins/ui/default/skin.min.css.map +0 -1
  353. package/lib/components/Editor/skins/ui/default/skin.mobile.css +0 -673
  354. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +0 -8
  355. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +0 -1
  356. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +0 -8
  357. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +0 -1
  358. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
  359. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +0 -1641
  360. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +0 -8
  361. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +0 -1
  362. package/lib/components/Editor/tinymce/jquery.tinymce.min.js +0 -92
  363. package/lib/components/Editor/tinymce/langs/pt_BR.js +0 -419
  364. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -99
  365. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +0 -9
  366. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.js +0 -22
  367. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +0 -9
  368. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.js +0 -22
  369. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +0 -9
  370. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -544
  371. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +0 -9
  372. package/lib/components/Editor/tinymce/plugins/hr/plugin.js +0 -46
  373. package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +0 -9
  374. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1354
  375. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +0 -9
  376. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -199
  377. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +0 -9
  378. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -117
  379. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +0 -9
  380. package/lib/components/Editor/tinymce/plugins/paste/plugin.js +0 -1764
  381. package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +0 -9
  382. package/lib/components/Editor/tinymce/plugins/print/plugin.js +0 -53
  383. package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +0 -9
  384. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -731
  385. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +0 -9
  386. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -129
  387. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +0 -9
  388. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.js +0 -22
  389. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +0 -9
  390. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1394
  391. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +0 -9
  392. package/lib/components/Editor/tinymce/plugins/toc/plugin.js +0 -236
  393. package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +0 -9
  394. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +0 -29
  395. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +0 -8
  396. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +0 -1
  397. package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  398. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +0 -673
  399. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -8
  400. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +0 -1
  401. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
  402. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -8
  403. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +0 -1
  404. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  405. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
  406. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
  407. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +0 -1
  408. package/lib/components/Editor/tinymce/themes/mobile/theme.js +0 -13587
  409. package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +0 -9
@@ -1,69 +1,56 @@
1
1
  /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.9.0 (TBD)
2
+ * TinyMCE version 6.8.2 (2023-12-11)
8
3
  */
4
+
9
5
  (function () {
10
6
  'use strict';
11
7
 
12
- var Cell = function (initial) {
13
- var value = initial;
14
- var get = function () {
8
+ const Cell = initial => {
9
+ let value = initial;
10
+ const get = () => {
15
11
  return value;
16
12
  };
17
- var set = function (v) {
13
+ const set = v => {
18
14
  value = v;
19
15
  };
20
16
  return {
21
- get: get,
22
- set: set
17
+ get,
18
+ set
23
19
  };
24
20
  };
25
21
 
26
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
22
+ var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
27
23
 
28
- var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
24
+ const constant = value => {
25
+ return () => {
26
+ return value;
27
+ };
28
+ };
29
29
 
30
- var global$2 = tinymce.util.Tools.resolve('tinymce.util.Delay');
30
+ var global = tinymce.util.Tools.resolve('tinymce.Env');
31
31
 
32
- var fireResizeEditor = function (editor) {
33
- return editor.fire('ResizeEditor');
34
- };
32
+ const fireResizeEditor = editor => editor.dispatch('ResizeEditor');
35
33
 
36
- var getAutoResizeMinHeight = function (editor) {
37
- return editor.getParam('min_height', editor.getElement().offsetHeight, 'number');
38
- };
39
- var getAutoResizeMaxHeight = function (editor) {
40
- return editor.getParam('max_height', 0, 'number');
41
- };
42
- var getAutoResizeOverflowPadding = function (editor) {
43
- return editor.getParam('autoresize_overflow_padding', 1, 'number');
44
- };
45
- var getAutoResizeBottomMargin = function (editor) {
46
- return editor.getParam('autoresize_bottom_margin', 50, 'number');
47
- };
48
- var shouldAutoResizeOnInit = function (editor) {
49
- return editor.getParam('autoresize_on_init', true, 'boolean');
34
+ const option = name => editor => editor.options.get(name);
35
+ const register$1 = editor => {
36
+ const registerOption = editor.options.register;
37
+ registerOption('autoresize_overflow_padding', {
38
+ processor: 'number',
39
+ default: 1
40
+ });
41
+ registerOption('autoresize_bottom_margin', {
42
+ processor: 'number',
43
+ default: 50
44
+ });
50
45
  };
46
+ const getMinHeight = option('min_height');
47
+ const getMaxHeight = option('max_height');
48
+ const getAutoResizeOverflowPadding = option('autoresize_overflow_padding');
49
+ const getAutoResizeBottomMargin = option('autoresize_bottom_margin');
51
50
 
52
- var isFullscreen = function (editor) {
53
- return editor.plugins.fullscreen && editor.plugins.fullscreen.isFullscreen();
54
- };
55
- var wait = function (editor, oldSize, times, interval, callback) {
56
- global$2.setEditorTimeout(editor, function () {
57
- resize(editor, oldSize);
58
- if (times--) {
59
- wait(editor, oldSize, times, interval, callback);
60
- } else if (callback) {
61
- callback();
62
- }
63
- }, interval);
64
- };
65
- var toggleScrolling = function (editor, state) {
66
- var body = editor.getBody();
51
+ const isFullscreen = editor => editor.plugins.fullscreen && editor.plugins.fullscreen.isFullscreen();
52
+ const toggleScrolling = (editor, state) => {
53
+ const body = editor.getBody();
67
54
  if (body) {
68
55
  body.style.overflowY = state ? '' : 'hidden';
69
56
  if (!state) {
@@ -71,13 +58,23 @@
71
58
  }
72
59
  }
73
60
  };
74
- var parseCssValueToInt = function (dom, elm, name, computed) {
75
- var value = parseInt(dom.getStyle(elm, name, computed), 10);
61
+ const parseCssValueToInt = (dom, elm, name, computed) => {
62
+ var _a;
63
+ const value = parseInt((_a = dom.getStyle(elm, name, computed)) !== null && _a !== void 0 ? _a : '', 10);
76
64
  return isNaN(value) ? 0 : value;
77
65
  };
78
- var resize = function (editor, oldSize) {
79
- var dom = editor.dom;
80
- var doc = editor.getDoc();
66
+ const shouldScrollIntoView = trigger => {
67
+ if ((trigger === null || trigger === void 0 ? void 0 : trigger.type.toLowerCase()) === 'setcontent') {
68
+ const setContentEvent = trigger;
69
+ return setContentEvent.selection === true || setContentEvent.paste === true;
70
+ } else {
71
+ return false;
72
+ }
73
+ };
74
+ const resize = (editor, oldSize, trigger, getExtraMarginBottom) => {
75
+ var _a;
76
+ const dom = editor.dom;
77
+ const doc = editor.getDoc();
81
78
  if (!doc) {
82
79
  return;
83
80
  }
@@ -85,22 +82,23 @@
85
82
  toggleScrolling(editor, true);
86
83
  return;
87
84
  }
88
- var docEle = doc.documentElement;
89
- var resizeBottomMargin = getAutoResizeBottomMargin(editor);
90
- var resizeHeight = getAutoResizeMinHeight(editor);
91
- var marginTop = parseCssValueToInt(dom, docEle, 'margin-top', true);
92
- var marginBottom = parseCssValueToInt(dom, docEle, 'margin-bottom', true);
93
- var contentHeight = docEle.offsetHeight + marginTop + marginBottom + resizeBottomMargin;
85
+ const docEle = doc.documentElement;
86
+ const resizeBottomMargin = getExtraMarginBottom ? getExtraMarginBottom() : getAutoResizeOverflowPadding(editor);
87
+ const minHeight = (_a = getMinHeight(editor)) !== null && _a !== void 0 ? _a : editor.getElement().offsetHeight;
88
+ let resizeHeight = minHeight;
89
+ const marginTop = parseCssValueToInt(dom, docEle, 'margin-top', true);
90
+ const marginBottom = parseCssValueToInt(dom, docEle, 'margin-bottom', true);
91
+ let contentHeight = docEle.offsetHeight + marginTop + marginBottom + resizeBottomMargin;
94
92
  if (contentHeight < 0) {
95
93
  contentHeight = 0;
96
94
  }
97
- var containerHeight = editor.getContainer().offsetHeight;
98
- var contentAreaHeight = editor.getContentAreaContainer().offsetHeight;
99
- var chromeHeight = containerHeight - contentAreaHeight;
100
- if (contentHeight + chromeHeight > getAutoResizeMinHeight(editor)) {
95
+ const containerHeight = editor.getContainer().offsetHeight;
96
+ const contentAreaHeight = editor.getContentAreaContainer().offsetHeight;
97
+ const chromeHeight = containerHeight - contentAreaHeight;
98
+ if (contentHeight + chromeHeight > minHeight) {
101
99
  resizeHeight = contentHeight + chromeHeight;
102
100
  }
103
- var maxHeight = getAutoResizeMaxHeight(editor);
101
+ const maxHeight = getMaxHeight(editor);
104
102
  if (maxHeight && resizeHeight > maxHeight) {
105
103
  resizeHeight = maxHeight;
106
104
  toggleScrolling(editor, true);
@@ -108,64 +106,87 @@
108
106
  toggleScrolling(editor, false);
109
107
  }
110
108
  if (resizeHeight !== oldSize.get()) {
111
- var deltaSize = resizeHeight - oldSize.get();
109
+ const deltaSize = resizeHeight - oldSize.get();
112
110
  dom.setStyle(editor.getContainer(), 'height', resizeHeight + 'px');
113
111
  oldSize.set(resizeHeight);
114
112
  fireResizeEditor(editor);
115
- if (global$1.browser.isSafari() && global$1.mac) {
116
- var win = editor.getWin();
113
+ if (global.browser.isSafari() && (global.os.isMacOS() || global.os.isiOS())) {
114
+ const win = editor.getWin();
117
115
  win.scrollTo(win.pageXOffset, win.pageYOffset);
118
116
  }
119
- if (editor.hasFocus()) {
120
- editor.selection.scrollIntoView(editor.selection.getNode());
117
+ if (editor.hasFocus() && shouldScrollIntoView(trigger)) {
118
+ editor.selection.scrollIntoView();
121
119
  }
122
- if (global$1.webkit && deltaSize < 0) {
123
- resize(editor, oldSize);
120
+ if ((global.browser.isSafari() || global.browser.isChromium()) && deltaSize < 0) {
121
+ resize(editor, oldSize, trigger, getExtraMarginBottom);
124
122
  }
125
123
  }
126
124
  };
127
- var setup = function (editor, oldSize) {
128
- editor.on('init', function () {
129
- var overflowPadding = getAutoResizeOverflowPadding(editor);
130
- var dom = editor.dom;
125
+ const setup = (editor, oldSize) => {
126
+ let getExtraMarginBottom = () => getAutoResizeBottomMargin(editor);
127
+ let resizeCounter;
128
+ let sizeAfterFirstResize;
129
+ editor.on('init', e => {
130
+ resizeCounter = 0;
131
+ const overflowPadding = getAutoResizeOverflowPadding(editor);
132
+ const dom = editor.dom;
131
133
  dom.setStyles(editor.getDoc().documentElement, { height: 'auto' });
132
- dom.setStyles(editor.getBody(), {
133
- 'paddingLeft': overflowPadding,
134
- 'paddingRight': overflowPadding,
135
- 'min-height': 0
136
- });
134
+ if (global.browser.isEdge() || global.browser.isIE()) {
135
+ dom.setStyles(editor.getBody(), {
136
+ 'paddingLeft': overflowPadding,
137
+ 'paddingRight': overflowPadding,
138
+ 'min-height': 0
139
+ });
140
+ } else {
141
+ dom.setStyles(editor.getBody(), {
142
+ paddingLeft: overflowPadding,
143
+ paddingRight: overflowPadding
144
+ });
145
+ }
146
+ resize(editor, oldSize, e, getExtraMarginBottom);
147
+ resizeCounter += 1;
137
148
  });
138
- editor.on('NodeChange SetContent keyup FullscreenStateChanged ResizeContent', function () {
139
- resize(editor, oldSize);
149
+ editor.on('NodeChange SetContent keyup FullscreenStateChanged ResizeContent', e => {
150
+ if (resizeCounter === 1) {
151
+ sizeAfterFirstResize = editor.getContainer().offsetHeight;
152
+ resize(editor, oldSize, e, getExtraMarginBottom);
153
+ resizeCounter += 1;
154
+ } else if (resizeCounter === 2) {
155
+ const isLooping = sizeAfterFirstResize < editor.getContainer().offsetHeight;
156
+ if (isLooping) {
157
+ const dom = editor.dom;
158
+ const doc = editor.getDoc();
159
+ dom.setStyles(doc.documentElement, { 'min-height': 0 });
160
+ dom.setStyles(editor.getBody(), { 'min-height': 'inherit' });
161
+ }
162
+ getExtraMarginBottom = isLooping ? constant(0) : getExtraMarginBottom;
163
+ resizeCounter += 1;
164
+ } else {
165
+ resize(editor, oldSize, e, getExtraMarginBottom);
166
+ }
140
167
  });
141
- if (shouldAutoResizeOnInit(editor)) {
142
- editor.on('init', function () {
143
- wait(editor, oldSize, 20, 100, function () {
144
- wait(editor, oldSize, 5, 1000);
145
- });
146
- });
147
- }
148
168
  };
149
169
 
150
- var register = function (editor, oldSize) {
151
- editor.addCommand('mceAutoResize', function () {
170
+ const register = (editor, oldSize) => {
171
+ editor.addCommand('mceAutoResize', () => {
152
172
  resize(editor, oldSize);
153
173
  });
154
174
  };
155
175
 
156
- function Plugin () {
157
- global.add('autoresize', function (editor) {
158
- if (!editor.settings.hasOwnProperty('resize')) {
159
- editor.settings.resize = false;
176
+ var Plugin = () => {
177
+ global$1.add('autoresize', editor => {
178
+ register$1(editor);
179
+ if (!editor.options.isSet('resize')) {
180
+ editor.options.set('resize', false);
160
181
  }
161
182
  if (!editor.inline) {
162
- var oldSize = Cell(0);
183
+ const oldSize = Cell(0);
163
184
  register(editor, oldSize);
164
185
  setup(editor, oldSize);
165
186
  }
166
187
  });
167
- }
188
+ };
168
189
 
169
190
  Plugin();
170
191
 
171
- }());
192
+ })();
@@ -1,9 +1,4 @@
1
1
  /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.9.0 (TBD)
2
+ * TinyMCE version 6.8.2 (2023-12-11)
8
3
  */
9
- !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),h=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),y=function(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")},a=function(e,t,n,i,o){r.setEditorTimeout(e,function(){b(e,t),n--?a(e,t,n,i,o):o&&o()},i)},p=function(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))},v=function(e,t,n,i){var o=parseInt(e.getStyle(t,n,i),10);return isNaN(o)?0:o},b=function(e,t){var n,i,o,r,s,a,g,u,l,c,m,f=e.dom,d=e.getDoc();d&&((n=e).plugins.fullscreen&&n.plugins.fullscreen.isFullscreen()?p(e,!0):(i=d.documentElement,o=e.getParam("autoresize_bottom_margin",50,"number"),r=y(e),s=v(f,i,"margin-top",!0),a=v(f,i,"margin-bottom",!0),(g=i.offsetHeight+s+a+o)<0&&(g=0),g+(u=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight)>y(e)&&(r=g+u),(l=e.getParam("max_height",0,"number"))&&l<r?(r=l,p(e,!0)):p(e,!1),r!==t.get()&&(c=r-t.get(),f.setStyle(e.getContainer(),"height",r+"px"),t.set(r),e.fire("ResizeEditor"),h.browser.isSafari()&&h.mac&&(m=e.getWin()).scrollTo(m.pageXOffset,m.pageYOffset),e.hasFocus()&&e.selection.scrollIntoView(e.selection.getNode()),h.webkit&&c<0&&b(e,t))))};e.add("autoresize",function(e){var t,n,i,o,r,s;e.settings.hasOwnProperty("resize")||(e.settings.resize=!1),e.inline||(s=0,r=t={get:function(){return s},set:function(e){s=e}},(o=e).addCommand("mceAutoResize",function(){b(o,r)}),i=t,(n=e).on("init",function(){var e=n.getParam("autoresize_overflow_padding",1,"number"),t=n.dom;t.setStyles(n.getDoc().documentElement,{height:"auto"}),t.setStyles(n.getBody(),{paddingLeft:e,paddingRight:e,"min-height":0})}),n.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",function(){b(n,i)}),n.getParam("autoresize_on_init",!0,"boolean")&&n.on("init",function(){a(n,i,20,100,function(){a(n,i,5,1e3)})}))})}();
4
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env");const o=e=>t=>t.options.get(e),s=o("min_height"),i=o("max_height"),n=o("autoresize_overflow_padding"),r=o("autoresize_bottom_margin"),l=(e,t)=>{const o=e.getBody();o&&(o.style.overflowY=t?"":"hidden",t||(o.scrollTop=0))},g=(e,t,o,s)=>{var i;const n=parseInt(null!==(i=e.getStyle(t,o,s))&&void 0!==i?i:"",10);return isNaN(n)?0:n},a=(e,o,r,c)=>{var d;const f=e.dom,u=e.getDoc();if(!u)return;if((e=>e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen())(e))return void l(e,!0);const m=u.documentElement,h=c?c():n(e),p=null!==(d=s(e))&&void 0!==d?d:e.getElement().offsetHeight;let y=p;const S=g(f,m,"margin-top",!0),v=g(f,m,"margin-bottom",!0);let C=m.offsetHeight+S+v+h;C<0&&(C=0);const b=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;C+b>p&&(y=C+b);const w=i(e);if(w&&y>w?(y=w,l(e,!0)):l(e,!1),y!==o.get()){const s=y-o.get();if(f.setStyle(e.getContainer(),"height",y+"px"),o.set(y),(e=>{e.dispatch("ResizeEditor")})(e),t.browser.isSafari()&&(t.os.isMacOS()||t.os.isiOS())){const t=e.getWin();t.scrollTo(t.pageXOffset,t.pageYOffset)}e.hasFocus()&&(e=>{if("setcontent"===(null==e?void 0:e.type.toLowerCase())){const t=e;return!0===t.selection||!0===t.paste}return!1})(r)&&e.selection.scrollIntoView(),(t.browser.isSafari()||t.browser.isChromium())&&s<0&&a(e,o,r,c)}};e.add("autoresize",(e=>{if((e=>{const t=e.options.register;t("autoresize_overflow_padding",{processor:"number",default:1}),t("autoresize_bottom_margin",{processor:"number",default:50})})(e),e.options.isSet("resize")||e.options.set("resize",!1),!e.inline){const o=(e=>{let t=0;return{get:()=>t,set:e=>{t=e}}})();((e,t)=>{e.addCommand("mceAutoResize",(()=>{a(e,t)}))})(e,o),((e,o)=>{let s,i,l=()=>r(e);e.on("init",(i=>{s=0;const r=n(e),g=e.dom;g.setStyles(e.getDoc().documentElement,{height:"auto"}),t.browser.isEdge()||t.browser.isIE()?g.setStyles(e.getBody(),{paddingLeft:r,paddingRight:r,"min-height":0}):g.setStyles(e.getBody(),{paddingLeft:r,paddingRight:r}),a(e,o,i,l),s+=1})),e.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(t=>{if(1===s)i=e.getContainer().offsetHeight,a(e,o,t,l),s+=1;else if(2===s){const t=i<e.getContainer().offsetHeight;if(t){const t=e.dom,o=e.getDoc();t.setStyles(o.documentElement,{"min-height":0}),t.setStyles(e.getBody(),{"min-height":"inherit"})}l=t?(0,()=>0):l,s+=1}else a(e,o,t,l)}))})(e,o)}}))}();
@@ -1,97 +1,135 @@
1
1
  /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.9.0 (TBD)
2
+ * TinyMCE version 6.8.2 (2023-12-11)
8
3
  */
4
+
9
5
  (function () {
10
6
  'use strict';
11
7
 
12
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
8
+ var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager');
13
9
 
14
- var eq = function (t) {
15
- return function (a) {
16
- return t === a;
17
- };
10
+ const hasProto = (v, constructor, predicate) => {
11
+ var _a;
12
+ if (predicate(v, constructor.prototype)) {
13
+ return true;
14
+ } else {
15
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
16
+ }
18
17
  };
19
- var isUndefined = eq(undefined);
18
+ const typeOf = x => {
19
+ const t = typeof x;
20
+ if (x === null) {
21
+ return 'null';
22
+ } else if (t === 'object' && Array.isArray(x)) {
23
+ return 'array';
24
+ } else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
25
+ return 'string';
26
+ } else {
27
+ return t;
28
+ }
29
+ };
30
+ const isType = type => value => typeOf(value) === type;
31
+ const eq = t => a => t === a;
32
+ const isString = isType('string');
33
+ const isUndefined = eq(undefined);
20
34
 
21
- var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay');
35
+ var global$3 = tinymce.util.Tools.resolve('tinymce.util.Delay');
22
36
 
23
37
  var global$2 = tinymce.util.Tools.resolve('tinymce.util.LocalStorage');
24
38
 
25
- var global$3 = tinymce.util.Tools.resolve('tinymce.util.Tools');
39
+ var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
26
40
 
27
- var fireRestoreDraft = function (editor) {
28
- return editor.fire('RestoreDraft');
29
- };
30
- var fireStoreDraft = function (editor) {
31
- return editor.fire('StoreDraft');
32
- };
33
- var fireRemoveDraft = function (editor) {
34
- return editor.fire('RemoveDraft');
35
- };
41
+ const fireRestoreDraft = editor => editor.dispatch('RestoreDraft');
42
+ const fireStoreDraft = editor => editor.dispatch('StoreDraft');
43
+ const fireRemoveDraft = editor => editor.dispatch('RemoveDraft');
36
44
 
37
- var parse = function (timeString, defaultTime) {
38
- var multiples = {
45
+ const parse = timeString => {
46
+ const multiples = {
39
47
  s: 1000,
40
48
  m: 60000
41
49
  };
42
- var toParse = timeString || defaultTime;
43
- var parsedTime = /^(\d+)([ms]?)$/.exec('' + toParse);
44
- return (parsedTime[2] ? multiples[parsedTime[2]] : 1) * parseInt(toParse, 10);
45
- };
46
-
47
- var shouldAskBeforeUnload = function (editor) {
48
- return editor.getParam('autosave_ask_before_unload', true);
49
- };
50
- var getAutoSavePrefix = function (editor) {
51
- var location = document.location;
52
- return editor.getParam('autosave_prefix', 'tinymce-autosave-{path}{query}{hash}-{id}-').replace(/{path}/g, location.pathname).replace(/{query}/g, location.search).replace(/{hash}/g, location.hash).replace(/{id}/g, editor.id);
53
- };
54
- var shouldRestoreWhenEmpty = function (editor) {
55
- return editor.getParam('autosave_restore_when_empty', false);
56
- };
57
- var getAutoSaveInterval = function (editor) {
58
- return parse(editor.getParam('autosave_interval'), '30s');
50
+ const parsedTime = /^(\d+)([ms]?)$/.exec(timeString);
51
+ return (parsedTime && parsedTime[2] ? multiples[parsedTime[2]] : 1) * parseInt(timeString, 10);
52
+ };
53
+
54
+ const option = name => editor => editor.options.get(name);
55
+ const register$1 = editor => {
56
+ const registerOption = editor.options.register;
57
+ const timeProcessor = value => {
58
+ const valid = isString(value);
59
+ if (valid) {
60
+ return {
61
+ value: parse(value),
62
+ valid
63
+ };
64
+ } else {
65
+ return {
66
+ valid: false,
67
+ message: 'Must be a string.'
68
+ };
69
+ }
70
+ };
71
+ registerOption('autosave_ask_before_unload', {
72
+ processor: 'boolean',
73
+ default: true
74
+ });
75
+ registerOption('autosave_prefix', {
76
+ processor: 'string',
77
+ default: 'tinymce-autosave-{path}{query}{hash}-{id}-'
78
+ });
79
+ registerOption('autosave_restore_when_empty', {
80
+ processor: 'boolean',
81
+ default: false
82
+ });
83
+ registerOption('autosave_interval', {
84
+ processor: timeProcessor,
85
+ default: '30s'
86
+ });
87
+ registerOption('autosave_retention', {
88
+ processor: timeProcessor,
89
+ default: '20m'
90
+ });
59
91
  };
60
- var getAutoSaveRetention = function (editor) {
61
- return parse(editor.getParam('autosave_retention'), '20m');
92
+ const shouldAskBeforeUnload = option('autosave_ask_before_unload');
93
+ const shouldRestoreWhenEmpty = option('autosave_restore_when_empty');
94
+ const getAutoSaveInterval = option('autosave_interval');
95
+ const getAutoSaveRetention = option('autosave_retention');
96
+ const getAutoSavePrefix = editor => {
97
+ const location = document.location;
98
+ return editor.options.get('autosave_prefix').replace(/{path}/g, location.pathname).replace(/{query}/g, location.search).replace(/{hash}/g, location.hash).replace(/{id}/g, editor.id);
62
99
  };
63
100
 
64
- var isEmpty = function (editor, html) {
101
+ const isEmpty = (editor, html) => {
65
102
  if (isUndefined(html)) {
66
103
  return editor.dom.isEmpty(editor.getBody());
67
104
  } else {
68
- var trimmedHtml = global$3.trim(html);
105
+ const trimmedHtml = global$1.trim(html);
69
106
  if (trimmedHtml === '') {
70
107
  return true;
71
108
  } else {
72
- var fragment = new DOMParser().parseFromString(trimmedHtml, 'text/html');
109
+ const fragment = new DOMParser().parseFromString(trimmedHtml, 'text/html');
73
110
  return editor.dom.isEmpty(fragment);
74
111
  }
75
112
  }
76
113
  };
77
- var hasDraft = function (editor) {
78
- var time = parseInt(global$2.getItem(getAutoSavePrefix(editor) + 'time'), 10) || 0;
114
+ const hasDraft = editor => {
115
+ var _a;
116
+ const time = parseInt((_a = global$2.getItem(getAutoSavePrefix(editor) + 'time')) !== null && _a !== void 0 ? _a : '0', 10) || 0;
79
117
  if (new Date().getTime() - time > getAutoSaveRetention(editor)) {
80
118
  removeDraft(editor, false);
81
119
  return false;
82
120
  }
83
121
  return true;
84
122
  };
85
- var removeDraft = function (editor, fire) {
86
- var prefix = getAutoSavePrefix(editor);
123
+ const removeDraft = (editor, fire) => {
124
+ const prefix = getAutoSavePrefix(editor);
87
125
  global$2.removeItem(prefix + 'draft');
88
126
  global$2.removeItem(prefix + 'time');
89
127
  if (fire !== false) {
90
128
  fireRemoveDraft(editor);
91
129
  }
92
130
  };
93
- var storeDraft = function (editor) {
94
- var prefix = getAutoSavePrefix(editor);
131
+ const storeDraft = editor => {
132
+ const prefix = getAutoSavePrefix(editor);
95
133
  if (!isEmpty(editor) && editor.isDirty()) {
96
134
  global$2.setItem(prefix + 'draft', editor.getContent({
97
135
  format: 'raw',
@@ -101,53 +139,42 @@
101
139
  fireStoreDraft(editor);
102
140
  }
103
141
  };
104
- var restoreDraft = function (editor) {
105
- var prefix = getAutoSavePrefix(editor);
142
+ const restoreDraft = editor => {
143
+ var _a;
144
+ const prefix = getAutoSavePrefix(editor);
106
145
  if (hasDraft(editor)) {
107
- editor.setContent(global$2.getItem(prefix + 'draft'), { format: 'raw' });
146
+ editor.setContent((_a = global$2.getItem(prefix + 'draft')) !== null && _a !== void 0 ? _a : '', { format: 'raw' });
108
147
  fireRestoreDraft(editor);
109
148
  }
110
149
  };
111
- var startStoreDraft = function (editor) {
112
- var interval = getAutoSaveInterval(editor);
113
- global$1.setEditorInterval(editor, function () {
150
+ const startStoreDraft = editor => {
151
+ const interval = getAutoSaveInterval(editor);
152
+ global$3.setEditorInterval(editor, () => {
114
153
  storeDraft(editor);
115
154
  }, interval);
116
155
  };
117
- var restoreLastDraft = function (editor) {
118
- editor.undoManager.transact(function () {
156
+ const restoreLastDraft = editor => {
157
+ editor.undoManager.transact(() => {
119
158
  restoreDraft(editor);
120
159
  removeDraft(editor);
121
160
  });
122
161
  editor.focus();
123
162
  };
124
163
 
125
- var get = function (editor) {
126
- return {
127
- hasDraft: function () {
128
- return hasDraft(editor);
129
- },
130
- storeDraft: function () {
131
- return storeDraft(editor);
132
- },
133
- restoreDraft: function () {
134
- return restoreDraft(editor);
135
- },
136
- removeDraft: function (fire) {
137
- return removeDraft(editor, fire);
138
- },
139
- isEmpty: function (html) {
140
- return isEmpty(editor, html);
141
- }
142
- };
143
- };
164
+ const get = editor => ({
165
+ hasDraft: () => hasDraft(editor),
166
+ storeDraft: () => storeDraft(editor),
167
+ restoreDraft: () => restoreDraft(editor),
168
+ removeDraft: fire => removeDraft(editor, fire),
169
+ isEmpty: html => isEmpty(editor, html)
170
+ });
144
171
 
145
- var global$4 = tinymce.util.Tools.resolve('tinymce.EditorManager');
172
+ var global = tinymce.util.Tools.resolve('tinymce.EditorManager');
146
173
 
147
- var setup = function (editor) {
148
- editor.editorManager.on('BeforeUnload', function (e) {
149
- var msg;
150
- global$3.each(global$4.get(), function (editor) {
174
+ const setup = editor => {
175
+ editor.editorManager.on('BeforeUnload', e => {
176
+ let msg;
177
+ global$1.each(global.get(), editor => {
151
178
  if (editor.plugins.autosave) {
152
179
  editor.plugins.autosave.storeDraft();
153
180
  }
@@ -162,51 +189,45 @@
162
189
  });
163
190
  };
164
191
 
165
- var makeSetupHandler = function (editor) {
166
- return function (api) {
167
- api.setDisabled(!hasDraft(editor));
168
- var editorEventCallback = function () {
169
- return api.setDisabled(!hasDraft(editor));
170
- };
171
- editor.on('StoreDraft RestoreDraft RemoveDraft', editorEventCallback);
172
- return function () {
173
- return editor.off('StoreDraft RestoreDraft RemoveDraft', editorEventCallback);
174
- };
175
- };
192
+ const makeSetupHandler = editor => api => {
193
+ api.setEnabled(hasDraft(editor));
194
+ const editorEventCallback = () => api.setEnabled(hasDraft(editor));
195
+ editor.on('StoreDraft RestoreDraft RemoveDraft', editorEventCallback);
196
+ return () => editor.off('StoreDraft RestoreDraft RemoveDraft', editorEventCallback);
176
197
  };
177
- var register = function (editor) {
198
+ const register = editor => {
178
199
  startStoreDraft(editor);
200
+ const onAction = () => {
201
+ restoreLastDraft(editor);
202
+ };
179
203
  editor.ui.registry.addButton('restoredraft', {
180
204
  tooltip: 'Restore last draft',
181
205
  icon: 'restore-draft',
182
- onAction: function () {
183
- restoreLastDraft(editor);
184
- },
206
+ onAction,
185
207
  onSetup: makeSetupHandler(editor)
186
208
  });
187
209
  editor.ui.registry.addMenuItem('restoredraft', {
188
210
  text: 'Restore last draft',
189
211
  icon: 'restore-draft',
190
- onAction: function () {
191
- restoreLastDraft(editor);
192
- },
212
+ onAction,
193
213
  onSetup: makeSetupHandler(editor)
194
214
  });
195
215
  };
196
216
 
197
- function Plugin () {
198
- global.add('autosave', function (editor) {
217
+ var Plugin = () => {
218
+ global$4.add('autosave', editor => {
219
+ register$1(editor);
199
220
  setup(editor);
200
221
  register(editor);
201
- editor.on('init', function () {
222
+ editor.on('init', () => {
202
223
  if (shouldRestoreWhenEmpty(editor) && editor.dom.isEmpty(editor.getBody())) {
203
224
  restoreDraft(editor);
204
225
  }
205
226
  });
206
227
  return get(editor);
207
228
  });
208
- }
229
+ };
209
230
 
210
231
  Plugin();
211
232
 
212
- }());
233
+ })();