@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,1038 @@
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
+ var global$3 = tinymce.util.Tools.resolve('tinymce.PluginManager');
14
+
15
+ let unique = 0;
16
+ const generate = prefix => {
17
+ const date = new Date();
18
+ const time = date.getTime();
19
+ const random = Math.floor(Math.random() * 1000000000);
20
+ unique++;
21
+ return prefix + '_' + random + unique + String(time);
22
+ };
23
+
24
+ const hasProto = (v, constructor, predicate) => {
25
+ var _a;
26
+ if (predicate(v, constructor.prototype)) {
27
+ return true;
28
+ } else {
29
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
30
+ }
31
+ };
32
+ const typeOf = x => {
33
+ const t = typeof x;
34
+ if (x === null) {
35
+ return 'null';
36
+ } else if (t === 'object' && Array.isArray(x)) {
37
+ return 'array';
38
+ } else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
39
+ return 'string';
40
+ } else {
41
+ return t;
42
+ }
43
+ };
44
+ const isType$1 = type => value => typeOf(value) === type;
45
+ const isSimpleType = type => value => typeof value === type;
46
+ const isString = isType$1('string');
47
+ const isBoolean = isSimpleType('boolean');
48
+ const isNullable = a => a === null || a === undefined;
49
+ const isNonNullable = a => !isNullable(a);
50
+ const isFunction = isSimpleType('function');
51
+ const isNumber = isSimpleType('number');
52
+
53
+ const compose1 = (fbc, fab) => a => fbc(fab(a));
54
+ const constant = value => {
55
+ return () => {
56
+ return value;
57
+ };
58
+ };
59
+ const tripleEquals = (a, b) => {
60
+ return a === b;
61
+ };
62
+ const never = constant(false);
63
+
64
+ class Optional {
65
+ constructor(tag, value) {
66
+ this.tag = tag;
67
+ this.value = value;
68
+ }
69
+ static some(value) {
70
+ return new Optional(true, value);
71
+ }
72
+ static none() {
73
+ return Optional.singletonNone;
74
+ }
75
+ fold(onNone, onSome) {
76
+ if (this.tag) {
77
+ return onSome(this.value);
78
+ } else {
79
+ return onNone();
80
+ }
81
+ }
82
+ isSome() {
83
+ return this.tag;
84
+ }
85
+ isNone() {
86
+ return !this.tag;
87
+ }
88
+ map(mapper) {
89
+ if (this.tag) {
90
+ return Optional.some(mapper(this.value));
91
+ } else {
92
+ return Optional.none();
93
+ }
94
+ }
95
+ bind(binder) {
96
+ if (this.tag) {
97
+ return binder(this.value);
98
+ } else {
99
+ return Optional.none();
100
+ }
101
+ }
102
+ exists(predicate) {
103
+ return this.tag && predicate(this.value);
104
+ }
105
+ forall(predicate) {
106
+ return !this.tag || predicate(this.value);
107
+ }
108
+ filter(predicate) {
109
+ if (!this.tag || predicate(this.value)) {
110
+ return this;
111
+ } else {
112
+ return Optional.none();
113
+ }
114
+ }
115
+ getOr(replacement) {
116
+ return this.tag ? this.value : replacement;
117
+ }
118
+ or(replacement) {
119
+ return this.tag ? this : replacement;
120
+ }
121
+ getOrThunk(thunk) {
122
+ return this.tag ? this.value : thunk();
123
+ }
124
+ orThunk(thunk) {
125
+ return this.tag ? this : thunk();
126
+ }
127
+ getOrDie(message) {
128
+ if (!this.tag) {
129
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
130
+ } else {
131
+ return this.value;
132
+ }
133
+ }
134
+ static from(value) {
135
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
136
+ }
137
+ getOrNull() {
138
+ return this.tag ? this.value : null;
139
+ }
140
+ getOrUndefined() {
141
+ return this.value;
142
+ }
143
+ each(worker) {
144
+ if (this.tag) {
145
+ worker(this.value);
146
+ }
147
+ }
148
+ toArray() {
149
+ return this.tag ? [this.value] : [];
150
+ }
151
+ toString() {
152
+ return this.tag ? `some(${ this.value })` : 'none()';
153
+ }
154
+ }
155
+ Optional.singletonNone = new Optional(false);
156
+
157
+ const nativeIndexOf = Array.prototype.indexOf;
158
+ const rawIndexOf = (ts, t) => nativeIndexOf.call(ts, t);
159
+ const contains = (xs, x) => rawIndexOf(xs, x) > -1;
160
+ const map = (xs, f) => {
161
+ const len = xs.length;
162
+ const r = new Array(len);
163
+ for (let i = 0; i < len; i++) {
164
+ const x = xs[i];
165
+ r[i] = f(x, i);
166
+ }
167
+ return r;
168
+ };
169
+ const each$1 = (xs, f) => {
170
+ for (let i = 0, len = xs.length; i < len; i++) {
171
+ const x = xs[i];
172
+ f(x, i);
173
+ }
174
+ };
175
+ const filter = (xs, pred) => {
176
+ const r = [];
177
+ for (let i = 0, len = xs.length; i < len; i++) {
178
+ const x = xs[i];
179
+ if (pred(x, i)) {
180
+ r.push(x);
181
+ }
182
+ }
183
+ return r;
184
+ };
185
+ const foldl = (xs, f, acc) => {
186
+ each$1(xs, (x, i) => {
187
+ acc = f(acc, x, i);
188
+ });
189
+ return acc;
190
+ };
191
+
192
+ const keys = Object.keys;
193
+ const each = (obj, f) => {
194
+ const props = keys(obj);
195
+ for (let k = 0, len = props.length; k < len; k++) {
196
+ const i = props[k];
197
+ const x = obj[i];
198
+ f(x, i);
199
+ }
200
+ };
201
+
202
+ typeof window !== 'undefined' ? window : Function('return this;')();
203
+
204
+ const COMMENT = 8;
205
+ const DOCUMENT = 9;
206
+ const DOCUMENT_FRAGMENT = 11;
207
+ const ELEMENT = 1;
208
+ const TEXT = 3;
209
+
210
+ const name = element => {
211
+ const r = element.dom.nodeName;
212
+ return r.toLowerCase();
213
+ };
214
+ const type = element => element.dom.nodeType;
215
+ const isType = t => element => type(element) === t;
216
+ const isComment = element => type(element) === COMMENT || name(element) === '#comment';
217
+ const isElement = isType(ELEMENT);
218
+ const isText = isType(TEXT);
219
+ const isDocument = isType(DOCUMENT);
220
+ const isDocumentFragment = isType(DOCUMENT_FRAGMENT);
221
+
222
+ const rawSet = (dom, key, value) => {
223
+ if (isString(value) || isBoolean(value) || isNumber(value)) {
224
+ dom.setAttribute(key, value + '');
225
+ } else {
226
+ console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
227
+ throw new Error('Attribute value was not simple');
228
+ }
229
+ };
230
+ const set$2 = (element, key, value) => {
231
+ rawSet(element.dom, key, value);
232
+ };
233
+ const setAll = (element, attrs) => {
234
+ const dom = element.dom;
235
+ each(attrs, (v, k) => {
236
+ rawSet(dom, k, v);
237
+ });
238
+ };
239
+ const get$2 = (element, key) => {
240
+ const v = element.dom.getAttribute(key);
241
+ return v === null ? undefined : v;
242
+ };
243
+ const getOpt = (element, key) => Optional.from(get$2(element, key));
244
+ const remove$2 = (element, key) => {
245
+ element.dom.removeAttribute(key);
246
+ };
247
+ const clone = element => foldl(element.dom.attributes, (acc, attr) => {
248
+ acc[attr.name] = attr.value;
249
+ return acc;
250
+ }, {});
251
+
252
+ const fromHtml = (html, scope) => {
253
+ const doc = scope || document;
254
+ const div = doc.createElement('div');
255
+ div.innerHTML = html;
256
+ if (!div.hasChildNodes() || div.childNodes.length > 1) {
257
+ const message = 'HTML does not have a single root node';
258
+ console.error(message, html);
259
+ throw new Error(message);
260
+ }
261
+ return fromDom(div.childNodes[0]);
262
+ };
263
+ const fromTag = (tag, scope) => {
264
+ const doc = scope || document;
265
+ const node = doc.createElement(tag);
266
+ return fromDom(node);
267
+ };
268
+ const fromText = (text, scope) => {
269
+ const doc = scope || document;
270
+ const node = doc.createTextNode(text);
271
+ return fromDom(node);
272
+ };
273
+ const fromDom = node => {
274
+ if (node === null || node === undefined) {
275
+ throw new Error('Node cannot be null or undefined');
276
+ }
277
+ return { dom: node };
278
+ };
279
+ const fromPoint = (docElm, x, y) => Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
280
+ const SugarElement = {
281
+ fromHtml,
282
+ fromTag,
283
+ fromText,
284
+ fromDom,
285
+ fromPoint
286
+ };
287
+
288
+ const is$2 = (element, selector) => {
289
+ const dom = element.dom;
290
+ if (dom.nodeType !== ELEMENT) {
291
+ return false;
292
+ } else {
293
+ const elem = dom;
294
+ if (elem.matches !== undefined) {
295
+ return elem.matches(selector);
296
+ } else if (elem.msMatchesSelector !== undefined) {
297
+ return elem.msMatchesSelector(selector);
298
+ } else if (elem.webkitMatchesSelector !== undefined) {
299
+ return elem.webkitMatchesSelector(selector);
300
+ } else if (elem.mozMatchesSelector !== undefined) {
301
+ return elem.mozMatchesSelector(selector);
302
+ } else {
303
+ throw new Error('Browser lacks native selectors');
304
+ }
305
+ }
306
+ };
307
+ const bypassSelector = dom => dom.nodeType !== ELEMENT && dom.nodeType !== DOCUMENT && dom.nodeType !== DOCUMENT_FRAGMENT || dom.childElementCount === 0;
308
+ const all = (selector, scope) => {
309
+ const base = scope === undefined ? document : scope.dom;
310
+ return bypassSelector(base) ? [] : map(base.querySelectorAll(selector), SugarElement.fromDom);
311
+ };
312
+ const one = (selector, scope) => {
313
+ const base = scope === undefined ? document : scope.dom;
314
+ return bypassSelector(base) ? Optional.none() : Optional.from(base.querySelector(selector)).map(SugarElement.fromDom);
315
+ };
316
+
317
+ const eq = (e1, e2) => e1.dom === e2.dom;
318
+ const is$1 = is$2;
319
+
320
+ const is = (lhs, rhs, comparator = tripleEquals) => lhs.exists(left => comparator(left, rhs));
321
+
322
+ const blank = r => s => s.replace(r, '');
323
+ const trim = blank(/^\s+|\s+$/g);
324
+
325
+ const isSupported = dom => dom.style !== undefined && isFunction(dom.style.getPropertyValue);
326
+
327
+ const owner = element => SugarElement.fromDom(element.dom.ownerDocument);
328
+ const documentOrOwner = dos => isDocument(dos) ? dos : owner(dos);
329
+ const parent = element => Optional.from(element.dom.parentNode).map(SugarElement.fromDom);
330
+ const parents = (element, isRoot) => {
331
+ const stop = isFunction(isRoot) ? isRoot : never;
332
+ let dom = element.dom;
333
+ const ret = [];
334
+ while (dom.parentNode !== null && dom.parentNode !== undefined) {
335
+ const rawParent = dom.parentNode;
336
+ const p = SugarElement.fromDom(rawParent);
337
+ ret.push(p);
338
+ if (stop(p) === true) {
339
+ break;
340
+ } else {
341
+ dom = rawParent;
342
+ }
343
+ }
344
+ return ret;
345
+ };
346
+ const prevSibling = element => Optional.from(element.dom.previousSibling).map(SugarElement.fromDom);
347
+ const nextSibling = element => Optional.from(element.dom.nextSibling).map(SugarElement.fromDom);
348
+ const children = element => map(element.dom.childNodes, SugarElement.fromDom);
349
+ const child = (element, index) => {
350
+ const cs = element.dom.childNodes;
351
+ return Optional.from(cs[index]).map(SugarElement.fromDom);
352
+ };
353
+ const firstChild = element => child(element, 0);
354
+
355
+ const isShadowRoot = dos => isDocumentFragment(dos) && isNonNullable(dos.dom.host);
356
+ const supported = isFunction(Element.prototype.attachShadow) && isFunction(Node.prototype.getRootNode);
357
+ const getRootNode = supported ? e => SugarElement.fromDom(e.dom.getRootNode()) : documentOrOwner;
358
+ const getShadowRoot = e => {
359
+ const r = getRootNode(e);
360
+ return isShadowRoot(r) ? Optional.some(r) : Optional.none();
361
+ };
362
+ const getShadowHost = e => SugarElement.fromDom(e.dom.host);
363
+
364
+ const inBody = element => {
365
+ const dom = isText(element) ? element.dom.parentNode : element.dom;
366
+ if (dom === undefined || dom === null || dom.ownerDocument === null) {
367
+ return false;
368
+ }
369
+ const doc = dom.ownerDocument;
370
+ return getShadowRoot(SugarElement.fromDom(dom)).fold(() => doc.body.contains(dom), compose1(inBody, getShadowHost));
371
+ };
372
+
373
+ const internalSet = (dom, property, value) => {
374
+ if (!isString(value)) {
375
+ console.error('Invalid call to CSS.set. Property ', property, ':: Value ', value, ':: Element ', dom);
376
+ throw new Error('CSS value must be a string: ' + value);
377
+ }
378
+ if (isSupported(dom)) {
379
+ dom.style.setProperty(property, value);
380
+ }
381
+ };
382
+ const internalRemove = (dom, property) => {
383
+ if (isSupported(dom)) {
384
+ dom.style.removeProperty(property);
385
+ }
386
+ };
387
+ const set$1 = (element, property, value) => {
388
+ const dom = element.dom;
389
+ internalSet(dom, property, value);
390
+ };
391
+ const get$1 = (element, property) => {
392
+ const dom = element.dom;
393
+ const styles = window.getComputedStyle(dom);
394
+ const r = styles.getPropertyValue(property);
395
+ return r === '' && !inBody(element) ? getUnsafeProperty(dom, property) : r;
396
+ };
397
+ const getUnsafeProperty = (dom, property) => isSupported(dom) ? dom.style.getPropertyValue(property) : '';
398
+ const getRaw = (element, property) => {
399
+ const dom = element.dom;
400
+ const raw = getUnsafeProperty(dom, property);
401
+ return Optional.from(raw).filter(r => r.length > 0);
402
+ };
403
+ const remove$1 = (element, property) => {
404
+ const dom = element.dom;
405
+ internalRemove(dom, property);
406
+ if (is(getOpt(element, 'style').map(trim), '')) {
407
+ remove$2(element, 'style');
408
+ }
409
+ };
410
+
411
+ const before = (marker, element) => {
412
+ const parent$1 = parent(marker);
413
+ parent$1.each(v => {
414
+ v.dom.insertBefore(element.dom, marker.dom);
415
+ });
416
+ };
417
+ const after$1 = (marker, element) => {
418
+ const sibling = nextSibling(marker);
419
+ sibling.fold(() => {
420
+ const parent$1 = parent(marker);
421
+ parent$1.each(v => {
422
+ append$1(v, element);
423
+ });
424
+ }, v => {
425
+ before(v, element);
426
+ });
427
+ };
428
+ const prepend = (parent, element) => {
429
+ const firstChild$1 = firstChild(parent);
430
+ firstChild$1.fold(() => {
431
+ append$1(parent, element);
432
+ }, v => {
433
+ parent.dom.insertBefore(element.dom, v.dom);
434
+ });
435
+ };
436
+ const append$1 = (parent, element) => {
437
+ parent.dom.appendChild(element.dom);
438
+ };
439
+ const wrap = (element, wrapper) => {
440
+ before(element, wrapper);
441
+ append$1(wrapper, element);
442
+ };
443
+
444
+ const after = (marker, elements) => {
445
+ each$1(elements, (x, i) => {
446
+ const e = i === 0 ? marker : elements[i - 1];
447
+ after$1(e, x);
448
+ });
449
+ };
450
+ const append = (parent, elements) => {
451
+ each$1(elements, x => {
452
+ append$1(parent, x);
453
+ });
454
+ };
455
+
456
+ const descendants$1 = (scope, predicate) => {
457
+ let result = [];
458
+ each$1(children(scope), x => {
459
+ if (predicate(x)) {
460
+ result = result.concat([x]);
461
+ }
462
+ result = result.concat(descendants$1(x, predicate));
463
+ });
464
+ return result;
465
+ };
466
+
467
+ var ClosestOrAncestor = (is, ancestor, scope, a, isRoot) => {
468
+ if (is(scope, a)) {
469
+ return Optional.some(scope);
470
+ } else if (isFunction(isRoot) && isRoot(scope)) {
471
+ return Optional.none();
472
+ } else {
473
+ return ancestor(scope, a, isRoot);
474
+ }
475
+ };
476
+
477
+ const ancestor$1 = (scope, predicate, isRoot) => {
478
+ let element = scope.dom;
479
+ const stop = isFunction(isRoot) ? isRoot : never;
480
+ while (element.parentNode) {
481
+ element = element.parentNode;
482
+ const el = SugarElement.fromDom(element);
483
+ if (predicate(el)) {
484
+ return Optional.some(el);
485
+ } else if (stop(el)) {
486
+ break;
487
+ }
488
+ }
489
+ return Optional.none();
490
+ };
491
+
492
+ const remove = element => {
493
+ const dom = element.dom;
494
+ if (dom.parentNode !== null) {
495
+ dom.parentNode.removeChild(dom);
496
+ }
497
+ };
498
+ const unwrap = wrapper => {
499
+ const children$1 = children(wrapper);
500
+ if (children$1.length > 0) {
501
+ after(wrapper, children$1);
502
+ }
503
+ remove(wrapper);
504
+ };
505
+
506
+ const descendants = (scope, selector) => all(selector, scope);
507
+
508
+ const ancestor = (scope, selector, isRoot) => ancestor$1(scope, e => is$2(e, selector), isRoot);
509
+ const descendant = (scope, selector) => one(selector, scope);
510
+ const closest = (scope, selector, isRoot) => {
511
+ const is = (element, selector) => is$2(element, selector);
512
+ return ClosestOrAncestor(is, ancestor, scope, selector, isRoot);
513
+ };
514
+
515
+ const NodeValue = (is, name) => {
516
+ const get = element => {
517
+ if (!is(element)) {
518
+ throw new Error('Can only get ' + name + ' value of a ' + name + ' node');
519
+ }
520
+ return getOption(element).getOr('');
521
+ };
522
+ const getOption = element => is(element) ? Optional.from(element.dom.nodeValue) : Optional.none();
523
+ const set = (element, value) => {
524
+ if (!is(element)) {
525
+ throw new Error('Can only set raw ' + name + ' value of a ' + name + ' node');
526
+ }
527
+ element.dom.nodeValue = value;
528
+ };
529
+ return {
530
+ get,
531
+ getOption,
532
+ set
533
+ };
534
+ };
535
+
536
+ const api = NodeValue(isText, 'text');
537
+ const get = element => api.get(element);
538
+ const set = (element, value) => api.set(element, value);
539
+
540
+ var TagBoundaries = [
541
+ 'body',
542
+ 'p',
543
+ 'div',
544
+ 'article',
545
+ 'aside',
546
+ 'figcaption',
547
+ 'figure',
548
+ 'footer',
549
+ 'header',
550
+ 'nav',
551
+ 'section',
552
+ 'ol',
553
+ 'ul',
554
+ 'li',
555
+ 'table',
556
+ 'thead',
557
+ 'tbody',
558
+ 'tfoot',
559
+ 'caption',
560
+ 'tr',
561
+ 'td',
562
+ 'th',
563
+ 'h1',
564
+ 'h2',
565
+ 'h3',
566
+ 'h4',
567
+ 'h5',
568
+ 'h6',
569
+ 'blockquote',
570
+ 'pre',
571
+ 'address'
572
+ ];
573
+
574
+ var DomUniverse = () => {
575
+ const clone$1 = element => {
576
+ return SugarElement.fromDom(element.dom.cloneNode(false));
577
+ };
578
+ const document = element => documentOrOwner(element).dom;
579
+ const isBoundary = element => {
580
+ if (!isElement(element)) {
581
+ return false;
582
+ }
583
+ if (name(element) === 'body') {
584
+ return true;
585
+ }
586
+ return contains(TagBoundaries, name(element));
587
+ };
588
+ const isEmptyTag = element => {
589
+ if (!isElement(element)) {
590
+ return false;
591
+ }
592
+ return contains([
593
+ 'br',
594
+ 'img',
595
+ 'hr',
596
+ 'input'
597
+ ], name(element));
598
+ };
599
+ const isNonEditable = element => isElement(element) && get$2(element, 'contenteditable') === 'false';
600
+ const comparePosition = (element, other) => {
601
+ return element.dom.compareDocumentPosition(other.dom);
602
+ };
603
+ const copyAttributesTo = (source, destination) => {
604
+ const as = clone(source);
605
+ setAll(destination, as);
606
+ };
607
+ const isSpecial = element => {
608
+ const tag = name(element);
609
+ return contains([
610
+ 'script',
611
+ 'noscript',
612
+ 'iframe',
613
+ 'noframes',
614
+ 'noembed',
615
+ 'title',
616
+ 'style',
617
+ 'textarea',
618
+ 'xmp'
619
+ ], tag);
620
+ };
621
+ const getLanguage = element => isElement(element) ? getOpt(element, 'lang') : Optional.none();
622
+ return {
623
+ up: constant({
624
+ selector: ancestor,
625
+ closest: closest,
626
+ predicate: ancestor$1,
627
+ all: parents
628
+ }),
629
+ down: constant({
630
+ selector: descendants,
631
+ predicate: descendants$1
632
+ }),
633
+ styles: constant({
634
+ get: get$1,
635
+ getRaw: getRaw,
636
+ set: set$1,
637
+ remove: remove$1
638
+ }),
639
+ attrs: constant({
640
+ get: get$2,
641
+ set: set$2,
642
+ remove: remove$2,
643
+ copyTo: copyAttributesTo
644
+ }),
645
+ insert: constant({
646
+ before: before,
647
+ after: after$1,
648
+ afterAll: after,
649
+ append: append$1,
650
+ appendAll: append,
651
+ prepend: prepend,
652
+ wrap: wrap
653
+ }),
654
+ remove: constant({
655
+ unwrap: unwrap,
656
+ remove: remove
657
+ }),
658
+ create: constant({
659
+ nu: SugarElement.fromTag,
660
+ clone: clone$1,
661
+ text: SugarElement.fromText
662
+ }),
663
+ query: constant({
664
+ comparePosition,
665
+ prevSibling: prevSibling,
666
+ nextSibling: nextSibling
667
+ }),
668
+ property: constant({
669
+ children: children,
670
+ name: name,
671
+ parent: parent,
672
+ document,
673
+ isText: isText,
674
+ isComment: isComment,
675
+ isElement: isElement,
676
+ isSpecial,
677
+ getLanguage,
678
+ getText: get,
679
+ setText: set,
680
+ isBoundary,
681
+ isEmptyTag,
682
+ isNonEditable
683
+ }),
684
+ eq: eq,
685
+ is: is$1
686
+ };
687
+ };
688
+
689
+ const point = (element, offset) => ({
690
+ element,
691
+ offset
692
+ });
693
+
694
+ const scan = (universe, element, direction) => {
695
+ if (universe.property().isText(element) && universe.property().getText(element).trim().length === 0 || universe.property().isComment(element)) {
696
+ return direction(element).bind(elem => {
697
+ return scan(universe, elem, direction).orThunk(() => {
698
+ return Optional.some(elem);
699
+ });
700
+ });
701
+ } else {
702
+ return Optional.none();
703
+ }
704
+ };
705
+ const toEnd = (universe, element) => {
706
+ if (universe.property().isText(element)) {
707
+ return universe.property().getText(element).length;
708
+ }
709
+ const children = universe.property().children(element);
710
+ return children.length;
711
+ };
712
+ const freefallRtl$2 = (universe, element) => {
713
+ const candidate = scan(universe, element, universe.query().prevSibling).getOr(element);
714
+ if (universe.property().isText(candidate)) {
715
+ return point(candidate, toEnd(universe, candidate));
716
+ }
717
+ const children = universe.property().children(candidate);
718
+ return children.length > 0 ? freefallRtl$2(universe, children[children.length - 1]) : point(candidate, toEnd(universe, candidate));
719
+ };
720
+
721
+ const freefallRtl$1 = freefallRtl$2;
722
+
723
+ const universe = DomUniverse();
724
+ const freefallRtl = element => {
725
+ return freefallRtl$1(universe, element);
726
+ };
727
+
728
+ const fireToggleAccordionEvent = (editor, element, state) => editor.dispatch('ToggledAccordion', {
729
+ element,
730
+ state
731
+ });
732
+ const fireToggleAllAccordionsEvent = (editor, elements, state) => editor.dispatch('ToggledAllAccordions', {
733
+ elements,
734
+ state
735
+ });
736
+
737
+ const accordionTag = 'details';
738
+ const accordionDetailsClass = 'mce-accordion';
739
+ const accordionSummaryClass = 'mce-accordion-summary';
740
+ const accordionBodyWrapperClass = 'mce-accordion-body';
741
+ const accordionBodyWrapperTag = 'div';
742
+
743
+ var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');
744
+
745
+ const isSummary = node => (node === null || node === void 0 ? void 0 : node.nodeName) === 'SUMMARY';
746
+ const isDetails = node => (node === null || node === void 0 ? void 0 : node.nodeName) === 'DETAILS';
747
+ const isOpen = details => details.hasAttribute('open');
748
+ const isInSummary = editor => {
749
+ const node = editor.selection.getNode();
750
+ return isSummary(node) || Boolean(editor.dom.getParent(node, isSummary));
751
+ };
752
+ const isInsertAllowed = editor => !isInSummary(editor) && editor.dom.isEditable(editor.selection.getNode());
753
+ const getSelectedDetails = editor => Optional.from(editor.dom.getParent(editor.selection.getNode(), isDetails));
754
+ const isDetailsSelected = editor => getSelectedDetails(editor).isSome();
755
+ const insertBogus = element => {
756
+ element.innerHTML = '<br data-mce-bogus="1" />';
757
+ return element;
758
+ };
759
+ const createParagraph = editor => insertBogus(editor.dom.create('p'));
760
+ const createSummary = editor => insertBogus(editor.dom.create('summary'));
761
+ const insertAndSelectParagraphAfter = (editor, target) => {
762
+ const paragraph = createParagraph(editor);
763
+ target.insertAdjacentElement('afterend', paragraph);
764
+ editor.selection.setCursorLocation(paragraph, 0);
765
+ };
766
+ const normalizeContent = (editor, accordion) => {
767
+ if (isSummary(accordion === null || accordion === void 0 ? void 0 : accordion.lastChild)) {
768
+ const paragraph = createParagraph(editor);
769
+ accordion.appendChild(paragraph);
770
+ editor.selection.setCursorLocation(paragraph, 0);
771
+ }
772
+ };
773
+ const normalizeSummary = (editor, accordion) => {
774
+ if (!isSummary(accordion === null || accordion === void 0 ? void 0 : accordion.firstChild)) {
775
+ const summary = createSummary(editor);
776
+ accordion.prepend(summary);
777
+ editor.selection.setCursorLocation(summary, 0);
778
+ }
779
+ };
780
+ const normalizeAccordion = editor => accordion => {
781
+ normalizeContent(editor, accordion);
782
+ normalizeSummary(editor, accordion);
783
+ };
784
+ const normalizeDetails = editor => {
785
+ global$2.each(global$2.grep(editor.dom.select('details', editor.getBody())), normalizeAccordion(editor));
786
+ };
787
+
788
+ const insertAccordion = editor => {
789
+ if (!isInsertAllowed(editor)) {
790
+ return;
791
+ }
792
+ const editorBody = SugarElement.fromDom(editor.getBody());
793
+ const uid = generate('acc');
794
+ const summaryText = editor.dom.encode(editor.selection.getRng().toString() || editor.translate('Accordion summary...'));
795
+ const bodyText = editor.dom.encode(editor.translate('Accordion body...'));
796
+ const accordionSummaryHtml = `<summary class="${ accordionSummaryClass }">${ summaryText }</summary>`;
797
+ const accordionBodyHtml = `<${ accordionBodyWrapperTag } class="${ accordionBodyWrapperClass }"><p>${ bodyText }</p></${ accordionBodyWrapperTag }>`;
798
+ editor.undoManager.transact(() => {
799
+ editor.insertContent([
800
+ `<details data-mce-id="${ uid }" class="${ accordionDetailsClass }" open="open">`,
801
+ accordionSummaryHtml,
802
+ accordionBodyHtml,
803
+ `</details>`
804
+ ].join(''));
805
+ descendant(editorBody, `[data-mce-id="${ uid }"]`).each(detailsElm => {
806
+ remove$2(detailsElm, 'data-mce-id');
807
+ descendant(detailsElm, `summary`).each(summaryElm => {
808
+ const rng = editor.dom.createRng();
809
+ const des = freefallRtl(summaryElm);
810
+ rng.setStart(des.element.dom, des.offset);
811
+ rng.setEnd(des.element.dom, des.offset);
812
+ editor.selection.setRng(rng);
813
+ });
814
+ });
815
+ });
816
+ };
817
+ const toggleDetailsElement = (details, state) => {
818
+ const shouldOpen = state !== null && state !== void 0 ? state : !isOpen(details);
819
+ if (shouldOpen) {
820
+ details.setAttribute('open', 'open');
821
+ } else {
822
+ details.removeAttribute('open');
823
+ }
824
+ return shouldOpen;
825
+ };
826
+ const toggleAccordion = (editor, state) => {
827
+ getSelectedDetails(editor).each(details => {
828
+ fireToggleAccordionEvent(editor, details, toggleDetailsElement(details, state));
829
+ });
830
+ };
831
+ const removeAccordion = editor => {
832
+ getSelectedDetails(editor).each(details => {
833
+ const {nextSibling} = details;
834
+ if (nextSibling) {
835
+ editor.selection.select(nextSibling, true);
836
+ editor.selection.collapse(true);
837
+ } else {
838
+ insertAndSelectParagraphAfter(editor, details);
839
+ }
840
+ details.remove();
841
+ });
842
+ };
843
+ const toggleAllAccordions = (editor, state) => {
844
+ const accordions = Array.from(editor.getBody().querySelectorAll('details'));
845
+ if (accordions.length === 0) {
846
+ return;
847
+ }
848
+ each$1(accordions, accordion => toggleDetailsElement(accordion, state !== null && state !== void 0 ? state : !isOpen(accordion)));
849
+ fireToggleAllAccordionsEvent(editor, accordions, state);
850
+ };
851
+
852
+ const register$1 = editor => {
853
+ editor.addCommand('InsertAccordion', () => insertAccordion(editor));
854
+ editor.addCommand('ToggleAccordion', (_ui, value) => toggleAccordion(editor, value));
855
+ editor.addCommand('ToggleAllAccordions', (_ui, value) => toggleAllAccordions(editor, value));
856
+ editor.addCommand('RemoveAccordion', () => removeAccordion(editor));
857
+ };
858
+
859
+ var global$1 = tinymce.util.Tools.resolve('tinymce.html.Node');
860
+
861
+ const getClassList = node => {
862
+ var _a, _b;
863
+ return (_b = (_a = node.attr('class')) === null || _a === void 0 ? void 0 : _a.split(' ')) !== null && _b !== void 0 ? _b : [];
864
+ };
865
+ const addClasses = (node, classes) => {
866
+ const classListSet = new Set([
867
+ ...getClassList(node),
868
+ ...classes
869
+ ]);
870
+ const newClassList = Array.from(classListSet);
871
+ if (newClassList.length > 0) {
872
+ node.attr('class', newClassList.join(' '));
873
+ }
874
+ };
875
+ const removeClasses = (node, classes) => {
876
+ const newClassList = filter(getClassList(node), clazz => !classes.has(clazz));
877
+ node.attr('class', newClassList.length > 0 ? newClassList.join(' ') : null);
878
+ };
879
+ const isAccordionDetailsNode = node => node.name === accordionTag && contains(getClassList(node), accordionDetailsClass);
880
+ const isAccordionBodyWrapperNode = node => node.name === accordionBodyWrapperTag && contains(getClassList(node), accordionBodyWrapperClass);
881
+ const getAccordionChildren = accordionNode => {
882
+ const children = accordionNode.children();
883
+ let summaryNode;
884
+ let wrapperNode;
885
+ const otherNodes = [];
886
+ for (let i = 0; i < children.length; i++) {
887
+ const child = children[i];
888
+ if (child.name === 'summary' && isNullable(summaryNode)) {
889
+ summaryNode = child;
890
+ } else if (isAccordionBodyWrapperNode(child) && isNullable(wrapperNode)) {
891
+ wrapperNode = child;
892
+ } else {
893
+ otherNodes.push(child);
894
+ }
895
+ }
896
+ return {
897
+ summaryNode,
898
+ wrapperNode,
899
+ otherNodes
900
+ };
901
+ };
902
+ const padInputNode = node => {
903
+ const br = new global$1('br', 1);
904
+ br.attr('data-mce-bogus', '1');
905
+ node.empty();
906
+ node.append(br);
907
+ };
908
+ const setup$1 = editor => {
909
+ editor.on('PreInit', () => {
910
+ const {serializer, parser} = editor;
911
+ parser.addNodeFilter(accordionTag, nodes => {
912
+ for (let i = 0; i < nodes.length; i++) {
913
+ const node = nodes[i];
914
+ if (isAccordionDetailsNode(node)) {
915
+ const accordionNode = node;
916
+ const {summaryNode, wrapperNode, otherNodes} = getAccordionChildren(accordionNode);
917
+ const hasSummaryNode = isNonNullable(summaryNode);
918
+ const newSummaryNode = hasSummaryNode ? summaryNode : new global$1('summary', 1);
919
+ if (isNullable(newSummaryNode.firstChild)) {
920
+ padInputNode(newSummaryNode);
921
+ }
922
+ addClasses(newSummaryNode, [accordionSummaryClass]);
923
+ if (!hasSummaryNode) {
924
+ if (isNonNullable(accordionNode.firstChild)) {
925
+ accordionNode.insert(newSummaryNode, accordionNode.firstChild, true);
926
+ } else {
927
+ accordionNode.append(newSummaryNode);
928
+ }
929
+ }
930
+ const hasWrapperNode = isNonNullable(wrapperNode);
931
+ const newWrapperNode = hasWrapperNode ? wrapperNode : new global$1(accordionBodyWrapperTag, 1);
932
+ addClasses(newWrapperNode, [accordionBodyWrapperClass]);
933
+ if (otherNodes.length > 0) {
934
+ for (let j = 0; j < otherNodes.length; j++) {
935
+ const otherNode = otherNodes[j];
936
+ newWrapperNode.append(otherNode);
937
+ }
938
+ }
939
+ if (isNullable(newWrapperNode.firstChild)) {
940
+ const pNode = new global$1('p', 1);
941
+ padInputNode(pNode);
942
+ newWrapperNode.append(pNode);
943
+ }
944
+ if (!hasWrapperNode) {
945
+ accordionNode.append(newWrapperNode);
946
+ }
947
+ }
948
+ }
949
+ });
950
+ serializer.addNodeFilter(accordionTag, nodes => {
951
+ const summaryClassRemoveSet = new Set([accordionSummaryClass]);
952
+ for (let i = 0; i < nodes.length; i++) {
953
+ const node = nodes[i];
954
+ if (isAccordionDetailsNode(node)) {
955
+ const accordionNode = node;
956
+ const {summaryNode, wrapperNode} = getAccordionChildren(accordionNode);
957
+ if (isNonNullable(summaryNode)) {
958
+ removeClasses(summaryNode, summaryClassRemoveSet);
959
+ }
960
+ if (isNonNullable(wrapperNode)) {
961
+ wrapperNode.unwrap();
962
+ }
963
+ }
964
+ }
965
+ });
966
+ });
967
+ };
968
+
969
+ var global = tinymce.util.Tools.resolve('tinymce.util.VK');
970
+
971
+ const setupEnterKeyInSummary = editor => {
972
+ editor.on('keydown', event => {
973
+ if (event.shiftKey || event.keyCode !== global.ENTER || !isInSummary(editor)) {
974
+ return;
975
+ }
976
+ event.preventDefault();
977
+ editor.execCommand('ToggleAccordion');
978
+ });
979
+ };
980
+ const setup = editor => {
981
+ setupEnterKeyInSummary(editor);
982
+ editor.on('ExecCommand', e => {
983
+ const cmd = e.command.toLowerCase();
984
+ if ((cmd === 'delete' || cmd === 'forwarddelete') && isDetailsSelected(editor)) {
985
+ normalizeDetails(editor);
986
+ }
987
+ });
988
+ };
989
+
990
+ const onSetup = editor => buttonApi => {
991
+ const onNodeChange = () => buttonApi.setEnabled(isInsertAllowed(editor));
992
+ editor.on('NodeChange', onNodeChange);
993
+ return () => editor.off('NodeChange', onNodeChange);
994
+ };
995
+ const register = editor => {
996
+ const onAction = () => editor.execCommand('InsertAccordion');
997
+ editor.ui.registry.addButton('accordion', {
998
+ icon: 'accordion',
999
+ tooltip: 'Insert accordion',
1000
+ onSetup: onSetup(editor),
1001
+ onAction
1002
+ });
1003
+ editor.ui.registry.addMenuItem('accordion', {
1004
+ icon: 'accordion',
1005
+ text: 'Accordion',
1006
+ onSetup: onSetup(editor),
1007
+ onAction
1008
+ });
1009
+ editor.ui.registry.addToggleButton('accordiontoggle', {
1010
+ icon: 'accordion-toggle',
1011
+ tooltip: 'Toggle accordion',
1012
+ onAction: () => editor.execCommand('ToggleAccordion')
1013
+ });
1014
+ editor.ui.registry.addToggleButton('accordionremove', {
1015
+ icon: 'remove',
1016
+ tooltip: 'Delete accordion',
1017
+ onAction: () => editor.execCommand('RemoveAccordion')
1018
+ });
1019
+ editor.ui.registry.addContextToolbar('accordion', {
1020
+ predicate: accordion => editor.dom.is(accordion, 'details') && editor.getBody().contains(accordion) && editor.dom.isEditable(accordion.parentNode),
1021
+ items: 'accordiontoggle accordionremove',
1022
+ scope: 'node',
1023
+ position: 'node'
1024
+ });
1025
+ };
1026
+
1027
+ var Plugin = () => {
1028
+ global$3.add('accordion', editor => {
1029
+ register(editor);
1030
+ register$1(editor);
1031
+ setup(editor);
1032
+ setup$1(editor);
1033
+ });
1034
+ };
1035
+
1036
+ Plugin();
1037
+
1038
+ })();