argous 1.2.202 → 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 (407) hide show
  1. package/dist/components/ConfirmModal/ModalProvider.d.ts +1 -1
  2. package/dist/components/Editor/components/Editor.d.ts +4 -4
  3. package/dist/components/Editor/components/Editor.js +3 -3
  4. package/dist/components/Editor/skins/content/dark/content.d.ts +0 -0
  5. package/dist/components/Editor/skins/content/dark/content.js +3 -0
  6. package/dist/components/Editor/skins/content/default/content.d.ts +0 -0
  7. package/dist/components/Editor/skins/content/default/content.js +3 -0
  8. package/dist/components/Editor/skins/content/document/content.d.ts +0 -0
  9. package/dist/components/Editor/skins/content/document/content.js +3 -0
  10. package/dist/components/Editor/skins/content/tinymce-5/content.d.ts +0 -0
  11. package/dist/components/Editor/skins/content/tinymce-5/content.js +3 -0
  12. package/dist/components/Editor/skins/content/tinymce-5-dark/content.d.ts +0 -0
  13. package/dist/components/Editor/skins/content/tinymce-5-dark/content.js +3 -0
  14. package/dist/components/Editor/skins/content/writer/content.d.ts +0 -0
  15. package/dist/components/Editor/skins/content/writer/content.js +3 -0
  16. package/dist/components/Editor/skins/ui/oxide/content.d.ts +0 -0
  17. package/dist/components/Editor/skins/ui/oxide/content.inline.d.ts +0 -0
  18. package/dist/components/Editor/skins/ui/oxide/content.inline.js +3 -0
  19. package/dist/components/Editor/skins/ui/oxide/content.js +3 -0
  20. package/dist/components/Editor/skins/ui/oxide/skin.d.ts +0 -0
  21. package/dist/components/Editor/skins/ui/oxide/skin.js +3 -0
  22. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  23. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.js +3 -0
  24. package/dist/components/Editor/skins/ui/oxide-dark/content.d.ts +0 -0
  25. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  26. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.js +3 -0
  27. package/dist/components/Editor/skins/ui/oxide-dark/content.js +3 -0
  28. package/dist/components/Editor/skins/ui/oxide-dark/skin.d.ts +0 -0
  29. package/dist/components/Editor/skins/ui/oxide-dark/skin.js +3 -0
  30. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  31. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +3 -0
  32. package/dist/components/Editor/skins/ui/tinymce-5/content.d.ts +0 -0
  33. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.d.ts +0 -0
  34. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.js +3 -0
  35. package/dist/components/Editor/skins/ui/tinymce-5/content.js +3 -0
  36. package/dist/components/Editor/skins/ui/tinymce-5/skin.d.ts +0 -0
  37. package/dist/components/Editor/skins/ui/tinymce-5/skin.js +3 -0
  38. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.d.ts +0 -0
  39. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +3 -0
  40. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.d.ts +0 -0
  41. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.d.ts +0 -0
  42. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +3 -0
  43. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.js +3 -0
  44. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.d.ts +0 -0
  45. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.js +3 -0
  46. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.d.ts +0 -0
  47. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +3 -0
  48. package/dist/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  49. package/lib/components/Editor/components/Editor.tsx +8 -8
  50. package/lib/components/Editor/skins/content/dark/content.js +2 -0
  51. package/lib/components/Editor/skins/content/dark/content.min.css +1 -8
  52. package/lib/components/Editor/skins/content/default/content.js +2 -0
  53. package/lib/components/Editor/skins/content/default/content.min.css +0 -7
  54. package/lib/components/Editor/skins/content/document/content.js +2 -0
  55. package/lib/components/Editor/skins/content/document/content.min.css +0 -7
  56. package/lib/components/Editor/skins/content/tinymce-5/content.js +2 -0
  57. package/lib/components/Editor/skins/content/tinymce-5/content.min.css +1 -0
  58. package/lib/components/Editor/skins/content/tinymce-5-dark/content.js +2 -0
  59. package/lib/components/Editor/skins/content/tinymce-5-dark/content.min.css +1 -0
  60. package/lib/components/Editor/skins/content/writer/content.js +2 -0
  61. package/lib/components/Editor/skins/content/writer/content.min.css +0 -7
  62. package/lib/components/Editor/skins/ui/oxide/content.inline.js +2 -0
  63. package/lib/components/Editor/skins/ui/oxide/content.inline.min.css +1 -0
  64. package/lib/components/Editor/skins/ui/oxide/content.js +2 -0
  65. package/lib/components/Editor/skins/ui/oxide/content.min.css +1 -0
  66. package/lib/components/Editor/skins/ui/oxide/skin.js +2 -0
  67. package/lib/components/Editor/skins/ui/oxide/skin.min.css +1 -0
  68. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.js +2 -0
  69. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  70. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.js +2 -0
  71. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.min.css +1 -0
  72. package/lib/components/Editor/skins/ui/oxide-dark/content.js +2 -0
  73. package/lib/components/Editor/skins/ui/oxide-dark/content.min.css +1 -0
  74. package/lib/components/Editor/skins/ui/oxide-dark/skin.js +2 -0
  75. package/lib/components/Editor/skins/ui/oxide-dark/skin.min.css +1 -0
  76. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  77. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  78. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.js +2 -0
  79. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.min.css +1 -0
  80. package/lib/components/Editor/skins/ui/tinymce-5/content.js +2 -0
  81. package/lib/components/Editor/skins/ui/tinymce-5/content.min.css +1 -0
  82. package/lib/components/Editor/skins/ui/tinymce-5/skin.js +2 -0
  83. package/lib/components/Editor/skins/ui/tinymce-5/skin.min.css +1 -0
  84. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  85. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  86. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  87. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  88. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.js +2 -0
  89. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.min.css +1 -0
  90. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.js +2 -0
  91. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  92. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  93. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  94. package/lib/components/Editor/tinymce/README.md +24 -14
  95. package/lib/components/Editor/tinymce/icons/default/icons.js +185 -163
  96. package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -1
  97. package/lib/components/Editor/tinymce/langs/README.md +1 -1
  98. package/lib/components/Editor/tinymce/license.txt +21 -504
  99. package/lib/components/Editor/tinymce/models/dom/model.js +8040 -0
  100. package/lib/components/Editor/tinymce/models/dom/model.min.js +4 -0
  101. package/lib/components/Editor/tinymce/plugins/accordion/plugin.js +1054 -0
  102. package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +4 -0
  103. package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +187 -208
  104. package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +2 -7
  105. package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +82 -84
  106. package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +2 -7
  107. package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +210 -167
  108. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +2 -7
  109. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +118 -97
  110. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +2 -7
  111. package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +129 -108
  112. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +2 -7
  113. package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +285 -333
  114. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +2 -7
  115. package/lib/components/Editor/tinymce/plugins/code/plugin.js +19 -26
  116. package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +2 -7
  117. package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2225 -2094
  118. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +2 -7
  119. package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +318 -243
  120. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +2 -7
  121. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -9424
  122. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -1
  123. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +1 -9423
  124. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +1 -1
  125. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +406 -416
  126. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +2 -7
  127. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +821 -604
  128. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +2 -7
  129. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
  130. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
  131. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
  132. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
  133. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
  134. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
  135. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
  136. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
  137. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
  138. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
  139. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
  140. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
  141. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
  142. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
  143. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
  144. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
  145. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
  146. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
  147. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
  148. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
  149. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
  150. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
  151. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
  152. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
  153. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
  154. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
  155. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
  156. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
  157. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
  158. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
  159. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
  160. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
  161. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
  162. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
  163. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
  164. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
  165. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
  166. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
  167. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
  168. package/lib/components/Editor/tinymce/plugins/help/plugin.js +428 -403
  169. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +2 -7
  170. package/lib/components/Editor/tinymce/plugins/image/plugin.js +887 -1043
  171. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +2 -7
  172. package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +163 -162
  173. package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +2 -7
  174. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +101 -91
  175. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +2 -7
  176. package/lib/components/Editor/tinymce/plugins/link/plugin.js +739 -784
  177. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +2 -7
  178. package/lib/components/Editor/tinymce/plugins/lists/plugin.js +1282 -1396
  179. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +2 -7
  180. package/lib/components/Editor/tinymce/plugins/media/plugin.js +641 -806
  181. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +2 -7
  182. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +76 -54
  183. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +2 -7
  184. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +58 -46
  185. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +2 -7
  186. package/lib/components/Editor/tinymce/plugins/preview/plugin.js +39 -69
  187. package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +2 -7
  188. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +307 -349
  189. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +2 -7
  190. package/lib/components/Editor/tinymce/plugins/save/plugin.js +50 -51
  191. package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +2 -7
  192. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +517 -587
  193. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +2 -7
  194. package/lib/components/Editor/tinymce/plugins/table/plugin.js +2666 -10142
  195. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +2 -7
  196. package/lib/components/Editor/tinymce/plugins/template/plugin.js +403 -413
  197. package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +2 -7
  198. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +42 -48
  199. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +2 -7
  200. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +352 -333
  201. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +2 -7
  202. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +184 -195
  203. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +2 -7
  204. package/lib/components/Editor/tinymce/skins/content/dark/content.css +2 -8
  205. package/lib/components/Editor/tinymce/skins/content/dark/content.js +2 -0
  206. package/lib/components/Editor/tinymce/skins/content/dark/content.js.map +1 -0
  207. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +2 -8
  208. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -1
  209. package/lib/components/Editor/tinymce/skins/content/default/content.css +0 -6
  210. package/lib/components/Editor/tinymce/skins/content/default/content.js +2 -0
  211. package/lib/components/Editor/tinymce/skins/content/default/content.js.map +1 -0
  212. package/lib/components/Editor/tinymce/skins/content/default/content.min.css +1 -7
  213. package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -1
  214. package/lib/components/Editor/tinymce/skins/content/document/content.css +0 -6
  215. package/lib/components/Editor/tinymce/skins/content/document/content.js +2 -0
  216. package/lib/components/Editor/tinymce/skins/content/document/content.js.map +1 -0
  217. package/lib/components/Editor/tinymce/skins/content/document/content.min.css +0 -6
  218. package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -1
  219. package/lib/components/Editor/{skins/content/default → tinymce/skins/content/tinymce-5}/content.css +0 -6
  220. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js +2 -0
  221. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js.map +1 -0
  222. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +2 -0
  223. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css.map +1 -0
  224. package/lib/components/Editor/{skins/content/dark → tinymce/skins/content/tinymce-5-dark}/content.css +1 -7
  225. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
  226. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js.map +1 -0
  227. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +2 -0
  228. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css.map +1 -0
  229. package/lib/components/Editor/tinymce/skins/content/writer/content.css +0 -6
  230. package/lib/components/Editor/tinymce/skins/content/writer/content.js +2 -0
  231. package/lib/components/Editor/tinymce/skins/content/writer/content.js.map +1 -0
  232. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +0 -6
  233. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -1
  234. package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +74 -21
  235. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +74 -21
  236. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
  237. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js.map +1 -0
  238. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
  239. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -1
  240. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js +2 -0
  241. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js.map +1 -0
  242. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +1 -7
  243. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -1
  244. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +1131 -402
  245. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js +2 -0
  246. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js.map +1 -0
  247. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +1 -7
  248. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -1
  249. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +8 -15
  250. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  251. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js.map +1 -0
  252. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
  253. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -1
  254. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +72 -20
  255. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +74 -21
  256. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  257. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js.map +1 -0
  258. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
  259. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
  260. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
  261. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js.map +1 -0
  262. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
  263. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -1
  264. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +1155 -423
  265. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  266. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js.map +1 -0
  267. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
  268. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -1
  269. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +8 -15
  270. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  271. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js.map +1 -0
  272. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
  273. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -1
  274. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.css +75 -22
  275. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.inline.css +75 -22
  276. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
  277. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js.map +1 -0
  278. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +2 -0
  279. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css.map +1 -0
  280. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
  281. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js.map +1 -0
  282. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +2 -0
  283. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css.map +1 -0
  284. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.css +1261 -438
  285. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
  286. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js.map +1 -0
  287. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +2 -0
  288. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css.map +1 -0
  289. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.shadowdom.css +8 -15
  290. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  291. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js.map +1 -0
  292. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +2 -0
  293. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css.map +1 -0
  294. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.css +73 -21
  295. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.inline.css +75 -22
  296. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  297. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js.map +1 -0
  298. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +2 -0
  299. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css.map +1 -0
  300. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
  301. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js.map +1 -0
  302. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +2 -0
  303. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css.map +1 -0
  304. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.css +1244 -421
  305. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
  306. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js.map +1 -0
  307. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +2 -0
  308. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css.map +1 -0
  309. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.shadowdom.css +8 -15
  310. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  311. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js.map +1 -0
  312. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +2 -0
  313. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.map +1 -0
  314. package/lib/components/Editor/tinymce/themes/silver/theme.js +23228 -24955
  315. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +2 -7
  316. package/lib/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  317. package/lib/components/Editor/tinymce/tinymce.js +23668 -22018
  318. package/lib/components/Editor/tinymce/tinymce.min.js +2 -30104
  319. package/package.json +1 -1
  320. package/lib/components/Editor/skins/content/dark/content.min.css.map +0 -1
  321. package/lib/components/Editor/skins/content/default/content.min.css.map +0 -1
  322. package/lib/components/Editor/skins/content/document/content.css +0 -72
  323. package/lib/components/Editor/skins/content/document/content.min.css.map +0 -1
  324. package/lib/components/Editor/skins/content/writer/content.css +0 -68
  325. package/lib/components/Editor/skins/content/writer/content.min.css.map +0 -1
  326. package/lib/components/Editor/skins/ui/dark/content.inline.min.css +0 -8
  327. package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +0 -1
  328. package/lib/components/Editor/skins/ui/dark/content.min.css +0 -8
  329. package/lib/components/Editor/skins/ui/dark/content.min.css.map +0 -1
  330. package/lib/components/Editor/skins/ui/dark/content.mobile.css +0 -29
  331. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +0 -8
  332. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +0 -1
  333. package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
  334. package/lib/components/Editor/skins/ui/dark/skin.min.css +0 -8
  335. package/lib/components/Editor/skins/ui/dark/skin.min.css.map +0 -1
  336. package/lib/components/Editor/skins/ui/dark/skin.mobile.css +0 -673
  337. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +0 -8
  338. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +0 -1
  339. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +0 -8
  340. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +0 -1
  341. package/lib/components/Editor/skins/ui/default/content.inline.min.css +0 -8
  342. package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +0 -1
  343. package/lib/components/Editor/skins/ui/default/content.min.css +0 -8
  344. package/lib/components/Editor/skins/ui/default/content.min.css.map +0 -1
  345. package/lib/components/Editor/skins/ui/default/content.mobile.css +0 -29
  346. package/lib/components/Editor/skins/ui/default/content.mobile.min.css +0 -8
  347. package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +0 -1
  348. package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
  349. package/lib/components/Editor/skins/ui/default/skin.min.css +0 -8
  350. package/lib/components/Editor/skins/ui/default/skin.min.css.map +0 -1
  351. package/lib/components/Editor/skins/ui/default/skin.mobile.css +0 -673
  352. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +0 -8
  353. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +0 -1
  354. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +0 -8
  355. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +0 -1
  356. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
  357. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +0 -1641
  358. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +0 -8
  359. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +0 -1
  360. package/lib/components/Editor/tinymce/jquery.tinymce.min.js +0 -92
  361. package/lib/components/Editor/tinymce/langs/pt_BR.js +0 -419
  362. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -99
  363. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +0 -9
  364. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.js +0 -22
  365. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +0 -9
  366. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.js +0 -22
  367. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +0 -9
  368. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -544
  369. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +0 -9
  370. package/lib/components/Editor/tinymce/plugins/hr/plugin.js +0 -46
  371. package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +0 -9
  372. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1354
  373. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +0 -9
  374. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -199
  375. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +0 -9
  376. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -117
  377. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +0 -9
  378. package/lib/components/Editor/tinymce/plugins/paste/plugin.js +0 -1764
  379. package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +0 -9
  380. package/lib/components/Editor/tinymce/plugins/print/plugin.js +0 -53
  381. package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +0 -9
  382. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -731
  383. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +0 -9
  384. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -129
  385. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +0 -9
  386. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.js +0 -22
  387. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +0 -9
  388. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1394
  389. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +0 -9
  390. package/lib/components/Editor/tinymce/plugins/toc/plugin.js +0 -236
  391. package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +0 -9
  392. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +0 -29
  393. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +0 -8
  394. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +0 -1
  395. package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  396. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +0 -673
  397. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -8
  398. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +0 -1
  399. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
  400. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -8
  401. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +0 -1
  402. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  403. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
  404. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
  405. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +0 -1
  406. package/lib/components/Editor/tinymce/themes/mobile/theme.js +0 -13587
  407. package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +0 -9
@@ -1,120 +1,168 @@
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$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
13
9
 
14
- var unique = 0;
15
- var generate = function (prefix) {
16
- var date = new Date();
17
- var time = date.getTime();
18
- var random = Math.floor(Math.random() * 1000000000);
19
- unique++;
20
- return prefix + '_' + random + unique + String(time);
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
+ }
17
+ };
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
+ }
21
29
  };
30
+ const isType = type => value => typeOf(value) === type;
31
+ const isSimpleType = type => value => typeof value === type;
32
+ const isString = isType('string');
33
+ const isBoolean = isSimpleType('boolean');
34
+ const isNullable = a => a === null || a === undefined;
35
+ const isNonNullable = a => !isNullable(a);
36
+ const isFunction = isSimpleType('function');
22
37
 
23
- var createTableHtml = function (cols, rows) {
24
- var x, y, html;
25
- html = '<table data-mce-id="mce" style="width: 100%">';
26
- html += '<tbody>';
27
- for (y = 0; y < rows; y++) {
28
- html += '<tr>';
29
- for (x = 0; x < cols; x++) {
30
- html += '<td><br></td>';
38
+ const option = name => editor => editor.options.get(name);
39
+ const register = editor => {
40
+ const registerOption = editor.options.register;
41
+ const toolbarProcessor = defaultValue => value => {
42
+ const valid = isBoolean(value) || isString(value);
43
+ if (valid) {
44
+ if (isBoolean(value)) {
45
+ return {
46
+ value: value ? defaultValue : '',
47
+ valid
48
+ };
49
+ } else {
50
+ return {
51
+ value: value.trim(),
52
+ valid
53
+ };
54
+ }
55
+ } else {
56
+ return {
57
+ valid: false,
58
+ message: 'Must be a boolean or string.'
59
+ };
31
60
  }
32
- html += '</tr>';
33
- }
34
- html += '</tbody>';
35
- html += '</table>';
36
- return html;
61
+ };
62
+ const defaultSelectionToolbar = 'bold italic | quicklink h2 h3 blockquote';
63
+ registerOption('quickbars_selection_toolbar', {
64
+ processor: toolbarProcessor(defaultSelectionToolbar),
65
+ default: defaultSelectionToolbar
66
+ });
67
+ const defaultInsertToolbar = 'quickimage quicktable';
68
+ registerOption('quickbars_insert_toolbar', {
69
+ processor: toolbarProcessor(defaultInsertToolbar),
70
+ default: defaultInsertToolbar
71
+ });
72
+ const defaultImageToolbar = 'alignleft aligncenter alignright';
73
+ registerOption('quickbars_image_toolbar', {
74
+ processor: toolbarProcessor(defaultImageToolbar),
75
+ default: defaultImageToolbar
76
+ });
37
77
  };
38
- var getInsertedElement = function (editor) {
39
- var elms = editor.dom.select('*[data-mce-id]');
40
- return elms[0];
78
+ const getTextSelectionToolbarItems = option('quickbars_selection_toolbar');
79
+ const getInsertToolbarItems = option('quickbars_insert_toolbar');
80
+ const getImageToolbarItems = option('quickbars_image_toolbar');
81
+
82
+ let unique = 0;
83
+ const generate = prefix => {
84
+ const date = new Date();
85
+ const time = date.getTime();
86
+ const random = Math.floor(Math.random() * 1000000000);
87
+ unique++;
88
+ return prefix + '_' + random + unique + String(time);
41
89
  };
42
- var insertTableHtml = function (editor, cols, rows) {
43
- editor.undoManager.transact(function () {
44
- editor.insertContent(createTableHtml(cols, rows));
45
- var tableElm = getInsertedElement(editor);
46
- tableElm.removeAttribute('data-mce-id');
47
- var cellElm = editor.dom.select('td,th', tableElm);
48
- editor.selection.setCursorLocation(cellElm[0], 0);
90
+
91
+ const insertTable = (editor, columns, rows) => {
92
+ editor.execCommand('mceInsertTable', false, {
93
+ rows,
94
+ columns
49
95
  });
50
96
  };
51
- var insertTable = function (editor, cols, rows) {
52
- editor.plugins.table ? editor.plugins.table.insertTable(cols, rows) : insertTableHtml(editor, cols, rows);
53
- };
54
- var insertBlob = function (editor, base64, blob) {
55
- var blobCache = editor.editorUpload.blobCache;
56
- var blobInfo = blobCache.create(generate('mceu'), blob, base64);
97
+ const insertBlob = (editor, base64, blob) => {
98
+ const blobCache = editor.editorUpload.blobCache;
99
+ const blobInfo = blobCache.create(generate('mceu'), blob, base64);
57
100
  blobCache.add(blobInfo);
58
101
  editor.insertContent(editor.dom.createHTML('img', { src: blobInfo.blobUri() }));
59
102
  };
60
103
 
61
- var global$1 = tinymce.util.Tools.resolve('tinymce.util.Promise');
62
-
63
- var blobToBase64 = function (blob) {
64
- return new global$1(function (resolve) {
65
- var reader = new FileReader();
66
- reader.onloadend = function () {
104
+ const blobToBase64 = blob => {
105
+ return new Promise(resolve => {
106
+ const reader = new FileReader();
107
+ reader.onloadend = () => {
67
108
  resolve(reader.result.split(',')[1]);
68
109
  };
69
110
  reader.readAsDataURL(blob);
70
111
  });
71
112
  };
72
113
 
73
- var global$2 = tinymce.util.Tools.resolve('tinymce.Env');
114
+ var global = tinymce.util.Tools.resolve('tinymce.util.Delay');
74
115
 
75
- var global$3 = tinymce.util.Tools.resolve('tinymce.util.Delay');
76
-
77
- var pickFile = function (editor) {
78
- return new global$1(function (resolve) {
79
- var fileInput = document.createElement('input');
80
- fileInput.type = 'file';
81
- fileInput.accept = 'image/*';
82
- fileInput.style.position = 'fixed';
83
- fileInput.style.left = '0';
84
- fileInput.style.top = '0';
85
- fileInput.style.opacity = '0.001';
86
- document.body.appendChild(fileInput);
87
- var changeHandler = function (e) {
88
- resolve(Array.prototype.slice.call(e.target.files));
116
+ const pickFile = editor => new Promise(resolve => {
117
+ let resolved = false;
118
+ const fileInput = document.createElement('input');
119
+ fileInput.type = 'file';
120
+ fileInput.accept = 'image/*';
121
+ fileInput.style.position = 'fixed';
122
+ fileInput.style.left = '0';
123
+ fileInput.style.top = '0';
124
+ fileInput.style.opacity = '0.001';
125
+ document.body.appendChild(fileInput);
126
+ const resolveFileInput = value => {
127
+ var _a;
128
+ if (!resolved) {
129
+ (_a = fileInput.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(fileInput);
130
+ resolved = true;
131
+ resolve(value);
132
+ }
133
+ };
134
+ const changeHandler = e => {
135
+ resolveFileInput(Array.prototype.slice.call(e.target.files));
136
+ };
137
+ fileInput.addEventListener('input', changeHandler);
138
+ fileInput.addEventListener('change', changeHandler);
139
+ const cancelHandler = e => {
140
+ const cleanup = () => {
141
+ resolveFileInput([]);
89
142
  };
90
- fileInput.addEventListener('change', changeHandler);
91
- var cancelHandler = function (e) {
92
- var cleanup = function () {
93
- resolve([]);
94
- fileInput.parentNode.removeChild(fileInput);
95
- };
96
- if (global$2.os.isAndroid() && e.type !== 'remove') {
97
- global$3.setEditorTimeout(editor, cleanup, 0);
143
+ if (!resolved) {
144
+ if (e.type === 'focusin') {
145
+ global.setEditorTimeout(editor, cleanup, 1000);
98
146
  } else {
99
147
  cleanup();
100
148
  }
101
- editor.off('focusin remove', cancelHandler);
102
- };
103
- editor.on('focusin remove', cancelHandler);
104
- fileInput.click();
105
- });
106
- };
149
+ }
150
+ editor.off('focusin remove', cancelHandler);
151
+ };
152
+ editor.on('focusin remove', cancelHandler);
153
+ fileInput.click();
154
+ });
107
155
 
108
- var setupButtons = function (editor) {
156
+ const setupButtons = editor => {
109
157
  editor.ui.registry.addButton('quickimage', {
110
158
  icon: 'image',
111
159
  tooltip: 'Insert image',
112
- onAction: function () {
113
- pickFile(editor).then(function (files) {
160
+ onAction: () => {
161
+ pickFile(editor).then(files => {
114
162
  if (files.length > 0) {
115
- var blob_1 = files[0];
116
- blobToBase64(blob_1).then(function (base64) {
117
- insertBlob(editor, base64, blob_1);
163
+ const blob = files[0];
164
+ blobToBase64(blob).then(base64 => {
165
+ insertBlob(editor, base64, blob);
118
166
  });
119
167
  }
120
168
  });
@@ -123,163 +171,127 @@
123
171
  editor.ui.registry.addButton('quicktable', {
124
172
  icon: 'table',
125
173
  tooltip: 'Insert table',
126
- onAction: function () {
174
+ onAction: () => {
127
175
  insertTable(editor, 2, 2);
128
176
  }
129
177
  });
130
178
  };
131
179
 
132
- var typeOf = function (x) {
133
- var t = typeof x;
134
- if (x === null) {
135
- return 'null';
136
- } else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
137
- return 'array';
138
- } else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
139
- return 'string';
140
- } else {
141
- return t;
142
- }
143
- };
144
- var isType = function (type) {
145
- return function (value) {
146
- return typeOf(value) === type;
147
- };
148
- };
149
- var isSimpleType = function (type) {
150
- return function (value) {
151
- return typeof value === type;
152
- };
153
- };
154
- var eq = function (t) {
155
- return function (a) {
156
- return t === a;
157
- };
158
- };
159
- var isString = isType('string');
160
- var isObject = isType('object');
161
- var isArray = isType('array');
162
- var isBoolean = isSimpleType('boolean');
163
- var isUndefined = eq(undefined);
164
- var isFunction = isSimpleType('function');
165
-
166
- var noop = function () {
167
- };
168
- var constant = function (value) {
169
- return function () {
180
+ const constant = value => {
181
+ return () => {
170
182
  return value;
171
183
  };
172
184
  };
173
- var never = constant(false);
174
- var always = constant(true);
185
+ const never = constant(false);
175
186
 
176
- var none = function () {
177
- return NONE;
178
- };
179
- var NONE = function () {
180
- var eq = function (o) {
181
- return o.isNone();
182
- };
183
- var call = function (thunk) {
184
- return thunk();
185
- };
186
- var id = function (n) {
187
- return n;
188
- };
189
- var me = {
190
- fold: function (n, _s) {
191
- return n();
192
- },
193
- is: never,
194
- isSome: never,
195
- isNone: always,
196
- getOr: id,
197
- getOrThunk: call,
198
- getOrDie: function (msg) {
199
- throw new Error(msg || 'error: getOrDie called on none.');
200
- },
201
- getOrNull: constant(null),
202
- getOrUndefined: constant(undefined),
203
- or: id,
204
- orThunk: call,
205
- map: none,
206
- each: noop,
207
- bind: none,
208
- exists: never,
209
- forall: always,
210
- filter: none,
211
- equals: eq,
212
- equals_: eq,
213
- toArray: function () {
214
- return [];
215
- },
216
- toString: constant('none()')
217
- };
218
- return me;
219
- }();
220
- var some = function (a) {
221
- var constant_a = constant(a);
222
- var self = function () {
223
- return me;
224
- };
225
- var bind = function (f) {
226
- return f(a);
227
- };
228
- var me = {
229
- fold: function (n, s) {
230
- return s(a);
231
- },
232
- is: function (v) {
233
- return a === v;
234
- },
235
- isSome: always,
236
- isNone: never,
237
- getOr: constant_a,
238
- getOrThunk: constant_a,
239
- getOrDie: constant_a,
240
- getOrNull: constant_a,
241
- getOrUndefined: constant_a,
242
- or: self,
243
- orThunk: self,
244
- map: function (f) {
245
- return some(f(a));
246
- },
247
- each: function (f) {
248
- f(a);
249
- },
250
- bind: bind,
251
- exists: bind,
252
- forall: bind,
253
- filter: function (f) {
254
- return f(a) ? me : NONE;
255
- },
256
- toArray: function () {
257
- return [a];
258
- },
259
- toString: function () {
260
- return 'some(' + a + ')';
261
- },
262
- equals: function (o) {
263
- return o.is(a);
264
- },
265
- equals_: function (o, elementEq) {
266
- return o.fold(never, function (b) {
267
- return elementEq(a, b);
268
- });
187
+ class Optional {
188
+ constructor(tag, value) {
189
+ this.tag = tag;
190
+ this.value = value;
191
+ }
192
+ static some(value) {
193
+ return new Optional(true, value);
194
+ }
195
+ static none() {
196
+ return Optional.singletonNone;
197
+ }
198
+ fold(onNone, onSome) {
199
+ if (this.tag) {
200
+ return onSome(this.value);
201
+ } else {
202
+ return onNone();
269
203
  }
270
- };
271
- return me;
272
- };
273
- var from = function (value) {
274
- return value === null || value === undefined ? NONE : some(value);
204
+ }
205
+ isSome() {
206
+ return this.tag;
207
+ }
208
+ isNone() {
209
+ return !this.tag;
210
+ }
211
+ map(mapper) {
212
+ if (this.tag) {
213
+ return Optional.some(mapper(this.value));
214
+ } else {
215
+ return Optional.none();
216
+ }
217
+ }
218
+ bind(binder) {
219
+ if (this.tag) {
220
+ return binder(this.value);
221
+ } else {
222
+ return Optional.none();
223
+ }
224
+ }
225
+ exists(predicate) {
226
+ return this.tag && predicate(this.value);
227
+ }
228
+ forall(predicate) {
229
+ return !this.tag || predicate(this.value);
230
+ }
231
+ filter(predicate) {
232
+ if (!this.tag || predicate(this.value)) {
233
+ return this;
234
+ } else {
235
+ return Optional.none();
236
+ }
237
+ }
238
+ getOr(replacement) {
239
+ return this.tag ? this.value : replacement;
240
+ }
241
+ or(replacement) {
242
+ return this.tag ? this : replacement;
243
+ }
244
+ getOrThunk(thunk) {
245
+ return this.tag ? this.value : thunk();
246
+ }
247
+ orThunk(thunk) {
248
+ return this.tag ? this : thunk();
249
+ }
250
+ getOrDie(message) {
251
+ if (!this.tag) {
252
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
253
+ } else {
254
+ return this.value;
255
+ }
256
+ }
257
+ static from(value) {
258
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
259
+ }
260
+ getOrNull() {
261
+ return this.tag ? this.value : null;
262
+ }
263
+ getOrUndefined() {
264
+ return this.value;
265
+ }
266
+ each(worker) {
267
+ if (this.tag) {
268
+ worker(this.value);
269
+ }
270
+ }
271
+ toArray() {
272
+ return this.tag ? [this.value] : [];
273
+ }
274
+ toString() {
275
+ return this.tag ? `some(${ this.value })` : 'none()';
276
+ }
277
+ }
278
+ Optional.singletonNone = new Optional(false);
279
+
280
+ typeof window !== 'undefined' ? window : Function('return this;')();
281
+
282
+ const ELEMENT = 1;
283
+
284
+ const name = element => {
285
+ const r = element.dom.nodeName;
286
+ return r.toLowerCase();
275
287
  };
276
- var Optional = {
277
- some: some,
278
- none: none,
279
- from: from
288
+
289
+ const has$1 = (element, key) => {
290
+ const dom = element.dom;
291
+ return dom && dom.hasAttribute ? dom.hasAttribute(key) : false;
280
292
  };
281
293
 
282
- function ClosestOrAncestor (is, ancestor, scope, a, isRoot) {
294
+ var ClosestOrAncestor = (is, ancestor, scope, a, isRoot) => {
283
295
  if (is(scope, a)) {
284
296
  return Optional.some(scope);
285
297
  } else if (isFunction(isRoot) && isRoot(scope)) {
@@ -287,53 +299,50 @@
287
299
  } else {
288
300
  return ancestor(scope, a, isRoot);
289
301
  }
290
- }
291
-
292
- var ELEMENT = 1;
302
+ };
293
303
 
294
- var fromHtml = function (html, scope) {
295
- var doc = scope || document;
296
- var div = doc.createElement('div');
304
+ const fromHtml = (html, scope) => {
305
+ const doc = scope || document;
306
+ const div = doc.createElement('div');
297
307
  div.innerHTML = html;
298
308
  if (!div.hasChildNodes() || div.childNodes.length > 1) {
299
- console.error('HTML does not have a single root node', html);
300
- throw new Error('HTML must have a single root node');
309
+ const message = 'HTML does not have a single root node';
310
+ console.error(message, html);
311
+ throw new Error(message);
301
312
  }
302
313
  return fromDom(div.childNodes[0]);
303
314
  };
304
- var fromTag = function (tag, scope) {
305
- var doc = scope || document;
306
- var node = doc.createElement(tag);
315
+ const fromTag = (tag, scope) => {
316
+ const doc = scope || document;
317
+ const node = doc.createElement(tag);
307
318
  return fromDom(node);
308
319
  };
309
- var fromText = function (text, scope) {
310
- var doc = scope || document;
311
- var node = doc.createTextNode(text);
320
+ const fromText = (text, scope) => {
321
+ const doc = scope || document;
322
+ const node = doc.createTextNode(text);
312
323
  return fromDom(node);
313
324
  };
314
- var fromDom = function (node) {
325
+ const fromDom = node => {
315
326
  if (node === null || node === undefined) {
316
327
  throw new Error('Node cannot be null or undefined');
317
328
  }
318
329
  return { dom: node };
319
330
  };
320
- var fromPoint = function (docElm, x, y) {
321
- return Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
322
- };
323
- var SugarElement = {
324
- fromHtml: fromHtml,
325
- fromTag: fromTag,
326
- fromText: fromText,
327
- fromDom: fromDom,
328
- fromPoint: fromPoint
331
+ const fromPoint = (docElm, x, y) => Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
332
+ const SugarElement = {
333
+ fromHtml,
334
+ fromTag,
335
+ fromText,
336
+ fromDom,
337
+ fromPoint
329
338
  };
330
339
 
331
- var is = function (element, selector) {
332
- var dom = element.dom;
340
+ const is = (element, selector) => {
341
+ const dom = element.dom;
333
342
  if (dom.nodeType !== ELEMENT) {
334
343
  return false;
335
344
  } else {
336
- var elem = dom;
345
+ const elem = dom;
337
346
  if (elem.matches !== undefined) {
338
347
  return elem.matches(selector);
339
348
  } else if (elem.msMatchesSelector !== undefined) {
@@ -348,19 +357,12 @@
348
357
  }
349
358
  };
350
359
 
351
- var Global = typeof window !== 'undefined' ? window : Function('return this;')();
352
-
353
- var name = function (element) {
354
- var r = element.dom.nodeName;
355
- return r.toLowerCase();
356
- };
357
-
358
- var ancestor = function (scope, predicate, isRoot) {
359
- var element = scope.dom;
360
- var stop = isFunction(isRoot) ? isRoot : never;
360
+ const ancestor$1 = (scope, predicate, isRoot) => {
361
+ let element = scope.dom;
362
+ const stop = isFunction(isRoot) ? isRoot : never;
361
363
  while (element.parentNode) {
362
364
  element = element.parentNode;
363
- var el = SugarElement.fromDom(element);
365
+ const el = SugarElement.fromDom(element);
364
366
  if (predicate(el)) {
365
367
  return Optional.some(el);
366
368
  } else if (stop(el)) {
@@ -369,77 +371,28 @@
369
371
  }
370
372
  return Optional.none();
371
373
  };
372
- var closest = function (scope, predicate, isRoot) {
373
- var is = function (s, test) {
374
- return test(s);
375
- };
376
- return ClosestOrAncestor(is, ancestor, scope, predicate, isRoot);
377
- };
378
-
379
- var ancestor$1 = function (scope, selector, isRoot) {
380
- return ancestor(scope, function (e) {
381
- return is(e, selector);
382
- }, isRoot);
383
- };
384
- var closest$1 = function (scope, selector, isRoot) {
385
- var is$1 = function (element, selector) {
386
- return is(element, selector);
387
- };
388
- return ClosestOrAncestor(is$1, ancestor$1, scope, selector, isRoot);
374
+ const closest$2 = (scope, predicate, isRoot) => {
375
+ const is = (s, test) => test(s);
376
+ return ClosestOrAncestor(is, ancestor$1, scope, predicate, isRoot);
389
377
  };
390
378
 
391
- var validDefaultOrDie = function (value, predicate) {
392
- if (predicate(value)) {
393
- return true;
394
- }
395
- throw new Error('Default value doesn\'t match requested type.');
396
- };
397
- var items = function (value, defaultValue) {
398
- if (isArray(value) || isObject(value)) {
399
- throw new Error('expected a string but found: ' + value);
400
- }
401
- if (isUndefined(value)) {
402
- return defaultValue;
403
- }
404
- if (isBoolean(value)) {
405
- return value === false ? '' : defaultValue;
406
- }
407
- return value;
408
- };
409
- var getToolbarItemsOr_ = function (predicate) {
410
- return function (editor, name, defaultValue) {
411
- validDefaultOrDie(defaultValue, predicate);
412
- var value = editor.getParam(name, defaultValue);
413
- return items(value, defaultValue);
414
- };
415
- };
416
- var getToolbarItemsOr = getToolbarItemsOr_(isString);
379
+ const closest$1 = (scope, predicate, isRoot) => closest$2(scope, predicate, isRoot).isSome();
417
380
 
418
- var getTextSelectionToolbarItems = function (editor) {
419
- return getToolbarItemsOr(editor, 'quickbars_selection_toolbar', 'bold italic | quicklink h2 h3 blockquote');
420
- };
421
- var getInsertToolbarItems = function (editor) {
422
- return getToolbarItemsOr(editor, 'quickbars_insert_toolbar', 'quickimage quicktable');
423
- };
424
- var getImageToolbarItems = function (editor) {
425
- return getToolbarItemsOr(editor, 'quickbars_image_toolbar', 'alignleft aligncenter alignright');
381
+ const ancestor = (scope, selector, isRoot) => ancestor$1(scope, e => is(e, selector), isRoot);
382
+ const closest = (scope, selector, isRoot) => {
383
+ const is$1 = (element, selector) => is(element, selector);
384
+ return ClosestOrAncestor(is$1, ancestor, scope, selector, isRoot);
426
385
  };
427
386
 
428
- var addToEditor = function (editor) {
429
- var insertToolbarItems = getInsertToolbarItems(editor);
430
- if (insertToolbarItems.trim().length > 0) {
387
+ const addToEditor$1 = editor => {
388
+ const insertToolbarItems = getInsertToolbarItems(editor);
389
+ if (insertToolbarItems.length > 0) {
431
390
  editor.ui.registry.addContextToolbar('quickblock', {
432
- predicate: function (node) {
433
- var sugarNode = SugarElement.fromDom(node);
434
- var textBlockElementsMap = editor.schema.getTextBlockElements();
435
- var isRoot = function (elem) {
436
- return elem.dom === editor.getBody();
437
- };
438
- return closest$1(sugarNode, 'table', isRoot).fold(function () {
439
- return closest(sugarNode, function (elem) {
440
- return name(elem) in textBlockElementsMap && editor.dom.isEmpty(elem.dom);
441
- }, isRoot).isSome();
442
- }, never);
391
+ predicate: node => {
392
+ const sugarNode = SugarElement.fromDom(node);
393
+ const textBlockElementsMap = editor.schema.getTextBlockElements();
394
+ const isRoot = elem => elem.dom === editor.getBody();
395
+ return !has$1(sugarNode, 'data-mce-bogus') && closest(sugarNode, 'table,[data-mce-bogus="all"]', isRoot).fold(() => closest$1(sugarNode, elem => name(elem) in textBlockElementsMap && editor.dom.isEmpty(elem.dom), isRoot), never);
443
396
  },
444
397
  items: insertToolbarItems,
445
398
  position: 'line',
@@ -448,27 +401,31 @@
448
401
  }
449
402
  };
450
403
 
451
- var addToEditor$1 = function (editor) {
452
- var isEditable = function (node) {
453
- return editor.dom.getContentEditableParent(node) !== 'false';
454
- };
455
- var isImage = function (node) {
456
- return node.nodeName === 'IMG' || node.nodeName === 'FIGURE' && /image/i.test(node.className);
404
+ const supports = element => element.dom.classList !== undefined;
405
+
406
+ const has = (element, clazz) => supports(element) && element.dom.classList.contains(clazz);
407
+
408
+ const addToEditor = editor => {
409
+ const isEditable = node => editor.dom.isEditable(node);
410
+ const isInEditableContext = el => isEditable(el.parentElement);
411
+ const isImage = node => {
412
+ const isImageFigure = node.nodeName === 'FIGURE' && /image/i.test(node.className);
413
+ const isImage = node.nodeName === 'IMG' || isImageFigure;
414
+ const isPagebreak = has(SugarElement.fromDom(node), 'mce-pagebreak');
415
+ return isImage && isInEditableContext(node) && !isPagebreak;
457
416
  };
458
- var imageToolbarItems = getImageToolbarItems(editor);
459
- if (imageToolbarItems.trim().length > 0) {
417
+ const imageToolbarItems = getImageToolbarItems(editor);
418
+ if (imageToolbarItems.length > 0) {
460
419
  editor.ui.registry.addContextToolbar('imageselection', {
461
420
  predicate: isImage,
462
421
  items: imageToolbarItems,
463
422
  position: 'node'
464
423
  });
465
424
  }
466
- var textToolbarItems = getTextSelectionToolbarItems(editor);
467
- if (textToolbarItems.trim().length > 0) {
425
+ const textToolbarItems = getTextSelectionToolbarItems(editor);
426
+ if (textToolbarItems.length > 0) {
468
427
  editor.ui.registry.addContextToolbar('textselection', {
469
- predicate: function (node) {
470
- return !isImage(node) && !editor.selection.isCollapsed() && isEditable(node);
471
- },
428
+ predicate: node => !isImage(node) && !editor.selection.isCollapsed() && isEditable(node),
472
429
  items: textToolbarItems,
473
430
  position: 'selection',
474
431
  scope: 'editor'
@@ -476,14 +433,15 @@
476
433
  }
477
434
  };
478
435
 
479
- function Plugin () {
480
- global.add('quickbars', function (editor) {
436
+ var Plugin = () => {
437
+ global$1.add('quickbars', editor => {
438
+ register(editor);
481
439
  setupButtons(editor);
482
- addToEditor(editor);
483
440
  addToEditor$1(editor);
441
+ addToEditor(editor);
484
442
  });
485
- }
443
+ };
486
444
 
487
445
  Plugin();
488
446
 
489
- }());
447
+ })();