@sapui5/sap.ui.richtexteditor 1.96.24 → 1.96.26

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 (629) hide show
  1. package/package.json +1 -1
  2. package/src/sap/ui/richtexteditor/.library +15 -6
  3. package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
  4. package/src/sap/ui/richtexteditor/RichTextEditor.js +365 -229
  5. package/src/sap/ui/richtexteditor/RichTextEditorRenderer.js +14 -5
  6. package/src/sap/ui/richtexteditor/ToolbarWrapper.js +563 -316
  7. package/src/sap/ui/richtexteditor/ToolbarWrapperRenderer.js +3 -4
  8. package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/default/icons.js +11 -1
  9. package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/default/icons.min.js +1 -1
  10. package/src/sap/ui/richtexteditor/js/tiny_mce5/jquery.tinymce.min.js +88 -0
  11. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ar.js +1 -420
  12. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bg_BG.js +1 -419
  13. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bn_BD.js +21 -179
  14. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ca.js +1 -419
  15. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cs.js +1 -419
  16. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cs_CZ.js +221 -19
  17. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cy.js +61 -18
  18. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/da.js +1 -419
  19. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/de.js +1 -419
  20. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/el.js +1 -261
  21. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es.js +1 -419
  22. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_419.js +462 -0
  23. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_MX.js +1 -419
  24. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/et.js +21 -179
  25. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/eu.js +1 -419
  26. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fa.js +1 -419
  27. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fa_IR.js +69 -197
  28. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fi.js +1 -419
  29. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fr_FR.js +1 -419
  30. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/gl.js +20 -155
  31. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/he_IL.js +1 -420
  32. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hr.js +1 -418
  33. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hu_HU.js +1 -419
  34. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/id.js +1 -419
  35. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/it.js +1 -419
  36. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ja.js +1 -419
  37. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/kk.js +1 -418
  38. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ko_KR.js +1 -419
  39. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/lt.js +21 -179
  40. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nb_NO.js +1 -419
  41. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nl.js +1 -419
  42. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nl_BE.js +445 -0
  43. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pl.js +1 -419
  44. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pt_BR.js +1 -419
  45. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pt_PT.js +1 -419
  46. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ro.js +1 -418
  47. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ru.js +1 -419
  48. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ru_RU.js +445 -0
  49. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sk.js +1 -418
  50. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sl.js +59 -14
  51. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sl_SI.js +1 -388
  52. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sq.js +219 -0
  53. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sv_SE.js +1 -419
  54. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ta.js +60 -17
  55. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ta_IN.js +60 -17
  56. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/th_TH.js +1 -419
  57. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tr.js +1 -419
  58. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tr_TR.js +81 -8
  59. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ug.js +221 -19
  60. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/uk.js +1 -419
  61. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/zh_CN.js +1 -419
  62. package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/zh_TW.js +1 -419
  63. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/changelog.txt +8 -0
  64. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/codemirror.min.css +1 -1
  65. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/codemirror.min.js +4023 -4246
  66. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/customeditor.js +5 -5
  67. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/customeditor.min.js +5 -5
  68. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/plugin.js +5 -5
  69. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/plugin.min.js +5 -5
  70. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/readme.txt +1 -1
  71. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/version.txt +1 -1
  72. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advlist/plugin.js +33 -48
  73. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advlist/plugin.min.js +4 -2
  74. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/anchor/plugin.js +10 -8
  75. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/anchor/plugin.min.js +4 -2
  76. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autolink/plugin.js +60 -30
  77. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autolink/plugin.min.js +4 -2
  78. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autoresize/plugin.js +27 -12
  79. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autoresize/plugin.min.js +4 -2
  80. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autosave/plugin.js +12 -12
  81. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autosave/plugin.min.js +4 -2
  82. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/bbcode/plugin.js +8 -6
  83. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/bbcode/plugin.min.js +4 -2
  84. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/charmap/plugin.js +59 -67
  85. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/charmap/plugin.min.js +4 -2
  86. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/code/plugin.js +11 -10
  87. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/code/plugin.min.js +4 -2
  88. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/codesample/plugin.js +1934 -1310
  89. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/codesample/plugin.min.js +4 -2
  90. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/colorpicker/plugin.js +3 -2
  91. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/colorpicker/plugin.min.js +4 -2
  92. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/contextmenu/plugin.js +3 -2
  93. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/contextmenu/plugin.min.js +4 -2
  94. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/directionality/plugin.js +200 -59
  95. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/directionality/plugin.min.js +4 -2
  96. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojiimages.js +9424 -0
  97. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojiimages.min.js +3 -0
  98. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojis.js +1914 -1506
  99. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojis.min.js +2 -2
  100. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/plugin.js +255 -181
  101. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/plugin.min.js +4 -2
  102. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullpage/plugin.js +51 -49
  103. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullpage/plugin.min.js +4 -2
  104. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullscreen/plugin.js +542 -163
  105. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullscreen/plugin.min.js +4 -2
  106. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/help/plugin.js +113 -105
  107. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/help/plugin.min.js +4 -2
  108. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/hr/plugin.js +11 -10
  109. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/hr/plugin.min.js +4 -2
  110. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/image/plugin.js +187 -170
  111. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/image/plugin.min.js +4 -2
  112. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/imagetools/plugin.js +625 -433
  113. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/imagetools/plugin.min.js +4 -2
  114. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/importcss/plugin.js +54 -53
  115. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/importcss/plugin.min.js +4 -2
  116. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/insertdatetime/plugin.js +24 -17
  117. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/insertdatetime/plugin.min.js +4 -2
  118. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/legacyoutput/plugin.js +10 -8
  119. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/legacyoutput/plugin.min.js +4 -2
  120. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/link/plugin.js +145 -131
  121. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/link/plugin.min.js +4 -2
  122. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/lists/plugin.js +440 -270
  123. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/lists/plugin.min.js +4 -2
  124. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/media/plugin.js +232 -186
  125. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/media/plugin.min.js +4 -2
  126. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/nonbreaking/plugin.js +15 -14
  127. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/nonbreaking/plugin.min.js +4 -2
  128. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/noneditable/plugin.js +8 -6
  129. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/noneditable/plugin.min.js +4 -2
  130. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/pagebreak/plugin.js +29 -30
  131. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/pagebreak/plugin.min.js +4 -2
  132. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/paste/plugin.js +388 -290
  133. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/paste/plugin.min.js +4 -2
  134. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/CHANGELOG.md +345 -0
  135. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/js/wordimport.js +1826 -1696
  136. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ar.js +12 -9
  137. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/bg_BG.js +4 -4
  138. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ca.js +10 -7
  139. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/cs.js +12 -9
  140. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/da.js +11 -8
  141. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/de.js +10 -7
  142. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/el.js +12 -9
  143. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/es.js +10 -7
  144. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/eu.js +4 -4
  145. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fa.js +12 -9
  146. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fi.js +12 -9
  147. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fr_FR.js +11 -8
  148. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/he_IL.js +12 -9
  149. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/hr.js +11 -8
  150. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/hu_HU.js +12 -9
  151. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/id.js +4 -4
  152. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/it.js +10 -7
  153. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ja.js +12 -9
  154. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/kk.js +12 -9
  155. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ko_KR.js +12 -9
  156. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/nb_NO.js +11 -8
  157. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/nl.js +8 -5
  158. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pl.js +10 -7
  159. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pt_BR.js +11 -8
  160. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pt_PT.js +11 -8
  161. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ro.js +12 -9
  162. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ru.js +12 -9
  163. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sk.js +12 -9
  164. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sl_SI.js +11 -8
  165. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sv_SE.js +10 -7
  166. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/th_TH.js +12 -9
  167. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/tr.js +11 -8
  168. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/uk.js +12 -9
  169. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/zh_CN.js +13 -10
  170. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/zh_TW.js +13 -10
  171. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/plugin.js +5 -5
  172. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/plugin.min.js +5 -5
  173. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/readme.txt +1 -1
  174. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/version.txt +1 -1
  175. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/preview/plugin.js +18 -17
  176. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/preview/plugin.min.js +4 -2
  177. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/print/plugin.js +15 -14
  178. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/print/plugin.min.js +4 -2
  179. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/quickbars/plugin.js +76 -85
  180. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/quickbars/plugin.min.js +4 -2
  181. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/save/plugin.js +11 -8
  182. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/save/plugin.min.js +4 -2
  183. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/searchreplace/plugin.js +108 -103
  184. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/searchreplace/plugin.min.js +4 -2
  185. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/spellchecker/plugin.js +54 -59
  186. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/spellchecker/plugin.min.js +4 -2
  187. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tabfocus/plugin.js +31 -28
  188. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tabfocus/plugin.min.js +4 -2
  189. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/table/plugin.js +4394 -3142
  190. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/table/plugin.min.js +4 -2
  191. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/template/plugin.js +89 -73
  192. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/template/plugin.min.js +4 -2
  193. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textcolor/plugin.js +3 -2
  194. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textcolor/plugin.min.js +4 -2
  195. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textpattern/plugin.js +111 -122
  196. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textpattern/plugin.min.js +4 -2
  197. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/toc/plugin.js +33 -29
  198. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/toc/plugin.min.js +4 -2
  199. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualblocks/plugin.js +12 -11
  200. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualblocks/plugin.min.js +4 -2
  201. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualchars/plugin.js +89 -101
  202. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualchars/plugin.min.js +4 -2
  203. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/wordcount/plugin.js +69 -58
  204. package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/wordcount/plugin.min.js +4 -2
  205. package/src/sap/ui/richtexteditor/js/tiny_mce5/readme.txt +1 -1
  206. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.css +10 -6
  207. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.css +10 -6
  208. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.min.css +1 -1
  209. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.min.css.map +1 -1
  210. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.min.css +1 -1
  211. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.min.css.map +1 -1
  212. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.css +104 -29
  213. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.min.css +1 -1
  214. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.min.css.map +1 -1
  215. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.css +37 -0
  216. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.min.css +8 -0
  217. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.min.css.map +1 -0
  218. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.css +9 -5
  219. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.css +10 -6
  220. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.min.css +1 -1
  221. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
  222. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.min.css +1 -1
  223. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.min.css.map +1 -1
  224. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.css +104 -29
  225. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.min.css +1 -1
  226. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.min.css.map +1 -1
  227. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
  228. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.min.css +8 -0
  229. package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -0
  230. package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/mobile/theme.js +2890 -3335
  231. package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/mobile/theme.min.js +4 -2
  232. package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/silver/theme.js +15720 -15353
  233. package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/silver/theme.min.js +4 -2
  234. package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.d.ts +768 -552
  235. package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.js +6762 -6159
  236. package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.min.js +4 -2
  237. package/src/sap/ui/richtexteditor/js/tiny_mce5/version.txt +1 -1
  238. package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/icons.js +197 -0
  239. package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/icons.min.js +7 -0
  240. package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/index.js +13 -0
  241. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ar.js +7 -0
  242. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/bg_BG.js +7 -0
  243. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ca.js +7 -0
  244. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/cs.js +7 -0
  245. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/cy.js +1 -0
  246. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/da.js +7 -0
  247. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/de.js +7 -0
  248. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/dv.js +1 -0
  249. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/el.js +7 -0
  250. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/en_GB.js +261 -0
  251. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/es.js +7 -0
  252. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/es_MX.js +1 -0
  253. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/et.js +1 -0
  254. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/eu.js +7 -0
  255. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fa.js +7 -0
  256. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fi.js +7 -0
  257. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fr_FR.js +7 -0
  258. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/he_IL.js +7 -0
  259. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hi.js +7 -0
  260. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hr.js +7 -0
  261. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hu_HU.js +7 -0
  262. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/id.js +7 -0
  263. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/it.js +7 -0
  264. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ja.js +7 -0
  265. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/kk.js +7 -0
  266. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ko_KR.js +7 -0
  267. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lt.js +1 -0
  268. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lv.js +1 -0
  269. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ms.js +7 -0
  270. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/nb_NO.js +7 -0
  271. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/nl.js +7 -0
  272. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pl.js +7 -0
  273. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pt_BR.js +7 -0
  274. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pt_PT.js +7 -0
  275. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ro.js +7 -0
  276. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ru.js +7 -0
  277. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sk.js +7 -0
  278. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sl_SI.js +7 -0
  279. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sr.js +1 -0
  280. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sv_SE.js +7 -0
  281. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/th_TH.js +7 -0
  282. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/tr.js +7 -0
  283. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/uk.js +7 -0
  284. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/vi.js +7 -0
  285. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/zh_CN.js +7 -0
  286. package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/zh_TW.js +7 -0
  287. package/src/sap/ui/richtexteditor/js/tiny_mce6/license.txt +5 -0
  288. package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/index.js +13 -0
  289. package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/model.js +8045 -0
  290. package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/model.min.js +9 -0
  291. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/index.js +13 -0
  292. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/plugin.js +1038 -0
  293. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/plugin.min.js +9 -0
  294. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/CHANGELOG.md +110 -0
  295. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/codemirror.min.css +13 -0
  296. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/codemirror.min.js +13 -0
  297. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/customeditor.js +10 -0
  298. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/customeditor.min.js +10 -0
  299. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ar.js +15 -0
  300. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/bg_BG.js +15 -0
  301. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ca.js +15 -0
  302. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/cs.js +15 -0
  303. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/da.js +15 -0
  304. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/de.js +15 -0
  305. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/el.js +15 -0
  306. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/es.js +15 -0
  307. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/eu.js +15 -0
  308. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fa.js +15 -0
  309. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fi.js +15 -0
  310. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fr_FR.js +15 -0
  311. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/he_IL.js +15 -0
  312. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hi.js +15 -0
  313. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hr.js +15 -0
  314. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hu_HU.js +15 -0
  315. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/id.js +15 -0
  316. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/it.js +15 -0
  317. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ja.js +15 -0
  318. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/kk.js +15 -0
  319. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ko_KR.js +15 -0
  320. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ms.js +15 -0
  321. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/nb_NO.js +15 -0
  322. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/nl.js +15 -0
  323. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pl.js +15 -0
  324. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pt_BR.js +15 -0
  325. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pt_PT.js +15 -0
  326. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ro.js +15 -0
  327. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ru.js +15 -0
  328. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sk.js +15 -0
  329. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sl_SI.js +15 -0
  330. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sv_SE.js +15 -0
  331. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/th_TH.js +15 -0
  332. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/tr.js +15 -0
  333. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/uk.js +15 -0
  334. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/vi.js +15 -0
  335. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/zh_CN.js +15 -0
  336. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/zh_TW.js +15 -0
  337. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/license.txt +5 -0
  338. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/plugin.js +10 -0
  339. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/plugin.min.js +10 -0
  340. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/readme.txt +10 -0
  341. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/version.txt +1 -0
  342. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/index.js +13 -0
  343. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/plugin.js +264 -0
  344. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/plugin.min.js +9 -0
  345. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/index.js +13 -0
  346. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/plugin.js +219 -0
  347. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/plugin.min.js +9 -0
  348. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/index.js +13 -0
  349. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/plugin.js +233 -0
  350. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/plugin.min.js +9 -0
  351. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/index.js +13 -0
  352. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/plugin.js +197 -0
  353. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/plugin.min.js +9 -0
  354. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/index.js +13 -0
  355. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/plugin.js +238 -0
  356. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/plugin.min.js +9 -0
  357. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/index.js +13 -0
  358. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/plugin.js +1663 -0
  359. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/plugin.min.js +9 -0
  360. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/index.js +13 -0
  361. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/plugin.js +90 -0
  362. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/plugin.min.js +9 -0
  363. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/index.js +13 -0
  364. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/plugin.js +2468 -0
  365. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/plugin.min.js +9 -0
  366. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/index.js +13 -0
  367. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/plugin.js +400 -0
  368. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/plugin.min.js +9 -0
  369. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/index.js +13 -0
  370. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojiimages.js +7 -0
  371. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojiimages.min.js +9 -0
  372. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojis.js +7 -0
  373. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojis.min.js +8 -0
  374. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/plugin.js +600 -0
  375. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/plugin.min.js +9 -0
  376. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/index.js +13 -0
  377. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/plugin.js +1201 -0
  378. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/plugin.min.js +9 -0
  379. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/index.js +13 -0
  380. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ar.js +96 -0
  381. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/bg_BG.js +96 -0
  382. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ca.js +96 -0
  383. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/cs.js +96 -0
  384. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/da.js +96 -0
  385. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/de.js +96 -0
  386. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/el.js +96 -0
  387. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/en.js +96 -0
  388. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/es.js +96 -0
  389. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/eu.js +96 -0
  390. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fa.js +96 -0
  391. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fi.js +96 -0
  392. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fr_FR.js +96 -0
  393. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/he_IL.js +96 -0
  394. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hi.js +96 -0
  395. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hr.js +96 -0
  396. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hu_HU.js +96 -0
  397. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/id.js +96 -0
  398. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/it.js +96 -0
  399. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ja.js +96 -0
  400. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/kk.js +96 -0
  401. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ko_KR.js +96 -0
  402. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ms.js +96 -0
  403. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/nb_NO.js +96 -0
  404. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/nl.js +96 -0
  405. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pl.js +96 -0
  406. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pt_BR.js +96 -0
  407. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pt_PT.js +96 -0
  408. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ro.js +96 -0
  409. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ru.js +96 -0
  410. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sk.js +96 -0
  411. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sl_SI.js +96 -0
  412. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sv_SE.js +96 -0
  413. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/th_TH.js +96 -0
  414. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/tr.js +96 -0
  415. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/uk.js +96 -0
  416. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/vi.js +96 -0
  417. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/zh_CN.js +90 -0
  418. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/zh_TW.js +96 -0
  419. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/plugin.js +898 -0
  420. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/plugin.min.js +9 -0
  421. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/index.js +13 -0
  422. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/plugin.js +1509 -0
  423. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/plugin.min.js +9 -0
  424. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/index.js +13 -0
  425. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/plugin.js +349 -0
  426. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/plugin.min.js +9 -0
  427. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/index.js +13 -0
  428. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/plugin.js +192 -0
  429. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/plugin.min.js +9 -0
  430. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/index.js +13 -0
  431. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/plugin.js +1246 -0
  432. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/plugin.min.js +9 -0
  433. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/index.js +13 -0
  434. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/plugin.js +1953 -0
  435. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/plugin.min.js +9 -0
  436. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/index.js +13 -0
  437. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/plugin.js +1240 -0
  438. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/plugin.min.js +9 -0
  439. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/index.js +13 -0
  440. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/plugin.js +128 -0
  441. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/plugin.min.js +9 -0
  442. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/index.js +13 -0
  443. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/plugin.js +122 -0
  444. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/plugin.min.js +9 -0
  445. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/CHANGELOG.md +402 -0
  446. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/js/wordimport.js +3498 -0
  447. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ar.js +20 -0
  448. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/bg_BG.js +20 -0
  449. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ca.js +20 -0
  450. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/cs.js +20 -0
  451. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/da.js +20 -0
  452. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/de.js +20 -0
  453. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/el.js +20 -0
  454. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/es.js +20 -0
  455. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/eu.js +20 -0
  456. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fa.js +20 -0
  457. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fi.js +20 -0
  458. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fr_FR.js +20 -0
  459. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/he_IL.js +20 -0
  460. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hi.js +20 -0
  461. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hr.js +20 -0
  462. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hu_HU.js +20 -0
  463. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/id.js +20 -0
  464. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/it.js +20 -0
  465. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ja.js +20 -0
  466. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/kk.js +20 -0
  467. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ko_KR.js +20 -0
  468. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ms.js +20 -0
  469. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/nb_NO.js +20 -0
  470. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/nl.js +20 -0
  471. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pl.js +20 -0
  472. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pt_BR.js +20 -0
  473. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pt_PT.js +20 -0
  474. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ro.js +20 -0
  475. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ru.js +20 -0
  476. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sk.js +20 -0
  477. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sl_SI.js +20 -0
  478. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sv_SE.js +20 -0
  479. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/th_TH.js +20 -0
  480. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/tr.js +20 -0
  481. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/uk.js +20 -0
  482. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/vi.js +20 -0
  483. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/zh_CN.js +20 -0
  484. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/zh_TW.js +20 -0
  485. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/license.txt +5 -0
  486. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/plugin.js +10 -0
  487. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/plugin.min.js +10 -0
  488. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/readme.txt +10 -0
  489. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/version.txt +1 -0
  490. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/index.js +13 -0
  491. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/plugin.js +102 -0
  492. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/plugin.min.js +9 -0
  493. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/index.js +13 -0
  494. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/plugin.js +443 -0
  495. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/plugin.min.js +9 -0
  496. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/index.js +13 -0
  497. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/plugin.js +123 -0
  498. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/plugin.min.js +9 -0
  499. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/index.js +13 -0
  500. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/plugin.js +1098 -0
  501. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/plugin.min.js +9 -0
  502. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/index.js +13 -0
  503. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/plugin.js +3467 -0
  504. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/plugin.min.js +9 -0
  505. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/index.js +13 -0
  506. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/plugin.js +572 -0
  507. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/plugin.min.js +9 -0
  508. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/index.js +13 -0
  509. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/plugin.js +103 -0
  510. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/plugin.min.js +9 -0
  511. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/index.js +13 -0
  512. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/plugin.js +565 -0
  513. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/plugin.min.js +9 -0
  514. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/index.js +13 -0
  515. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/plugin.js +410 -0
  516. package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/plugin.min.js +9 -0
  517. package/src/sap/ui/richtexteditor/js/tiny_mce6/readme.txt +12 -0
  518. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/dark/content.css +72 -0
  519. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/dark/content.min.css +7 -0
  520. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.css +67 -0
  521. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.min.css +7 -0
  522. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/document/content.css +72 -0
  523. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/document/content.min.css +7 -0
  524. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5/content.css +67 -0
  525. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5/content.min.css +7 -0
  526. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5-dark/content.css +72 -0
  527. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5-dark/content.min.css +7 -0
  528. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/writer/content.css +68 -0
  529. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/writer/content.min.css +7 -0
  530. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.css +791 -0
  531. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.css +785 -0
  532. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.min.css +7 -0
  533. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.min.css +7 -0
  534. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.css +3694 -0
  535. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.min.css +7 -0
  536. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.shadowdom.css +36 -0
  537. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.shadowdom.min.css +7 -0
  538. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.css +772 -0
  539. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.css +785 -0
  540. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.min.css +7 -0
  541. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.min.css +7 -0
  542. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.css +3697 -0
  543. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.min.css +7 -0
  544. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.shadowdom.css +36 -0
  545. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
  546. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.css +791 -0
  547. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.css +785 -0
  548. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.min.css +7 -0
  549. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.min.css +7 -0
  550. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.css +3788 -0
  551. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.min.css +7 -0
  552. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.shadowdom.css +36 -0
  553. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.shadowdom.min.css +7 -0
  554. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.css +772 -0
  555. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.css +785 -0
  556. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.min.css +7 -0
  557. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.min.css +7 -0
  558. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.css +3788 -0
  559. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.min.css +7 -0
  560. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.shadowdom.css +36 -0
  561. package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +7 -0
  562. package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/index.js +13 -0
  563. package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/theme.js +30172 -0
  564. package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/theme.min.js +9 -0
  565. package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.d.ts +3206 -0
  566. package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.js +31303 -0
  567. package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.min.js +9 -0
  568. package/src/sap/ui/richtexteditor/js/tiny_mce6/version.txt +1 -0
  569. package/src/sap/ui/richtexteditor/library.js +64 -27
  570. package/src/sap/ui/richtexteditor/messagebundle_ar.properties +54 -0
  571. package/src/sap/ui/richtexteditor/messagebundle_bg.properties +54 -0
  572. package/src/sap/ui/richtexteditor/messagebundle_ca.properties +54 -0
  573. package/src/sap/ui/richtexteditor/messagebundle_cnr.properties +105 -0
  574. package/src/sap/ui/richtexteditor/messagebundle_cs.properties +54 -0
  575. package/src/sap/ui/richtexteditor/messagebundle_cy.properties +54 -0
  576. package/src/sap/ui/richtexteditor/messagebundle_da.properties +54 -0
  577. package/src/sap/ui/richtexteditor/messagebundle_de.properties +54 -0
  578. package/src/sap/ui/richtexteditor/messagebundle_el.properties +54 -0
  579. package/src/sap/ui/richtexteditor/messagebundle_en.properties +54 -0
  580. package/src/sap/ui/richtexteditor/messagebundle_en_GB.properties +54 -0
  581. package/src/sap/ui/richtexteditor/messagebundle_en_US_saprigi.properties +106 -52
  582. package/src/sap/ui/richtexteditor/messagebundle_es.properties +54 -0
  583. package/src/sap/ui/richtexteditor/messagebundle_es_MX.properties +54 -0
  584. package/src/sap/ui/richtexteditor/messagebundle_et.properties +54 -0
  585. package/src/sap/ui/richtexteditor/messagebundle_fi.properties +54 -0
  586. package/src/sap/ui/richtexteditor/messagebundle_fr.properties +54 -0
  587. package/src/sap/ui/richtexteditor/messagebundle_fr_CA.properties +54 -0
  588. package/src/sap/ui/richtexteditor/messagebundle_hi.properties +54 -0
  589. package/src/sap/ui/richtexteditor/messagebundle_hr.properties +54 -0
  590. package/src/sap/ui/richtexteditor/messagebundle_hu.properties +54 -0
  591. package/src/sap/ui/richtexteditor/messagebundle_id.properties +54 -0
  592. package/src/sap/ui/richtexteditor/messagebundle_it.properties +54 -0
  593. package/src/sap/ui/richtexteditor/messagebundle_iw.properties +54 -0
  594. package/src/sap/ui/richtexteditor/messagebundle_ja.properties +54 -0
  595. package/src/sap/ui/richtexteditor/messagebundle_kk.properties +54 -0
  596. package/src/sap/ui/richtexteditor/messagebundle_ko.properties +54 -0
  597. package/src/sap/ui/richtexteditor/messagebundle_lt.properties +54 -0
  598. package/src/sap/ui/richtexteditor/messagebundle_lv.properties +54 -0
  599. package/src/sap/ui/richtexteditor/messagebundle_ms.properties +54 -0
  600. package/src/sap/ui/richtexteditor/messagebundle_nl.properties +54 -0
  601. package/src/sap/ui/richtexteditor/messagebundle_no.properties +54 -0
  602. package/src/sap/ui/richtexteditor/messagebundle_pl.properties +54 -0
  603. package/src/sap/ui/richtexteditor/messagebundle_pt.properties +54 -0
  604. package/src/sap/ui/richtexteditor/messagebundle_pt_PT.properties +54 -0
  605. package/src/sap/ui/richtexteditor/messagebundle_ro.properties +54 -0
  606. package/src/sap/ui/richtexteditor/messagebundle_ru.properties +54 -0
  607. package/src/sap/ui/richtexteditor/messagebundle_sh.properties +54 -0
  608. package/src/sap/ui/richtexteditor/messagebundle_sk.properties +54 -0
  609. package/src/sap/ui/richtexteditor/messagebundle_sl.properties +54 -0
  610. package/src/sap/ui/richtexteditor/messagebundle_sr.properties +54 -0
  611. package/src/sap/ui/richtexteditor/messagebundle_sv.properties +54 -0
  612. package/src/sap/ui/richtexteditor/messagebundle_th.properties +54 -0
  613. package/src/sap/ui/richtexteditor/messagebundle_tr.properties +54 -0
  614. package/src/sap/ui/richtexteditor/messagebundle_uk.properties +54 -0
  615. package/src/sap/ui/richtexteditor/messagebundle_vi.properties +54 -0
  616. package/src/sap/ui/richtexteditor/messagebundle_zh_CN.properties +54 -0
  617. package/src/sap/ui/richtexteditor/messagebundle_zh_TW.properties +54 -0
  618. package/src/sap/ui/richtexteditor/themes/base/RichTextEditor.less +25 -84
  619. package/src/sap/ui/richtexteditor/themes/sap_belize/RichTextEditor.less +33 -0
  620. package/src/sap/ui/richtexteditor/themes/sap_belize/library.source.less +3 -1
  621. package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/RichTextEditor.less +29 -0
  622. package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/library.source.less +2 -0
  623. package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/RichTextEditor.less +30 -0
  624. package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/library.source.less +2 -0
  625. package/src/sap/ui/richtexteditor/themes/sap_fiori_3/RichTextEditor.less +4 -5
  626. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_dark/RichTextEditor.less +4 -5
  627. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcb/RichTextEditor.less +4 -5
  628. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcw/RichTextEditor.less +4 -5
  629. package/src/sap/ui/richtexteditor/themes/sap_horizon/RichTextEditor.less +15 -30
@@ -1,4 +1,6 @@
1
-
1
+ /**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ */
2
4
  (function () {
3
5
  'use strict';
4
6
 
@@ -16,9 +18,40 @@
16
18
  };
17
19
  };
18
20
 
19
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
21
+ var global$5 = tinymce.util.Tools.resolve('tinymce.PluginManager');
20
22
 
21
- var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
23
+ var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');
24
+
25
+ var typeOf = function (x) {
26
+ var t = typeof x;
27
+ if (x === null) {
28
+ return 'null';
29
+ } else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
30
+ return 'array';
31
+ } else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
32
+ return 'string';
33
+ } else {
34
+ return t;
35
+ }
36
+ };
37
+ var isType = function (type) {
38
+ return function (value) {
39
+ return typeOf(value) === type;
40
+ };
41
+ };
42
+ var isSimpleType = function (type) {
43
+ return function (value) {
44
+ return typeof value === type;
45
+ };
46
+ };
47
+ var isArray = isType('array');
48
+ var isNullable = function (a) {
49
+ return a === null || a === undefined;
50
+ };
51
+ var isNonNullable = function (a) {
52
+ return !isNullable(a);
53
+ };
54
+ var isFunction = isSimpleType('function');
22
55
 
23
56
  var noop = function () {
24
57
  };
@@ -27,6 +60,9 @@
27
60
  return value;
28
61
  };
29
62
  };
63
+ var identity = function (x) {
64
+ return x;
65
+ };
30
66
  var never = constant(false);
31
67
  var always = constant(true);
32
68
 
@@ -34,20 +70,14 @@
34
70
  return NONE;
35
71
  };
36
72
  var NONE = function () {
37
- var eq = function (o) {
38
- return o.isNone();
39
- };
40
73
  var call = function (thunk) {
41
74
  return thunk();
42
75
  };
43
- var id = function (n) {
44
- return n;
45
- };
76
+ var id = identity;
46
77
  var me = {
47
78
  fold: function (n, _s) {
48
79
  return n();
49
80
  },
50
- is: never,
51
81
  isSome: never,
52
82
  isNone: always,
53
83
  getOr: id,
@@ -64,9 +94,9 @@
64
94
  bind: none,
65
95
  exists: never,
66
96
  forall: always,
67
- filter: none,
68
- equals: eq,
69
- equals_: eq,
97
+ filter: function () {
98
+ return none();
99
+ },
70
100
  toArray: function () {
71
101
  return [];
72
102
  },
@@ -86,9 +116,6 @@
86
116
  fold: function (n, s) {
87
117
  return s(a);
88
118
  },
89
- is: function (v) {
90
- return a === v;
91
- },
92
119
  isSome: always,
93
120
  isNone: never,
94
121
  getOr: constant_a,
@@ -115,14 +142,6 @@
115
142
  },
116
143
  toString: function () {
117
144
  return 'some(' + a + ')';
118
- },
119
- equals: function (o) {
120
- return o.is(a);
121
- },
122
- equals_: function (o, elementEq) {
123
- return o.fold(never, function (b) {
124
- return elementEq(a, b);
125
- });
126
145
  }
127
146
  };
128
147
  return me;
@@ -136,254 +155,279 @@
136
155
  from: from
137
156
  };
138
157
 
139
- var isSimpleType = function (type) {
140
- return function (value) {
141
- return typeof value === type;
142
- };
143
- };
144
- var isNullable = function (a) {
145
- return a === null || a === undefined;
146
- };
147
- var isNonNullable = function (a) {
148
- return !isNullable(a);
149
- };
150
- var isFunction = isSimpleType('function');
158
+ var exports$1 = {}, module = { exports: exports$1 };
159
+ (function (define, exports, module, require) {
160
+ (function (global, factory) {
161
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EphoxContactWrapper = factory());
162
+ }(this, function () {
163
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
164
+ var promise = { exports: {} };
165
+ (function (module) {
166
+ (function (root) {
167
+ var setTimeoutFunc = setTimeout;
168
+ function noop() {
169
+ }
170
+ function bind(fn, thisArg) {
171
+ return function () {
172
+ fn.apply(thisArg, arguments);
173
+ };
174
+ }
175
+ function Promise(fn) {
176
+ if (typeof this !== 'object')
177
+ throw new TypeError('Promises must be constructed via new');
178
+ if (typeof fn !== 'function')
179
+ throw new TypeError('not a function');
180
+ this._state = 0;
181
+ this._handled = false;
182
+ this._value = undefined;
183
+ this._deferreds = [];
184
+ doResolve(fn, this);
185
+ }
186
+ function handle(self, deferred) {
187
+ while (self._state === 3) {
188
+ self = self._value;
189
+ }
190
+ if (self._state === 0) {
191
+ self._deferreds.push(deferred);
192
+ return;
193
+ }
194
+ self._handled = true;
195
+ Promise._immediateFn(function () {
196
+ var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
197
+ if (cb === null) {
198
+ (self._state === 1 ? resolve : reject)(deferred.promise, self._value);
199
+ return;
200
+ }
201
+ var ret;
202
+ try {
203
+ ret = cb(self._value);
204
+ } catch (e) {
205
+ reject(deferred.promise, e);
206
+ return;
207
+ }
208
+ resolve(deferred.promise, ret);
209
+ });
210
+ }
211
+ function resolve(self, newValue) {
212
+ try {
213
+ if (newValue === self)
214
+ throw new TypeError('A promise cannot be resolved with itself.');
215
+ if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {
216
+ var then = newValue.then;
217
+ if (newValue instanceof Promise) {
218
+ self._state = 3;
219
+ self._value = newValue;
220
+ finale(self);
221
+ return;
222
+ } else if (typeof then === 'function') {
223
+ doResolve(bind(then, newValue), self);
224
+ return;
225
+ }
226
+ }
227
+ self._state = 1;
228
+ self._value = newValue;
229
+ finale(self);
230
+ } catch (e) {
231
+ reject(self, e);
232
+ }
233
+ }
234
+ function reject(self, newValue) {
235
+ self._state = 2;
236
+ self._value = newValue;
237
+ finale(self);
238
+ }
239
+ function finale(self) {
240
+ if (self._state === 2 && self._deferreds.length === 0) {
241
+ Promise._immediateFn(function () {
242
+ if (!self._handled) {
243
+ Promise._unhandledRejectionFn(self._value);
244
+ }
245
+ });
246
+ }
247
+ for (var i = 0, len = self._deferreds.length; i < len; i++) {
248
+ handle(self, self._deferreds[i]);
249
+ }
250
+ self._deferreds = null;
251
+ }
252
+ function Handler(onFulfilled, onRejected, promise) {
253
+ this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
254
+ this.onRejected = typeof onRejected === 'function' ? onRejected : null;
255
+ this.promise = promise;
256
+ }
257
+ function doResolve(fn, self) {
258
+ var done = false;
259
+ try {
260
+ fn(function (value) {
261
+ if (done)
262
+ return;
263
+ done = true;
264
+ resolve(self, value);
265
+ }, function (reason) {
266
+ if (done)
267
+ return;
268
+ done = true;
269
+ reject(self, reason);
270
+ });
271
+ } catch (ex) {
272
+ if (done)
273
+ return;
274
+ done = true;
275
+ reject(self, ex);
276
+ }
277
+ }
278
+ Promise.prototype['catch'] = function (onRejected) {
279
+ return this.then(null, onRejected);
280
+ };
281
+ Promise.prototype.then = function (onFulfilled, onRejected) {
282
+ var prom = new this.constructor(noop);
283
+ handle(this, new Handler(onFulfilled, onRejected, prom));
284
+ return prom;
285
+ };
286
+ Promise.all = function (arr) {
287
+ var args = Array.prototype.slice.call(arr);
288
+ return new Promise(function (resolve, reject) {
289
+ if (args.length === 0)
290
+ return resolve([]);
291
+ var remaining = args.length;
292
+ function res(i, val) {
293
+ try {
294
+ if (val && (typeof val === 'object' || typeof val === 'function')) {
295
+ var then = val.then;
296
+ if (typeof then === 'function') {
297
+ then.call(val, function (val) {
298
+ res(i, val);
299
+ }, reject);
300
+ return;
301
+ }
302
+ }
303
+ args[i] = val;
304
+ if (--remaining === 0) {
305
+ resolve(args);
306
+ }
307
+ } catch (ex) {
308
+ reject(ex);
309
+ }
310
+ }
311
+ for (var i = 0; i < args.length; i++) {
312
+ res(i, args[i]);
313
+ }
314
+ });
315
+ };
316
+ Promise.resolve = function (value) {
317
+ if (value && typeof value === 'object' && value.constructor === Promise) {
318
+ return value;
319
+ }
320
+ return new Promise(function (resolve) {
321
+ resolve(value);
322
+ });
323
+ };
324
+ Promise.reject = function (value) {
325
+ return new Promise(function (resolve, reject) {
326
+ reject(value);
327
+ });
328
+ };
329
+ Promise.race = function (values) {
330
+ return new Promise(function (resolve, reject) {
331
+ for (var i = 0, len = values.length; i < len; i++) {
332
+ values[i].then(resolve, reject);
333
+ }
334
+ });
335
+ };
336
+ Promise._immediateFn = typeof setImmediate === 'function' ? function (fn) {
337
+ setImmediate(fn);
338
+ } : function (fn) {
339
+ setTimeoutFunc(fn, 0);
340
+ };
341
+ Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {
342
+ if (typeof console !== 'undefined' && console) {
343
+ console.warn('Possible Unhandled Promise Rejection:', err);
344
+ }
345
+ };
346
+ Promise._setImmediateFn = function _setImmediateFn(fn) {
347
+ Promise._immediateFn = fn;
348
+ };
349
+ Promise._setUnhandledRejectionFn = function _setUnhandledRejectionFn(fn) {
350
+ Promise._unhandledRejectionFn = fn;
351
+ };
352
+ if (module.exports) {
353
+ module.exports = Promise;
354
+ } else if (!root.Promise) {
355
+ root.Promise = Promise;
356
+ }
357
+ }(commonjsGlobal));
358
+ }(promise));
359
+ var promisePolyfill = promise.exports;
360
+ var Global = function () {
361
+ if (typeof window !== 'undefined') {
362
+ return window;
363
+ } else {
364
+ return Function('return this;')();
365
+ }
366
+ }();
367
+ var promisePolyfill_1 = { boltExport: Global.Promise || promisePolyfill };
368
+ return promisePolyfill_1;
369
+ }));
370
+ }(undefined, exports$1, module));
371
+ var Promise$1 = module.exports.boltExport;
151
372
 
152
- function create(width, height) {
373
+ var create$1 = function (width, height) {
153
374
  return resize(document.createElement('canvas'), width, height);
154
- }
155
- function clone(canvas) {
156
- var tCanvas = create(canvas.width, canvas.height);
375
+ };
376
+ var clone = function (canvas) {
377
+ var tCanvas = create$1(canvas.width, canvas.height);
157
378
  var ctx = get2dContext(tCanvas);
158
379
  ctx.drawImage(canvas, 0, 0);
159
380
  return tCanvas;
160
- }
161
- function get2dContext(canvas) {
381
+ };
382
+ var get2dContext = function (canvas) {
162
383
  return canvas.getContext('2d');
163
- }
164
- function resize(canvas, width, height) {
384
+ };
385
+ var resize = function (canvas, width, height) {
165
386
  canvas.width = width;
166
387
  canvas.height = height;
167
388
  return canvas;
168
- }
389
+ };
169
390
 
170
- function getWidth(image) {
391
+ var getWidth = function (image) {
171
392
  return image.naturalWidth || image.width;
172
- }
173
- function getHeight(image) {
393
+ };
394
+ var getHeight = function (image) {
174
395
  return image.naturalHeight || image.height;
175
- }
176
-
177
- var promise = function () {
178
- var Promise = function (fn) {
179
- if (typeof this !== 'object') {
180
- throw new TypeError('Promises must be constructed via new');
181
- }
182
- if (typeof fn !== 'function') {
183
- throw new TypeError('not a function');
184
- }
185
- this._state = null;
186
- this._value = null;
187
- this._deferreds = [];
188
- doResolve(fn, bind(resolve, this), bind(reject, this));
189
- };
190
- var anyWindow = window;
191
- var asap = Promise.immediateFn || typeof anyWindow.setImmediate === 'function' && anyWindow.setImmediate || function (fn) {
192
- setTimeout(fn, 1);
193
- };
194
- function bind(fn, thisArg) {
195
- return function () {
196
- return fn.apply(thisArg, arguments);
197
- };
198
- }
199
- var isArray = Array.isArray || function (value) {
200
- return Object.prototype.toString.call(value) === '[object Array]';
201
- };
202
- function handle(deferred) {
203
- var me = this;
204
- if (this._state === null) {
205
- this._deferreds.push(deferred);
206
- return;
207
- }
208
- asap(function () {
209
- var cb = me._state ? deferred.onFulfilled : deferred.onRejected;
210
- if (cb === null) {
211
- (me._state ? deferred.resolve : deferred.reject)(me._value);
212
- return;
213
- }
214
- var ret;
215
- try {
216
- ret = cb(me._value);
217
- } catch (e) {
218
- deferred.reject(e);
219
- return;
220
- }
221
- deferred.resolve(ret);
222
- });
223
- }
224
- function resolve(newValue) {
225
- try {
226
- if (newValue === this) {
227
- throw new TypeError('A promise cannot be resolved with itself.');
228
- }
229
- if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {
230
- var then = newValue.then;
231
- if (typeof then === 'function') {
232
- doResolve(bind(then, newValue), bind(resolve, this), bind(reject, this));
233
- return;
234
- }
235
- }
236
- this._state = true;
237
- this._value = newValue;
238
- finale.call(this);
239
- } catch (e) {
240
- reject.call(this, e);
241
- }
242
- }
243
- function reject(newValue) {
244
- this._state = false;
245
- this._value = newValue;
246
- finale.call(this);
247
- }
248
- function finale() {
249
- for (var _i = 0, _a = this._deferreds; _i < _a.length; _i++) {
250
- var deferred = _a[_i];
251
- handle.call(this, deferred);
252
- }
253
- this._deferreds = [];
254
- }
255
- function Handler(onFulfilled, onRejected, resolve, reject) {
256
- this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
257
- this.onRejected = typeof onRejected === 'function' ? onRejected : null;
258
- this.resolve = resolve;
259
- this.reject = reject;
260
- }
261
- function doResolve(fn, onFulfilled, onRejected) {
262
- var done = false;
263
- try {
264
- fn(function (value) {
265
- if (done) {
266
- return;
267
- }
268
- done = true;
269
- onFulfilled(value);
270
- }, function (reason) {
271
- if (done) {
272
- return;
273
- }
274
- done = true;
275
- onRejected(reason);
276
- });
277
- } catch (ex) {
278
- if (done) {
279
- return;
280
- }
281
- done = true;
282
- onRejected(ex);
283
- }
284
- }
285
- Promise.prototype.catch = function (onRejected) {
286
- return this.then(null, onRejected);
287
- };
288
- Promise.prototype.then = function (onFulfilled, onRejected) {
289
- var me = this;
290
- return new Promise(function (resolve, reject) {
291
- handle.call(me, new Handler(onFulfilled, onRejected, resolve, reject));
292
- });
293
- };
294
- Promise.all = function () {
295
- var values = [];
296
- for (var _i = 0; _i < arguments.length; _i++) {
297
- values[_i] = arguments[_i];
298
- }
299
- var args = Array.prototype.slice.call(values.length === 1 && isArray(values[0]) ? values[0] : values);
300
- return new Promise(function (resolve, reject) {
301
- if (args.length === 0) {
302
- return resolve([]);
303
- }
304
- var remaining = args.length;
305
- function res(i, val) {
306
- try {
307
- if (val && (typeof val === 'object' || typeof val === 'function')) {
308
- var then = val.then;
309
- if (typeof then === 'function') {
310
- then.call(val, function (val) {
311
- res(i, val);
312
- }, reject);
313
- return;
314
- }
315
- }
316
- args[i] = val;
317
- if (--remaining === 0) {
318
- resolve(args);
319
- }
320
- } catch (ex) {
321
- reject(ex);
322
- }
323
- }
324
- for (var i = 0; i < args.length; i++) {
325
- res(i, args[i]);
326
- }
327
- });
328
- };
329
- Promise.resolve = function (value) {
330
- if (value && typeof value === 'object' && value.constructor === Promise) {
331
- return value;
332
- }
333
- return new Promise(function (resolve) {
334
- resolve(value);
335
- });
336
- };
337
- Promise.reject = function (reason) {
338
- return new Promise(function (resolve, reject) {
339
- reject(reason);
340
- });
341
- };
342
- Promise.race = function (values) {
343
- return new Promise(function (resolve, reject) {
344
- for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
345
- var value = values_1[_i];
346
- value.then(resolve, reject);
347
- }
348
- });
349
- };
350
- return Promise;
351
396
  };
352
- var Promise = window.Promise ? window.Promise : promise();
353
397
 
354
- function imageToBlob(image) {
398
+ var imageToBlob$2 = function (image) {
355
399
  var src = image.src;
356
400
  if (src.indexOf('data:') === 0) {
357
401
  return dataUriToBlob(src);
358
402
  }
359
403
  return anyUriToBlob(src);
360
- }
361
- function blobToImage(blob) {
362
- return new Promise(function (resolve, reject) {
404
+ };
405
+ var blobToImage$1 = function (blob) {
406
+ return new Promise$1(function (resolve, reject) {
363
407
  var blobUrl = URL.createObjectURL(blob);
364
408
  var image = new Image();
365
409
  var removeListeners = function () {
366
410
  image.removeEventListener('load', loaded);
367
411
  image.removeEventListener('error', error);
368
412
  };
369
- function loaded() {
413
+ var loaded = function () {
370
414
  removeListeners();
371
415
  resolve(image);
372
- }
373
- function error() {
416
+ };
417
+ var error = function () {
374
418
  removeListeners();
375
419
  reject('Unable to load data of type ' + blob.type + ': ' + blobUrl);
376
- }
420
+ };
377
421
  image.addEventListener('load', loaded);
378
422
  image.addEventListener('error', error);
379
423
  image.src = blobUrl;
380
424
  if (image.complete) {
381
- loaded();
425
+ setTimeout(loaded, 0);
382
426
  }
383
427
  });
384
- }
385
- function anyUriToBlob(url) {
386
- return new Promise(function (resolve, reject) {
428
+ };
429
+ var anyUriToBlob = function (url) {
430
+ return new Promise$1(function (resolve, reject) {
387
431
  var xhr = new XMLHttpRequest();
388
432
  xhr.open('GET', url, true);
389
433
  xhr.responseType = 'blob';
@@ -407,8 +451,8 @@
407
451
  };
408
452
  xhr.send();
409
453
  });
410
- }
411
- function dataUriToBlobSync(uri) {
454
+ };
455
+ var dataUriToBlobSync = function (uri) {
412
456
  var data = uri.split(',');
413
457
  var matches = /data:([^;]+)/.exec(data[0]);
414
458
  if (!matches) {
@@ -431,18 +475,18 @@
431
475
  byteArrays[sliceIndex] = new Uint8Array(bytes);
432
476
  }
433
477
  return Optional.some(new Blob(byteArrays, { type: mimetype }));
434
- }
435
- function dataUriToBlob(uri) {
436
- return new Promise(function (resolve, reject) {
478
+ };
479
+ var dataUriToBlob = function (uri) {
480
+ return new Promise$1(function (resolve, reject) {
437
481
  dataUriToBlobSync(uri).fold(function () {
438
482
  reject('uri is not base64: ' + uri);
439
483
  }, resolve);
440
484
  });
441
- }
442
- function canvasToBlob(canvas, type, quality) {
485
+ };
486
+ var canvasToBlob = function (canvas, type, quality) {
443
487
  type = type || 'image/png';
444
488
  if (isFunction(HTMLCanvasElement.prototype.toBlob)) {
445
- return new Promise(function (resolve, reject) {
489
+ return new Promise$1(function (resolve, reject) {
446
490
  canvas.toBlob(function (blob) {
447
491
  if (blob) {
448
492
  resolve(blob);
@@ -454,49 +498,66 @@
454
498
  } else {
455
499
  return dataUriToBlob(canvas.toDataURL(type, quality));
456
500
  }
457
- }
458
- function canvasToDataURL(canvas, type, quality) {
501
+ };
502
+ var canvasToDataURL = function (canvas, type, quality) {
459
503
  type = type || 'image/png';
460
504
  return canvas.toDataURL(type, quality);
461
- }
462
- function blobToCanvas(blob) {
463
- return blobToImage(blob).then(function (image) {
505
+ };
506
+ var blobToCanvas = function (blob) {
507
+ return blobToImage$1(blob).then(function (image) {
464
508
  revokeImageUrl(image);
465
- var canvas = create(getWidth(image), getHeight(image));
509
+ var canvas = create$1(getWidth(image), getHeight(image));
466
510
  var context = get2dContext(canvas);
467
511
  context.drawImage(image, 0, 0);
468
512
  return canvas;
469
513
  });
470
- }
471
- function blobToDataUri(blob) {
472
- return new Promise(function (resolve) {
514
+ };
515
+ var blobToDataUri = function (blob) {
516
+ return new Promise$1(function (resolve) {
473
517
  var reader = new FileReader();
474
518
  reader.onloadend = function () {
475
519
  resolve(reader.result);
476
520
  };
477
521
  reader.readAsDataURL(blob);
478
522
  });
479
- }
480
- function revokeImageUrl(image) {
523
+ };
524
+ var revokeImageUrl = function (image) {
481
525
  URL.revokeObjectURL(image.src);
482
- }
526
+ };
483
527
 
484
- var blobToImage$1 = function (blob) {
485
- return blobToImage(blob);
528
+ var blobToImage = function (blob) {
529
+ return blobToImage$1(blob);
486
530
  };
487
531
  var imageToBlob$1 = function (image) {
488
- return imageToBlob(image);
532
+ return imageToBlob$2(image);
489
533
  };
490
534
 
491
- var each = function (xs, f) {
535
+ var nativeIndexOf = Array.prototype.indexOf;
536
+ var rawIndexOf = function (ts, t) {
537
+ return nativeIndexOf.call(ts, t);
538
+ };
539
+ var contains = function (xs, x) {
540
+ return rawIndexOf(xs, x) > -1;
541
+ };
542
+ var each$1 = function (xs, f) {
492
543
  for (var i = 0, len = xs.length; i < len; i++) {
493
544
  var x = xs[i];
494
545
  f(x, i);
495
546
  }
496
547
  };
548
+ var filter = function (xs, pred) {
549
+ var r = [];
550
+ for (var i = 0, len = xs.length; i < len; i++) {
551
+ var x = xs[i];
552
+ if (pred(x, i)) {
553
+ r.push(x);
554
+ }
555
+ }
556
+ return r;
557
+ };
497
558
  var foldl = function (xs, f, acc) {
498
- each(xs, function (x) {
499
- acc = f(acc, x);
559
+ each$1(xs, function (x, i) {
560
+ acc = f(acc, x, i);
500
561
  });
501
562
  return acc;
502
563
  };
@@ -514,35 +575,154 @@
514
575
  var find = function (xs, pred) {
515
576
  return findUntil(xs, pred, never);
516
577
  };
578
+ var forall = function (xs, pred) {
579
+ for (var i = 0, len = xs.length; i < len; ++i) {
580
+ var x = xs[i];
581
+ if (pred(x, i) !== true) {
582
+ return false;
583
+ }
584
+ }
585
+ return true;
586
+ };
517
587
 
518
- function create$1(getCanvas, blob, uri) {
588
+ var keys = Object.keys;
589
+ var each = function (obj, f) {
590
+ var props = keys(obj);
591
+ for (var k = 0, len = props.length; k < len; k++) {
592
+ var i = props[k];
593
+ var x = obj[i];
594
+ f(x, i);
595
+ }
596
+ };
597
+
598
+ var generate = function (cases) {
599
+ if (!isArray(cases)) {
600
+ throw new Error('cases must be an array');
601
+ }
602
+ if (cases.length === 0) {
603
+ throw new Error('there must be at least one case');
604
+ }
605
+ var constructors = [];
606
+ var adt = {};
607
+ each$1(cases, function (acase, count) {
608
+ var keys$1 = keys(acase);
609
+ if (keys$1.length !== 1) {
610
+ throw new Error('one and only one name per case');
611
+ }
612
+ var key = keys$1[0];
613
+ var value = acase[key];
614
+ if (adt[key] !== undefined) {
615
+ throw new Error('duplicate key detected:' + key);
616
+ } else if (key === 'cata') {
617
+ throw new Error('cannot have a case named cata (sorry)');
618
+ } else if (!isArray(value)) {
619
+ throw new Error('case arguments must be an array');
620
+ }
621
+ constructors.push(key);
622
+ adt[key] = function () {
623
+ var args = [];
624
+ for (var _i = 0; _i < arguments.length; _i++) {
625
+ args[_i] = arguments[_i];
626
+ }
627
+ var argLength = args.length;
628
+ if (argLength !== value.length) {
629
+ throw new Error('Wrong number of arguments to case ' + key + '. Expected ' + value.length + ' (' + value + '), got ' + argLength);
630
+ }
631
+ var match = function (branches) {
632
+ var branchKeys = keys(branches);
633
+ if (constructors.length !== branchKeys.length) {
634
+ throw new Error('Wrong number of arguments to match. Expected: ' + constructors.join(',') + '\nActual: ' + branchKeys.join(','));
635
+ }
636
+ var allReqd = forall(constructors, function (reqKey) {
637
+ return contains(branchKeys, reqKey);
638
+ });
639
+ if (!allReqd) {
640
+ throw new Error('Not all branches were specified when using match. Specified: ' + branchKeys.join(', ') + '\nRequired: ' + constructors.join(', '));
641
+ }
642
+ return branches[key].apply(null, args);
643
+ };
644
+ return {
645
+ fold: function () {
646
+ var foldArgs = [];
647
+ for (var _i = 0; _i < arguments.length; _i++) {
648
+ foldArgs[_i] = arguments[_i];
649
+ }
650
+ if (foldArgs.length !== cases.length) {
651
+ throw new Error('Wrong number of arguments to fold. Expected ' + cases.length + ', got ' + foldArgs.length);
652
+ }
653
+ var target = foldArgs[count];
654
+ return target.apply(null, args);
655
+ },
656
+ match: match,
657
+ log: function (label) {
658
+ console.log(label, {
659
+ constructors: constructors,
660
+ constructor: key,
661
+ params: args
662
+ });
663
+ }
664
+ };
665
+ };
666
+ });
667
+ return adt;
668
+ };
669
+ var Adt = { generate: generate };
670
+
671
+ Adt.generate([
672
+ {
673
+ bothErrors: [
674
+ 'error1',
675
+ 'error2'
676
+ ]
677
+ },
678
+ {
679
+ firstError: [
680
+ 'error1',
681
+ 'value2'
682
+ ]
683
+ },
684
+ {
685
+ secondError: [
686
+ 'value1',
687
+ 'error2'
688
+ ]
689
+ },
690
+ {
691
+ bothValues: [
692
+ 'value1',
693
+ 'value2'
694
+ ]
695
+ }
696
+ ]);
697
+
698
+ var create = function (getCanvas, blob, uri) {
519
699
  var initialType = blob.type;
520
700
  var getType = constant(initialType);
521
- function toBlob() {
522
- return Promise.resolve(blob);
523
- }
701
+ var toBlob = function () {
702
+ return Promise$1.resolve(blob);
703
+ };
524
704
  var toDataURL = constant(uri);
525
- function toBase64() {
705
+ var toBase64 = function () {
526
706
  return uri.split(',')[1];
527
- }
528
- function toAdjustedBlob(type, quality) {
707
+ };
708
+ var toAdjustedBlob = function (type, quality) {
529
709
  return getCanvas.then(function (canvas) {
530
710
  return canvasToBlob(canvas, type, quality);
531
711
  });
532
- }
533
- function toAdjustedDataURL(type, quality) {
712
+ };
713
+ var toAdjustedDataURL = function (type, quality) {
534
714
  return getCanvas.then(function (canvas) {
535
715
  return canvasToDataURL(canvas, type, quality);
536
716
  });
537
- }
538
- function toAdjustedBase64(type, quality) {
717
+ };
718
+ var toAdjustedBase64 = function (type, quality) {
539
719
  return toAdjustedDataURL(type, quality).then(function (dataurl) {
540
720
  return dataurl.split(',')[1];
541
721
  });
542
- }
543
- function toCanvas() {
722
+ };
723
+ var toCanvas = function () {
544
724
  return getCanvas.then(clone);
545
- }
725
+ };
546
726
  return {
547
727
  getType: getType,
548
728
  toBlob: toBlob,
@@ -553,50 +733,54 @@
553
733
  toAdjustedBase64: toAdjustedBase64,
554
734
  toCanvas: toCanvas
555
735
  };
556
- }
557
- function fromBlob(blob) {
736
+ };
737
+ var fromBlob = function (blob) {
558
738
  return blobToDataUri(blob).then(function (uri) {
559
- return create$1(blobToCanvas(blob), blob, uri);
739
+ return create(blobToCanvas(blob), blob, uri);
560
740
  });
561
- }
562
- function fromCanvas(canvas, type) {
741
+ };
742
+ var fromCanvas = function (canvas, type) {
563
743
  return canvasToBlob(canvas, type).then(function (blob) {
564
- return create$1(Promise.resolve(canvas), blob, canvas.toDataURL());
744
+ return create(Promise$1.resolve(canvas), blob, canvas.toDataURL());
565
745
  });
566
- }
746
+ };
567
747
 
568
- function rotate(ir, angle) {
748
+ var ceilWithPrecision = function (num, precision) {
749
+ if (precision === void 0) {
750
+ precision = 2;
751
+ }
752
+ var mul = Math.pow(10, precision);
753
+ var upper = Math.round(num * mul);
754
+ return Math.ceil(upper / mul);
755
+ };
756
+ var rotate$2 = function (ir, angle) {
569
757
  return ir.toCanvas().then(function (canvas) {
570
758
  return applyRotate(canvas, ir.getType(), angle);
571
759
  });
572
- }
573
- function applyRotate(image, type, angle) {
574
- var canvas = create(image.width, image.height);
760
+ };
761
+ var applyRotate = function (image, type, angle) {
762
+ var degrees = angle < 0 ? 360 + angle : angle;
763
+ var rad = degrees * Math.PI / 180;
764
+ var width = image.width;
765
+ var height = image.height;
766
+ var sin = Math.sin(rad);
767
+ var cos = Math.cos(rad);
768
+ var newWidth = ceilWithPrecision(Math.abs(width * cos) + Math.abs(height * sin));
769
+ var newHeight = ceilWithPrecision(Math.abs(width * sin) + Math.abs(height * cos));
770
+ var canvas = create$1(newWidth, newHeight);
575
771
  var context = get2dContext(canvas);
576
- var translateX = 0;
577
- var translateY = 0;
578
- angle = angle < 0 ? 360 + angle : angle;
579
- if (angle === 90 || angle === 270) {
580
- resize(canvas, canvas.height, canvas.width);
581
- }
582
- if (angle === 90 || angle === 180) {
583
- translateX = canvas.width;
584
- }
585
- if (angle === 270 || angle === 180) {
586
- translateY = canvas.height;
587
- }
588
- context.translate(translateX, translateY);
589
- context.rotate(angle * Math.PI / 180);
590
- context.drawImage(image, 0, 0);
772
+ context.translate(newWidth / 2, newHeight / 2);
773
+ context.rotate(rad);
774
+ context.drawImage(image, -width / 2, -height / 2);
591
775
  return fromCanvas(canvas, type);
592
- }
593
- function flip(ir, axis) {
776
+ };
777
+ var flip$2 = function (ir, axis) {
594
778
  return ir.toCanvas().then(function (canvas) {
595
779
  return applyFlip(canvas, ir.getType(), axis);
596
780
  });
597
- }
598
- function applyFlip(image, type, axis) {
599
- var canvas = create(image.width, image.height);
781
+ };
782
+ var applyFlip = function (image, type, axis) {
783
+ var canvas = create$1(image.width, image.height);
600
784
  var context = get2dContext(canvas);
601
785
  if (axis === 'v') {
602
786
  context.scale(1, -1);
@@ -606,30 +790,20 @@
606
790
  context.drawImage(image, -canvas.width, 0);
607
791
  }
608
792
  return fromCanvas(canvas, type);
609
- }
793
+ };
610
794
 
611
795
  var flip$1 = function (ir, axis) {
612
- return flip(ir, axis);
796
+ return flip$2(ir, axis);
613
797
  };
614
798
  var rotate$1 = function (ir, angle) {
615
- return rotate(ir, angle);
616
- };
617
-
618
- var keys = Object.keys;
619
- var each$1 = function (obj, f) {
620
- var props = keys(obj);
621
- for (var k = 0, len = props.length; k < len; k++) {
622
- var i = props[k];
623
- var x = obj[i];
624
- f(x, i);
625
- }
799
+ return rotate$2(ir, angle);
626
800
  };
627
801
 
628
802
  var sendRequest = function (url, headers, withCredentials) {
629
803
  if (withCredentials === void 0) {
630
804
  withCredentials = false;
631
805
  }
632
- return new Promise(function (resolve) {
806
+ return new Promise$1(function (resolve) {
633
807
  var xhr = new XMLHttpRequest();
634
808
  xhr.onreadystatechange = function () {
635
809
  if (xhr.readyState === 4) {
@@ -641,7 +815,7 @@
641
815
  };
642
816
  xhr.open('GET', url, true);
643
817
  xhr.withCredentials = withCredentials;
644
- each$1(headers, function (value, key) {
818
+ each(headers, function (value, key) {
645
819
  xhr.setRequestHeader(key, value);
646
820
  });
647
821
  xhr.responseType = 'blob';
@@ -649,7 +823,7 @@
649
823
  });
650
824
  };
651
825
  var readBlobText = function (blob) {
652
- return new Promise(function (resolve, reject) {
826
+ return new Promise$1(function (resolve, reject) {
653
827
  var reader = new FileReader();
654
828
  reader.onload = function () {
655
829
  resolve(reader.result);
@@ -719,7 +893,7 @@
719
893
  };
720
894
  var handleHttpError = function (status) {
721
895
  var message = getHttpErrorMsg(status);
722
- return Promise.reject(message);
896
+ return Promise$1.reject(message);
723
897
  };
724
898
  var getServiceErrorMsg = function (type) {
725
899
  return find(friendlyServiceErrors, function (error) {
@@ -741,7 +915,7 @@
741
915
  var handleServiceError = function (blob) {
742
916
  return readBlobText(blob).then(function (text) {
743
917
  var serviceError = getServiceError(text);
744
- return Promise.reject(serviceError);
918
+ return Promise$1.reject(serviceError);
745
919
  });
746
920
  };
747
921
  var handleServiceErrorResponse = function (status, blob) {
@@ -765,12 +939,12 @@
765
939
  'tiny-api-key': apiKey
766
940
  };
767
941
  return sendRequest(appendApiKey(url, apiKey), headers).then(function (result) {
768
- return isError(result.status) ? handleServiceErrorResponse(result.status, result.blob) : Promise.resolve(result.blob);
942
+ return isError(result.status) ? handleServiceErrorResponse(result.status, result.blob) : Promise$1.resolve(result.blob);
769
943
  });
770
944
  };
771
945
  var requestBlob = function (url, withCredentials) {
772
946
  return sendRequest(url, {}, withCredentials).then(function (result) {
773
- return isError(result.status) ? handleHttpError(result.status) : Promise.resolve(result.blob);
947
+ return isError(result.status) ? handleHttpError(result.status) : Promise$1.resolve(result.blob);
774
948
  });
775
949
  };
776
950
  var getUrl = function (url, apiKey, withCredentials) {
@@ -843,9 +1017,9 @@
843
1017
  }
844
1018
  };
845
1019
 
846
- var Global = typeof window !== 'undefined' ? window : Function('return this;')();
1020
+ typeof window !== 'undefined' ? window : Function('return this;')();
847
1021
 
848
- var child = function (scope, predicate) {
1022
+ var child$1 = function (scope, predicate) {
849
1023
  var pred = function (node) {
850
1024
  return predicate(SugarElement.fromDom(node));
851
1025
  };
@@ -853,17 +1027,17 @@
853
1027
  return result.map(SugarElement.fromDom);
854
1028
  };
855
1029
 
856
- var child$1 = function (scope, selector) {
857
- return child(scope, function (e) {
1030
+ var child = function (scope, selector) {
1031
+ return child$1(scope, function (e) {
858
1032
  return is(e, selector);
859
1033
  });
860
1034
  };
861
1035
 
862
- var global$2 = tinymce.util.Tools.resolve('tinymce.util.Delay');
1036
+ var global$3 = tinymce.util.Tools.resolve('tinymce.util.Delay');
863
1037
 
864
- var global$3 = tinymce.util.Tools.resolve('tinymce.util.Promise');
1038
+ var global$2 = tinymce.util.Tools.resolve('tinymce.util.Promise');
865
1039
 
866
- var global$4 = tinymce.util.Tools.resolve('tinymce.util.URI');
1040
+ var global$1 = tinymce.util.Tools.resolve('tinymce.util.URI');
867
1041
 
868
1042
  var getToolbarItems = function (editor) {
869
1043
  return editor.getParam('imagetools_toolbar', 'rotateleft rotateright flipv fliph editimage imageoptions');
@@ -890,11 +1064,11 @@
890
1064
  return editor.getParam('images_reuse_filename', false, 'boolean');
891
1065
  };
892
1066
 
893
- function getImageSize(img) {
1067
+ var getImageSize = function (img) {
894
1068
  var width, height;
895
- function isPxValue(value) {
1069
+ var isPxValue = function (value) {
896
1070
  return /^[0-9\.]+px$/.test(value);
897
- }
1071
+ };
898
1072
  width = img.style.width;
899
1073
  height = img.style.height;
900
1074
  if (width || height) {
@@ -915,8 +1089,8 @@
915
1089
  };
916
1090
  }
917
1091
  return null;
918
- }
919
- function setImageSize(img, size) {
1092
+ };
1093
+ var setImageSize = function (img, size) {
920
1094
  var width, height;
921
1095
  if (size) {
922
1096
  width = img.style.width;
@@ -929,39 +1103,39 @@
929
1103
  width = img.width;
930
1104
  height = img.height;
931
1105
  if (width || height) {
932
- img.setAttribute('width', size.w);
933
- img.setAttribute('height', size.h);
1106
+ img.setAttribute('width', String(size.w));
1107
+ img.setAttribute('height', String(size.h));
934
1108
  }
935
1109
  }
936
- }
937
- function getNaturalImageSize(img) {
1110
+ };
1111
+ var getNaturalImageSize = function (img) {
938
1112
  return {
939
1113
  w: img.naturalWidth,
940
1114
  h: img.naturalHeight
941
1115
  };
942
- }
1116
+ };
943
1117
 
944
1118
  var count = 0;
945
1119
  var getFigureImg = function (elem) {
946
- return child$1(SugarElement.fromDom(elem), 'img');
1120
+ return child(SugarElement.fromDom(elem), 'img');
947
1121
  };
948
1122
  var isFigure = function (editor, elem) {
949
1123
  return editor.dom.is(elem, 'figure');
950
1124
  };
951
- var getEditableImage = function (editor, elem) {
952
- var isImage = function (imgNode) {
953
- return editor.dom.is(imgNode, 'img:not([data-mce-object],[data-mce-placeholder])');
954
- };
1125
+ var isImage = function (editor, imgNode) {
1126
+ return editor.dom.is(imgNode, 'img:not([data-mce-object],[data-mce-placeholder])');
1127
+ };
1128
+ var getEditableImage = function (editor, node) {
955
1129
  var isEditable = function (imgNode) {
956
- return isImage(imgNode) && (isLocalImage(editor, imgNode) || isCorsImage(editor, imgNode) || getProxyUrl(editor));
1130
+ return isImage(editor, imgNode) && (isLocalImage(editor, imgNode) || isCorsImage(editor, imgNode) || isNonNullable(getProxyUrl(editor)));
957
1131
  };
958
- if (isFigure(editor, elem)) {
959
- var imgOpt = getFigureImg(elem);
960
- return imgOpt.map(function (img) {
1132
+ if (isFigure(editor, node)) {
1133
+ return getFigureImg(node).bind(function (img) {
961
1134
  return isEditable(img.dom) ? Optional.some(img.dom) : Optional.none();
962
1135
  });
1136
+ } else {
1137
+ return isEditable(node) ? Optional.some(node) : Optional.none();
963
1138
  }
964
- return isEditable(elem) ? Optional.some(elem) : Optional.none();
965
1139
  };
966
1140
  var displayError = function (editor, error) {
967
1141
  editor.notificationManager.open({
@@ -971,31 +1145,31 @@
971
1145
  };
972
1146
  var getSelectedImage = function (editor) {
973
1147
  var elem = editor.selection.getNode();
974
- if (isFigure(editor, elem)) {
975
- return getFigureImg(elem);
976
- } else {
1148
+ var figureElm = editor.dom.getParent(elem, 'figure.image');
1149
+ if (figureElm !== null && isFigure(editor, figureElm)) {
1150
+ return getFigureImg(figureElm);
1151
+ } else if (isImage(editor, elem)) {
977
1152
  return Optional.some(SugarElement.fromDom(elem));
1153
+ } else {
1154
+ return Optional.none();
978
1155
  }
979
1156
  };
980
- var extractFilename = function (editor, url) {
981
- var m = url.match(/\/([^\/\?]+)?\.(?:jpeg|jpg|png|gif)(?:\?|$)/i);
982
- if (m) {
983
- return editor.dom.encode(m[1]);
984
- }
985
- return null;
1157
+ var extractFilename = function (editor, url, group) {
1158
+ var m = url.match(/(?:\/|^)(([^\/\?]+)\.(?:[a-z0-9.]+))(?:\?|$)/i);
1159
+ return isNonNullable(m) ? editor.dom.encode(m[group]) : null;
986
1160
  };
987
1161
  var createId = function () {
988
1162
  return 'imagetools' + count++;
989
1163
  };
990
1164
  var isLocalImage = function (editor, img) {
991
1165
  var url = img.src;
992
- return url.indexOf('data:') === 0 || url.indexOf('blob:') === 0 || new global$4(url).host === editor.documentBaseURI.host;
1166
+ return url.indexOf('data:') === 0 || url.indexOf('blob:') === 0 || new global$1(url).host === editor.documentBaseURI.host;
993
1167
  };
994
1168
  var isCorsImage = function (editor, img) {
995
- return global$1.inArray(getCorsHosts(editor), new global$4(img.src).host) !== -1;
1169
+ return global$4.inArray(getCorsHosts(editor), new global$1(img.src).host) !== -1;
996
1170
  };
997
1171
  var isCorsWithCredentialsImage = function (editor, img) {
998
- return global$1.inArray(getCredentialsHosts(editor), new global$4(img.src).host) !== -1;
1172
+ return global$4.inArray(getCredentialsHosts(editor), new global$1(img.src).host) !== -1;
999
1173
  };
1000
1174
  var defaultFetchImage = function (editor, img) {
1001
1175
  if (isCorsImage(editor, img)) {
@@ -1009,7 +1183,7 @@
1009
1183
  }
1010
1184
  return imageToBlob$1(img);
1011
1185
  };
1012
- var imageToBlob$2 = function (editor, img) {
1186
+ var imageToBlob = function (editor, img) {
1013
1187
  return getFetchImage(editor).fold(function () {
1014
1188
  return defaultFetchImage(editor, img);
1015
1189
  }, function (customFetchImage) {
@@ -1019,31 +1193,34 @@
1019
1193
  var findBlob = function (editor, img) {
1020
1194
  var blobInfo = editor.editorUpload.blobCache.getByUri(img.src);
1021
1195
  if (blobInfo) {
1022
- return global$3.resolve(blobInfo.blob());
1196
+ return global$2.resolve(blobInfo.blob());
1023
1197
  }
1024
- return imageToBlob$2(editor, img);
1198
+ return imageToBlob(editor, img);
1025
1199
  };
1026
1200
  var startTimedUpload = function (editor, imageUploadTimerState) {
1027
- var imageUploadTimer = global$2.setEditorTimeout(editor, function () {
1201
+ var imageUploadTimer = global$3.setEditorTimeout(editor, function () {
1028
1202
  editor.editorUpload.uploadImagesAuto();
1029
1203
  }, getUploadTimeout(editor));
1030
1204
  imageUploadTimerState.set(imageUploadTimer);
1031
1205
  };
1032
1206
  var cancelTimedUpload = function (imageUploadTimerState) {
1033
- global$2.clearTimeout(imageUploadTimerState.get());
1207
+ global$3.clearTimeout(imageUploadTimerState.get());
1034
1208
  };
1035
- var updateSelectedImage = function (editor, ir, uploadImmediately, imageUploadTimerState, selectedImage, size) {
1209
+ var updateSelectedImage = function (editor, origBlob, ir, uploadImmediately, imageUploadTimerState, selectedImage, size) {
1036
1210
  return ir.toBlob().then(function (blob) {
1037
- var uri, name, blobInfo;
1211
+ var uri, name, filename, blobInfo;
1038
1212
  var blobCache = editor.editorUpload.blobCache;
1039
1213
  uri = selectedImage.src;
1214
+ var useFilename = origBlob.type === blob.type;
1040
1215
  if (shouldReuseFilename(editor)) {
1041
1216
  blobInfo = blobCache.getByUri(uri);
1042
- if (blobInfo) {
1217
+ if (isNonNullable(blobInfo)) {
1043
1218
  uri = blobInfo.uri();
1044
1219
  name = blobInfo.name();
1220
+ filename = blobInfo.filename();
1045
1221
  } else {
1046
- name = extractFilename(editor, uri);
1222
+ name = extractFilename(editor, uri, 2);
1223
+ filename = extractFilename(editor, uri, 1);
1047
1224
  }
1048
1225
  }
1049
1226
  blobInfo = blobCache.create({
@@ -1051,11 +1228,12 @@
1051
1228
  blob: blob,
1052
1229
  base64: ir.toBase64(),
1053
1230
  uri: uri,
1054
- name: name
1231
+ name: name,
1232
+ filename: useFilename ? filename : undefined
1055
1233
  });
1056
1234
  blobCache.add(blobInfo);
1057
1235
  editor.undoManager.transact(function () {
1058
- function imageLoadedHandler() {
1236
+ var imageLoadedHandler = function () {
1059
1237
  editor.$(selectedImage).off('load', imageLoadedHandler);
1060
1238
  editor.nodeChanged();
1061
1239
  if (uploadImmediately) {
@@ -1064,7 +1242,7 @@
1064
1242
  cancelTimedUpload(imageUploadTimerState);
1065
1243
  startTimedUpload(editor, imageUploadTimerState);
1066
1244
  }
1067
- }
1245
+ };
1068
1246
  editor.$(selectedImage).on('load', imageLoadedHandler);
1069
1247
  if (size) {
1070
1248
  editor.$(selectedImage).attr({
@@ -1085,32 +1263,32 @@
1085
1263
  }, function (img) {
1086
1264
  return editor._scanForImages().then(function () {
1087
1265
  return findBlob(editor, img.dom);
1088
- }).then(blobToImageResult).then(fn).then(function (imageResult) {
1089
- return updateSelectedImage(editor, imageResult, false, imageUploadTimerState, img.dom, size);
1090
- }, function (error) {
1266
+ }).then(function (blob) {
1267
+ return blobToImageResult(blob).then(fn).then(function (imageResult) {
1268
+ return updateSelectedImage(editor, blob, imageResult, false, imageUploadTimerState, img.dom, size);
1269
+ });
1270
+ }).catch(function (error) {
1091
1271
  displayError(editor, error);
1092
1272
  });
1093
1273
  });
1094
1274
  };
1095
1275
  };
1096
- var rotate$2 = function (editor, imageUploadTimerState, angle) {
1276
+ var rotate = function (editor, imageUploadTimerState, angle) {
1097
1277
  return function () {
1098
1278
  var imgOpt = getSelectedImage(editor);
1099
- var flippedSize = imgOpt.fold(function () {
1100
- return null;
1101
- }, function (img) {
1279
+ var flippedSize = imgOpt.map(function (img) {
1102
1280
  var size = getImageSize(img.dom);
1103
1281
  return size ? {
1104
1282
  w: size.h,
1105
1283
  h: size.w
1106
1284
  } : null;
1107
- });
1285
+ }).getOrNull();
1108
1286
  return selectedImageOperation(editor, imageUploadTimerState, function (imageResult) {
1109
1287
  return rotate$1(imageResult, angle);
1110
1288
  }, flippedSize)();
1111
1289
  };
1112
1290
  };
1113
- var flip$2 = function (editor, imageUploadTimerState, axis) {
1291
+ var flip = function (editor, imageUploadTimerState, axis) {
1114
1292
  return function () {
1115
1293
  return selectedImageOperation(editor, imageUploadTimerState, function (imageResult) {
1116
1294
  return flip$1(imageResult, axis);
@@ -1118,7 +1296,7 @@
1118
1296
  };
1119
1297
  };
1120
1298
  var handleDialogBlob = function (editor, imageUploadTimerState, img, originalSize, blob) {
1121
- return blobToImage$1(blob).then(function (newImage) {
1299
+ return blobToImage(blob).then(function (newImage) {
1122
1300
  var newSize = getNaturalImageSize(newImage);
1123
1301
  if (originalSize.w !== newSize.w || originalSize.h !== newSize.h) {
1124
1302
  if (getImageSize(img)) {
@@ -1128,8 +1306,7 @@
1128
1306
  URL.revokeObjectURL(newImage.src);
1129
1307
  return blob;
1130
1308
  }).then(blobToImageResult).then(function (imageResult) {
1131
- return updateSelectedImage(editor, imageResult, true, imageUploadTimerState, img);
1132
- }, function () {
1309
+ return updateSelectedImage(editor, blob, imageResult, true, imageUploadTimerState, img);
1133
1310
  });
1134
1311
  };
1135
1312
 
@@ -1181,8 +1358,7 @@
1181
1358
  });
1182
1359
  api.close();
1183
1360
  },
1184
- onCancel: function () {
1185
- },
1361
+ onCancel: noop,
1186
1362
  onAction: function (api, details) {
1187
1363
  switch (details.name) {
1188
1364
  case saveState:
@@ -1207,8 +1383,7 @@
1207
1383
  var originalSizeOpt = originalImgOpt.map(function (origImg) {
1208
1384
  return getNaturalImageSize(origImg.dom);
1209
1385
  });
1210
- var imgOpt = getSelectedImage(editor);
1211
- imgOpt.each(function (img) {
1386
+ originalImgOpt.each(function (img) {
1212
1387
  getEditableImage(editor, img.dom).each(function (_) {
1213
1388
  findBlob(editor, img.dom).then(function (blob) {
1214
1389
  var state = createState(blob);
@@ -1219,12 +1394,12 @@
1219
1394
  };
1220
1395
  };
1221
1396
 
1222
- var register = function (editor, imageUploadTimerState) {
1223
- global$1.each({
1224
- mceImageRotateLeft: rotate$2(editor, imageUploadTimerState, -90),
1225
- mceImageRotateRight: rotate$2(editor, imageUploadTimerState, 90),
1226
- mceImageFlipVertical: flip$2(editor, imageUploadTimerState, 'v'),
1227
- mceImageFlipHorizontal: flip$2(editor, imageUploadTimerState, 'h'),
1397
+ var register$2 = function (editor, imageUploadTimerState) {
1398
+ global$4.each({
1399
+ mceImageRotateLeft: rotate(editor, imageUploadTimerState, -90),
1400
+ mceImageRotateRight: rotate(editor, imageUploadTimerState, 90),
1401
+ mceImageFlipVertical: flip(editor, imageUploadTimerState, 'v'),
1402
+ mceImageFlipHorizontal: flip(editor, imageUploadTimerState, 'h'),
1228
1403
  mceEditImage: makeOpen(editor, imageUploadTimerState)
1229
1404
  }, function (fn, cmd) {
1230
1405
  editor.addCommand(cmd, fn);
@@ -1234,58 +1409,77 @@
1234
1409
  var setup = function (editor, imageUploadTimerState, lastSelectedImageState) {
1235
1410
  editor.on('NodeChange', function (e) {
1236
1411
  var lastSelectedImage = lastSelectedImageState.get();
1237
- if (lastSelectedImage && lastSelectedImage.src !== e.element.src) {
1412
+ var selectedImage = getEditableImage(editor, e.element);
1413
+ if (lastSelectedImage && !selectedImage.exists(function (img) {
1414
+ return lastSelectedImage.src === img.src;
1415
+ })) {
1238
1416
  cancelTimedUpload(imageUploadTimerState);
1239
1417
  editor.editorUpload.uploadImagesAuto();
1240
1418
  lastSelectedImageState.set(null);
1241
1419
  }
1242
- getEditableImage(editor, e.element).each(lastSelectedImageState.set);
1420
+ selectedImage.each(lastSelectedImageState.set);
1243
1421
  });
1244
1422
  };
1245
1423
 
1246
1424
  var register$1 = function (editor) {
1425
+ var changeHandlers = [];
1247
1426
  var cmd = function (command) {
1248
1427
  return function () {
1249
1428
  return editor.execCommand(command);
1250
1429
  };
1251
1430
  };
1431
+ var isEditableImage = function () {
1432
+ return getSelectedImage(editor).exists(function (element) {
1433
+ return getEditableImage(editor, element.dom).isSome();
1434
+ });
1435
+ };
1436
+ var onSetup = function (api) {
1437
+ var handler = function (isEditableImage) {
1438
+ return api.setDisabled(!isEditableImage);
1439
+ };
1440
+ handler(isEditableImage());
1441
+ changeHandlers = changeHandlers.concat([handler]);
1442
+ return function () {
1443
+ changeHandlers = filter(changeHandlers, function (h) {
1444
+ return h !== handler;
1445
+ });
1446
+ };
1447
+ };
1448
+ editor.on('NodeChange', function () {
1449
+ var isEditable = isEditableImage();
1450
+ each$1(changeHandlers, function (handler) {
1451
+ return handler(isEditable);
1452
+ });
1453
+ });
1252
1454
  editor.ui.registry.addButton('rotateleft', {
1253
1455
  tooltip: 'Rotate counterclockwise',
1254
1456
  icon: 'rotate-left',
1255
- onAction: cmd('mceImageRotateLeft')
1457
+ onAction: cmd('mceImageRotateLeft'),
1458
+ onSetup: onSetup
1256
1459
  });
1257
1460
  editor.ui.registry.addButton('rotateright', {
1258
1461
  tooltip: 'Rotate clockwise',
1259
1462
  icon: 'rotate-right',
1260
- onAction: cmd('mceImageRotateRight')
1463
+ onAction: cmd('mceImageRotateRight'),
1464
+ onSetup: onSetup
1261
1465
  });
1262
1466
  editor.ui.registry.addButton('flipv', {
1263
1467
  tooltip: 'Flip vertically',
1264
1468
  icon: 'flip-vertically',
1265
- onAction: cmd('mceImageFlipVertical')
1469
+ onAction: cmd('mceImageFlipVertical'),
1470
+ onSetup: onSetup
1266
1471
  });
1267
1472
  editor.ui.registry.addButton('fliph', {
1268
1473
  tooltip: 'Flip horizontally',
1269
1474
  icon: 'flip-horizontally',
1270
- onAction: cmd('mceImageFlipHorizontal')
1475
+ onAction: cmd('mceImageFlipHorizontal'),
1476
+ onSetup: onSetup
1271
1477
  });
1272
1478
  editor.ui.registry.addButton('editimage', {
1273
1479
  tooltip: 'Edit image',
1274
1480
  icon: 'edit-image',
1275
1481
  onAction: cmd('mceEditImage'),
1276
- onSetup: function (buttonApi) {
1277
- var setDisabled = function () {
1278
- var elementOpt = getSelectedImage(editor);
1279
- elementOpt.each(function (element) {
1280
- var disabled = getEditableImage(editor, element.dom).isNone();
1281
- buttonApi.setDisabled(disabled);
1282
- });
1283
- };
1284
- editor.on('NodeChange', setDisabled);
1285
- return function () {
1286
- editor.off('NodeChange', setDisabled);
1287
- };
1288
- }
1482
+ onSetup: onSetup
1289
1483
  });
1290
1484
  editor.ui.registry.addButton('imageoptions', {
1291
1485
  tooltip: 'Image options',
@@ -1294,20 +1488,18 @@
1294
1488
  });
1295
1489
  editor.ui.registry.addContextMenu('imagetools', {
1296
1490
  update: function (element) {
1297
- return getEditableImage(editor, element).fold(function () {
1298
- return [];
1299
- }, function (_) {
1300
- return [{
1301
- text: 'Edit image',
1302
- icon: 'edit-image',
1303
- onAction: cmd('mceEditImage')
1304
- }];
1305
- });
1491
+ return getEditableImage(editor, element).map(function (_) {
1492
+ return {
1493
+ text: 'Edit image',
1494
+ icon: 'edit-image',
1495
+ onAction: cmd('mceEditImage')
1496
+ };
1497
+ }).toArray();
1306
1498
  }
1307
1499
  });
1308
1500
  };
1309
1501
 
1310
- var register$2 = function (editor) {
1502
+ var register = function (editor) {
1311
1503
  editor.ui.registry.addContextToolbar('imagetools', {
1312
1504
  items: getToolbarItems(editor),
1313
1505
  predicate: function (elem) {
@@ -1319,12 +1511,12 @@
1319
1511
  };
1320
1512
 
1321
1513
  function Plugin () {
1322
- global.add('imagetools', function (editor) {
1514
+ global$5.add('imagetools', function (editor) {
1323
1515
  var imageUploadTimerState = Cell(0);
1324
1516
  var lastSelectedImageState = Cell(null);
1325
- register(editor, imageUploadTimerState);
1517
+ register$2(editor, imageUploadTimerState);
1326
1518
  register$1(editor);
1327
- register$2(editor);
1519
+ register(editor);
1328
1520
  setup(editor, imageUploadTimerState, lastSelectedImageState);
1329
1521
  });
1330
1522
  }