@sapui5/sap.ui.richtexteditor 1.136.4 → 1.136.6

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 (448) hide show
  1. package/package.json +1 -1
  2. package/src/sap/ui/richtexteditor/.library +1 -1
  3. package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
  4. package/src/sap/ui/richtexteditor/RichTextEditor.js +43 -43
  5. package/src/sap/ui/richtexteditor/ToolbarWrapper.js +1 -1
  6. package/src/sap/ui/richtexteditor/js/tiny_mce7/icons/default/icons.js +234 -0
  7. package/src/sap/ui/richtexteditor/js/tiny_mce7/icons/default/icons.min.js +7 -0
  8. package/src/sap/ui/richtexteditor/js/tiny_mce7/icons/default/index.js +13 -0
  9. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ar.js +7 -0
  10. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/bg_BG.js +7 -0
  11. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ca.js +7 -0
  12. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/cs.js +7 -0
  13. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/cy.js +1 -0
  14. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/da.js +7 -0
  15. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/de.js +7 -0
  16. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/el.js +7 -0
  17. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/en_GB.js +261 -0
  18. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/es.js +7 -0
  19. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/es_MX.js +1 -0
  20. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/eu.js +7 -0
  21. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/fa.js +7 -0
  22. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/fi.js +7 -0
  23. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/fr_FR.js +7 -0
  24. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/he_IL.js +7 -0
  25. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/hi.js +7 -0
  26. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/hr.js +7 -0
  27. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/hu_HU.js +7 -0
  28. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/id.js +7 -0
  29. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/it.js +7 -0
  30. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ja.js +7 -0
  31. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/kk.js +7 -0
  32. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ko_KR.js +7 -0
  33. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/lt.js +1 -0
  34. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/lv.js +1 -0
  35. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ms.js +7 -0
  36. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/nb_NO.js +7 -0
  37. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/nl.js +7 -0
  38. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/pl.js +7 -0
  39. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/pt_BR.js +7 -0
  40. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/pt_PT.js +7 -0
  41. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ro.js +7 -0
  42. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ru.js +7 -0
  43. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/sk.js +7 -0
  44. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/sl_SI.js +7 -0
  45. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/sr.js +1 -0
  46. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/sv_SE.js +7 -0
  47. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/th_TH.js +7 -0
  48. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/tr.js +7 -0
  49. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/uk.js +7 -0
  50. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/vi.js +7 -0
  51. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/zh_CN.js +7 -0
  52. package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/zh_TW.js +7 -0
  53. package/src/sap/ui/richtexteditor/js/tiny_mce7/license.txt +5 -0
  54. package/src/sap/ui/richtexteditor/js/tiny_mce7/models/dom/index.js +13 -0
  55. package/src/sap/ui/richtexteditor/js/tiny_mce7/models/dom/model.js +8147 -0
  56. package/src/sap/ui/richtexteditor/js/tiny_mce7/models/dom/model.min.js +9 -0
  57. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/accordion/index.js +13 -0
  58. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/accordion/plugin.js +1062 -0
  59. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/accordion/plugin.min.js +9 -0
  60. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/CHANGELOG.md +45 -0
  61. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/codemirror.min.js +13 -0
  62. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/customeditor.js +10 -0
  63. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/customeditor.min.js +10 -0
  64. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/index.js +3 -0
  65. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ar.js +35 -0
  66. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/bg_BG.js +35 -0
  67. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ca.js +35 -0
  68. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/cs.js +35 -0
  69. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/da.js +35 -0
  70. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/de.js +35 -0
  71. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/el.js +35 -0
  72. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/es.js +35 -0
  73. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/eu.js +35 -0
  74. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/fa.js +35 -0
  75. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/fi.js +35 -0
  76. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/fr_FR.js +35 -0
  77. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/he_IL.js +35 -0
  78. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/hi.js +35 -0
  79. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/hr.js +35 -0
  80. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/hu_HU.js +35 -0
  81. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/id.js +35 -0
  82. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/it.js +35 -0
  83. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ja.js +35 -0
  84. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/kk.js +35 -0
  85. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ko_KR.js +35 -0
  86. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ms.js +35 -0
  87. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/nb_NO.js +35 -0
  88. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/nl.js +35 -0
  89. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/pl.js +35 -0
  90. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/pt_BR.js +35 -0
  91. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/pt_PT.js +35 -0
  92. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ro.js +35 -0
  93. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ru.js +35 -0
  94. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/sk.js +35 -0
  95. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/sl_SI.js +35 -0
  96. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/sv_SE.js +35 -0
  97. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/th_TH.js +35 -0
  98. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/tr.js +35 -0
  99. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/uk.js +35 -0
  100. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/vi.js +35 -0
  101. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/zh_CN.js +35 -0
  102. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/zh_TW.js +35 -0
  103. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/license.txt +5 -0
  104. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/plugin.js +10 -0
  105. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/plugin.min.js +10 -0
  106. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/readme.txt +10 -0
  107. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/version.txt +1 -0
  108. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advlist/index.js +13 -0
  109. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advlist/plugin.js +298 -0
  110. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advlist/plugin.min.js +9 -0
  111. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/anchor/index.js +13 -0
  112. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/anchor/plugin.js +219 -0
  113. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/anchor/plugin.min.js +9 -0
  114. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autolink/index.js +13 -0
  115. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autolink/plugin.js +233 -0
  116. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autolink/plugin.min.js +9 -0
  117. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autoresize/index.js +13 -0
  118. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autoresize/plugin.js +184 -0
  119. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autoresize/plugin.min.js +9 -0
  120. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autosave/index.js +13 -0
  121. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autosave/plugin.js +239 -0
  122. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autosave/plugin.min.js +9 -0
  123. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/charmap/index.js +13 -0
  124. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/charmap/plugin.js +1663 -0
  125. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/charmap/plugin.min.js +9 -0
  126. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/code/index.js +13 -0
  127. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/code/plugin.js +90 -0
  128. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/code/plugin.min.js +9 -0
  129. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/codesample/index.js +13 -0
  130. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/codesample/plugin.js +2468 -0
  131. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/codesample/plugin.min.js +9 -0
  132. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/directionality/index.js +13 -0
  133. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/directionality/plugin.js +395 -0
  134. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/directionality/plugin.min.js +9 -0
  135. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/index.js +13 -0
  136. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/js/emojiimages.js +7 -0
  137. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/js/emojiimages.min.js +9 -0
  138. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/js/emojis.js +7 -0
  139. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/js/emojis.min.js +8 -0
  140. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/plugin.js +601 -0
  141. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/plugin.min.js +9 -0
  142. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/fullscreen/index.js +13 -0
  143. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/fullscreen/plugin.js +1266 -0
  144. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/fullscreen/plugin.min.js +9 -0
  145. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/index.js +13 -0
  146. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ar.js +99 -0
  147. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/bg_BG.js +99 -0
  148. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ca.js +99 -0
  149. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/cs.js +99 -0
  150. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/da.js +99 -0
  151. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/de.js +99 -0
  152. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/el.js +99 -0
  153. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/en.js +99 -0
  154. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/es.js +99 -0
  155. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/eu.js +99 -0
  156. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/fa.js +99 -0
  157. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/fi.js +99 -0
  158. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/fr_FR.js +99 -0
  159. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/he_IL.js +99 -0
  160. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/hi.js +99 -0
  161. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/hr.js +99 -0
  162. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/hu_HU.js +99 -0
  163. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/id.js +99 -0
  164. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/it.js +99 -0
  165. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ja.js +99 -0
  166. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/kk.js +99 -0
  167. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ko_KR.js +99 -0
  168. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ms.js +99 -0
  169. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/nb_NO.js +99 -0
  170. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/nl.js +99 -0
  171. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/pl.js +99 -0
  172. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/pt_BR.js +99 -0
  173. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/pt_PT.js +99 -0
  174. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ro.js +99 -0
  175. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ru.js +99 -0
  176. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/sk.js +99 -0
  177. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/sl_SI.js +99 -0
  178. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/sv_SE.js +99 -0
  179. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/th_TH.js +99 -0
  180. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/tr.js +99 -0
  181. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/uk.js +99 -0
  182. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/vi.js +99 -0
  183. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/zh_CN.js +93 -0
  184. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/zh_TW.js +99 -0
  185. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/plugin.js +931 -0
  186. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/plugin.min.js +9 -0
  187. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/image/index.js +13 -0
  188. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/image/plugin.js +1513 -0
  189. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/image/plugin.min.js +9 -0
  190. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/importcss/index.js +13 -0
  191. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/importcss/plugin.js +350 -0
  192. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/importcss/plugin.min.js +9 -0
  193. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/insertdatetime/index.js +13 -0
  194. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/insertdatetime/plugin.js +192 -0
  195. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/insertdatetime/plugin.min.js +9 -0
  196. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/link/index.js +13 -0
  197. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/link/plugin.js +1337 -0
  198. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/link/plugin.min.js +9 -0
  199. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/lists/index.js +13 -0
  200. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/lists/plugin.js +2186 -0
  201. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/lists/plugin.min.js +9 -0
  202. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/media/index.js +13 -0
  203. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/media/plugin.js +1229 -0
  204. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/media/plugin.min.js +9 -0
  205. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/index.js +1 -0
  206. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ar.js +12 -0
  207. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/bg_BG.js +12 -0
  208. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ca.js +12 -0
  209. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/cs.js +12 -0
  210. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/da.js +12 -0
  211. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/de.js +12 -0
  212. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/el.js +12 -0
  213. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/es.js +12 -0
  214. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/eu.js +12 -0
  215. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/fa.js +12 -0
  216. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/fi.js +12 -0
  217. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/fr_FR.js +12 -0
  218. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/he_IL.js +12 -0
  219. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/hi.js +12 -0
  220. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/hr.js +12 -0
  221. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/hu_HU.js +12 -0
  222. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/id.js +12 -0
  223. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/it.js +12 -0
  224. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ja.js +12 -0
  225. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/kk.js +12 -0
  226. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ko_KR.js +12 -0
  227. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ms.js +12 -0
  228. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/nb_NO.js +12 -0
  229. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/nl.js +12 -0
  230. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/pl.js +12 -0
  231. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/pt_BR.js +12 -0
  232. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/pt_PT.js +12 -0
  233. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ro.js +12 -0
  234. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ru.js +12 -0
  235. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/sk.js +12 -0
  236. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/sl_SI.js +12 -0
  237. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/sv_SE.js +12 -0
  238. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/th_TH.js +12 -0
  239. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/tr.js +12 -0
  240. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/uk.js +12 -0
  241. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/vi.js +12 -0
  242. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/zh_CN.js +12 -0
  243. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/zh_TW.js +12 -0
  244. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/license.txt +5 -0
  245. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/plugin.js +10 -0
  246. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/plugin.min.js +10 -0
  247. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/readme.txt +10 -0
  248. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/version.txt +1 -0
  249. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/nonbreaking/index.js +13 -0
  250. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/nonbreaking/plugin.js +128 -0
  251. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/nonbreaking/plugin.min.js +9 -0
  252. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/pagebreak/index.js +13 -0
  253. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/pagebreak/plugin.js +122 -0
  254. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/pagebreak/plugin.min.js +9 -0
  255. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/CHANGELOG.md +20 -0
  256. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/index.js +2 -0
  257. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/js/wordimport.js +23102 -0
  258. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ar.js +19 -0
  259. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/bg_BG.js +19 -0
  260. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ca.js +19 -0
  261. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/cs.js +19 -0
  262. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/da.js +19 -0
  263. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/de.js +19 -0
  264. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/el.js +19 -0
  265. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/es.js +19 -0
  266. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/eu.js +19 -0
  267. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/fa.js +19 -0
  268. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/fi.js +19 -0
  269. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/fr_FR.js +19 -0
  270. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/he_IL.js +19 -0
  271. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/hi.js +19 -0
  272. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/hr.js +19 -0
  273. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/hu_HU.js +19 -0
  274. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/id.js +19 -0
  275. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/it.js +19 -0
  276. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ja.js +19 -0
  277. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/kk.js +19 -0
  278. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ko_KR.js +19 -0
  279. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ms.js +19 -0
  280. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/nb_NO.js +19 -0
  281. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/nl.js +19 -0
  282. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/pl.js +19 -0
  283. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/pt_BR.js +19 -0
  284. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/pt_PT.js +19 -0
  285. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ro.js +19 -0
  286. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ru.js +19 -0
  287. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/sk.js +19 -0
  288. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/sl_SI.js +19 -0
  289. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/sv_SE.js +19 -0
  290. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/th_TH.js +19 -0
  291. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/tr.js +19 -0
  292. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/uk.js +19 -0
  293. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/vi.js +19 -0
  294. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/zh_CN.js +19 -0
  295. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/zh_TW.js +19 -0
  296. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/license.txt +5 -0
  297. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/plugin.js +10 -0
  298. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/plugin.min.js +10 -0
  299. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/readme.txt +17 -0
  300. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/version.txt +1 -0
  301. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/preview/index.js +13 -0
  302. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/preview/plugin.js +598 -0
  303. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/preview/plugin.min.js +9 -0
  304. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/quickbars/index.js +13 -0
  305. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/quickbars/plugin.js +463 -0
  306. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/quickbars/plugin.min.js +9 -0
  307. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/save/index.js +13 -0
  308. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/save/plugin.js +124 -0
  309. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/save/plugin.min.js +9 -0
  310. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/searchreplace/index.js +13 -0
  311. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/searchreplace/plugin.js +1103 -0
  312. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/searchreplace/plugin.min.js +9 -0
  313. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/table/index.js +13 -0
  314. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/table/plugin.js +3466 -0
  315. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/table/plugin.min.js +9 -0
  316. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/CHANGELOG.md +56 -0
  317. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/css/tinycomments.css +9 -0
  318. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/css/tinycomments.js +10 -0
  319. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/index.js +3 -0
  320. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/js/tinycomments-sidebar.js +10 -0
  321. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/js/tinycomments-sidebar.min.js +10 -0
  322. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ar.js +58 -0
  323. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/bg_BG.js +58 -0
  324. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ca.js +58 -0
  325. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/cs.js +58 -0
  326. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/da.js +58 -0
  327. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/de.js +58 -0
  328. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/el.js +58 -0
  329. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/es.js +58 -0
  330. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/eu.js +58 -0
  331. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/fa.js +58 -0
  332. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/fi.js +58 -0
  333. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/fr_FR.js +58 -0
  334. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/he_IL.js +58 -0
  335. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/hi.js +58 -0
  336. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/hr.js +58 -0
  337. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/hu_HU.js +58 -0
  338. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/id.js +58 -0
  339. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/it.js +58 -0
  340. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ja.js +58 -0
  341. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/kk.js +58 -0
  342. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ko_KR.js +58 -0
  343. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ms.js +58 -0
  344. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/nb_NO.js +58 -0
  345. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/nl.js +58 -0
  346. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/pl.js +58 -0
  347. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/pt_BR.js +58 -0
  348. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/pt_PT.js +58 -0
  349. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ro.js +58 -0
  350. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ru.js +58 -0
  351. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/sk.js +58 -0
  352. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/sl_SI.js +58 -0
  353. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/sv_SE.js +58 -0
  354. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/th_TH.js +58 -0
  355. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/tr.js +58 -0
  356. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/uk.js +58 -0
  357. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/vi.js +58 -0
  358. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/zh_CN.js +58 -0
  359. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/zh_TW.js +58 -0
  360. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/license.txt +5 -0
  361. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/plugin.js +10 -0
  362. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/plugin.min.js +10 -0
  363. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/readme.txt +10 -0
  364. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/version.txt +1 -0
  365. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualblocks/index.js +13 -0
  366. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualblocks/plugin.js +105 -0
  367. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualblocks/plugin.min.js +9 -0
  368. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualchars/index.js +13 -0
  369. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualchars/plugin.js +567 -0
  370. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualchars/plugin.min.js +9 -0
  371. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/wordcount/index.js +13 -0
  372. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/wordcount/plugin.js +420 -0
  373. package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/wordcount/plugin.min.js +9 -0
  374. package/src/sap/ui/richtexteditor/js/tiny_mce7/readme.txt +12 -0
  375. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/dark/content.css +72 -0
  376. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/dark/content.js +7 -0
  377. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/dark/content.min.css +7 -0
  378. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/default/content.css +67 -0
  379. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/default/content.js +7 -0
  380. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/default/content.min.css +7 -0
  381. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/document/content.css +72 -0
  382. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/document/content.js +7 -0
  383. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/document/content.min.css +7 -0
  384. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5/content.css +67 -0
  385. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5/content.js +7 -0
  386. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5/content.min.css +7 -0
  387. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5-dark/content.css +72 -0
  388. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5-dark/content.js +7 -0
  389. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5-dark/content.min.css +7 -0
  390. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/writer/content.css +68 -0
  391. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/writer/content.js +7 -0
  392. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/writer/content.min.css +7 -0
  393. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.css +890 -0
  394. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.inline.css +884 -0
  395. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.inline.js +7 -0
  396. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.inline.min.css +7 -0
  397. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.js +7 -0
  398. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.min.css +7 -0
  399. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.css +4766 -0
  400. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.js +7 -0
  401. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.min.css +7 -0
  402. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.shadowdom.css +36 -0
  403. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.shadowdom.js +7 -0
  404. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.shadowdom.min.css +7 -0
  405. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.css +878 -0
  406. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.inline.css +884 -0
  407. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.inline.js +7 -0
  408. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.inline.min.css +7 -0
  409. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.js +7 -0
  410. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.min.css +7 -0
  411. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.css +4769 -0
  412. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.js +7 -0
  413. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.min.css +7 -0
  414. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.shadowdom.css +36 -0
  415. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.shadowdom.js +7 -0
  416. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
  417. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.css +890 -0
  418. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.inline.css +884 -0
  419. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.inline.js +7 -0
  420. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.inline.min.css +7 -0
  421. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.js +7 -0
  422. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.min.css +7 -0
  423. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.css +4880 -0
  424. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.js +7 -0
  425. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.min.css +7 -0
  426. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.shadowdom.css +36 -0
  427. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.shadowdom.js +7 -0
  428. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.shadowdom.min.css +7 -0
  429. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.css +878 -0
  430. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.inline.css +884 -0
  431. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.inline.js +7 -0
  432. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.inline.min.css +7 -0
  433. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.js +7 -0
  434. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.min.css +7 -0
  435. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.css +4880 -0
  436. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.js +7 -0
  437. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.min.css +7 -0
  438. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.shadowdom.css +36 -0
  439. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.shadowdom.js +7 -0
  440. package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +7 -0
  441. package/src/sap/ui/richtexteditor/js/tiny_mce7/themes/silver/index.js +13 -0
  442. package/src/sap/ui/richtexteditor/js/tiny_mce7/themes/silver/theme.js +31928 -0
  443. package/src/sap/ui/richtexteditor/js/tiny_mce7/themes/silver/theme.min.js +337 -0
  444. package/src/sap/ui/richtexteditor/js/tiny_mce7/tinymce.d.ts +3313 -0
  445. package/src/sap/ui/richtexteditor/js/tiny_mce7/tinymce.js +32267 -0
  446. package/src/sap/ui/richtexteditor/js/tiny_mce7/tinymce.min.js +336 -0
  447. package/src/sap/ui/richtexteditor/js/tiny_mce7/version.txt +1 -0
  448. package/src/sap/ui/richtexteditor/library.js +9 -3
@@ -0,0 +1,1266 @@
1
+ /*!
2
+ * TinyMCE
3
+ *
4
+ * Copyright (c) 2025 Ephox Corporation DBA Tiny Technologies, Inc.
5
+ * Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
6
+ *
7
+ * Version: 7.7.2
8
+ */
9
+
10
+ (function () {
11
+ 'use strict';
12
+
13
+ const Cell = initial => {
14
+ let value = initial;
15
+ const get = () => {
16
+ return value;
17
+ };
18
+ const set = v => {
19
+ value = v;
20
+ };
21
+ return {
22
+ get,
23
+ set
24
+ };
25
+ };
26
+
27
+ var global$3 = tinymce.util.Tools.resolve('tinymce.PluginManager');
28
+
29
+ const get$5 = fullscreenState => ({ isFullscreen: () => fullscreenState.get() !== null });
30
+
31
+ const hasProto = (v, constructor, predicate) => {
32
+ var _a;
33
+ if (predicate(v, constructor.prototype)) {
34
+ return true;
35
+ } else {
36
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
37
+ }
38
+ };
39
+ const typeOf = x => {
40
+ const t = typeof x;
41
+ if (x === null) {
42
+ return 'null';
43
+ } else if (t === 'object' && Array.isArray(x)) {
44
+ return 'array';
45
+ } else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
46
+ return 'string';
47
+ } else {
48
+ return t;
49
+ }
50
+ };
51
+ const isType$1 = type => value => typeOf(value) === type;
52
+ const isSimpleType = type => value => typeof value === type;
53
+ const eq$1 = t => a => t === a;
54
+ const isString = isType$1('string');
55
+ const isObject = isType$1('object');
56
+ const isArray = isType$1('array');
57
+ const isNull = eq$1(null);
58
+ const isBoolean = isSimpleType('boolean');
59
+ const isUndefined = eq$1(undefined);
60
+ const isNullable = a => a === null || a === undefined;
61
+ const isNonNullable = a => !isNullable(a);
62
+ const isFunction = isSimpleType('function');
63
+ const isNumber = isSimpleType('number');
64
+
65
+ const noop = () => {
66
+ };
67
+ const compose = (fa, fb) => {
68
+ return (...args) => {
69
+ return fa(fb.apply(null, args));
70
+ };
71
+ };
72
+ const compose1 = (fbc, fab) => a => fbc(fab(a));
73
+ const constant = value => {
74
+ return () => {
75
+ return value;
76
+ };
77
+ };
78
+ function curry(fn, ...initialArgs) {
79
+ return (...restArgs) => {
80
+ const all = initialArgs.concat(restArgs);
81
+ return fn.apply(null, all);
82
+ };
83
+ }
84
+ const never = constant(false);
85
+ const always = constant(true);
86
+
87
+ class Optional {
88
+ constructor(tag, value) {
89
+ this.tag = tag;
90
+ this.value = value;
91
+ }
92
+ static some(value) {
93
+ return new Optional(true, value);
94
+ }
95
+ static none() {
96
+ return Optional.singletonNone;
97
+ }
98
+ fold(onNone, onSome) {
99
+ if (this.tag) {
100
+ return onSome(this.value);
101
+ } else {
102
+ return onNone();
103
+ }
104
+ }
105
+ isSome() {
106
+ return this.tag;
107
+ }
108
+ isNone() {
109
+ return !this.tag;
110
+ }
111
+ map(mapper) {
112
+ if (this.tag) {
113
+ return Optional.some(mapper(this.value));
114
+ } else {
115
+ return Optional.none();
116
+ }
117
+ }
118
+ bind(binder) {
119
+ if (this.tag) {
120
+ return binder(this.value);
121
+ } else {
122
+ return Optional.none();
123
+ }
124
+ }
125
+ exists(predicate) {
126
+ return this.tag && predicate(this.value);
127
+ }
128
+ forall(predicate) {
129
+ return !this.tag || predicate(this.value);
130
+ }
131
+ filter(predicate) {
132
+ if (!this.tag || predicate(this.value)) {
133
+ return this;
134
+ } else {
135
+ return Optional.none();
136
+ }
137
+ }
138
+ getOr(replacement) {
139
+ return this.tag ? this.value : replacement;
140
+ }
141
+ or(replacement) {
142
+ return this.tag ? this : replacement;
143
+ }
144
+ getOrThunk(thunk) {
145
+ return this.tag ? this.value : thunk();
146
+ }
147
+ orThunk(thunk) {
148
+ return this.tag ? this : thunk();
149
+ }
150
+ getOrDie(message) {
151
+ if (!this.tag) {
152
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
153
+ } else {
154
+ return this.value;
155
+ }
156
+ }
157
+ static from(value) {
158
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
159
+ }
160
+ getOrNull() {
161
+ return this.tag ? this.value : null;
162
+ }
163
+ getOrUndefined() {
164
+ return this.value;
165
+ }
166
+ each(worker) {
167
+ if (this.tag) {
168
+ worker(this.value);
169
+ }
170
+ }
171
+ toArray() {
172
+ return this.tag ? [this.value] : [];
173
+ }
174
+ toString() {
175
+ return this.tag ? `some(${ this.value })` : 'none()';
176
+ }
177
+ }
178
+ Optional.singletonNone = new Optional(false);
179
+
180
+ const nativePush = Array.prototype.push;
181
+ const map = (xs, f) => {
182
+ const len = xs.length;
183
+ const r = new Array(len);
184
+ for (let i = 0; i < len; i++) {
185
+ const x = xs[i];
186
+ r[i] = f(x, i);
187
+ }
188
+ return r;
189
+ };
190
+ const each$1 = (xs, f) => {
191
+ for (let i = 0, len = xs.length; i < len; i++) {
192
+ const x = xs[i];
193
+ f(x, i);
194
+ }
195
+ };
196
+ const filter$1 = (xs, pred) => {
197
+ const r = [];
198
+ for (let i = 0, len = xs.length; i < len; i++) {
199
+ const x = xs[i];
200
+ if (pred(x, i)) {
201
+ r.push(x);
202
+ }
203
+ }
204
+ return r;
205
+ };
206
+ const findUntil = (xs, pred, until) => {
207
+ for (let i = 0, len = xs.length; i < len; i++) {
208
+ const x = xs[i];
209
+ if (pred(x, i)) {
210
+ return Optional.some(x);
211
+ } else if (until(x, i)) {
212
+ break;
213
+ }
214
+ }
215
+ return Optional.none();
216
+ };
217
+ const find$1 = (xs, pred) => {
218
+ return findUntil(xs, pred, never);
219
+ };
220
+ const flatten = xs => {
221
+ const r = [];
222
+ for (let i = 0, len = xs.length; i < len; ++i) {
223
+ if (!isArray(xs[i])) {
224
+ throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
225
+ }
226
+ nativePush.apply(r, xs[i]);
227
+ }
228
+ return r;
229
+ };
230
+ const bind$3 = (xs, f) => flatten(map(xs, f));
231
+ const get$4 = (xs, i) => i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
232
+ const head = xs => get$4(xs, 0);
233
+ const findMap = (arr, f) => {
234
+ for (let i = 0; i < arr.length; i++) {
235
+ const r = f(arr[i], i);
236
+ if (r.isSome()) {
237
+ return r;
238
+ }
239
+ }
240
+ return Optional.none();
241
+ };
242
+
243
+ const lift2 = (oa, ob, f) => oa.isSome() && ob.isSome() ? Optional.some(f(oa.getOrDie(), ob.getOrDie())) : Optional.none();
244
+
245
+ const singleton = doRevoke => {
246
+ const subject = Cell(Optional.none());
247
+ const revoke = () => subject.get().each(doRevoke);
248
+ const clear = () => {
249
+ revoke();
250
+ subject.set(Optional.none());
251
+ };
252
+ const isSet = () => subject.get().isSome();
253
+ const get = () => subject.get();
254
+ const set = s => {
255
+ revoke();
256
+ subject.set(Optional.some(s));
257
+ };
258
+ return {
259
+ clear,
260
+ isSet,
261
+ get,
262
+ set
263
+ };
264
+ };
265
+ const unbindable = () => singleton(s => s.unbind());
266
+ const value = () => {
267
+ const subject = singleton(noop);
268
+ const on = f => subject.get().each(f);
269
+ return {
270
+ ...subject,
271
+ on
272
+ };
273
+ };
274
+
275
+ const first = (fn, rate) => {
276
+ let timer = null;
277
+ const cancel = () => {
278
+ if (!isNull(timer)) {
279
+ clearTimeout(timer);
280
+ timer = null;
281
+ }
282
+ };
283
+ const throttle = (...args) => {
284
+ if (isNull(timer)) {
285
+ timer = setTimeout(() => {
286
+ timer = null;
287
+ fn.apply(null, args);
288
+ }, rate);
289
+ }
290
+ };
291
+ return {
292
+ cancel,
293
+ throttle
294
+ };
295
+ };
296
+
297
+ const keys = Object.keys;
298
+ const each = (obj, f) => {
299
+ const props = keys(obj);
300
+ for (let k = 0, len = props.length; k < len; k++) {
301
+ const i = props[k];
302
+ const x = obj[i];
303
+ f(x, i);
304
+ }
305
+ };
306
+
307
+ const Global = typeof window !== 'undefined' ? window : Function('return this;')();
308
+
309
+ const path = (parts, scope) => {
310
+ let o = scope !== undefined && scope !== null ? scope : Global;
311
+ for (let i = 0; i < parts.length && o !== undefined && o !== null; ++i) {
312
+ o = o[parts[i]];
313
+ }
314
+ return o;
315
+ };
316
+ const resolve = (p, scope) => {
317
+ const parts = p.split('.');
318
+ return path(parts, scope);
319
+ };
320
+
321
+ const unsafe = (name, scope) => {
322
+ return resolve(name, scope);
323
+ };
324
+ const getOrDie = (name, scope) => {
325
+ const actual = unsafe(name, scope);
326
+ if (actual === undefined || actual === null) {
327
+ throw new Error(name + ' not available on this browser');
328
+ }
329
+ return actual;
330
+ };
331
+
332
+ const getPrototypeOf = Object.getPrototypeOf;
333
+ const sandHTMLElement = scope => {
334
+ return getOrDie('HTMLElement', scope);
335
+ };
336
+ const isPrototypeOf = x => {
337
+ const scope = resolve('ownerDocument.defaultView', x);
338
+ return isObject(x) && (sandHTMLElement(scope).prototype.isPrototypeOf(x) || /^HTML\w*Element$/.test(getPrototypeOf(x).constructor.name));
339
+ };
340
+
341
+ const DOCUMENT = 9;
342
+ const DOCUMENT_FRAGMENT = 11;
343
+ const ELEMENT = 1;
344
+ const TEXT = 3;
345
+
346
+ const type = element => element.dom.nodeType;
347
+ const isType = t => element => type(element) === t;
348
+ const isHTMLElement = element => isElement(element) && isPrototypeOf(element.dom);
349
+ const isElement = isType(ELEMENT);
350
+ const isText = isType(TEXT);
351
+ const isDocumentFragment = isType(DOCUMENT_FRAGMENT);
352
+
353
+ const rawSet = (dom, key, value) => {
354
+ if (isString(value) || isBoolean(value) || isNumber(value)) {
355
+ dom.setAttribute(key, value + '');
356
+ } else {
357
+ console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
358
+ throw new Error('Attribute value was not simple');
359
+ }
360
+ };
361
+ const set$1 = (element, key, value) => {
362
+ rawSet(element.dom, key, value);
363
+ };
364
+ const get$3 = (element, key) => {
365
+ const v = element.dom.getAttribute(key);
366
+ return v === null ? undefined : v;
367
+ };
368
+ const remove = (element, key) => {
369
+ element.dom.removeAttribute(key);
370
+ };
371
+
372
+ const supports = element => element.dom.classList !== undefined;
373
+
374
+ const has = (element, clazz) => supports(element) && element.dom.classList.contains(clazz);
375
+
376
+ const contains = (str, substr, start = 0, end) => {
377
+ const idx = str.indexOf(substr, start);
378
+ if (idx !== -1) {
379
+ return isUndefined(end) ? true : idx + substr.length <= end;
380
+ } else {
381
+ return false;
382
+ }
383
+ };
384
+
385
+ const isSupported = dom => dom.style !== undefined && isFunction(dom.style.getPropertyValue);
386
+
387
+ const fromHtml = (html, scope) => {
388
+ const doc = scope || document;
389
+ const div = doc.createElement('div');
390
+ div.innerHTML = html;
391
+ if (!div.hasChildNodes() || div.childNodes.length > 1) {
392
+ const message = 'HTML does not have a single root node';
393
+ console.error(message, html);
394
+ throw new Error(message);
395
+ }
396
+ return fromDom(div.childNodes[0]);
397
+ };
398
+ const fromTag = (tag, scope) => {
399
+ const doc = scope || document;
400
+ const node = doc.createElement(tag);
401
+ return fromDom(node);
402
+ };
403
+ const fromText = (text, scope) => {
404
+ const doc = scope || document;
405
+ const node = doc.createTextNode(text);
406
+ return fromDom(node);
407
+ };
408
+ const fromDom = node => {
409
+ if (node === null || node === undefined) {
410
+ throw new Error('Node cannot be null or undefined');
411
+ }
412
+ return { dom: node };
413
+ };
414
+ const fromPoint = (docElm, x, y) => Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
415
+ const SugarElement = {
416
+ fromHtml,
417
+ fromTag,
418
+ fromText,
419
+ fromDom,
420
+ fromPoint
421
+ };
422
+
423
+ const is = (element, selector) => {
424
+ const dom = element.dom;
425
+ if (dom.nodeType !== ELEMENT) {
426
+ return false;
427
+ } else {
428
+ const elem = dom;
429
+ if (elem.matches !== undefined) {
430
+ return elem.matches(selector);
431
+ } else if (elem.msMatchesSelector !== undefined) {
432
+ return elem.msMatchesSelector(selector);
433
+ } else if (elem.webkitMatchesSelector !== undefined) {
434
+ return elem.webkitMatchesSelector(selector);
435
+ } else if (elem.mozMatchesSelector !== undefined) {
436
+ return elem.mozMatchesSelector(selector);
437
+ } else {
438
+ throw new Error('Browser lacks native selectors');
439
+ }
440
+ }
441
+ };
442
+ const bypassSelector = dom => dom.nodeType !== ELEMENT && dom.nodeType !== DOCUMENT && dom.nodeType !== DOCUMENT_FRAGMENT || dom.childElementCount === 0;
443
+ const all$1 = (selector, scope) => {
444
+ const base = scope === undefined ? document : scope.dom;
445
+ return bypassSelector(base) ? [] : map(base.querySelectorAll(selector), SugarElement.fromDom);
446
+ };
447
+
448
+ const eq = (e1, e2) => e1.dom === e2.dom;
449
+
450
+ const owner = element => SugarElement.fromDom(element.dom.ownerDocument);
451
+ const parent = element => Optional.from(element.dom.parentNode).map(SugarElement.fromDom);
452
+ const parents = (element, isRoot) => {
453
+ const stop = isFunction(isRoot) ? isRoot : never;
454
+ let dom = element.dom;
455
+ const ret = [];
456
+ while (dom.parentNode !== null && dom.parentNode !== undefined) {
457
+ const rawParent = dom.parentNode;
458
+ const p = SugarElement.fromDom(rawParent);
459
+ ret.push(p);
460
+ if (stop(p) === true) {
461
+ break;
462
+ } else {
463
+ dom = rawParent;
464
+ }
465
+ }
466
+ return ret;
467
+ };
468
+ const siblings$2 = element => {
469
+ const filterSelf = elements => filter$1(elements, x => !eq(element, x));
470
+ return parent(element).map(children).map(filterSelf).getOr([]);
471
+ };
472
+ const nextSibling = element => Optional.from(element.dom.nextSibling).map(SugarElement.fromDom);
473
+ const children = element => map(element.dom.childNodes, SugarElement.fromDom);
474
+
475
+ const isShadowRoot = dos => isDocumentFragment(dos) && isNonNullable(dos.dom.host);
476
+ const getRootNode = e => SugarElement.fromDom(e.dom.getRootNode());
477
+ const getShadowRoot = e => {
478
+ const r = getRootNode(e);
479
+ return isShadowRoot(r) ? Optional.some(r) : Optional.none();
480
+ };
481
+ const getShadowHost = e => SugarElement.fromDom(e.dom.host);
482
+ const getOriginalEventTarget = event => {
483
+ if (isNonNullable(event.target)) {
484
+ const el = SugarElement.fromDom(event.target);
485
+ if (isElement(el) && isOpenShadowHost(el)) {
486
+ if (event.composed && event.composedPath) {
487
+ const composedPath = event.composedPath();
488
+ if (composedPath) {
489
+ return head(composedPath);
490
+ }
491
+ }
492
+ }
493
+ }
494
+ return Optional.from(event.target);
495
+ };
496
+ const isOpenShadowHost = element => isNonNullable(element.dom.shadowRoot);
497
+
498
+ const inBody = element => {
499
+ const dom = isText(element) ? element.dom.parentNode : element.dom;
500
+ if (dom === undefined || dom === null || dom.ownerDocument === null) {
501
+ return false;
502
+ }
503
+ const doc = dom.ownerDocument;
504
+ return getShadowRoot(SugarElement.fromDom(dom)).fold(() => doc.body.contains(dom), compose1(inBody, getShadowHost));
505
+ };
506
+ const getBody = doc => {
507
+ const b = doc.dom.body;
508
+ if (b === null || b === undefined) {
509
+ throw new Error('Body is not available yet');
510
+ }
511
+ return SugarElement.fromDom(b);
512
+ };
513
+
514
+ const internalSet = (dom, property, value) => {
515
+ if (!isString(value)) {
516
+ console.error('Invalid call to CSS.set. Property ', property, ':: Value ', value, ':: Element ', dom);
517
+ throw new Error('CSS value must be a string: ' + value);
518
+ }
519
+ if (isSupported(dom)) {
520
+ dom.style.setProperty(property, value);
521
+ }
522
+ };
523
+ const set = (element, property, value) => {
524
+ const dom = element.dom;
525
+ internalSet(dom, property, value);
526
+ };
527
+ const setAll = (element, css) => {
528
+ const dom = element.dom;
529
+ each(css, (v, k) => {
530
+ internalSet(dom, k, v);
531
+ });
532
+ };
533
+ const get$2 = (element, property) => {
534
+ const dom = element.dom;
535
+ const styles = window.getComputedStyle(dom);
536
+ const r = styles.getPropertyValue(property);
537
+ return r === '' && !inBody(element) ? getUnsafeProperty(dom, property) : r;
538
+ };
539
+ const getUnsafeProperty = (dom, property) => isSupported(dom) ? dom.style.getPropertyValue(property) : '';
540
+
541
+ const mkEvent = (target, x, y, stop, prevent, kill, raw) => ({
542
+ target,
543
+ x,
544
+ y,
545
+ stop,
546
+ prevent,
547
+ kill,
548
+ raw
549
+ });
550
+ const fromRawEvent = rawEvent => {
551
+ const target = SugarElement.fromDom(getOriginalEventTarget(rawEvent).getOr(rawEvent.target));
552
+ const stop = () => rawEvent.stopPropagation();
553
+ const prevent = () => rawEvent.preventDefault();
554
+ const kill = compose(prevent, stop);
555
+ return mkEvent(target, rawEvent.clientX, rawEvent.clientY, stop, prevent, kill, rawEvent);
556
+ };
557
+ const handle = (filter, handler) => rawEvent => {
558
+ if (filter(rawEvent)) {
559
+ handler(fromRawEvent(rawEvent));
560
+ }
561
+ };
562
+ const binder = (element, event, filter, handler, useCapture) => {
563
+ const wrapped = handle(filter, handler);
564
+ element.dom.addEventListener(event, wrapped, useCapture);
565
+ return { unbind: curry(unbind, element, event, wrapped, useCapture) };
566
+ };
567
+ const bind$2 = (element, event, filter, handler) => binder(element, event, filter, handler, false);
568
+ const unbind = (element, event, handler, useCapture) => {
569
+ element.dom.removeEventListener(event, handler, useCapture);
570
+ };
571
+
572
+ const filter = always;
573
+ const bind$1 = (element, event, handler) => bind$2(element, event, filter, handler);
574
+
575
+ const cached = f => {
576
+ let called = false;
577
+ let r;
578
+ return (...args) => {
579
+ if (!called) {
580
+ called = true;
581
+ r = f.apply(null, args);
582
+ }
583
+ return r;
584
+ };
585
+ };
586
+
587
+ const DeviceType = (os, browser, userAgent, mediaMatch) => {
588
+ const isiPad = os.isiOS() && /ipad/i.test(userAgent) === true;
589
+ const isiPhone = os.isiOS() && !isiPad;
590
+ const isMobile = os.isiOS() || os.isAndroid();
591
+ const isTouch = isMobile || mediaMatch('(pointer:coarse)');
592
+ const isTablet = isiPad || !isiPhone && isMobile && mediaMatch('(min-device-width:768px)');
593
+ const isPhone = isiPhone || isMobile && !isTablet;
594
+ const iOSwebview = browser.isSafari() && os.isiOS() && /safari/i.test(userAgent) === false;
595
+ const isDesktop = !isPhone && !isTablet && !iOSwebview;
596
+ return {
597
+ isiPad: constant(isiPad),
598
+ isiPhone: constant(isiPhone),
599
+ isTablet: constant(isTablet),
600
+ isPhone: constant(isPhone),
601
+ isTouch: constant(isTouch),
602
+ isAndroid: os.isAndroid,
603
+ isiOS: os.isiOS,
604
+ isWebView: constant(iOSwebview),
605
+ isDesktop: constant(isDesktop)
606
+ };
607
+ };
608
+
609
+ const firstMatch = (regexes, s) => {
610
+ for (let i = 0; i < regexes.length; i++) {
611
+ const x = regexes[i];
612
+ if (x.test(s)) {
613
+ return x;
614
+ }
615
+ }
616
+ return undefined;
617
+ };
618
+ const find = (regexes, agent) => {
619
+ const r = firstMatch(regexes, agent);
620
+ if (!r) {
621
+ return {
622
+ major: 0,
623
+ minor: 0
624
+ };
625
+ }
626
+ const group = i => {
627
+ return Number(agent.replace(r, '$' + i));
628
+ };
629
+ return nu$2(group(1), group(2));
630
+ };
631
+ const detect$3 = (versionRegexes, agent) => {
632
+ const cleanedAgent = String(agent).toLowerCase();
633
+ if (versionRegexes.length === 0) {
634
+ return unknown$2();
635
+ }
636
+ return find(versionRegexes, cleanedAgent);
637
+ };
638
+ const unknown$2 = () => {
639
+ return nu$2(0, 0);
640
+ };
641
+ const nu$2 = (major, minor) => {
642
+ return {
643
+ major,
644
+ minor
645
+ };
646
+ };
647
+ const Version = {
648
+ nu: nu$2,
649
+ detect: detect$3,
650
+ unknown: unknown$2
651
+ };
652
+
653
+ const detectBrowser$1 = (browsers, userAgentData) => {
654
+ return findMap(userAgentData.brands, uaBrand => {
655
+ const lcBrand = uaBrand.brand.toLowerCase();
656
+ return find$1(browsers, browser => {
657
+ var _a;
658
+ return lcBrand === ((_a = browser.brand) === null || _a === void 0 ? void 0 : _a.toLowerCase());
659
+ }).map(info => ({
660
+ current: info.name,
661
+ version: Version.nu(parseInt(uaBrand.version, 10), 0)
662
+ }));
663
+ });
664
+ };
665
+
666
+ const detect$2 = (candidates, userAgent) => {
667
+ const agent = String(userAgent).toLowerCase();
668
+ return find$1(candidates, candidate => {
669
+ return candidate.search(agent);
670
+ });
671
+ };
672
+ const detectBrowser = (browsers, userAgent) => {
673
+ return detect$2(browsers, userAgent).map(browser => {
674
+ const version = Version.detect(browser.versionRegexes, userAgent);
675
+ return {
676
+ current: browser.name,
677
+ version
678
+ };
679
+ });
680
+ };
681
+ const detectOs = (oses, userAgent) => {
682
+ return detect$2(oses, userAgent).map(os => {
683
+ const version = Version.detect(os.versionRegexes, userAgent);
684
+ return {
685
+ current: os.name,
686
+ version
687
+ };
688
+ });
689
+ };
690
+
691
+ const normalVersionRegex = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/;
692
+ const checkContains = target => {
693
+ return uastring => {
694
+ return contains(uastring, target);
695
+ };
696
+ };
697
+ const browsers = [
698
+ {
699
+ name: 'Edge',
700
+ versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
701
+ search: uastring => {
702
+ return contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
703
+ }
704
+ },
705
+ {
706
+ name: 'Chromium',
707
+ brand: 'Chromium',
708
+ versionRegexes: [
709
+ /.*?chrome\/([0-9]+)\.([0-9]+).*/,
710
+ normalVersionRegex
711
+ ],
712
+ search: uastring => {
713
+ return contains(uastring, 'chrome') && !contains(uastring, 'chromeframe');
714
+ }
715
+ },
716
+ {
717
+ name: 'IE',
718
+ versionRegexes: [
719
+ /.*?msie\ ?([0-9]+)\.([0-9]+).*/,
720
+ /.*?rv:([0-9]+)\.([0-9]+).*/
721
+ ],
722
+ search: uastring => {
723
+ return contains(uastring, 'msie') || contains(uastring, 'trident');
724
+ }
725
+ },
726
+ {
727
+ name: 'Opera',
728
+ versionRegexes: [
729
+ normalVersionRegex,
730
+ /.*?opera\/([0-9]+)\.([0-9]+).*/
731
+ ],
732
+ search: checkContains('opera')
733
+ },
734
+ {
735
+ name: 'Firefox',
736
+ versionRegexes: [/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],
737
+ search: checkContains('firefox')
738
+ },
739
+ {
740
+ name: 'Safari',
741
+ versionRegexes: [
742
+ normalVersionRegex,
743
+ /.*?cpu os ([0-9]+)_([0-9]+).*/
744
+ ],
745
+ search: uastring => {
746
+ return (contains(uastring, 'safari') || contains(uastring, 'mobile/')) && contains(uastring, 'applewebkit');
747
+ }
748
+ }
749
+ ];
750
+ const oses = [
751
+ {
752
+ name: 'Windows',
753
+ search: checkContains('win'),
754
+ versionRegexes: [/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]
755
+ },
756
+ {
757
+ name: 'iOS',
758
+ search: uastring => {
759
+ return contains(uastring, 'iphone') || contains(uastring, 'ipad');
760
+ },
761
+ versionRegexes: [
762
+ /.*?version\/\ ?([0-9]+)\.([0-9]+).*/,
763
+ /.*cpu os ([0-9]+)_([0-9]+).*/,
764
+ /.*cpu iphone os ([0-9]+)_([0-9]+).*/
765
+ ]
766
+ },
767
+ {
768
+ name: 'Android',
769
+ search: checkContains('android'),
770
+ versionRegexes: [/.*?android\ ?([0-9]+)\.([0-9]+).*/]
771
+ },
772
+ {
773
+ name: 'macOS',
774
+ search: checkContains('mac os x'),
775
+ versionRegexes: [/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]
776
+ },
777
+ {
778
+ name: 'Linux',
779
+ search: checkContains('linux'),
780
+ versionRegexes: []
781
+ },
782
+ {
783
+ name: 'Solaris',
784
+ search: checkContains('sunos'),
785
+ versionRegexes: []
786
+ },
787
+ {
788
+ name: 'FreeBSD',
789
+ search: checkContains('freebsd'),
790
+ versionRegexes: []
791
+ },
792
+ {
793
+ name: 'ChromeOS',
794
+ search: checkContains('cros'),
795
+ versionRegexes: [/.*?chrome\/([0-9]+)\.([0-9]+).*/]
796
+ }
797
+ ];
798
+ const PlatformInfo = {
799
+ browsers: constant(browsers),
800
+ oses: constant(oses)
801
+ };
802
+
803
+ const edge = 'Edge';
804
+ const chromium = 'Chromium';
805
+ const ie = 'IE';
806
+ const opera = 'Opera';
807
+ const firefox = 'Firefox';
808
+ const safari = 'Safari';
809
+ const unknown$1 = () => {
810
+ return nu$1({
811
+ current: undefined,
812
+ version: Version.unknown()
813
+ });
814
+ };
815
+ const nu$1 = info => {
816
+ const current = info.current;
817
+ const version = info.version;
818
+ const isBrowser = name => () => current === name;
819
+ return {
820
+ current,
821
+ version,
822
+ isEdge: isBrowser(edge),
823
+ isChromium: isBrowser(chromium),
824
+ isIE: isBrowser(ie),
825
+ isOpera: isBrowser(opera),
826
+ isFirefox: isBrowser(firefox),
827
+ isSafari: isBrowser(safari)
828
+ };
829
+ };
830
+ const Browser = {
831
+ unknown: unknown$1,
832
+ nu: nu$1,
833
+ edge: constant(edge),
834
+ chromium: constant(chromium),
835
+ ie: constant(ie),
836
+ opera: constant(opera),
837
+ firefox: constant(firefox),
838
+ safari: constant(safari)
839
+ };
840
+
841
+ const windows = 'Windows';
842
+ const ios = 'iOS';
843
+ const android = 'Android';
844
+ const linux = 'Linux';
845
+ const macos = 'macOS';
846
+ const solaris = 'Solaris';
847
+ const freebsd = 'FreeBSD';
848
+ const chromeos = 'ChromeOS';
849
+ const unknown = () => {
850
+ return nu({
851
+ current: undefined,
852
+ version: Version.unknown()
853
+ });
854
+ };
855
+ const nu = info => {
856
+ const current = info.current;
857
+ const version = info.version;
858
+ const isOS = name => () => current === name;
859
+ return {
860
+ current,
861
+ version,
862
+ isWindows: isOS(windows),
863
+ isiOS: isOS(ios),
864
+ isAndroid: isOS(android),
865
+ isMacOS: isOS(macos),
866
+ isLinux: isOS(linux),
867
+ isSolaris: isOS(solaris),
868
+ isFreeBSD: isOS(freebsd),
869
+ isChromeOS: isOS(chromeos)
870
+ };
871
+ };
872
+ const OperatingSystem = {
873
+ unknown,
874
+ nu,
875
+ windows: constant(windows),
876
+ ios: constant(ios),
877
+ android: constant(android),
878
+ linux: constant(linux),
879
+ macos: constant(macos),
880
+ solaris: constant(solaris),
881
+ freebsd: constant(freebsd),
882
+ chromeos: constant(chromeos)
883
+ };
884
+
885
+ const detect$1 = (userAgent, userAgentDataOpt, mediaMatch) => {
886
+ const browsers = PlatformInfo.browsers();
887
+ const oses = PlatformInfo.oses();
888
+ const browser = userAgentDataOpt.bind(userAgentData => detectBrowser$1(browsers, userAgentData)).orThunk(() => detectBrowser(browsers, userAgent)).fold(Browser.unknown, Browser.nu);
889
+ const os = detectOs(oses, userAgent).fold(OperatingSystem.unknown, OperatingSystem.nu);
890
+ const deviceType = DeviceType(os, browser, userAgent, mediaMatch);
891
+ return {
892
+ browser,
893
+ os,
894
+ deviceType
895
+ };
896
+ };
897
+ const PlatformDetection = { detect: detect$1 };
898
+
899
+ const mediaMatch = query => window.matchMedia(query).matches;
900
+ let platform = cached(() => PlatformDetection.detect(window.navigator.userAgent, Optional.from(window.navigator.userAgentData), mediaMatch));
901
+ const detect = () => platform();
902
+
903
+ const r = (left, top) => {
904
+ const translate = (x, y) => r(left + x, top + y);
905
+ return {
906
+ left,
907
+ top,
908
+ translate
909
+ };
910
+ };
911
+ const SugarPosition = r;
912
+
913
+ const get$1 = _DOC => {
914
+ const doc = _DOC !== undefined ? _DOC.dom : document;
915
+ const x = doc.body.scrollLeft || doc.documentElement.scrollLeft;
916
+ const y = doc.body.scrollTop || doc.documentElement.scrollTop;
917
+ return SugarPosition(x, y);
918
+ };
919
+
920
+ const get = _win => {
921
+ const win = _win === undefined ? window : _win;
922
+ if (detect().browser.isFirefox()) {
923
+ return Optional.none();
924
+ } else {
925
+ return Optional.from(win.visualViewport);
926
+ }
927
+ };
928
+ const bounds = (x, y, width, height) => ({
929
+ x,
930
+ y,
931
+ width,
932
+ height,
933
+ right: x + width,
934
+ bottom: y + height
935
+ });
936
+ const getBounds = _win => {
937
+ const win = _win === undefined ? window : _win;
938
+ const doc = win.document;
939
+ const scroll = get$1(SugarElement.fromDom(doc));
940
+ return get(win).fold(() => {
941
+ const html = win.document.documentElement;
942
+ const width = html.clientWidth;
943
+ const height = html.clientHeight;
944
+ return bounds(scroll.left, scroll.top, width, height);
945
+ }, visualViewport => bounds(Math.max(visualViewport.pageLeft, scroll.left), Math.max(visualViewport.pageTop, scroll.top), visualViewport.width, visualViewport.height));
946
+ };
947
+ const bind = (name, callback, _win) => get(_win).map(visualViewport => {
948
+ const handler = e => callback(fromRawEvent(e));
949
+ visualViewport.addEventListener(name, handler);
950
+ return { unbind: () => visualViewport.removeEventListener(name, handler) };
951
+ }).getOrThunk(() => ({ unbind: noop }));
952
+
953
+ var global$2 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
954
+
955
+ var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
956
+
957
+ const fireFullscreenStateChanged = (editor, state) => {
958
+ editor.dispatch('FullscreenStateChanged', { state });
959
+ editor.dispatch('ResizeEditor');
960
+ };
961
+
962
+ const option = name => editor => editor.options.get(name);
963
+ const register$2 = editor => {
964
+ const registerOption = editor.options.register;
965
+ registerOption('fullscreen_native', {
966
+ processor: 'boolean',
967
+ default: false
968
+ });
969
+ };
970
+ const getFullscreenNative = option('fullscreen_native');
971
+
972
+ const getFullscreenRoot = editor => {
973
+ const elem = SugarElement.fromDom(editor.getElement());
974
+ return getShadowRoot(elem).map(getShadowHost).getOrThunk(() => getBody(owner(elem)));
975
+ };
976
+ const getFullscreenElement = root => {
977
+ if (root.fullscreenElement !== undefined) {
978
+ return root.fullscreenElement;
979
+ } else if (root.msFullscreenElement !== undefined) {
980
+ return root.msFullscreenElement;
981
+ } else if (root.webkitFullscreenElement !== undefined) {
982
+ return root.webkitFullscreenElement;
983
+ } else {
984
+ return null;
985
+ }
986
+ };
987
+ const getFullscreenchangeEventName = () => {
988
+ if (document.fullscreenElement !== undefined) {
989
+ return 'fullscreenchange';
990
+ } else if (document.msFullscreenElement !== undefined) {
991
+ return 'MSFullscreenChange';
992
+ } else if (document.webkitFullscreenElement !== undefined) {
993
+ return 'webkitfullscreenchange';
994
+ } else {
995
+ return 'fullscreenchange';
996
+ }
997
+ };
998
+ const requestFullscreen = sugarElem => {
999
+ const elem = sugarElem.dom;
1000
+ if (elem.requestFullscreen) {
1001
+ elem.requestFullscreen();
1002
+ } else if (elem.msRequestFullscreen) {
1003
+ elem.msRequestFullscreen();
1004
+ } else if (elem.webkitRequestFullScreen) {
1005
+ elem.webkitRequestFullScreen();
1006
+ }
1007
+ };
1008
+ const exitFullscreen = sugarDoc => {
1009
+ const doc = sugarDoc.dom;
1010
+ if (doc.exitFullscreen) {
1011
+ doc.exitFullscreen();
1012
+ } else if (doc.msExitFullscreen) {
1013
+ doc.msExitFullscreen();
1014
+ } else if (doc.webkitCancelFullScreen) {
1015
+ doc.webkitCancelFullScreen();
1016
+ }
1017
+ };
1018
+ const isFullscreenElement = elem => elem.dom === getFullscreenElement(owner(elem).dom);
1019
+
1020
+ const ancestors$1 = (scope, predicate, isRoot) => filter$1(parents(scope, isRoot), predicate);
1021
+ const siblings$1 = (scope, predicate) => filter$1(siblings$2(scope), predicate);
1022
+
1023
+ const all = selector => all$1(selector);
1024
+ const ancestors = (scope, selector, isRoot) => ancestors$1(scope, e => is(e, selector), isRoot);
1025
+ const siblings = (scope, selector) => siblings$1(scope, e => is(e, selector));
1026
+
1027
+ const attr = 'data-ephox-mobile-fullscreen-style';
1028
+ const siblingStyles = 'display:none!important;';
1029
+ const ancestorPosition = 'position:absolute!important;';
1030
+ const ancestorStyles = 'top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;';
1031
+ const bgFallback = 'background-color:rgb(255,255,255)!important;';
1032
+ const isAndroid = global$1.os.isAndroid();
1033
+ const matchColor = editorBody => {
1034
+ const color = get$2(editorBody, 'background-color');
1035
+ return color !== undefined && color !== '' ? 'background-color:' + color + '!important' : bgFallback;
1036
+ };
1037
+ const clobberStyles = (dom, container, editorBody) => {
1038
+ const gatherSiblings = element => {
1039
+ return siblings(element, '*:not(.tox-silver-sink)');
1040
+ };
1041
+ const clobber = clobberStyle => element => {
1042
+ const styles = get$3(element, 'style');
1043
+ const backup = styles === undefined ? 'no-styles' : styles.trim();
1044
+ if (backup === clobberStyle) {
1045
+ return;
1046
+ } else {
1047
+ set$1(element, attr, backup);
1048
+ setAll(element, dom.parseStyle(clobberStyle));
1049
+ }
1050
+ };
1051
+ const ancestors$1 = ancestors(container, '*');
1052
+ const siblings$1 = bind$3(ancestors$1, gatherSiblings);
1053
+ const bgColor = matchColor(editorBody);
1054
+ each$1(siblings$1, clobber(siblingStyles));
1055
+ each$1(ancestors$1, clobber(ancestorPosition + ancestorStyles + bgColor));
1056
+ const containerStyles = isAndroid === true ? '' : ancestorPosition;
1057
+ clobber(containerStyles + ancestorStyles + bgColor)(container);
1058
+ };
1059
+ const restoreStyles = dom => {
1060
+ const clobberedEls = all('[' + attr + ']');
1061
+ each$1(clobberedEls, element => {
1062
+ const restore = get$3(element, attr);
1063
+ if (restore && restore !== 'no-styles') {
1064
+ setAll(element, dom.parseStyle(restore));
1065
+ } else {
1066
+ remove(element, 'style');
1067
+ }
1068
+ remove(element, attr);
1069
+ });
1070
+ };
1071
+
1072
+ const DOM = global$2.DOM;
1073
+ const getScrollPos = () => getBounds(window);
1074
+ const setScrollPos = pos => window.scrollTo(pos.x, pos.y);
1075
+ const viewportUpdate = get().fold(() => ({
1076
+ bind: noop,
1077
+ unbind: noop
1078
+ }), visualViewport => {
1079
+ const editorContainer = value();
1080
+ const resizeBinder = unbindable();
1081
+ const scrollBinder = unbindable();
1082
+ const refreshScroll = () => {
1083
+ document.body.scrollTop = 0;
1084
+ document.documentElement.scrollTop = 0;
1085
+ };
1086
+ const refreshVisualViewport = () => {
1087
+ window.requestAnimationFrame(() => {
1088
+ editorContainer.on(container => setAll(container, {
1089
+ top: visualViewport.offsetTop + 'px',
1090
+ left: visualViewport.offsetLeft + 'px',
1091
+ height: visualViewport.height + 'px',
1092
+ width: visualViewport.width + 'px'
1093
+ }));
1094
+ });
1095
+ };
1096
+ const update = first(() => {
1097
+ refreshScroll();
1098
+ refreshVisualViewport();
1099
+ }, 50);
1100
+ const bind$1 = element => {
1101
+ editorContainer.set(element);
1102
+ update.throttle();
1103
+ resizeBinder.set(bind('resize', update.throttle));
1104
+ scrollBinder.set(bind('scroll', update.throttle));
1105
+ };
1106
+ const unbind = () => {
1107
+ editorContainer.on(() => {
1108
+ resizeBinder.clear();
1109
+ scrollBinder.clear();
1110
+ });
1111
+ editorContainer.clear();
1112
+ };
1113
+ return {
1114
+ bind: bind$1,
1115
+ unbind
1116
+ };
1117
+ });
1118
+ const toggleFullscreen = (editor, fullscreenState) => {
1119
+ const body = document.body;
1120
+ const documentElement = document.documentElement;
1121
+ const editorContainer = editor.getContainer();
1122
+ const editorContainerS = SugarElement.fromDom(editorContainer);
1123
+ const sinkContainerS = nextSibling(editorContainerS).filter(elm => isHTMLElement(elm) && has(elm, 'tox-silver-sink'));
1124
+ const fullscreenRoot = getFullscreenRoot(editor);
1125
+ const fullscreenInfo = fullscreenState.get();
1126
+ const editorBody = SugarElement.fromDom(editor.getBody());
1127
+ const isTouch = global$1.deviceType.isTouch();
1128
+ const editorContainerStyle = editorContainer.style;
1129
+ const iframe = editor.iframeElement;
1130
+ const iframeStyle = iframe === null || iframe === void 0 ? void 0 : iframe.style;
1131
+ const handleClasses = handler => {
1132
+ handler(body, 'tox-fullscreen');
1133
+ handler(documentElement, 'tox-fullscreen');
1134
+ handler(editorContainer, 'tox-fullscreen');
1135
+ getShadowRoot(editorContainerS).map(root => getShadowHost(root).dom).each(host => {
1136
+ handler(host, 'tox-fullscreen');
1137
+ handler(host, 'tox-shadowhost');
1138
+ });
1139
+ };
1140
+ const cleanup = () => {
1141
+ if (isTouch) {
1142
+ restoreStyles(editor.dom);
1143
+ }
1144
+ handleClasses(DOM.removeClass);
1145
+ viewportUpdate.unbind();
1146
+ Optional.from(fullscreenState.get()).each(info => info.fullscreenChangeHandler.unbind());
1147
+ };
1148
+ if (!fullscreenInfo) {
1149
+ const fullscreenChangeHandler = bind$1(owner(fullscreenRoot), getFullscreenchangeEventName(), _evt => {
1150
+ if (getFullscreenNative(editor)) {
1151
+ if (!isFullscreenElement(fullscreenRoot) && fullscreenState.get() !== null) {
1152
+ toggleFullscreen(editor, fullscreenState);
1153
+ }
1154
+ }
1155
+ });
1156
+ const newFullScreenInfo = {
1157
+ scrollPos: getScrollPos(),
1158
+ containerWidth: editorContainerStyle.width,
1159
+ containerHeight: editorContainerStyle.height,
1160
+ containerTop: editorContainerStyle.top,
1161
+ containerLeft: editorContainerStyle.left,
1162
+ iframeWidth: iframeStyle.width,
1163
+ iframeHeight: iframeStyle.height,
1164
+ fullscreenChangeHandler,
1165
+ sinkCssPosition: sinkContainerS.map(elm => get$2(elm, 'position'))
1166
+ };
1167
+ if (isTouch) {
1168
+ clobberStyles(editor.dom, editorContainerS, editorBody);
1169
+ }
1170
+ iframeStyle.width = iframeStyle.height = '100%';
1171
+ editorContainerStyle.width = editorContainerStyle.height = '';
1172
+ handleClasses(DOM.addClass);
1173
+ sinkContainerS.each(elm => {
1174
+ set(elm, 'position', 'fixed');
1175
+ });
1176
+ viewportUpdate.bind(editorContainerS);
1177
+ editor.on('remove', cleanup);
1178
+ fullscreenState.set(newFullScreenInfo);
1179
+ if (getFullscreenNative(editor)) {
1180
+ requestFullscreen(fullscreenRoot);
1181
+ }
1182
+ fireFullscreenStateChanged(editor, true);
1183
+ } else {
1184
+ fullscreenInfo.fullscreenChangeHandler.unbind();
1185
+ if (getFullscreenNative(editor) && isFullscreenElement(fullscreenRoot)) {
1186
+ exitFullscreen(owner(fullscreenRoot));
1187
+ }
1188
+ iframeStyle.width = fullscreenInfo.iframeWidth;
1189
+ iframeStyle.height = fullscreenInfo.iframeHeight;
1190
+ editorContainerStyle.width = fullscreenInfo.containerWidth;
1191
+ editorContainerStyle.height = fullscreenInfo.containerHeight;
1192
+ editorContainerStyle.top = fullscreenInfo.containerTop;
1193
+ editorContainerStyle.left = fullscreenInfo.containerLeft;
1194
+ lift2(sinkContainerS, fullscreenInfo.sinkCssPosition, (elm, val) => {
1195
+ set(elm, 'position', val);
1196
+ });
1197
+ cleanup();
1198
+ setScrollPos(fullscreenInfo.scrollPos);
1199
+ fullscreenState.set(null);
1200
+ fireFullscreenStateChanged(editor, false);
1201
+ editor.off('remove', cleanup);
1202
+ }
1203
+ };
1204
+
1205
+ const register$1 = (editor, fullscreenState) => {
1206
+ editor.addCommand('mceFullScreen', () => {
1207
+ toggleFullscreen(editor, fullscreenState);
1208
+ });
1209
+ };
1210
+
1211
+ var global = tinymce.util.Tools.resolve('tinymce.util.VK');
1212
+
1213
+ const setup = (editor, fullscreenState) => {
1214
+ editor.on('init', () => {
1215
+ editor.on('keydown', e => {
1216
+ if (e.keyCode === global.TAB && !(e.metaKey || e.ctrlKey) && fullscreenState.get()) {
1217
+ e.preventDefault();
1218
+ }
1219
+ });
1220
+ });
1221
+ };
1222
+
1223
+ const makeSetupHandler = (editor, fullscreenState) => api => {
1224
+ api.setActive(fullscreenState.get() !== null);
1225
+ const editorEventCallback = e => api.setActive(e.state);
1226
+ editor.on('FullscreenStateChanged', editorEventCallback);
1227
+ return () => editor.off('FullscreenStateChanged', editorEventCallback);
1228
+ };
1229
+ const register = (editor, fullscreenState) => {
1230
+ const onAction = () => editor.execCommand('mceFullScreen');
1231
+ editor.ui.registry.addToggleMenuItem('fullscreen', {
1232
+ text: 'Fullscreen',
1233
+ icon: 'fullscreen',
1234
+ shortcut: 'Meta+Shift+F',
1235
+ onAction,
1236
+ onSetup: makeSetupHandler(editor, fullscreenState),
1237
+ context: 'any'
1238
+ });
1239
+ editor.ui.registry.addToggleButton('fullscreen', {
1240
+ tooltip: 'Fullscreen',
1241
+ icon: 'fullscreen',
1242
+ onAction,
1243
+ onSetup: makeSetupHandler(editor, fullscreenState),
1244
+ shortcut: 'Meta+Shift+F',
1245
+ context: 'any'
1246
+ });
1247
+ };
1248
+
1249
+ var Plugin = () => {
1250
+ global$3.add('fullscreen', editor => {
1251
+ const fullscreenState = Cell(null);
1252
+ if (editor.inline) {
1253
+ return get$5(fullscreenState);
1254
+ }
1255
+ register$2(editor);
1256
+ register$1(editor, fullscreenState);
1257
+ register(editor, fullscreenState);
1258
+ setup(editor, fullscreenState);
1259
+ editor.addShortcut('Meta+Shift+F', '', 'mceFullScreen');
1260
+ return get$5(fullscreenState);
1261
+ });
1262
+ };
1263
+
1264
+ Plugin();
1265
+
1266
+ })();