@sapui5/sap.ui.richtexteditor 1.84.40 → 1.84.42

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