@sapui5/sap.ui.richtexteditor 1.96.25 → 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 (628) 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_GB.properties +54 -0
  580. package/src/sap/ui/richtexteditor/messagebundle_en_US_saprigi.properties +106 -52
  581. package/src/sap/ui/richtexteditor/messagebundle_es.properties +54 -0
  582. package/src/sap/ui/richtexteditor/messagebundle_es_MX.properties +54 -0
  583. package/src/sap/ui/richtexteditor/messagebundle_et.properties +54 -0
  584. package/src/sap/ui/richtexteditor/messagebundle_fi.properties +54 -0
  585. package/src/sap/ui/richtexteditor/messagebundle_fr.properties +54 -0
  586. package/src/sap/ui/richtexteditor/messagebundle_fr_CA.properties +54 -0
  587. package/src/sap/ui/richtexteditor/messagebundle_hi.properties +54 -0
  588. package/src/sap/ui/richtexteditor/messagebundle_hr.properties +54 -0
  589. package/src/sap/ui/richtexteditor/messagebundle_hu.properties +54 -0
  590. package/src/sap/ui/richtexteditor/messagebundle_id.properties +54 -0
  591. package/src/sap/ui/richtexteditor/messagebundle_it.properties +54 -0
  592. package/src/sap/ui/richtexteditor/messagebundle_iw.properties +54 -0
  593. package/src/sap/ui/richtexteditor/messagebundle_ja.properties +54 -0
  594. package/src/sap/ui/richtexteditor/messagebundle_kk.properties +54 -0
  595. package/src/sap/ui/richtexteditor/messagebundle_ko.properties +54 -0
  596. package/src/sap/ui/richtexteditor/messagebundle_lt.properties +54 -0
  597. package/src/sap/ui/richtexteditor/messagebundle_lv.properties +54 -0
  598. package/src/sap/ui/richtexteditor/messagebundle_ms.properties +54 -0
  599. package/src/sap/ui/richtexteditor/messagebundle_nl.properties +54 -0
  600. package/src/sap/ui/richtexteditor/messagebundle_no.properties +54 -0
  601. package/src/sap/ui/richtexteditor/messagebundle_pl.properties +54 -0
  602. package/src/sap/ui/richtexteditor/messagebundle_pt.properties +54 -0
  603. package/src/sap/ui/richtexteditor/messagebundle_pt_PT.properties +54 -0
  604. package/src/sap/ui/richtexteditor/messagebundle_ro.properties +54 -0
  605. package/src/sap/ui/richtexteditor/messagebundle_ru.properties +54 -0
  606. package/src/sap/ui/richtexteditor/messagebundle_sh.properties +54 -0
  607. package/src/sap/ui/richtexteditor/messagebundle_sk.properties +54 -0
  608. package/src/sap/ui/richtexteditor/messagebundle_sl.properties +54 -0
  609. package/src/sap/ui/richtexteditor/messagebundle_sr.properties +54 -0
  610. package/src/sap/ui/richtexteditor/messagebundle_sv.properties +54 -0
  611. package/src/sap/ui/richtexteditor/messagebundle_th.properties +54 -0
  612. package/src/sap/ui/richtexteditor/messagebundle_tr.properties +54 -0
  613. package/src/sap/ui/richtexteditor/messagebundle_uk.properties +54 -0
  614. package/src/sap/ui/richtexteditor/messagebundle_vi.properties +54 -0
  615. package/src/sap/ui/richtexteditor/messagebundle_zh_CN.properties +54 -0
  616. package/src/sap/ui/richtexteditor/messagebundle_zh_TW.properties +54 -0
  617. package/src/sap/ui/richtexteditor/themes/base/RichTextEditor.less +25 -84
  618. package/src/sap/ui/richtexteditor/themes/sap_belize/RichTextEditor.less +33 -0
  619. package/src/sap/ui/richtexteditor/themes/sap_belize/library.source.less +3 -1
  620. package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/RichTextEditor.less +29 -0
  621. package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/library.source.less +2 -0
  622. package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/RichTextEditor.less +30 -0
  623. package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/library.source.less +2 -0
  624. package/src/sap/ui/richtexteditor/themes/sap_fiori_3/RichTextEditor.less +4 -5
  625. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_dark/RichTextEditor.less +4 -5
  626. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcb/RichTextEditor.less +4 -5
  627. package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcw/RichTextEditor.less +4 -5
  628. package/src/sap/ui/richtexteditor/themes/sap_horizon/RichTextEditor.less +15 -30
@@ -16,8 +16,19 @@ interface IndexBookmark {
16
16
  interface PathBookmark {
17
17
  start: number[];
18
18
  end?: number[];
19
+ isFakeCaret?: boolean;
19
20
  }
20
21
  declare type Bookmark = StringPathBookmark | RangeBookmark | IdBookmark | IndexBookmark | PathBookmark;
22
+ declare type NormalizedEvent<E, T = any> = E & {
23
+ readonly type: string;
24
+ readonly target: T;
25
+ readonly isDefaultPrevented: () => boolean;
26
+ readonly preventDefault: () => void;
27
+ readonly isPropagationStopped: () => boolean;
28
+ readonly stopPropagation: () => void;
29
+ readonly isImmediatePropagationStopped: () => boolean;
30
+ readonly stopImmediatePropagation: () => void;
31
+ };
21
32
  declare type MappedEvent<T, K extends string> = K extends keyof T ? T[K] : any;
22
33
  interface NativeEventMap {
23
34
  'beforepaste': Event;
@@ -61,16 +72,7 @@ interface NativeEventMap {
61
72
  'touchcancel': TouchEvent;
62
73
  'wheel': WheelEvent;
63
74
  }
64
- declare type EditorEvent<T> = T & {
65
- target: any;
66
- type: string;
67
- preventDefault(): void;
68
- isDefaultPrevented(): boolean;
69
- stopPropagation(): void;
70
- isPropagationStopped(): boolean;
71
- stopImmediatePropagation(): void;
72
- isImmediatePropagationStopped(): boolean;
73
- };
75
+ declare type EditorEvent<T> = NormalizedEvent<T>;
74
76
  interface EventDispatcherSettings {
75
77
  scope?: any;
76
78
  toggleEvent?: (name: string, state: boolean) => void | boolean;
@@ -79,7 +81,7 @@ interface EventDispatcherSettings {
79
81
  interface EventDispatcherConstructor<T extends NativeEventMap> {
80
82
  readonly prototype: EventDispatcher<T>;
81
83
  new (settings?: EventDispatcherSettings): EventDispatcher<T>;
82
- isNative(name: string): boolean;
84
+ isNative: (name: string) => boolean;
83
85
  }
84
86
  declare class EventDispatcher<T> {
85
87
  static isNative(name: string): boolean;
@@ -88,7 +90,7 @@ declare class EventDispatcher<T> {
88
90
  private readonly toggleEvent;
89
91
  private bindings;
90
92
  constructor(settings?: Record<string, any>);
91
- fire<K extends string, U extends MappedEvent<T, K>>(nameIn: K, argsIn?: U): EditorEvent<U>;
93
+ fire<K extends string, U extends MappedEvent<T, K>>(name: K, args?: U): EditorEvent<U>;
92
94
  on<K extends string>(name: K, callback: false | ((event: EditorEvent<MappedEvent<T, K>>) => void), prepend?: boolean, extra?: {}): this;
93
95
  off<K extends string>(name?: K, callback?: (event: EditorEvent<MappedEvent<T, K>>) => void): this;
94
96
  once<K extends string>(name: K, callback: (event: EditorEvent<MappedEvent<T, K>>) => void, prepend?: boolean): this;
@@ -120,42 +122,41 @@ interface UndoManager {
120
122
  ignore: (callback: () => void) => void;
121
123
  extra: (callback1: () => void, callback2: () => void) => void;
122
124
  }
123
- declare type ArrayCallback<T, R> = (x: T, i: number, xs: ReadonlyArray<T>) => R;
124
- declare type ObjCallback<T, R> = (value: T, key: string, obj: Record<string, T>) => R;
125
- declare type ArrayCallback$1<T, R> = ArrayCallback<T, R>;
126
- declare type ObjCallback$1<T, R> = ObjCallback<T, R>;
125
+ declare type ArrayCallback$1<T, R> = (x: T, i: number, xs: ReadonlyArray<T>) => R;
126
+ declare type ObjCallback$1<T, R> = (value: T, key: string, obj: Record<string, T>) => R;
127
+ declare type ArrayCallback<T, R> = ArrayCallback$1<T, R>;
128
+ declare type ObjCallback<T, R> = ObjCallback$1<T, R>;
127
129
  interface Tools {
128
- is(obj: any, type: string): boolean;
129
- isArray<T>(arr: any): arr is Array<T>;
130
- inArray<T>(arr: ArrayLike<T>, value: T): number;
131
- grep<T>(arr: ArrayLike<T> | null | undefined, pred?: ArrayCallback$1<T, boolean>): T[];
132
- grep<T>(arr: Record<string, T> | null | undefined, pred?: ObjCallback$1<T, boolean>): T[];
133
- trim(str: string): string;
134
- toArray<T>(obj: ArrayLike<T>): T[];
135
- hasOwn(obj: any, name: string): boolean;
136
- makeMap<T>(items: ArrayLike<T> | string, delim?: string | RegExp, map?: Record<string, T | string>): Record<string, T | string>;
137
- each<T>(arr: ArrayLike<T> | null | undefined, cb: ArrayCallback$1<T, void | boolean>, scope?: any): boolean;
138
- each<T>(obj: Record<string, T> | null | undefined, cb: ObjCallback$1<T, void | boolean>, scope?: any): boolean;
139
- map<T, R>(arr: ArrayLike<T> | null | undefined, cb: ArrayCallback$1<T, R>): R[];
140
- map<T, R>(obj: Record<string, T> | null | undefined, cb: ObjCallback$1<T, R>): R[];
141
- extend(obj: Object, ext: Object, ...objs: Object[]): any;
142
- create(name: string, p: Object, root?: Object): any;
143
- walk<T = any>(obj: T, f: Function, n?: keyof T, scope?: any): void;
144
- createNS(name: string, o?: Object): any;
145
- resolve(path: string, o?: Object): any;
146
- explode(s: string, d?: string | RegExp): string[];
147
- _addCacheSuffix(url: string): string;
130
+ is: (obj: any, type: string) => boolean;
131
+ isArray: <T>(arr: any) => arr is Array<T>;
132
+ inArray: <T>(arr: ArrayLike<T>, value: T) => number;
133
+ grep: {
134
+ <T>(arr: ArrayLike<T> | null | undefined, pred?: ArrayCallback<T, boolean>): T[];
135
+ <T>(arr: Record<string, T> | null | undefined, pred?: ObjCallback<T, boolean>): T[];
136
+ };
137
+ trim: (str: string) => string;
138
+ toArray: <T>(obj: ArrayLike<T>) => T[];
139
+ hasOwn: (obj: any, name: string) => boolean;
140
+ makeMap: <T>(items: ArrayLike<T> | string, delim?: string | RegExp, map?: Record<string, T | string>) => Record<string, T | string>;
141
+ each: {
142
+ <T>(arr: ArrayLike<T> | null | undefined, cb: ArrayCallback<T, void | boolean>, scope?: any): boolean;
143
+ <T>(obj: Record<string, T> | null | undefined, cb: ObjCallback<T, void | boolean>, scope?: any): boolean;
144
+ };
145
+ map: {
146
+ <T, R>(arr: ArrayLike<T> | null | undefined, cb: ArrayCallback<T, R>): R[];
147
+ <T, R>(obj: Record<string, T> | null | undefined, cb: ObjCallback<T, R>): R[];
148
+ };
149
+ extend: (obj: Object, ext: Object, ...objs: Object[]) => any;
150
+ create: (name: string, p: Object, root?: Object) => void;
151
+ walk: <T = any>(obj: T, f: Function, n?: keyof T, scope?: any) => void;
152
+ createNS: (name: string, o?: Object) => any;
153
+ resolve: (path: string, o?: Object) => any;
154
+ explode: (s: string, d?: string | RegExp) => string[];
155
+ _addCacheSuffix: (url: string) => string;
148
156
  }
149
157
  declare type EventUtilsCallback<T> = (event: EventUtilsEvent<T>) => void;
150
- declare type EventUtilsEvent<T> = T & {
151
- type: string;
152
- target: any;
153
- isDefaultPrevented: () => boolean;
154
- preventDefault: () => void;
155
- isPropagationStopped: () => boolean;
156
- stopPropagation: () => void;
157
- isImmediatePropagationStopped: () => boolean;
158
- stopImmediatePropagation: () => void;
158
+ declare type EventUtilsEvent<T> = NormalizedEvent<T> & {
159
+ metaKey: boolean;
159
160
  };
160
161
  interface EventUtilsConstructor {
161
162
  readonly prototype: EventUtils;
@@ -225,7 +226,7 @@ interface DomQueryConstructor {
225
226
  grep<T>(array: T[], callback: (item: any, i: number) => boolean): T[];
226
227
  unique<T>(results: T[]): T[];
227
228
  text(elem: Node): string;
228
- contains(context: any, elem: Node): number;
229
+ contains(context: any, elem: Node): boolean;
229
230
  filter(expr: string, elems: Node[], not?: boolean): any;
230
231
  }
231
232
  interface DomQuery<T extends Node = Node> extends ArrayLike<T> {
@@ -242,10 +243,10 @@ interface DomQuery<T extends Node = Node> extends ArrayLike<T> {
242
243
  attr(attrs: Record<string, string | boolean | number | null>): this;
243
244
  attr(name: string): string;
244
245
  before(content: DomQuerySelector<T>): this;
245
- children(selector?: string): DomQuery<ChildNode>;
246
+ children(selector?: string): DomQuery<Node & ChildNode>;
246
247
  clone(): this;
247
248
  closest(selector: DomQuerySelector<T>): this;
248
- contents(selector?: string): DomQuery<ChildNode>;
249
+ contents(selector?: string): DomQuery<Node & ChildNode>;
249
250
  css(name: string, value: string | number | null): this;
250
251
  css(styles: Record<string, string | number | null>): this;
251
252
  css(name: string): string;
@@ -253,7 +254,8 @@ interface DomQuery<T extends Node = Node> extends ArrayLike<T> {
253
254
  empty(): this;
254
255
  eq(index: number): this;
255
256
  filter(selector: string | ((i: number, item: any) => boolean)): this;
256
- find(selector: string): this;
257
+ find<K extends keyof HTMLElementTagNameMap>(selector: K): DomQuery<HTMLElementTagNameMap[K]>;
258
+ find<T extends Node>(selector: string): DomQuery<T>;
257
259
  first(): this;
258
260
  hasClass(className: string): boolean;
259
261
  hide(): this;
@@ -261,8 +263,8 @@ interface DomQuery<T extends Node = Node> extends ArrayLike<T> {
261
263
  html(): string;
262
264
  is(selector: string | ((i: number, item: any) => boolean)): boolean;
263
265
  last(): this;
264
- next(selector?: string): DomQuery<ChildNode>;
265
- nextUntil(selector: DomQuerySelector<T>, until?: string): DomQuery<ChildNode>;
266
+ next(selector?: string): DomQuery<Node & ChildNode>;
267
+ nextUntil(selector: DomQuerySelector<T>, until?: string): DomQuery<Node & ChildNode>;
266
268
  off<K extends keyof HTMLElementEventMap>(name: K, callback?: EventUtilsCallback<HTMLElementEventMap[K]>): this;
267
269
  off<U>(name?: string, callback?: EventUtilsCallback<U>): this;
268
270
  offset(offset?: {}): {} | this;
@@ -273,8 +275,8 @@ interface DomQuery<T extends Node = Node> extends ArrayLike<T> {
273
275
  parentsUntil(selector: DomQuerySelector<T>, filter?: string): DomQuery<Node>;
274
276
  prepend(content: DomQuerySelector<T>): this;
275
277
  prependTo(val: DomQuerySelector<T>): this;
276
- prev(selector?: string): DomQuery<ChildNode>;
277
- prevUntil(selector: DomQuerySelector<T>, filter?: string): DomQuery<ChildNode>;
278
+ prev(selector?: string): DomQuery<Node & ChildNode>;
279
+ prevUntil(selector: DomQuerySelector<T>, filter?: string): DomQuery<Node & ChildNode>;
278
280
  prop(name: string, value: string): this;
279
281
  prop(props: Record<string, string | number>): this;
280
282
  prop(name: string): string;
@@ -322,12 +324,12 @@ interface SchemaSettings {
322
324
  verify_html?: boolean;
323
325
  whitespace_elements?: string;
324
326
  }
325
- declare type Attribute = {
327
+ interface Attribute {
326
328
  required?: boolean;
327
329
  defaultValue?: string;
328
330
  forcedValue?: string;
329
331
  validValues?: any;
330
- };
332
+ }
331
333
  interface DefaultAttribute {
332
334
  name: string;
333
335
  value: string;
@@ -339,7 +341,7 @@ interface AttributePattern {
339
341
  required?: boolean;
340
342
  validValues?: Record<string, string>;
341
343
  }
342
- declare type ElementRule = {
344
+ interface ElementRule {
343
345
  attributes: Record<string, Attribute>;
344
346
  attributesDefault?: DefaultAttribute[];
345
347
  attributesForced?: DefaultAttribute[];
@@ -349,44 +351,44 @@ declare type ElementRule = {
349
351
  paddEmpty?: boolean;
350
352
  removeEmpty?: boolean;
351
353
  removeEmptyAttrs?: boolean;
352
- };
354
+ }
353
355
  interface SchemaElement extends ElementRule {
354
356
  outputName?: string;
355
357
  parentsRequired?: string[];
356
358
  pattern?: RegExp;
357
359
  }
358
- declare type SchemaMap = {
360
+ interface SchemaMap {
359
361
  [name: string]: {};
360
- };
361
- declare type SchemaRegExpMap = {
362
+ }
363
+ interface SchemaRegExpMap {
362
364
  [name: string]: RegExp;
363
- };
365
+ }
364
366
  interface Schema {
365
- children: Record<string, {}>;
367
+ children: Record<string, SchemaMap>;
366
368
  elements: Record<string, SchemaElement>;
367
- getValidStyles(): SchemaMap;
368
- getValidClasses(): SchemaMap;
369
- getBlockElements(): SchemaMap;
370
- getInvalidStyles(): SchemaMap;
371
- getShortEndedElements(): SchemaMap;
372
- getTextBlockElements(): SchemaMap;
373
- getTextInlineElements(): SchemaMap;
374
- getBoolAttrs(): SchemaMap;
375
- getElementRule(name: string): SchemaElement;
376
- getSelfClosingElements(): SchemaMap;
377
- getNonEmptyElements(): SchemaMap;
378
- getMoveCaretBeforeOnEnterElements(): SchemaMap;
379
- getWhiteSpaceElements(): SchemaMap;
380
- getSpecialElements(): SchemaRegExpMap;
381
- isValidChild(name: string, child: string): boolean;
382
- isValid(name: string, attr?: string): boolean;
383
- getCustomElements(): SchemaMap;
384
- addValidElements(validElements: string): void;
385
- setValidElements(validElements: string): void;
386
- addCustomElements(customElements: string): void;
387
- addValidChildren(validChildren: any): void;
388
- }
389
- declare type Attributes = Array<{
369
+ getValidStyles: () => Record<string, string[]> | undefined;
370
+ getValidClasses: () => Record<string, SchemaMap> | undefined;
371
+ getBlockElements: () => SchemaMap;
372
+ getInvalidStyles: () => Record<string, SchemaMap> | undefined;
373
+ getShortEndedElements: () => SchemaMap;
374
+ getTextBlockElements: () => SchemaMap;
375
+ getTextInlineElements: () => SchemaMap;
376
+ getBoolAttrs: () => SchemaMap;
377
+ getElementRule: (name: string) => SchemaElement | undefined;
378
+ getSelfClosingElements: () => SchemaMap;
379
+ getNonEmptyElements: () => SchemaMap;
380
+ getMoveCaretBeforeOnEnterElements: () => SchemaMap;
381
+ getWhiteSpaceElements: () => SchemaMap;
382
+ getSpecialElements: () => SchemaRegExpMap;
383
+ isValidChild: (name: string, child: string) => boolean;
384
+ isValid: (name: string, attr?: string) => boolean;
385
+ getCustomElements: () => SchemaMap;
386
+ addValidElements: (validElements: string) => void;
387
+ setValidElements: (validElements: string) => void;
388
+ addCustomElements: (customElements: string) => void;
389
+ addValidChildren: (validChildren: any) => void;
390
+ }
391
+ declare type Attributes$1 = Array<{
390
392
  name: string;
391
393
  value: string;
392
394
  }> & {
@@ -401,7 +403,7 @@ declare class AstNode {
401
403
  static create(name: string, attrs?: Record<string, string>): AstNode;
402
404
  name: string;
403
405
  type: number;
404
- attributes?: Attributes;
406
+ attributes?: Attributes$1;
405
407
  value?: string;
406
408
  shortEnded?: boolean;
407
409
  parent?: AstNode;
@@ -409,11 +411,13 @@ declare class AstNode {
409
411
  lastChild?: AstNode;
410
412
  next?: AstNode;
411
413
  prev?: AstNode;
414
+ raw?: boolean;
415
+ fixed?: boolean;
412
416
  constructor(name: string, type: number);
413
417
  replace(node: AstNode): AstNode;
414
- attr(name: string, value: string): string | AstNode;
415
- attr(name: Record<string, string>): AstNode;
416
- attr(name: string): string;
418
+ attr(name: string, value: string | null): AstNode | undefined;
419
+ attr(name: Record<string, string | null>): AstNode | undefined;
420
+ attr(name: string): string | undefined;
417
421
  clone(): AstNode;
418
422
  wrap(wrapper: AstNode): AstNode;
419
423
  unwrap(): void;
@@ -421,10 +425,12 @@ declare class AstNode {
421
425
  append(node: AstNode): AstNode;
422
426
  insert(node: AstNode, refNode: AstNode, before?: boolean): AstNode;
423
427
  getAll(name: string): AstNode[];
428
+ children(): AstNode[];
424
429
  empty(): AstNode;
425
430
  isEmpty(elements: SchemaMap, whitespace?: SchemaMap, predicate?: (node: AstNode) => boolean): boolean;
426
431
  walk(prev?: boolean): AstNode;
427
432
  }
433
+ declare type Content = string | AstNode;
428
434
  declare type ContentFormat = 'raw' | 'text' | 'html' | 'tree';
429
435
  interface GetContentArgs {
430
436
  format?: ContentFormat;
@@ -439,20 +445,12 @@ interface SetContentArgs {
439
445
  set?: boolean;
440
446
  content?: string;
441
447
  no_events?: boolean;
442
- }
443
- interface BlobCache {
444
- create: (o: string | BlobInfoData, blob?: Blob, base64?: string, filename?: string) => BlobInfo;
445
- add: (blobInfo: BlobInfo) => void;
446
- get: (id: string) => BlobInfo | undefined;
447
- getByUri: (blobUri: string) => BlobInfo | undefined;
448
- getByData: (base64: string, type: string) => BlobInfo | undefined;
449
- findFirst: (predicate: (blobInfo: BlobInfo) => boolean) => BlobInfo | undefined;
450
- removeByUri: (blobUri: string) => void;
451
- destroy: () => void;
448
+ no_selection?: boolean;
452
449
  }
453
450
  interface BlobInfoData {
454
451
  id?: string;
455
452
  name?: string;
453
+ filename?: string;
456
454
  blob: Blob;
457
455
  base64: string;
458
456
  blobUri?: string;
@@ -465,12 +463,61 @@ interface BlobInfo {
465
463
  blob: () => Blob;
466
464
  base64: () => string;
467
465
  blobUri: () => string;
468
- uri: () => string;
466
+ uri: () => string | undefined;
467
+ }
468
+ interface BlobCache {
469
+ create: (o: string | BlobInfoData, blob?: Blob, base64?: string, name?: string, filename?: string) => BlobInfo;
470
+ add: (blobInfo: BlobInfo) => void;
471
+ get: (id: string) => BlobInfo | undefined;
472
+ getByUri: (blobUri: string) => BlobInfo | undefined;
473
+ getByData: (base64: string, type: string) => BlobInfo | undefined;
474
+ findFirst: (predicate: (blobInfo: BlobInfo) => boolean) => BlobInfo | undefined;
475
+ removeByUri: (blobUri: string) => void;
476
+ destroy: () => void;
477
+ }
478
+ interface NotificationManagerImpl {
479
+ open: (spec: NotificationSpec, closeCallback?: () => void) => NotificationApi;
480
+ close: <T extends NotificationApi>(notification: T) => void;
481
+ reposition: <T extends NotificationApi>(notifications: T[]) => void;
482
+ getArgs: <T extends NotificationApi>(notification: T) => NotificationSpec;
483
+ }
484
+ interface NotificationSpec {
485
+ type?: 'info' | 'warning' | 'error' | 'success';
486
+ text: string;
487
+ icon?: string;
488
+ progressBar?: boolean;
489
+ timeout?: number;
490
+ closeButton?: boolean;
491
+ }
492
+ interface NotificationApi {
493
+ close: () => void;
494
+ progressBar: {
495
+ value: (percent: number) => void;
496
+ };
497
+ text: (text: string) => void;
498
+ moveTo: (x: number, y: number) => void;
499
+ moveRel: (element: Element, rel: 'tc-tc' | 'bc-bc' | 'bc-tc' | 'tc-bc' | 'banner') => void;
500
+ getEl: () => HTMLElement;
501
+ settings: NotificationSpec;
502
+ }
503
+ interface NotificationManager {
504
+ open: (spec: NotificationSpec) => NotificationApi;
505
+ close: () => void;
506
+ getNotifications: () => NotificationApi[];
469
507
  }
470
508
  interface UploadFailureOptions {
471
509
  remove?: boolean;
472
510
  }
473
511
  declare type UploadHandler = (blobInfo: BlobInfo, success: (url: string) => void, failure: (err: string, options?: UploadFailureOptions) => void, progress?: (percent: number) => void) => void;
512
+ interface UploadResult$2 {
513
+ url: string;
514
+ blobInfo: BlobInfo;
515
+ status: boolean;
516
+ error?: {
517
+ options: UploadFailureOptions;
518
+ message: string;
519
+ };
520
+ }
474
521
  interface RangeLikeObject {
475
522
  startContainer: Node;
476
523
  startOffset: number;
@@ -482,58 +529,74 @@ declare type RemoveFormat = RemoveBlockFormat | RemoveInlineFormat | RemoveSelec
482
529
  declare type Format = ApplyFormat | RemoveFormat;
483
530
  declare type Formats = Record<string, Format | Format[]>;
484
531
  declare type FormatAttrOrStyleValue = string | ((vars?: FormatVars) => string);
485
- declare type FormatVars = Record<string, string>;
486
- interface CommonFormat<T> {
532
+ declare type FormatVars = Record<string, string | null>;
533
+ interface BaseFormat<T> {
487
534
  ceFalseOverride?: boolean;
488
535
  classes?: string | string[];
489
536
  collapsed?: boolean;
490
537
  exact?: boolean;
491
538
  expand?: boolean;
492
539
  links?: boolean;
540
+ mixed?: boolean;
541
+ block_expand?: boolean;
493
542
  onmatch?: (node: Node, fmt: T, itemName: string) => boolean;
494
- onformat?: (elm: Node, fmt: T, vars?: FormatVars, node?: Node | RangeLikeObject) => void;
543
+ remove?: 'none' | 'empty' | 'all';
495
544
  remove_similar?: boolean;
545
+ split?: boolean;
546
+ deep?: boolean;
547
+ preserve_attributes?: string[];
548
+ }
549
+ interface Block {
550
+ block: string;
551
+ list_block?: string;
552
+ wrapper?: boolean;
553
+ }
554
+ interface Inline {
555
+ inline: string;
556
+ }
557
+ interface Selector {
558
+ selector: string;
559
+ inherit?: boolean;
496
560
  }
497
- interface CommonApplyFormat<T> extends CommonFormat<T> {
561
+ interface CommonFormat<T> extends BaseFormat<T> {
498
562
  attributes?: Record<string, FormatAttrOrStyleValue>;
499
- preview?: string | boolean;
500
563
  styles?: Record<string, FormatAttrOrStyleValue>;
501
564
  toggle?: boolean;
502
- wrapper?: boolean;
565
+ preview?: string | false;
566
+ onformat?: (elm: Node, fmt: T, vars?: FormatVars, node?: Node | RangeLikeObject) => void;
567
+ clear_child_styles?: boolean;
503
568
  merge_siblings?: boolean;
504
569
  merge_with_parents?: boolean;
570
+ defaultBlock?: string;
505
571
  }
506
- interface BlockFormat extends CommonApplyFormat<BlockFormat> {
507
- block: string;
508
- block_expand?: boolean;
572
+ interface BlockFormat extends Block, CommonFormat<BlockFormat> {
509
573
  }
510
- interface InlineFormat extends CommonApplyFormat<InlineFormat> {
511
- inline: string;
512
- clear_child_styles?: boolean;
574
+ interface InlineFormat extends Inline, CommonFormat<InlineFormat> {
513
575
  }
514
- interface SelectorFormat extends CommonApplyFormat<SelectorFormat> {
515
- selector: string;
516
- defaultBlock?: string;
517
- inherit?: boolean;
576
+ interface SelectorFormat extends Selector, CommonFormat<SelectorFormat> {
518
577
  }
519
- interface CommonRemoveFormat<T> extends CommonFormat<T> {
520
- remove?: 'none' | 'empty' | 'all';
578
+ interface CommonRemoveFormat<T> extends BaseFormat<T> {
521
579
  attributes?: string[] | Record<string, FormatAttrOrStyleValue>;
522
580
  styles?: string[] | Record<string, FormatAttrOrStyleValue>;
523
- split?: boolean;
524
- deep?: boolean;
525
- mixed?: boolean;
526
581
  }
527
- interface RemoveBlockFormat extends CommonRemoveFormat<RemoveBlockFormat> {
528
- block: string;
529
- list_block?: string;
582
+ interface RemoveBlockFormat extends Block, CommonRemoveFormat<RemoveBlockFormat> {
530
583
  }
531
- interface RemoveInlineFormat extends CommonRemoveFormat<RemoveInlineFormat> {
532
- inline: string;
533
- preserve_attributes?: string[];
584
+ interface RemoveInlineFormat extends Inline, CommonRemoveFormat<RemoveInlineFormat> {
534
585
  }
535
- interface RemoveSelectorFormat extends CommonRemoveFormat<RemoveSelectorFormat> {
536
- selector: string;
586
+ interface RemoveSelectorFormat extends Selector, CommonRemoveFormat<RemoveSelectorFormat> {
587
+ }
588
+ type Format_d_Formats = Formats;
589
+ type Format_d_Format = Format;
590
+ type Format_d_ApplyFormat = ApplyFormat;
591
+ type Format_d_BlockFormat = BlockFormat;
592
+ type Format_d_InlineFormat = InlineFormat;
593
+ type Format_d_SelectorFormat = SelectorFormat;
594
+ type Format_d_RemoveFormat = RemoveFormat;
595
+ type Format_d_RemoveBlockFormat = RemoveBlockFormat;
596
+ type Format_d_RemoveInlineFormat = RemoveInlineFormat;
597
+ type Format_d_RemoveSelectorFormat = RemoveSelectorFormat;
598
+ declare namespace Format_d {
599
+ export { Format_d_Formats as Formats, Format_d_Format as Format, Format_d_ApplyFormat as ApplyFormat, Format_d_BlockFormat as BlockFormat, Format_d_InlineFormat as InlineFormat, Format_d_SelectorFormat as SelectorFormat, Format_d_RemoveFormat as RemoveFormat, Format_d_RemoveBlockFormat as RemoveBlockFormat, Format_d_RemoveInlineFormat as RemoveInlineFormat, Format_d_RemoveSelectorFormat as RemoveSelectorFormat, };
537
600
  }
538
601
  declare type StyleFormat = BlockStyleFormat | InlineStyleFormat | SelectorStyleFormat;
539
602
  declare type AllowedFormat = Separator | FormatReference | StyleFormat | NestedFormatting;
@@ -550,6 +613,7 @@ interface NestedFormatting {
550
613
  items: Array<FormatReference | StyleFormat>;
551
614
  }
552
615
  interface CommonStyleFormat {
616
+ name?: string;
553
617
  title: string;
554
618
  icon?: string;
555
619
  }
@@ -597,6 +661,25 @@ interface ColorInputSpec extends FormComponentWithLabelSpec {
597
661
  interface ColorPickerSpec extends FormComponentWithLabelSpec {
598
662
  type: 'colorpicker';
599
663
  }
664
+ interface CustomEditorInit {
665
+ setValue: (value: string) => void;
666
+ getValue: () => string;
667
+ destroy: () => void;
668
+ }
669
+ declare type CustomEditorInitFn = (elm: HTMLElement, settings: any) => Promise<CustomEditorInit>;
670
+ interface CustomEditorOldSpec extends FormComponentSpec {
671
+ type: 'customeditor';
672
+ tag?: string;
673
+ init: (e: HTMLElement) => Promise<CustomEditorInit>;
674
+ }
675
+ interface CustomEditorNewSpec extends FormComponentSpec {
676
+ type: 'customeditor';
677
+ tag?: string;
678
+ scriptId: string;
679
+ scriptUrl: string;
680
+ settings?: any;
681
+ }
682
+ declare type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec;
600
683
  interface DropZoneSpec extends FormComponentWithLabelSpec {
601
684
  type: 'dropzone';
602
685
  }
@@ -605,6 +688,11 @@ interface GridSpec {
605
688
  columns: number;
606
689
  items: BodyComponentSpec[];
607
690
  }
691
+ interface HtmlPanelSpec {
692
+ type: 'htmlpanel';
693
+ html: string;
694
+ presets?: 'presentation' | 'document';
695
+ }
608
696
  interface IframeSpec extends FormComponentWithLabelSpec {
609
697
  type: 'iframe';
610
698
  sandboxed?: boolean;
@@ -643,6 +731,11 @@ interface ListBoxSpec extends FormComponentWithLabelSpec {
643
731
  items: ListBoxItemSpec[];
644
732
  disabled?: boolean;
645
733
  }
734
+ interface PanelSpec {
735
+ type: 'panel';
736
+ classes?: string[];
737
+ items: BodyComponentSpec[];
738
+ }
646
739
  interface SelectBoxItemSpec {
647
740
  text: string;
648
741
  value: string;
@@ -674,40 +767,11 @@ interface UrlInputSpec extends FormComponentWithLabelSpec {
674
767
  filetype?: 'image' | 'media' | 'file';
675
768
  disabled?: boolean;
676
769
  }
677
- interface HtmlPanelSpec {
678
- type: 'htmlpanel';
679
- html: string;
680
- presets?: 'presentation' | 'document';
681
- }
682
- interface PanelSpec {
683
- type: 'panel';
684
- classes?: string[];
685
- items: BodyComponentSpec[];
686
- }
687
- declare type BodyComponentSpec = BarSpec | ButtonSpec | CheckboxSpec | TextAreaSpec | InputSpec | ListBoxSpec | SelectBoxSpec | SizeInputSpec | IframeSpec | HtmlPanelSpec | UrlInputSpec | DropZoneSpec | ColorInputSpec | GridSpec | ColorPickerSpec | ImageToolsSpec | AlertBannerSpec | CollectionSpec | LabelSpec | TableSpec | PanelSpec;
770
+ declare type BodyComponentSpec = BarSpec | ButtonSpec | CheckboxSpec | TextAreaSpec | InputSpec | ListBoxSpec | SelectBoxSpec | SizeInputSpec | IframeSpec | HtmlPanelSpec | UrlInputSpec | DropZoneSpec | ColorInputSpec | GridSpec | ColorPickerSpec | ImageToolsSpec | AlertBannerSpec | CollectionSpec | LabelSpec | TableSpec | PanelSpec | CustomEditorSpec;
688
771
  interface BarSpec {
689
772
  type: 'bar';
690
773
  items: BodyComponentSpec[];
691
774
  }
692
- interface CustomEditorInit {
693
- setValue: (value: string) => void;
694
- getValue: () => string;
695
- destroy: () => void;
696
- }
697
- declare type CustomEditorInitFn = (elm: Element, settings: any) => Promise<CustomEditorInit>;
698
- interface CustomEditorOldSpec extends FormComponentSpec {
699
- type: 'customeditor';
700
- tag?: string;
701
- init: (e: Element) => Promise<CustomEditorInit>;
702
- }
703
- interface CustomEditorNewSpec extends FormComponentSpec {
704
- type: 'customeditor';
705
- tag?: string;
706
- scriptId: string;
707
- scriptUrl: string;
708
- settings?: any;
709
- }
710
- declare type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec;
711
775
  interface CommonMenuItemSpec {
712
776
  disabled?: boolean;
713
777
  text?: string;
@@ -829,11 +893,43 @@ interface UrlDialogSpec {
829
893
  onCancel?: UrlDialogCancelHandler;
830
894
  onMessage?: UrlDialogMessageHandler;
831
895
  }
896
+ declare type CardContainerDirection = 'vertical' | 'horizontal';
897
+ declare type CardContainerAlign = 'left' | 'right';
898
+ declare type CardContainerValign = 'top' | 'middle' | 'bottom';
899
+ interface CardContainerSpec {
900
+ type: 'cardcontainer';
901
+ items: CardItemSpec[];
902
+ direction?: CardContainerDirection;
903
+ align?: CardContainerAlign;
904
+ valign?: CardContainerValign;
905
+ }
906
+ interface CardImageSpec {
907
+ type: 'cardimage';
908
+ src: string;
909
+ alt?: string;
910
+ classes?: string[];
911
+ }
912
+ interface CardTextSpec {
913
+ type: 'cardtext';
914
+ text: string;
915
+ name?: string;
916
+ classes?: string[];
917
+ }
918
+ declare type CardItemSpec = CardContainerSpec | CardImageSpec | CardTextSpec;
919
+ interface CardMenuItemInstanceApi extends CommonMenuItemInstanceApi {
920
+ }
921
+ interface CardMenuItemSpec extends Omit<CommonMenuItemSpec, 'text' | 'shortcut'> {
922
+ type: 'cardmenuitem';
923
+ label?: string;
924
+ items: CardItemSpec[];
925
+ onSetup?: (api: CardMenuItemInstanceApi) => (api: CardMenuItemInstanceApi) => void;
926
+ onAction?: (api: CardMenuItemInstanceApi) => void;
927
+ }
832
928
  interface SeparatorMenuItemSpec {
833
929
  type?: 'separator';
834
930
  text?: string;
835
931
  }
836
- declare type ColumnTypes = number | 'auto';
932
+ declare type ColumnTypes$1 = number | 'auto';
837
933
  declare type SeparatorItemSpec = SeparatorMenuItemSpec;
838
934
  interface AutocompleterItemSpec {
839
935
  type?: 'autocompleteitem';
@@ -842,16 +938,17 @@ interface AutocompleterItemSpec {
842
938
  icon?: string;
843
939
  meta?: Record<string, any>;
844
940
  }
845
- declare type AutocompleterContents = SeparatorItemSpec | AutocompleterItemSpec;
941
+ declare type AutocompleterContents = SeparatorItemSpec | AutocompleterItemSpec | CardMenuItemSpec;
846
942
  interface AutocompleterSpec {
847
943
  type?: 'autocompleter';
848
944
  ch: string;
849
945
  minChars?: number;
850
- columns?: ColumnTypes;
946
+ columns?: ColumnTypes$1;
851
947
  matches?: (rng: Range, text: string, pattern: string) => boolean;
852
948
  fetch: (pattern: string, maxResults: number, fetchOptions: Record<string, any>) => Promise<AutocompleterContents[]>;
853
- onAction: (autocompleterApi: AutocompleterInstanceApi, rng: any, value: string, meta: Record<string, any>) => void;
949
+ onAction: (autocompleterApi: AutocompleterInstanceApi, rng: Range, value: string, meta: Record<string, any>) => void;
854
950
  maxResults?: number;
951
+ highlightOn?: string[];
855
952
  }
856
953
  interface AutocompleterInstanceApi {
857
954
  hide: () => void;
@@ -937,13 +1034,13 @@ interface ChoiceMenuItemInstanceApi extends CommonMenuItemInstanceApi {
937
1034
  isActive: () => boolean;
938
1035
  setActive: (state: boolean) => void;
939
1036
  }
940
- interface ContextMenuItem {
1037
+ interface ContextMenuItem extends CommonMenuItemSpec {
941
1038
  text: string;
942
1039
  icon?: string;
943
1040
  type?: 'item';
944
1041
  onAction: () => void;
945
1042
  }
946
- interface ContextSubMenu {
1043
+ interface ContextSubMenu extends CommonMenuItemSpec {
947
1044
  type: 'submenu';
948
1045
  text: string;
949
1046
  icon?: string;
@@ -953,11 +1050,33 @@ declare type ContextMenuContents = string | ContextMenuItem | SeparatorMenuItemS
953
1050
  interface ContextMenuApi {
954
1051
  update: (element: Element) => string | Array<ContextMenuContents>;
955
1052
  }
956
- interface FancyMenuItemSpec {
1053
+ interface FancyActionArgsMap {
1054
+ 'inserttable': {
1055
+ numRows: number;
1056
+ numColumns: number;
1057
+ };
1058
+ 'colorswatch': {
1059
+ value: string;
1060
+ };
1061
+ }
1062
+ interface BaseFancyMenuItemSpec<T extends keyof FancyActionArgsMap> {
957
1063
  type: 'fancymenuitem';
958
- fancytype: string;
959
- onAction: (data: any) => void;
1064
+ fancytype: T;
1065
+ initData?: Record<string, unknown>;
1066
+ onAction?: (data: FancyActionArgsMap[T]) => void;
1067
+ }
1068
+ interface InsertTableMenuItemSpec extends BaseFancyMenuItemSpec<'inserttable'> {
1069
+ fancytype: 'inserttable';
1070
+ initData?: {};
1071
+ }
1072
+ interface ColorSwatchMenuItemSpec extends BaseFancyMenuItemSpec<'colorswatch'> {
1073
+ fancytype: 'colorswatch';
1074
+ initData?: {
1075
+ allowCustomColors?: boolean;
1076
+ colors: ChoiceMenuItemSpec[];
1077
+ };
960
1078
  }
1079
+ declare type FancyMenuItemSpec = InsertTableMenuItemSpec | ColorSwatchMenuItemSpec;
961
1080
  interface MenuItemSpec extends CommonMenuItemSpec {
962
1081
  type?: 'menuitem';
963
1082
  icon?: string;
@@ -1056,6 +1175,8 @@ type PublicMenu_d_NestedMenuItemContents = NestedMenuItemContents;
1056
1175
  type PublicMenu_d_NestedMenuItemSpec = NestedMenuItemSpec;
1057
1176
  type PublicMenu_d_NestedMenuItemInstanceApi = NestedMenuItemInstanceApi;
1058
1177
  type PublicMenu_d_FancyMenuItemSpec = FancyMenuItemSpec;
1178
+ type PublicMenu_d_ColorSwatchMenuItemSpec = ColorSwatchMenuItemSpec;
1179
+ type PublicMenu_d_InsertTableMenuItemSpec = InsertTableMenuItemSpec;
1059
1180
  type PublicMenu_d_ToggleMenuItemSpec = ToggleMenuItemSpec;
1060
1181
  type PublicMenu_d_ToggleMenuItemInstanceApi = ToggleMenuItemInstanceApi;
1061
1182
  type PublicMenu_d_ChoiceMenuItemSpec = ChoiceMenuItemSpec;
@@ -1065,8 +1186,14 @@ type PublicMenu_d_ContextMenuApi = ContextMenuApi;
1065
1186
  type PublicMenu_d_ContextMenuContents = ContextMenuContents;
1066
1187
  type PublicMenu_d_ContextMenuItem = ContextMenuItem;
1067
1188
  type PublicMenu_d_ContextSubMenu = ContextSubMenu;
1189
+ type PublicMenu_d_CardMenuItemSpec = CardMenuItemSpec;
1190
+ type PublicMenu_d_CardMenuItemInstanceApi = CardMenuItemInstanceApi;
1191
+ type PublicMenu_d_CardItemSpec = CardItemSpec;
1192
+ type PublicMenu_d_CardContainerSpec = CardContainerSpec;
1193
+ type PublicMenu_d_CardImageSpec = CardImageSpec;
1194
+ type PublicMenu_d_CardTextSpec = CardTextSpec;
1068
1195
  declare namespace PublicMenu_d {
1069
- export { PublicMenu_d_MenuItemSpec as MenuItemSpec, PublicMenu_d_MenuItemInstanceApi as MenuItemInstanceApi, PublicMenu_d_NestedMenuItemContents as NestedMenuItemContents, PublicMenu_d_NestedMenuItemSpec as NestedMenuItemSpec, PublicMenu_d_NestedMenuItemInstanceApi as NestedMenuItemInstanceApi, PublicMenu_d_FancyMenuItemSpec as FancyMenuItemSpec, PublicMenu_d_ToggleMenuItemSpec as ToggleMenuItemSpec, PublicMenu_d_ToggleMenuItemInstanceApi as ToggleMenuItemInstanceApi, PublicMenu_d_ChoiceMenuItemSpec as ChoiceMenuItemSpec, PublicMenu_d_ChoiceMenuItemInstanceApi as ChoiceMenuItemInstanceApi, PublicMenu_d_SeparatorMenuItemSpec as SeparatorMenuItemSpec, PublicMenu_d_ContextMenuApi as ContextMenuApi, PublicMenu_d_ContextMenuContents as ContextMenuContents, PublicMenu_d_ContextMenuItem as ContextMenuItem, PublicMenu_d_ContextSubMenu as ContextSubMenu, };
1196
+ export { PublicMenu_d_MenuItemSpec as MenuItemSpec, PublicMenu_d_MenuItemInstanceApi as MenuItemInstanceApi, PublicMenu_d_NestedMenuItemContents as NestedMenuItemContents, PublicMenu_d_NestedMenuItemSpec as NestedMenuItemSpec, PublicMenu_d_NestedMenuItemInstanceApi as NestedMenuItemInstanceApi, PublicMenu_d_FancyMenuItemSpec as FancyMenuItemSpec, PublicMenu_d_ColorSwatchMenuItemSpec as ColorSwatchMenuItemSpec, PublicMenu_d_InsertTableMenuItemSpec as InsertTableMenuItemSpec, PublicMenu_d_ToggleMenuItemSpec as ToggleMenuItemSpec, PublicMenu_d_ToggleMenuItemInstanceApi as ToggleMenuItemInstanceApi, PublicMenu_d_ChoiceMenuItemSpec as ChoiceMenuItemSpec, PublicMenu_d_ChoiceMenuItemInstanceApi as ChoiceMenuItemInstanceApi, PublicMenu_d_SeparatorMenuItemSpec as SeparatorMenuItemSpec, PublicMenu_d_ContextMenuApi as ContextMenuApi, PublicMenu_d_ContextMenuContents as ContextMenuContents, PublicMenu_d_ContextMenuItem as ContextMenuItem, PublicMenu_d_ContextSubMenu as ContextSubMenu, PublicMenu_d_CardMenuItemSpec as CardMenuItemSpec, PublicMenu_d_CardMenuItemInstanceApi as CardMenuItemInstanceApi, PublicMenu_d_CardItemSpec as CardItemSpec, PublicMenu_d_CardContainerSpec as CardContainerSpec, PublicMenu_d_CardImageSpec as CardImageSpec, PublicMenu_d_CardTextSpec as CardTextSpec, };
1070
1197
  }
1071
1198
  interface SidebarInstanceApi {
1072
1199
  element: () => HTMLElement;
@@ -1095,12 +1222,12 @@ interface GroupToolbarButtonSpec extends BaseToolbarButtonSpec<GroupToolbarButto
1095
1222
  items?: ToolbarConfig;
1096
1223
  }
1097
1224
  declare type MenuButtonItemTypes = NestedMenuItemContents;
1098
- declare type SuccessCallback = (menu: string | MenuButtonItemTypes[]) => void;
1225
+ declare type SuccessCallback$1 = (menu: string | MenuButtonItemTypes[]) => void;
1099
1226
  interface BaseMenuButtonSpec {
1100
1227
  text?: string;
1101
1228
  tooltip?: string;
1102
1229
  icon?: string;
1103
- fetch: (success: SuccessCallback) => void;
1230
+ fetch: (success: SuccessCallback$1) => void;
1104
1231
  onSetup?: (api: BaseMenuButtonInstanceApi) => (api: BaseMenuButtonInstanceApi) => void;
1105
1232
  }
1106
1233
  interface BaseMenuButtonInstanceApi {
@@ -1116,10 +1243,10 @@ interface ToolbarMenuButtonSpec extends BaseMenuButtonSpec {
1116
1243
  interface ToolbarMenuButtonInstanceApi extends BaseMenuButtonInstanceApi {
1117
1244
  }
1118
1245
  declare type ToolbarSplitButtonItemTypes = ChoiceMenuItemSpec | SeparatorMenuItemSpec;
1119
- declare type SuccessCallback$1 = (menu: ToolbarSplitButtonItemTypes[]) => void;
1246
+ declare type SuccessCallback = (menu: ToolbarSplitButtonItemTypes[]) => void;
1120
1247
  declare type SelectPredicate = (value: string) => boolean;
1121
1248
  declare type PresetTypes = 'color' | 'normal' | 'listpreview';
1122
- declare type ColumnTypes$1 = number | 'auto';
1249
+ declare type ColumnTypes = number | 'auto';
1123
1250
  interface ToolbarSplitButtonSpec {
1124
1251
  type?: 'splitbutton';
1125
1252
  tooltip?: string;
@@ -1127,8 +1254,8 @@ interface ToolbarSplitButtonSpec {
1127
1254
  text?: string;
1128
1255
  select?: SelectPredicate;
1129
1256
  presets?: PresetTypes;
1130
- columns?: ColumnTypes$1;
1131
- fetch: (success: SuccessCallback$1) => void;
1257
+ columns?: ColumnTypes;
1258
+ fetch: (success: SuccessCallback) => void;
1132
1259
  onSetup?: (api: ToolbarSplitButtonInstanceApi) => (api: ToolbarSplitButtonInstanceApi) => void;
1133
1260
  onAction: (api: ToolbarSplitButtonInstanceApi) => void;
1134
1261
  onItemAction: (api: ToolbarSplitButtonInstanceApi, value: string) => void;
@@ -1154,7 +1281,7 @@ type PublicToolbar_d_GroupToolbarButtonInstanceApi = GroupToolbarButtonInstanceA
1154
1281
  declare namespace PublicToolbar_d {
1155
1282
  export { PublicToolbar_d_ToolbarButtonSpec as ToolbarButtonSpec, PublicToolbar_d_ToolbarButtonInstanceApi as ToolbarButtonInstanceApi, PublicToolbar_d_ToolbarSplitButtonSpec as ToolbarSplitButtonSpec, PublicToolbar_d_ToolbarSplitButtonInstanceApi as ToolbarSplitButtonInstanceApi, PublicToolbar_d_ToolbarMenuButtonSpec as ToolbarMenuButtonSpec, PublicToolbar_d_ToolbarMenuButtonInstanceApi as ToolbarMenuButtonInstanceApi, PublicToolbar_d_ToolbarToggleButtonSpec as ToolbarToggleButtonSpec, PublicToolbar_d_ToolbarToggleButtonInstanceApi as ToolbarToggleButtonInstanceApi, PublicToolbar_d_GroupToolbarButtonSpec as GroupToolbarButtonSpec, PublicToolbar_d_GroupToolbarButtonInstanceApi as GroupToolbarButtonInstanceApi, };
1156
1283
  }
1157
- interface Registry {
1284
+ interface Registry$1 {
1158
1285
  addButton: (name: string, spec: ToolbarButtonSpec) => void;
1159
1286
  addGroupToolbarButton: (name: string, spec: GroupToolbarButtonSpec) => void;
1160
1287
  addToggleButton: (name: string, spec: ToolbarToggleButtonSpec) => void;
@@ -1179,6 +1306,11 @@ interface Registry {
1179
1306
  sidebars: Record<string, SidebarSpec>;
1180
1307
  };
1181
1308
  }
1309
+ interface StyleSheetLoaderSettings {
1310
+ maxLoadTime?: number;
1311
+ contentCssCors?: boolean;
1312
+ referrerPolicy?: ReferrerPolicy;
1313
+ }
1182
1314
  interface StyleSheetLoader {
1183
1315
  load: (url: string, success: () => void, failure?: () => void) => void;
1184
1316
  loadAll: (urls: string[], success: (urls: string[]) => void, failure: (urls: string[]) => void) => void;
@@ -1186,26 +1318,30 @@ interface StyleSheetLoader {
1186
1318
  unloadAll: (urls: string[]) => void;
1187
1319
  _setReferrerPolicy: (referrerPolicy: ReferrerPolicy) => void;
1188
1320
  }
1189
- interface StyleSheetLoaderSettings {
1190
- maxLoadTime?: number;
1191
- contentCssCors?: boolean;
1192
- referrerPolicy?: ReferrerPolicy;
1193
- }
1194
- declare type Registry$1 = Registry;
1321
+ declare type Registry = Registry$1;
1195
1322
  interface EditorUiApi {
1196
1323
  show: () => void;
1197
1324
  hide: () => void;
1325
+ enable: () => void;
1326
+ disable: () => void;
1327
+ isDisabled: () => boolean;
1198
1328
  }
1199
1329
  interface EditorUi extends EditorUiApi {
1200
- registry: Registry$1;
1330
+ registry: Registry;
1201
1331
  styleSheetLoader: StyleSheetLoader;
1202
1332
  }
1333
+ type Ui_d_Registry = Registry;
1203
1334
  type Ui_d_EditorUiApi = EditorUiApi;
1204
1335
  type Ui_d_EditorUi = EditorUi;
1205
1336
  declare namespace Ui_d {
1206
- export { Ui_d_EditorUiApi as EditorUiApi, Ui_d_EditorUi as EditorUi, Registry$1 as Registry, PublicDialog_d as Dialog, PublicInlineContent_d as InlineContent, PublicMenu_d as Menu, PublicSidebar_d as Sidebar, PublicToolbar_d as Toolbar, };
1337
+ export { Ui_d_Registry as Registry, PublicDialog_d as Dialog, PublicInlineContent_d as InlineContent, PublicMenu_d as Menu, PublicSidebar_d as Sidebar, PublicToolbar_d as Toolbar, Ui_d_EditorUiApi as EditorUiApi, Ui_d_EditorUi as EditorUi, };
1338
+ }
1339
+ declare type EntityEncoding = 'named' | 'numeric' | 'raw' | 'named,numeric' | 'named+numeric' | 'numeric,named' | 'numeric+named';
1340
+ interface ContentLanguage {
1341
+ readonly title: string;
1342
+ readonly code: string;
1343
+ readonly customCode?: string;
1207
1344
  }
1208
- declare type EntityEncoding = 'named' | 'numeric' | 'raw';
1209
1345
  declare type ThemeInitFunc = (editor: Editor, elm: HTMLElement) => {
1210
1346
  editorContainer: HTMLElement;
1211
1347
  iframeContainer: HTMLElement;
@@ -1237,6 +1373,7 @@ interface BaseEditorSettings {
1237
1373
  allow_html_data_urls?: boolean;
1238
1374
  allow_html_in_named_anchor?: boolean;
1239
1375
  allow_script_urls?: boolean;
1376
+ allow_svg_data_urls?: boolean;
1240
1377
  allow_unsafe_link_target?: boolean;
1241
1378
  anchor_bottom?: false | string;
1242
1379
  anchor_top?: false | string;
@@ -1258,6 +1395,9 @@ interface BaseEditorSettings {
1258
1395
  content_css_cors?: boolean;
1259
1396
  content_security_policy?: string;
1260
1397
  content_style?: string;
1398
+ deprecation_warnings?: boolean;
1399
+ font_css?: string | string[];
1400
+ content_langs?: ContentLanguage[];
1261
1401
  contextmenu?: string | false;
1262
1402
  contextmenu_never_use_native?: boolean;
1263
1403
  convert_fonts_to_spans?: boolean;
@@ -1282,6 +1422,7 @@ interface BaseEditorSettings {
1282
1422
  file_picker_validator_handler?: FilePickerValidationCallback;
1283
1423
  fix_list_elements?: boolean;
1284
1424
  fixed_toolbar_container?: string;
1425
+ fixed_toolbar_container_target?: HTMLElement;
1285
1426
  font_formats?: string;
1286
1427
  font_size_classes?: string;
1287
1428
  font_size_legacy_values?: string;
@@ -1297,7 +1438,9 @@ interface BaseEditorSettings {
1297
1438
  icons?: string;
1298
1439
  icons_url?: string;
1299
1440
  id?: string;
1441
+ iframe_aria_text?: string;
1300
1442
  images_dataimg_filter?: (imgElm: HTMLImageElement) => boolean;
1443
+ images_file_types?: string;
1301
1444
  images_replace_blob_uris?: boolean;
1302
1445
  images_reuse_filename?: boolean;
1303
1446
  images_upload_base_path?: string;
@@ -1315,7 +1458,7 @@ interface BaseEditorSettings {
1315
1458
  inline_boundaries_selector?: string;
1316
1459
  inline_styles?: boolean;
1317
1460
  invalid_elements?: string;
1318
- invalid_styles?: string;
1461
+ invalid_styles?: string | Record<string, string>;
1319
1462
  keep_styles?: boolean;
1320
1463
  language?: string;
1321
1464
  language_load?: boolean;
@@ -1333,6 +1476,7 @@ interface BaseEditorSettings {
1333
1476
  no_newline_selector?: string;
1334
1477
  nowrap?: boolean;
1335
1478
  object_resizing?: boolean | string;
1479
+ padd_empty_with_br?: boolean;
1336
1480
  placeholder?: string;
1337
1481
  preserve_cdata?: boolean;
1338
1482
  preview_styles?: boolean | string;
@@ -1379,6 +1523,7 @@ interface BaseEditorSettings {
1379
1523
  valid_classes?: string | Record<string, string>;
1380
1524
  valid_elements?: string;
1381
1525
  valid_styles?: string | Record<string, string>;
1526
+ verify_html?: boolean;
1382
1527
  visual?: boolean;
1383
1528
  visual_anchor_class?: string;
1384
1529
  visual_table_class?: string;
@@ -1399,6 +1544,7 @@ interface BaseEditorSettings {
1399
1544
  text_block_elements?: string;
1400
1545
  text_inline_elements?: string;
1401
1546
  whitespace_elements?: string;
1547
+ special?: string;
1402
1548
  disable_nodechange?: boolean;
1403
1549
  forced_plugins?: string | string[];
1404
1550
  plugin_base_urls?: Record<string, string>;
@@ -1472,13 +1618,13 @@ interface GeomRect {
1472
1618
  readonly h: number;
1473
1619
  }
1474
1620
  interface Rect {
1475
- inflate(rect: GeomRect, w: number, h: number): GeomRect;
1476
- relativePosition(rect: GeomRect, targetRect: GeomRect, rel: string): GeomRect;
1477
- findBestRelativePosition(rect: GeomRect, targetRect: GeomRect, constrainRect: GeomRect, rels: string[]): string | null;
1478
- intersect(rect: GeomRect, cropRect: GeomRect): GeomRect | null;
1479
- clamp(rect: GeomRect, clampRect: GeomRect, fixedSize?: boolean): GeomRect;
1480
- create(x: number, y: number, w: number, h: number): GeomRect;
1481
- fromClientRect(clientRect: ClientRect): GeomRect;
1621
+ inflate: (rect: GeomRect, w: number, h: number) => GeomRect;
1622
+ relativePosition: (rect: GeomRect, targetRect: GeomRect, rel: string) => GeomRect;
1623
+ findBestRelativePosition: (rect: GeomRect, targetRect: GeomRect, constrainRect: GeomRect, rels: string[]) => string | null;
1624
+ intersect: (rect: GeomRect, cropRect: GeomRect) => GeomRect | null;
1625
+ clamp: (rect: GeomRect, clampRect: GeomRect, fixedSize?: boolean) => GeomRect;
1626
+ create: (x: number, y: number, w: number, h: number) => GeomRect;
1627
+ fromClientRect: (clientRect: DOMRect) => GeomRect;
1482
1628
  }
1483
1629
  interface StyleMap {
1484
1630
  [s: string]: string | number;
@@ -1490,16 +1636,15 @@ interface StylesSettings {
1490
1636
  url_converter_scope?: any;
1491
1637
  }
1492
1638
  interface Styles {
1493
- toHex(color: string): string;
1494
- parse(css: string): Record<string, string>;
1495
- serialize(styles: StyleMap, elementName?: string): string;
1639
+ toHex: (color: string) => string;
1640
+ parse: (css: string) => Record<string, string>;
1641
+ serialize: (styles: StyleMap, elementName?: string) => string;
1496
1642
  }
1497
1643
  interface DOMUtilsSettings {
1498
1644
  schema: Schema;
1499
1645
  url_converter: URLConverter;
1500
- url_converter_scope: {};
1646
+ url_converter_scope: any;
1501
1647
  ownEvents: boolean;
1502
- proxy: any;
1503
1648
  keep_values: boolean;
1504
1649
  hex_colors: boolean;
1505
1650
  update_styles: boolean;
@@ -1511,7 +1656,12 @@ interface DOMUtilsSettings {
1511
1656
  }
1512
1657
  declare type Target = Node | Window;
1513
1658
  declare type RunArguments<T extends Node = Node> = string | T | Array<string | T>;
1514
- declare type BoundEvent = [Target, string, EventUtilsCallback<any>, any];
1659
+ declare type BoundEvent = [
1660
+ Target,
1661
+ string,
1662
+ EventUtilsCallback<any>,
1663
+ any
1664
+ ];
1515
1665
  declare type Callback<K extends string> = EventUtilsCallback<MappedEvent<HTMLElementEventMap, K>>;
1516
1666
  interface DOMUtils {
1517
1667
  doc: Document;
@@ -1527,93 +1677,122 @@ interface DOMUtils {
1527
1677
  events: EventUtils;
1528
1678
  root: Node;
1529
1679
  $: DomQueryConstructor;
1530
- $$<T extends Node>(elm: T | T[] | DomQuery<T>): DomQuery<T>;
1531
- $$(elm: string): DomQuery<Node>;
1532
- isBlock(node: string | Node): boolean;
1533
- clone(node: Node, deep: boolean): Node;
1534
- getRoot(): HTMLElement;
1535
- getViewPort(argWin?: Window): GeomRect;
1536
- getRect(elm: string | HTMLElement): GeomRect;
1537
- getSize(elm: string | HTMLElement): {
1680
+ $$: {
1681
+ <T extends Node>(elm: T | T[] | DomQuery<T>): DomQuery<T>;
1682
+ (elm: string): DomQuery<Node>;
1683
+ };
1684
+ isBlock: (node: string | Node) => boolean;
1685
+ clone: (node: Node, deep: boolean) => Node;
1686
+ getRoot: () => HTMLElement;
1687
+ getViewPort: (argWin?: Window) => GeomRect;
1688
+ getRect: (elm: string | HTMLElement) => GeomRect;
1689
+ getSize: (elm: string | HTMLElement) => {
1538
1690
  w: number;
1539
1691
  h: number;
1540
1692
  };
1541
- getParent<K extends keyof HTMLElementTagNameMap>(node: string | Node, selector: K, root?: Node): HTMLElementTagNameMap[K] | null;
1542
- getParent<T extends HTMLElement>(node: string | Node, selector: (node: HTMLElement) => node is T, root?: Node): T | null;
1543
- getParent<T extends Element = Element>(node: string | Node, selector?: string | ((node: HTMLElement) => boolean | void), root?: Node): T | null;
1544
- getParents<K extends keyof HTMLElementTagNameMap>(elm: string | Node, selector: K, root?: Node, collect?: boolean): Array<HTMLElementTagNameMap[K]>;
1545
- getParents<T extends HTMLElement>(node: string | Node, selector: (node: HTMLElement) => node is T, root?: Node): T[];
1546
- getParents<T extends Element = Element>(elm: string | Node, selector?: string | ((node: HTMLElement) => boolean | void), root?: Node, collect?: boolean): T[];
1547
- get(elm: string | Node): HTMLElement | null;
1548
- getNext(node: Node, selector: string | ((node: Node) => boolean)): Node | null;
1549
- getPrev(node: Node, selector: string | ((node: Node) => boolean)): Node | null;
1550
- select<K extends keyof HTMLElementTagNameMap>(selector: K, scope?: string | Node): Array<HTMLElementTagNameMap[K]>;
1551
- select<T extends HTMLElement = HTMLElement>(selector: string, scope?: string | Node): T[];
1552
- is(elm: Node | Node[], selector: string): boolean;
1553
- add(parentElm: RunArguments, name: string | Node, attrs?: Record<string, string | boolean | number>, html?: string | Node, create?: boolean): HTMLElement;
1554
- create(name: string, attrs?: Record<string, string | boolean | number>, html?: string | Node): HTMLElement;
1555
- createHTML(name: string, attrs?: Record<string, string>, html?: string): string;
1556
- createFragment(html?: string): DocumentFragment;
1557
- remove<T extends Node>(node: string | T | T[] | DomQuery<T>, keepChildren?: boolean): T | T[];
1558
- setStyle(elm: string | Node, name: string, value: string | number | null): void;
1559
- setStyle(elm: string | Node, styles: StyleMap): void;
1560
- getStyle(elm: string | Node, name: string, computed?: boolean): string;
1561
- setStyles(elm: string | Node, stylesArg: StyleMap): void;
1562
- removeAllAttribs(e: RunArguments<Element>): void;
1563
- setAttrib(elm: string | Node, name: string, value: string | boolean | number | null): void;
1564
- setAttribs(elm: string | Node, attrs: Record<string, string | boolean | number | null>): void;
1565
- getAttrib(elm: string | Node, name: string, defaultVal?: string): string;
1566
- getPos(elm: string | Node, rootElm?: Node): {
1693
+ getParent: {
1694
+ <K extends keyof HTMLElementTagNameMap>(node: string | Node, selector: K, root?: Node): HTMLElementTagNameMap[K] | null;
1695
+ <T extends HTMLElement>(node: string | Node, selector: (node: HTMLElement) => node is T, root?: Node): T | null;
1696
+ <T extends Element = Element>(node: string | Node, selector?: string | ((node: HTMLElement) => boolean | void), root?: Node): T | null;
1697
+ };
1698
+ getParents: {
1699
+ <K extends keyof HTMLElementTagNameMap>(elm: string | Node, selector: K, root?: Node, collect?: boolean): Array<HTMLElementTagNameMap[K]>;
1700
+ <T extends HTMLElement>(node: string | Node, selector: (node: HTMLElement) => node is T, root?: Node): T[];
1701
+ <T extends Element = Element>(elm: string | Node, selector?: string | ((node: HTMLElement) => boolean | void), root?: Node, collect?: boolean): T[];
1702
+ };
1703
+ get: (elm: string | Node) => HTMLElement | null;
1704
+ getNext: (node: Node, selector: string | ((node: Node) => boolean)) => Node | null;
1705
+ getPrev: (node: Node, selector: string | ((node: Node) => boolean)) => Node | null;
1706
+ select: {
1707
+ <K extends keyof HTMLElementTagNameMap>(selector: K, scope?: string | Node): Array<HTMLElementTagNameMap[K]>;
1708
+ <T extends HTMLElement = HTMLElement>(selector: string, scope?: string | Node): T[];
1709
+ };
1710
+ is: (elm: Node | Node[], selector: string) => boolean;
1711
+ add: (parentElm: RunArguments, name: string | Node, attrs?: Record<string, string | boolean | number>, html?: string | Node, create?: boolean) => HTMLElement;
1712
+ create: {
1713
+ <K extends keyof HTMLElementTagNameMap>(name: K, attrs?: Record<string, string | boolean | number>, html?: string | Node): HTMLElementTagNameMap[K];
1714
+ (name: string, attrs?: Record<string, string | boolean | number>, html?: string | Node): HTMLElement;
1715
+ };
1716
+ createHTML: (name: string, attrs?: Record<string, string>, html?: string) => string;
1717
+ createFragment: (html?: string) => DocumentFragment;
1718
+ remove: <T extends Node>(node: string | T | T[] | DomQuery<T>, keepChildren?: boolean) => T | T[];
1719
+ setStyle: {
1720
+ (elm: string | Node | Node[], name: string, value: string | number | null): void;
1721
+ (elm: string | Node | Node[], styles: StyleMap): void;
1722
+ };
1723
+ getStyle: (elm: string | Node, name: string, computed?: boolean) => string;
1724
+ setStyles: (elm: string | Node | Node[], stylesArg: StyleMap) => void;
1725
+ removeAllAttribs: (e: RunArguments<Element>) => void;
1726
+ setAttrib: (elm: string | Node | Node[], name: string, value: string | boolean | number | null) => void;
1727
+ setAttribs: (elm: string | Node | Node[], attrs: Record<string, string | boolean | number | null>) => void;
1728
+ getAttrib: (elm: string | Node, name: string, defaultVal?: string) => string;
1729
+ getPos: (elm: string | Node, rootElm?: Node) => {
1567
1730
  x: number;
1568
1731
  y: number;
1569
1732
  };
1570
- parseStyle(cssText: string): Record<string, string>;
1571
- serializeStyle(stylesArg: StyleMap, name?: string): string;
1572
- addStyle(cssText: string): void;
1573
- loadCSS(url: string): void;
1574
- addClass(elm: string | Node | Node[], cls: string): void;
1575
- removeClass(elm: string | Node | Node[], cls: string): void;
1576
- hasClass(elm: string | Node, cls: string): boolean;
1577
- toggleClass(elm: string | Node | Node[], cls: string, state?: boolean): void;
1578
- show(elm: string | Node): void;
1579
- hide(elm: string | Node): void;
1580
- isHidden(elm: string | Node): boolean;
1581
- uniqueId(prefix?: string): string;
1582
- setHTML(elm: string | Node, html: string): void;
1583
- getOuterHTML(elm: string | Node): string;
1584
- setOuterHTML(elm: string | Node, html: string): void;
1585
- decode(text: string): string;
1586
- encode(text: string): string;
1587
- insertAfter<T extends Node>(node: T | T[], reference: string | Node): T;
1588
- insertAfter<T extends Node>(node: RunArguments<T>, reference: string | Node): false | T;
1589
- replace<T extends Node>(newElm: Node, oldElm: T | T[], keepChildren?: boolean): T;
1590
- replace<T extends Node>(newElm: Node, oldElm: RunArguments<T>, keepChildren?: boolean): false | T;
1591
- rename<K extends keyof HTMLElementTagNameMap>(elm: Element, name: K): HTMLElementTagNameMap[K];
1592
- rename(elm: Element, name: string): Element;
1593
- findCommonAncestor(a: Node, b: Node): Node;
1594
- toHex(rgbVal: string): string;
1595
- run<R, T extends Node>(elm: T | T[], func: (node: T) => R, scope?: any): R;
1596
- run<R, T extends Node>(elm: RunArguments<T>, func: (node: T) => R, scope?: any): false | R;
1597
- getAttribs(elm: string | Node): NamedNodeMap | Attr[];
1598
- isEmpty(node: Node, elements?: Record<string, any>): boolean;
1599
- createRng(): Range;
1600
- nodeIndex(node: Node, normalized?: boolean): number;
1601
- split<T extends Node>(parentElm: Node, splitElm: Node, replacementElm: T): T;
1602
- split<T extends Node>(parentElm: Node, splitElm: T): T;
1603
- bind<K extends string>(target: Target, name: K, func: Callback<K>, scope?: any): Callback<K>;
1604
- bind<K extends string>(target: Target[], name: K, func: Callback<K>, scope?: any): Callback<K>[];
1605
- unbind<K extends string>(target: Target, name?: K, func?: EventUtilsCallback<MappedEvent<HTMLElementEventMap, K>>): EventUtils;
1606
- unbind<K extends string>(target: Target[], name?: K, func?: EventUtilsCallback<MappedEvent<HTMLElementEventMap, K>>): EventUtils[];
1607
- fire(target: Node | Window, name: string, evt?: {}): EventUtils;
1608
- getContentEditable(node: Node): string | null;
1609
- getContentEditableParent(node: Node): string | null;
1610
- destroy(): void;
1611
- isChildOf(node: Node, parent: Node): boolean;
1612
- dumpRng(r: Range): string;
1613
- }
1614
- declare namespace DOMUtils {
1615
- const DOM: DOMUtils;
1616
- const nodeIndex: (node: Node, normalized?: boolean) => number;
1733
+ parseStyle: (cssText: string) => Record<string, string>;
1734
+ serializeStyle: (stylesArg: StyleMap, name?: string) => string;
1735
+ addStyle: (cssText: string) => void;
1736
+ loadCSS: (url: string) => void;
1737
+ addClass: (elm: string | Node | Node[], cls: string) => void;
1738
+ removeClass: (elm: string | Node | Node[], cls: string) => void;
1739
+ hasClass: (elm: string | Node, cls: string) => boolean;
1740
+ toggleClass: (elm: string | Node | Node[], cls: string, state?: boolean) => void;
1741
+ show: (elm: string | Node | Node[]) => void;
1742
+ hide: (elm: string | Node | Node[]) => void;
1743
+ isHidden: (elm: string | Node) => boolean;
1744
+ uniqueId: (prefix?: string) => string;
1745
+ setHTML: (elm: string | Node | Node[], html: string) => void;
1746
+ getOuterHTML: (elm: string | Node) => string;
1747
+ setOuterHTML: (elm: string | Node | Node[], html: string) => void;
1748
+ decode: (text: string) => string;
1749
+ encode: (text: string) => string;
1750
+ insertAfter: {
1751
+ <T extends Node>(node: T | T[], reference: string | Node): T;
1752
+ <T extends Node>(node: RunArguments<T>, reference: string | Node): false | T;
1753
+ };
1754
+ replace: {
1755
+ <T extends Node>(newElm: Node, oldElm: T | T[], keepChildren?: boolean): T;
1756
+ <T extends Node>(newElm: Node, oldElm: RunArguments<T>, keepChildren?: boolean): false | T;
1757
+ };
1758
+ rename: {
1759
+ <K extends keyof HTMLElementTagNameMap>(elm: Element, name: K): HTMLElementTagNameMap[K];
1760
+ (elm: Element, name: string): Element;
1761
+ };
1762
+ findCommonAncestor: (a: Node, b: Node) => Node;
1763
+ toHex: (rgbVal: string) => string;
1764
+ run<R, T extends Node>(this: DOMUtils, elm: T | T[], func: (node: T) => R, scope?: any): R;
1765
+ run<R, T extends Node>(this: DOMUtils, elm: RunArguments<T>, func: (node: T) => R, scope?: any): false | R;
1766
+ getAttribs: (elm: string | Node) => NamedNodeMap | Attr[];
1767
+ isEmpty: (node: Node, elements?: Record<string, any>) => boolean;
1768
+ createRng: () => Range;
1769
+ nodeIndex: (node: Node, normalized?: boolean) => number;
1770
+ split: {
1771
+ <T extends Node>(parentElm: Node, splitElm: Node, replacementElm: T): T;
1772
+ <T extends Node>(parentElm: Node, splitElm: T): T;
1773
+ };
1774
+ bind: {
1775
+ <K extends string>(target: Target, name: K, func: Callback<K>, scope?: any): Callback<K>;
1776
+ <K extends string>(target: Target[], name: K, func: Callback<K>, scope?: any): Callback<K>[];
1777
+ };
1778
+ unbind: {
1779
+ <K extends string>(target: Target, name?: K, func?: EventUtilsCallback<MappedEvent<HTMLElementEventMap, K>>): EventUtils;
1780
+ <K extends string>(target: Target[], name?: K, func?: EventUtilsCallback<MappedEvent<HTMLElementEventMap, K>>): EventUtils[];
1781
+ };
1782
+ fire: (target: Node | Window, name: string, evt?: {}) => EventUtils;
1783
+ getContentEditable: (node: Node) => string | null;
1784
+ getContentEditableParent: (node: Node) => string | null;
1785
+ destroy: () => void;
1786
+ isChildOf: (node: Node, parent: Node) => boolean;
1787
+ dumpRng: (r: Range) => string;
1788
+ }
1789
+ interface ClientRect {
1790
+ left: number;
1791
+ top: number;
1792
+ bottom: number;
1793
+ right: number;
1794
+ width: number;
1795
+ height: number;
1617
1796
  }
1618
1797
  interface GetSelectionContentArgs extends GetContentArgs {
1619
1798
  selection?: boolean;
@@ -1623,18 +1802,15 @@ interface SelectionSetContentArgs extends SetContentArgs {
1623
1802
  selection?: boolean;
1624
1803
  }
1625
1804
  interface BookmarkManager {
1626
- getBookmark(type: number, normalized?: boolean): Bookmark;
1627
- moveToBookmark(bookmark: Bookmark): boolean;
1628
- }
1629
- declare namespace BookmarkManager {
1630
- const isBookmarkNode: (node: Node) => boolean;
1805
+ getBookmark: (type: number, normalized?: boolean) => Bookmark;
1806
+ moveToBookmark: (bookmark: Bookmark) => void;
1631
1807
  }
1632
1808
  interface ControlSelection {
1633
- isResizable(elm: Element): boolean;
1634
- showResizeRect(elm: Element): void;
1635
- hideResizeRect(): void;
1636
- updateResizeRect(evt: EditorEvent<any>): void;
1637
- destroy(): void;
1809
+ isResizable: (elm: Element) => boolean;
1810
+ showResizeRect: (elm: Element) => void;
1811
+ hideResizeRect: () => void;
1812
+ updateResizeRect: (evt: EditorEvent<any>) => void;
1813
+ destroy: () => void;
1638
1814
  }
1639
1815
  interface ParserArgs {
1640
1816
  getInner?: boolean | number;
@@ -1642,6 +1818,8 @@ interface ParserArgs {
1642
1818
  context?: string;
1643
1819
  isRootContent?: boolean;
1644
1820
  format?: string;
1821
+ invalid?: boolean;
1822
+ no_events?: boolean;
1645
1823
  [key: string]: any;
1646
1824
  }
1647
1825
  declare type ParserFilterCallback = (nodes: AstNode[], name: string, args: ParserArgs) => void;
@@ -1651,6 +1829,7 @@ interface ParserFilter {
1651
1829
  }
1652
1830
  interface DomParserSettings {
1653
1831
  allow_html_data_urls?: boolean;
1832
+ allow_svg_data_urls?: boolean;
1654
1833
  allow_conditional_comments?: boolean;
1655
1834
  allow_html_in_named_anchor?: boolean;
1656
1835
  allow_script_urls?: boolean;
@@ -1667,45 +1846,47 @@ interface DomParserSettings {
1667
1846
  validate?: boolean;
1668
1847
  inline_styles?: boolean;
1669
1848
  blob_cache?: BlobCache;
1849
+ document?: Document;
1670
1850
  images_dataimg_filter?: (img: HTMLImageElement) => boolean;
1671
1851
  }
1672
1852
  interface DomParser {
1673
1853
  schema: Schema;
1674
- addAttributeFilter(name: string, callback: (nodes: AstNode[], name: string, args: ParserArgs) => void): void;
1675
- getAttributeFilters(): ParserFilter[];
1676
- addNodeFilter(name: string, callback: (nodes: AstNode[], name: string, args: ParserArgs) => void): void;
1677
- getNodeFilters(): ParserFilter[];
1678
- filterNode(node: AstNode): AstNode;
1679
- parse(html: string, args?: ParserArgs): AstNode;
1854
+ addAttributeFilter: (name: string, callback: (nodes: AstNode[], name: string, args: ParserArgs) => void) => void;
1855
+ getAttributeFilters: () => ParserFilter[];
1856
+ addNodeFilter: (name: string, callback: (nodes: AstNode[], name: string, args: ParserArgs) => void) => void;
1857
+ getNodeFilters: () => ParserFilter[];
1858
+ filterNode: (node: AstNode) => AstNode;
1859
+ parse: (html: string, args?: ParserArgs) => AstNode;
1680
1860
  }
1681
1861
  interface WriterSettings {
1682
1862
  element_format?: 'xhtml' | 'html';
1683
1863
  entities?: string;
1684
- entity_encoding?: string;
1864
+ entity_encoding?: EntityEncoding;
1685
1865
  indent?: boolean;
1686
1866
  indent_after?: string;
1687
1867
  indent_before?: string;
1688
1868
  }
1869
+ declare type Attributes = Array<{
1870
+ name: string;
1871
+ value: string;
1872
+ }>;
1689
1873
  interface Writer {
1690
- cdata(text: string): void;
1691
- comment(text: string): void;
1692
- doctype(text: string): void;
1693
- end(name: string): void;
1694
- getContent(): string;
1695
- pi(name: string, text: string): void;
1696
- reset(): void;
1697
- start(name: string, attrs?: Attributes, empty?: boolean): void;
1698
- text(text: string, raw?: boolean): void;
1874
+ cdata: (text: string) => void;
1875
+ comment: (text: string) => void;
1876
+ doctype: (text: string) => void;
1877
+ end: (name: string) => void;
1878
+ getContent: () => string;
1879
+ pi: (name: string, text?: string) => void;
1880
+ reset: () => void;
1881
+ start: (name: string, attrs?: Attributes, empty?: boolean) => void;
1882
+ text: (text: string, raw?: boolean) => void;
1699
1883
  }
1700
1884
  interface HtmlSerializerSettings extends WriterSettings {
1701
1885
  inner?: boolean;
1702
1886
  validate?: boolean;
1703
1887
  }
1704
1888
  interface HtmlSerializer {
1705
- serialize(node: AstNode): string;
1706
- }
1707
- interface DomSerializerArgs extends ParserArgs {
1708
- format?: string;
1889
+ serialize: (node: AstNode) => string;
1709
1890
  }
1710
1891
  interface DomSerializerSettings extends DomParserSettings, WriterSettings, SchemaSettings, HtmlSerializerSettings {
1711
1892
  url_converter?: URLConverter;
@@ -1713,18 +1894,20 @@ interface DomSerializerSettings extends DomParserSettings, WriterSettings, Schem
1713
1894
  }
1714
1895
  interface DomSerializerImpl {
1715
1896
  schema: Schema;
1716
- addNodeFilter(name: string, callback: (nodes: AstNode[], name: string, args: ParserArgs) => void): void;
1717
- addAttributeFilter(name: string, callback: (nodes: AstNode[], name: string, args: ParserArgs) => void): void;
1718
- getNodeFilters(): ParserFilter[];
1719
- getAttributeFilters(): ParserFilter[];
1720
- serialize(node: Element, parserArgs: {
1721
- format: 'tree';
1722
- } & DomSerializerArgs): AstNode;
1723
- serialize(node: Element, parserArgs?: DomSerializerArgs): string;
1724
- addRules(rules: string): void;
1725
- setRules(rules: string): void;
1726
- addTempAttr(name: string): void;
1727
- getTempAttrs(): string[];
1897
+ addNodeFilter: (name: string, callback: (nodes: AstNode[], name: string, args: ParserArgs) => void) => void;
1898
+ addAttributeFilter: (name: string, callback: (nodes: AstNode[], name: string, args: ParserArgs) => void) => void;
1899
+ getNodeFilters: () => ParserFilter[];
1900
+ getAttributeFilters: () => ParserFilter[];
1901
+ serialize: {
1902
+ (node: Element, parserArgs: {
1903
+ format: 'tree';
1904
+ } & ParserArgs): AstNode;
1905
+ (node: Element, parserArgs?: ParserArgs): string;
1906
+ };
1907
+ addRules: (rules: string) => void;
1908
+ setRules: (rules: string) => void;
1909
+ addTempAttr: (name: string) => void;
1910
+ getTempAttrs: () => string[];
1728
1911
  }
1729
1912
  interface DomSerializer extends DomSerializerImpl {
1730
1913
  }
@@ -1736,14 +1919,19 @@ interface EditorSelection {
1736
1919
  serializer: DomSerializer;
1737
1920
  editor: Editor;
1738
1921
  collapse: (toStart?: boolean) => void;
1739
- setCursorLocation: (node?: Node, offset?: number) => void;
1740
- getContent(args: {
1741
- format: 'tree';
1742
- } & GetSelectionContentArgs): AstNode;
1743
- getContent(args?: GetSelectionContentArgs): string;
1922
+ setCursorLocation: {
1923
+ (node: Node, offset: number): void;
1924
+ (): void;
1925
+ };
1926
+ getContent: {
1927
+ (args: {
1928
+ format: 'tree';
1929
+ } & GetSelectionContentArgs): AstNode;
1930
+ (args?: GetSelectionContentArgs): string;
1931
+ };
1744
1932
  setContent: (content: string, args?: SelectionSetContentArgs) => void;
1745
1933
  getBookmark: (type?: number, normalized?: boolean) => Bookmark;
1746
- moveToBookmark: (bookmark: Bookmark) => boolean;
1934
+ moveToBookmark: (bookmark: Bookmark) => void;
1747
1935
  select: (node: Node, content?: boolean) => Node;
1748
1936
  isCollapsed: () => boolean;
1749
1937
  isForward: () => boolean;
@@ -1751,7 +1939,7 @@ interface EditorSelection {
1751
1939
  getNode: () => Element;
1752
1940
  getSel: () => Selection | null;
1753
1941
  setRng: (rng: Range, forward?: boolean) => void;
1754
- getRng: () => Range | null;
1942
+ getRng: () => Range;
1755
1943
  getStart: (real?: boolean) => Element;
1756
1944
  getEnd: (real?: boolean) => Element;
1757
1945
  getSelectedBlocks: (startElm?: Element, endElm?: Element) => Element[];
@@ -1769,9 +1957,9 @@ interface EditorSelection {
1769
1957
  unbind: () => void;
1770
1958
  };
1771
1959
  getScrollContainer: () => HTMLElement;
1772
- scrollIntoView: (elm: Element, alignToTop?: boolean) => void;
1960
+ scrollIntoView: (elm?: HTMLElement, alignToTop?: boolean) => void;
1773
1961
  placeCaretAt: (clientX: number, clientY: number) => void;
1774
- getBoundingClientRect: () => ClientRect;
1962
+ getBoundingClientRect: () => ClientRect | DOMRect;
1775
1963
  destroy: () => void;
1776
1964
  }
1777
1965
  declare type EditorCommandCallback = (ui: boolean, value: any, args: any) => void;
@@ -1807,91 +1995,110 @@ declare class EditorCommands {
1807
1995
  private restoreSelection;
1808
1996
  private setupCommands;
1809
1997
  }
1810
- interface WindowManager {
1811
- open: <T>(config: DialogSpec<T>, params?: any) => DialogInstanceApi<T>;
1812
- openUrl: (config: UrlDialogSpec) => UrlDialogInstanceApi;
1813
- alert: (message: string, callback?: () => void, scope?: any) => void;
1814
- confirm: (message: string, callback?: (state: boolean) => void, scope?: any) => void;
1815
- close: () => void;
1998
+ interface WindowParams {
1999
+ readonly inline?: 'cursor' | 'toolbar';
2000
+ readonly ariaAttrs?: boolean;
1816
2001
  }
1817
2002
  declare type InstanceApi<T> = UrlDialogInstanceApi | DialogInstanceApi<T>;
1818
2003
  interface WindowManagerImpl {
1819
- open: <T>(config: DialogSpec<T>, params: any, closeWindow: (dialog: DialogInstanceApi<T>) => void) => DialogInstanceApi<T>;
2004
+ open: <T>(config: DialogSpec<T>, params: WindowParams, closeWindow: (dialog: DialogInstanceApi<T>) => void) => DialogInstanceApi<T>;
1820
2005
  openUrl: (config: UrlDialogSpec, closeWindow: (dialog: UrlDialogInstanceApi) => void) => UrlDialogInstanceApi;
1821
2006
  alert: (message: string, callback: () => void) => void;
1822
2007
  confirm: (message: string, callback: (state: boolean) => void) => void;
1823
2008
  close: (dialog: InstanceApi<any>) => void;
1824
2009
  }
1825
- declare type ExecCommandEvent = {
2010
+ interface WindowManager {
2011
+ open: <T>(config: DialogSpec<T>, params?: WindowParams) => DialogInstanceApi<T>;
2012
+ openUrl: (config: UrlDialogSpec) => UrlDialogInstanceApi;
2013
+ alert: (message: string, callback?: () => void, scope?: any) => void;
2014
+ confirm: (message: string, callback?: (state: boolean) => void, scope?: any) => void;
2015
+ close: () => void;
2016
+ }
2017
+ interface ExecCommandEvent {
1826
2018
  command: string;
1827
2019
  ui?: boolean;
1828
2020
  value?: any;
1829
- };
2021
+ }
1830
2022
  declare type GetContentEvent = GetContentArgs & {
1831
2023
  source_view?: boolean;
1832
2024
  selection?: boolean;
1833
2025
  save?: boolean;
1834
2026
  };
1835
2027
  declare type SetContentEvent = SetContentArgs & {
2028
+ source_view?: boolean;
1836
2029
  paste?: boolean;
1837
2030
  selection?: boolean;
1838
2031
  };
1839
- declare type NewBlockEvent = {
2032
+ interface NewBlockEvent {
1840
2033
  newBlock: Element;
1841
- };
1842
- declare type NodeChangeEvent = {
2034
+ }
2035
+ interface NodeChangeEvent {
1843
2036
  element: Element;
1844
2037
  parents: Node[];
1845
2038
  selectionChange?: boolean;
1846
2039
  initial?: boolean;
1847
- };
1848
- declare type ObjectResizeEvent = {
2040
+ }
2041
+ interface FormatEvent {
2042
+ format: string;
2043
+ vars?: FormatVars;
2044
+ node?: Node | RangeLikeObject;
2045
+ }
2046
+ interface ObjectResizeEvent {
1849
2047
  target: HTMLElement;
1850
2048
  width: number;
1851
2049
  height: number;
1852
2050
  origin: string;
1853
- };
1854
- declare type ObjectSelectedEvent = {
2051
+ }
2052
+ interface ObjectSelectedEvent {
1855
2053
  target: Node;
1856
2054
  targetClone?: Node;
1857
- };
1858
- declare type ScrollIntoViewEvent = {
2055
+ }
2056
+ interface ScrollIntoViewEvent {
1859
2057
  elm: HTMLElement;
1860
2058
  alignToTop: boolean;
1861
- };
1862
- declare type SetSelectionRangeEvent = {
2059
+ }
2060
+ interface SetSelectionRangeEvent {
1863
2061
  range: Range;
1864
2062
  forward: boolean;
1865
- };
1866
- declare type ShowCaretEvent = {
2063
+ }
2064
+ interface ShowCaretEvent {
1867
2065
  target: Node;
1868
2066
  direction: number;
1869
2067
  before: boolean;
1870
- };
1871
- declare type SwitchModeEvent = {
2068
+ }
2069
+ interface SwitchModeEvent {
1872
2070
  mode: string;
1873
- };
1874
- declare type AddUndoEvent = {
2071
+ }
2072
+ interface AddUndoEvent {
1875
2073
  level: UndoLevel;
1876
2074
  lastLevel: UndoLevel;
1877
2075
  originalEvent: Event;
1878
- };
1879
- declare type UndoRedoEvent = {
2076
+ }
2077
+ interface UndoRedoEvent {
1880
2078
  level: UndoLevel;
1881
- };
1882
- declare type WindowEvent<T extends DialogData> = {
2079
+ }
2080
+ interface WindowEvent<T extends DialogData> {
1883
2081
  dialog: InstanceApi<T>;
1884
- };
1885
- declare type ProgressStateEvent = {
2082
+ }
2083
+ interface ProgressStateEvent {
1886
2084
  state: boolean;
1887
2085
  time?: number;
1888
- };
1889
- declare type PlaceholderToggleEvent = {
2086
+ }
2087
+ interface AfterProgressStateEvent {
1890
2088
  state: boolean;
1891
- };
1892
- declare type LoadErrorEvent = {
2089
+ }
2090
+ interface PlaceholderToggleEvent {
2091
+ state: boolean;
2092
+ }
2093
+ interface LoadErrorEvent {
1893
2094
  message: string;
1894
- };
2095
+ }
2096
+ interface PreProcessEvent extends ParserArgs {
2097
+ node: Element;
2098
+ }
2099
+ interface PostProcessEvent extends ParserArgs {
2100
+ content: string;
2101
+ }
1895
2102
  interface EditorEventMap extends Omit<NativeEventMap, 'blur' | 'focus'> {
1896
2103
  'activate': {
1897
2104
  relatedTarget: Editor;
@@ -1925,6 +2132,8 @@ interface EditorEventMap extends Omit<NativeEventMap, 'blur' | 'focus'> {
1925
2132
  'BeforeExecCommand': ExecCommandEvent;
1926
2133
  'ExecCommand': ExecCommandEvent;
1927
2134
  'NodeChange': NodeChangeEvent;
2135
+ 'FormatApply': FormatEvent;
2136
+ 'FormatRemove': FormatEvent;
1928
2137
  'ShowCaret': ShowCaretEvent;
1929
2138
  'SelectionChange': {};
1930
2139
  'ObjectSelected': ObjectSelectedEvent;
@@ -1954,10 +2163,13 @@ interface EditorEventMap extends Omit<NativeEventMap, 'blur' | 'focus'> {
1954
2163
  'CloseWindow': WindowEvent<any>;
1955
2164
  'OpenWindow': WindowEvent<any>;
1956
2165
  'ProgressState': ProgressStateEvent;
2166
+ 'AfterProgressState': AfterProgressStateEvent;
1957
2167
  'PlaceholderToggle': PlaceholderToggleEvent;
1958
2168
  'tap': TouchEvent;
1959
2169
  'longpress': TouchEvent;
1960
2170
  'longpresscancel': {};
2171
+ 'PreProcess': PreProcessEvent;
2172
+ 'PostProcess': PostProcessEvent;
1961
2173
  }
1962
2174
  interface EditorManagerEventMap {
1963
2175
  'AddEditor': {
@@ -1975,6 +2187,7 @@ type EventTypes_d_GetContentEvent = GetContentEvent;
1975
2187
  type EventTypes_d_SetContentEvent = SetContentEvent;
1976
2188
  type EventTypes_d_NewBlockEvent = NewBlockEvent;
1977
2189
  type EventTypes_d_NodeChangeEvent = NodeChangeEvent;
2190
+ type EventTypes_d_FormatEvent = FormatEvent;
1978
2191
  type EventTypes_d_ObjectResizeEvent = ObjectResizeEvent;
1979
2192
  type EventTypes_d_ObjectSelectedEvent = ObjectSelectedEvent;
1980
2193
  type EventTypes_d_ScrollIntoViewEvent = ScrollIntoViewEvent;
@@ -1985,28 +2198,34 @@ type EventTypes_d_AddUndoEvent = AddUndoEvent;
1985
2198
  type EventTypes_d_UndoRedoEvent = UndoRedoEvent;
1986
2199
  type EventTypes_d_WindowEvent<_0> = WindowEvent<_0>;
1987
2200
  type EventTypes_d_ProgressStateEvent = ProgressStateEvent;
2201
+ type EventTypes_d_AfterProgressStateEvent = AfterProgressStateEvent;
1988
2202
  type EventTypes_d_PlaceholderToggleEvent = PlaceholderToggleEvent;
1989
2203
  type EventTypes_d_LoadErrorEvent = LoadErrorEvent;
2204
+ type EventTypes_d_PreProcessEvent = PreProcessEvent;
2205
+ type EventTypes_d_PostProcessEvent = PostProcessEvent;
1990
2206
  type EventTypes_d_EditorEventMap = EditorEventMap;
1991
2207
  type EventTypes_d_EditorManagerEventMap = EditorManagerEventMap;
1992
2208
  declare namespace EventTypes_d {
1993
- export { EventTypes_d_ExecCommandEvent as ExecCommandEvent, EventTypes_d_GetContentEvent as GetContentEvent, EventTypes_d_SetContentEvent as SetContentEvent, EventTypes_d_NewBlockEvent as NewBlockEvent, EventTypes_d_NodeChangeEvent as NodeChangeEvent, EventTypes_d_ObjectResizeEvent as ObjectResizeEvent, EventTypes_d_ObjectSelectedEvent as ObjectSelectedEvent, EventTypes_d_ScrollIntoViewEvent as ScrollIntoViewEvent, EventTypes_d_SetSelectionRangeEvent as SetSelectionRangeEvent, EventTypes_d_ShowCaretEvent as ShowCaretEvent, EventTypes_d_SwitchModeEvent as SwitchModeEvent, EventTypes_d_AddUndoEvent as AddUndoEvent, EventTypes_d_UndoRedoEvent as UndoRedoEvent, EventTypes_d_WindowEvent as WindowEvent, EventTypes_d_ProgressStateEvent as ProgressStateEvent, EventTypes_d_PlaceholderToggleEvent as PlaceholderToggleEvent, EventTypes_d_LoadErrorEvent as LoadErrorEvent, EventTypes_d_EditorEventMap as EditorEventMap, EventTypes_d_EditorManagerEventMap as EditorManagerEventMap, };
2209
+ export { EventTypes_d_ExecCommandEvent as ExecCommandEvent, EventTypes_d_GetContentEvent as GetContentEvent, EventTypes_d_SetContentEvent as SetContentEvent, EventTypes_d_NewBlockEvent as NewBlockEvent, EventTypes_d_NodeChangeEvent as NodeChangeEvent, EventTypes_d_FormatEvent as FormatEvent, EventTypes_d_ObjectResizeEvent as ObjectResizeEvent, EventTypes_d_ObjectSelectedEvent as ObjectSelectedEvent, EventTypes_d_ScrollIntoViewEvent as ScrollIntoViewEvent, EventTypes_d_SetSelectionRangeEvent as SetSelectionRangeEvent, EventTypes_d_ShowCaretEvent as ShowCaretEvent, EventTypes_d_SwitchModeEvent as SwitchModeEvent, EventTypes_d_AddUndoEvent as AddUndoEvent, EventTypes_d_UndoRedoEvent as UndoRedoEvent, EventTypes_d_WindowEvent as WindowEvent, EventTypes_d_ProgressStateEvent as ProgressStateEvent, EventTypes_d_AfterProgressStateEvent as AfterProgressStateEvent, EventTypes_d_PlaceholderToggleEvent as PlaceholderToggleEvent, EventTypes_d_LoadErrorEvent as LoadErrorEvent, EventTypes_d_PreProcessEvent as PreProcessEvent, EventTypes_d_PostProcessEvent as PostProcessEvent, EventTypes_d_EditorEventMap as EditorEventMap, EventTypes_d_EditorManagerEventMap as EditorManagerEventMap, };
1994
2210
  }
1995
2211
  interface RawString {
1996
2212
  raw: string;
1997
2213
  }
1998
2214
  declare type Primitive = string | number | boolean | Record<string | number, any> | Function;
1999
- declare type TokenisedString = [string, ...Primitive[]];
2215
+ declare type TokenisedString = [
2216
+ string,
2217
+ ...Primitive[]
2218
+ ];
2000
2219
  declare type Untranslated = Primitive | TokenisedString | RawString;
2001
2220
  declare type TranslatedString = string;
2002
2221
  interface I18n {
2003
- getData(): Record<string, Record<string, string>>;
2004
- setCode(newCode: string): void;
2005
- getCode(): string;
2006
- add(code: string, items: Record<string, string>): void;
2007
- translate(text: Untranslated): TranslatedString;
2008
- isRtl(): boolean;
2009
- hasCode(code: string): boolean;
2222
+ getData: () => Record<string, Record<string, string>>;
2223
+ setCode: (newCode: string) => void;
2224
+ getCode: () => string;
2225
+ add: (code: string, items: Record<string, string>) => void;
2226
+ translate: (text: Untranslated) => TranslatedString;
2227
+ isRtl: () => boolean;
2228
+ hasCode: (code: string) => boolean;
2010
2229
  }
2011
2230
  interface Observable<T> {
2012
2231
  fire<K extends string, U extends MappedEvent<T, K>>(name: K, args?: U, bubble?: boolean): EditorEvent<U>;
@@ -2021,22 +2240,28 @@ interface URISettings {
2021
2240
  interface URIConstructor {
2022
2241
  readonly prototype: URI;
2023
2242
  new (url: string, settings?: URISettings): URI;
2024
- getDocumentBaseUrl(loc: {
2243
+ getDocumentBaseUrl: (loc: {
2025
2244
  protocol: string;
2026
2245
  host?: string;
2027
2246
  href?: string;
2028
2247
  pathname?: string;
2029
- }): string;
2030
- parseDataUri(uri: string): {
2248
+ }) => string;
2249
+ parseDataUri: (uri: string) => {
2031
2250
  type: string;
2032
2251
  data: string;
2033
2252
  };
2034
2253
  }
2254
+ interface SafeUriOptions {
2255
+ readonly allow_html_data_urls?: boolean;
2256
+ readonly allow_script_urls?: boolean;
2257
+ readonly allow_svg_data_urls?: boolean;
2258
+ }
2035
2259
  declare class URI {
2036
2260
  static parseDataUri(uri: string): {
2037
2261
  type: string;
2038
2262
  data: string;
2039
2263
  };
2264
+ static isDomSafe(uri: string, context?: string, options?: SafeUriOptions): boolean;
2040
2265
  static getDocumentBaseUrl(loc: {
2041
2266
  protocol: string;
2042
2267
  host?: string;
@@ -2082,41 +2307,41 @@ interface EditorManager extends Observable<EditorManagerEventMap> {
2082
2307
  documentBaseURL: string;
2083
2308
  i18n: I18n;
2084
2309
  suffix: string;
2085
- add(editor: Editor): Editor;
2086
- addI18n(code: string, item: Record<string, string>): void;
2087
- createEditor(id: string, settings: RawEditorSettings): Editor;
2088
- execCommand(cmd: string, ui: boolean, value: any): boolean;
2089
- get(): Editor[];
2090
- get(id: number | string): Editor;
2091
- init(settings: RawEditorSettings): Promise<Editor[]>;
2092
- overrideDefaults(defaultSettings: Partial<RawEditorSettings>): void;
2093
- remove(): void;
2094
- remove(selector: string | Editor): Editor | void;
2095
- setActive(editor: Editor): void;
2096
- setup(): void;
2097
- translate(text: string): string;
2098
- triggerSave(): void;
2099
- _setBaseUrl(baseUrl: string): void;
2310
+ add(this: EditorManager, editor: Editor): Editor;
2311
+ addI18n: (code: string, item: Record<string, string>) => void;
2312
+ createEditor(this: EditorManager, id: string, settings: RawEditorSettings): Editor;
2313
+ execCommand(this: EditorManager, cmd: string, ui: boolean, value: any): boolean;
2314
+ get(this: EditorManager): Editor[];
2315
+ get(this: EditorManager, id: number | string): Editor;
2316
+ init(this: EditorManager, settings: RawEditorSettings): Promise<Editor[]>;
2317
+ overrideDefaults(this: EditorManager, defaultSettings: Partial<RawEditorSettings>): void;
2318
+ remove(this: EditorManager): void;
2319
+ remove(this: EditorManager, selector: string | Editor): Editor | void;
2320
+ setActive(this: EditorManager, editor: Editor): void;
2321
+ setup(this: EditorManager): void;
2322
+ translate: (text: Untranslated) => TranslatedString;
2323
+ triggerSave: () => void;
2324
+ _setBaseUrl(this: EditorManager, baseUrl: string): void;
2100
2325
  }
2101
2326
  interface EditorObservable extends Observable<EditorEventMap> {
2102
- bindPendingEventDelegates(): void;
2103
- toggleNativeEvent(name: string, state: boolean): any;
2104
- unbindAllNativeEvents(): void;
2327
+ bindPendingEventDelegates(this: Editor): void;
2328
+ toggleNativeEvent(this: Editor, name: string, state: boolean): any;
2329
+ unbindAllNativeEvents(this: Editor): void;
2105
2330
  }
2106
- interface UploadResult {
2331
+ interface UploadResult$1 {
2107
2332
  element: HTMLImageElement;
2108
2333
  status: boolean;
2109
2334
  blobInfo: BlobInfo;
2110
2335
  uploadUri: string;
2111
2336
  }
2112
- declare type UploadCallback = (results: UploadResult[]) => void;
2337
+ declare type UploadCallback = (results: UploadResult$1[]) => void;
2113
2338
  interface EditorUpload {
2114
2339
  blobCache: BlobCache;
2115
- addFilter(filter: (img: HTMLImageElement) => boolean): void;
2116
- uploadImages(callback?: UploadCallback): Promise<UploadResult[]>;
2117
- uploadImagesAuto(callback?: UploadCallback): void | Promise<UploadResult[]>;
2118
- scanForImages(): Promise<BlobInfoImagePair[]>;
2119
- destroy(): void;
2340
+ addFilter: (filter: (img: HTMLImageElement) => boolean) => void;
2341
+ uploadImages: (callback?: UploadCallback) => Promise<UploadResult$1[]>;
2342
+ uploadImagesAuto: (callback?: UploadCallback) => void | Promise<UploadResult$1[]>;
2343
+ scanForImages: () => Promise<BlobInfoImagePair[]>;
2344
+ destroy: () => void;
2120
2345
  }
2121
2346
  declare type FormatChangeCallback = (state: boolean, data: {
2122
2347
  node: Node;
@@ -2124,23 +2349,27 @@ declare type FormatChangeCallback = (state: boolean, data: {
2124
2349
  parents: any;
2125
2350
  }) => void;
2126
2351
  interface FormatRegistry {
2127
- get(name?: string): Format[] | Record<string, Format[]>;
2128
- has(name: string): boolean;
2129
- register(name: string | Formats, format?: Format[] | Format): void;
2130
- unregister(name: string): Formats;
2352
+ get: {
2353
+ (name: string): Format[] | undefined;
2354
+ (): Record<string, Format[]>;
2355
+ };
2356
+ has: (name: string) => boolean;
2357
+ register: (name: string | Formats, format?: Format[] | Format) => void;
2358
+ unregister: (name: string) => Formats;
2131
2359
  }
2132
2360
  interface Formatter extends FormatRegistry {
2133
- apply(name: string, vars?: FormatVars, node?: Node | RangeLikeObject): void;
2134
- remove(name: string, vars?: FormatVars, node?: Node | Range, similar?: boolean): void;
2135
- toggle(name: string, vars?: FormatVars, node?: Node): void;
2136
- match(name: string, vars?: FormatVars, node?: Node): boolean;
2137
- matchAll(names: string[], vars?: FormatVars): string[];
2138
- matchNode(node: Node, name: string, vars?: FormatVars, similar?: boolean): boolean;
2139
- canApply(name: string): boolean;
2140
- formatChanged(names: string, callback: FormatChangeCallback, similar?: boolean): {
2361
+ apply: (name: string, vars?: FormatVars, node?: Node | RangeLikeObject) => void;
2362
+ remove: (name: string, vars?: FormatVars, node?: Node | Range, similar?: boolean) => void;
2363
+ toggle: (name: string, vars?: FormatVars, node?: Node) => void;
2364
+ match: (name: string, vars?: FormatVars, node?: Node, similar?: boolean) => boolean;
2365
+ closest: (names: string[]) => string | null;
2366
+ matchAll: (names: string[], vars?: FormatVars) => string[];
2367
+ matchNode: (node: Node, name: string, vars?: FormatVars, similar?: boolean) => Format | undefined;
2368
+ canApply: (name: string) => boolean;
2369
+ formatChanged: (names: string, callback: FormatChangeCallback, similar?: boolean, vars?: FormatVars) => {
2141
2370
  unbind: () => void;
2142
2371
  };
2143
- getCssText(format: string | Format): string;
2372
+ getCssText: (format: string | Format) => string;
2144
2373
  }
2145
2374
  interface EditorMode {
2146
2375
  isReadOnly: () => boolean;
@@ -2153,38 +2382,8 @@ interface EditorModeApi {
2153
2382
  deactivate: () => void;
2154
2383
  editorReadOnly: boolean;
2155
2384
  }
2156
- interface NotificationManagerImpl {
2157
- open(spec: NotificationSpec, closeCallback?: () => void): NotificationApi;
2158
- close<T extends NotificationApi>(notification: T): void;
2159
- reposition<T extends NotificationApi>(notifications: T[]): void;
2160
- getArgs<T extends NotificationApi>(notification: T): NotificationSpec;
2161
- }
2162
- interface NotificationSpec {
2163
- type?: 'info' | 'warning' | 'error' | 'success';
2164
- text: string;
2165
- icon?: string;
2166
- progressBar?: boolean;
2167
- timeout?: number;
2168
- closeButton?: boolean;
2169
- }
2170
- interface NotificationApi {
2171
- close: () => void;
2172
- progressBar: {
2173
- value: (percent: number) => void;
2174
- };
2175
- text: (text: string) => void;
2176
- moveTo: (x: number, y: number) => void;
2177
- moveRel: (element: Element, rel: 'tc-tc' | 'bc-bc' | 'bc-tc' | 'tc-bc' | 'banner') => void;
2178
- getEl: () => HTMLElement;
2179
- settings: NotificationSpec;
2180
- }
2181
- interface NotificationManager {
2182
- open: (spec: NotificationSpec) => NotificationApi;
2183
- close: () => void;
2184
- getNotifications: () => NotificationApi[];
2185
- }
2186
2385
  interface Plugin {
2187
- getMetadata?(): {
2386
+ getMetadata?: () => {
2188
2387
  name: string;
2189
2388
  url: string;
2190
2389
  };
@@ -2195,7 +2394,11 @@ interface ShortcutsConstructor {
2195
2394
  readonly prototype: Shortcuts;
2196
2395
  new (editor: Editor): Shortcuts;
2197
2396
  }
2198
- declare type CommandFunc = string | [string, boolean, any] | (() => void);
2397
+ declare type CommandFunc = string | [
2398
+ string,
2399
+ boolean,
2400
+ any
2401
+ ] | (() => void);
2199
2402
  declare class Shortcuts {
2200
2403
  private readonly editor;
2201
2404
  private readonly shortcuts;
@@ -2204,27 +2407,26 @@ declare class Shortcuts {
2204
2407
  add(pattern: string, desc: string, cmdFunc: CommandFunc, scope?: any): boolean;
2205
2408
  remove(pattern: string): boolean;
2206
2409
  private normalizeCommandFunc;
2207
- private parseShortcut;
2208
2410
  private createShortcut;
2209
2411
  private hasModifier;
2210
2412
  private isFunctionKey;
2211
2413
  private matchShortcut;
2212
2414
  private executeShortcutAction;
2213
2415
  }
2214
- declare type Theme = {
2416
+ interface Theme {
2215
2417
  ui?: any;
2216
2418
  inline?: any;
2217
- execCommand?(command: string, ui?: boolean, value?: any): boolean;
2218
- destroy?(): void;
2219
- init?(editor: Editor, url: string, $: DomQueryConstructor): any;
2220
- renderUI?(): {
2419
+ execCommand?: (command: string, ui?: boolean, value?: any) => boolean;
2420
+ destroy?: () => void;
2421
+ init?: (editor: Editor, url: string, $: DomQueryConstructor) => void;
2422
+ renderUI?: () => {
2221
2423
  iframeContainer?: HTMLIFrameElement;
2222
2424
  editorContainer: HTMLElement;
2223
- api?: EditorUiApi;
2425
+ api?: Partial<EditorUiApi>;
2224
2426
  };
2225
- getNotificationManagerImpl?(): NotificationManagerImpl;
2226
- getWindowManagerImpl?(): WindowManagerImpl;
2227
- };
2427
+ getNotificationManagerImpl?: () => NotificationManagerImpl;
2428
+ getWindowManagerImpl?: () => WindowManagerImpl;
2429
+ }
2228
2430
  declare type ThemeManager = AddOnManager<Theme>;
2229
2431
  interface EditorConstructor {
2230
2432
  readonly prototype: Editor;
@@ -2320,7 +2522,11 @@ declare class Editor implements EditorObservable {
2320
2522
  addCommand(name: string, callback: EditorCommandCallback, scope?: object): void;
2321
2523
  addQueryStateHandler(name: string, callback: () => boolean, scope?: any): void;
2322
2524
  addQueryValueHandler(name: string, callback: () => string, scope?: any): void;
2323
- addShortcut(pattern: string, desc: string, cmdFunc: string | [string, boolean, any] | (() => void), scope?: any): void;
2525
+ addShortcut(pattern: string, desc: string, cmdFunc: string | [
2526
+ string,
2527
+ boolean,
2528
+ any
2529
+ ] | (() => void), scope?: any): void;
2324
2530
  execCommand(cmd: string, ui?: boolean, value?: any, args?: any): boolean;
2325
2531
  queryCommandState(cmd: string): boolean;
2326
2532
  queryCommandValue(cmd: string): string;
@@ -2333,6 +2539,7 @@ declare class Editor implements EditorObservable {
2333
2539
  save(args?: any): string;
2334
2540
  setContent(content: string, args?: SetContentArgs): string;
2335
2541
  setContent(content: AstNode, args?: SetContentArgs): AstNode;
2542
+ setContent(content: Content, args?: SetContentArgs): Content;
2336
2543
  getContent(args: {
2337
2544
  format: 'tree';
2338
2545
  } & GetContentArgs): AstNode;
@@ -2351,7 +2558,7 @@ declare class Editor implements EditorObservable {
2351
2558
  addVisual(elm?: HTMLElement): void;
2352
2559
  remove(): void;
2353
2560
  destroy(automatic?: boolean): void;
2354
- uploadImages(callback?: UploadCallback): Promise<UploadResult[]>;
2561
+ uploadImages(callback?: UploadCallback): Promise<UploadResult$1[]>;
2355
2562
  _scanForImages(): Promise<BlobInfoImagePair[]>;
2356
2563
  addButton(): void;
2357
2564
  addSidebar(): void;
@@ -2378,33 +2585,20 @@ interface AddOnManager<T> {
2378
2585
  state: WaitState;
2379
2586
  callback: () => void;
2380
2587
  }[];
2381
- get(name: string): AddOnConstructor<T>;
2382
- dependencies(name: string): string[];
2383
- requireLangPack(name: string, languages: string): void;
2384
- add(id: string, addOn: AddOnCallback<T>, dependencies?: string[]): AddOnConstructor<T>;
2385
- remove(name: string): void;
2386
- createUrl(baseUrl: UrlObject, dep: string | UrlObject): UrlObject;
2387
- addComponents(pluginName: string, scripts: string[]): void;
2388
- load(name: string, addOnUrl: string | UrlObject, success?: () => void, scope?: any, failure?: () => void): void;
2389
- waitFor(name: string, callback: () => void, state?: WaitState): void;
2390
- }
2391
- declare namespace AddOnManager {
2392
- let language: string;
2393
- let languageLoad: boolean;
2394
- let baseURL: string;
2395
- const PluginManager: AddOnManager<any>;
2396
- const ThemeManager: AddOnManager<any>;
2588
+ get: (name: string) => AddOnConstructor<T>;
2589
+ dependencies: (name: string) => string[];
2590
+ requireLangPack: (name: string, languages: string) => void;
2591
+ add: (id: string, addOn: AddOnCallback<T>, dependencies?: string[]) => AddOnConstructor<T>;
2592
+ remove: (name: string) => void;
2593
+ createUrl: (baseUrl: UrlObject, dep: string | UrlObject) => UrlObject;
2594
+ addComponents: (pluginName: string, scripts: string[]) => void;
2595
+ load: (name: string, addOnUrl: string | UrlObject, success?: () => void, scope?: any, failure?: () => void) => void;
2596
+ waitFor: (name: string, callback: () => void, state?: WaitState) => void;
2397
2597
  }
2398
2598
  interface RangeUtils {
2399
- walk(rng: Range, callback: (nodes: Node[]) => void): void;
2400
- split(rng: Range): RangeLikeObject;
2401
- normalize(rng: Range): boolean;
2402
- }
2403
- declare namespace RangeUtils {
2404
- const compareRanges: (rng1: RangeLikeObject, rng2: RangeLikeObject) => boolean;
2405
- const getCaretRangeFromPoint: (clientX: number, clientY: number, doc: Document) => Range;
2406
- const getSelectedNode: (range: Range) => Node;
2407
- const getNode: (container: Node, offset: number) => Node;
2599
+ walk: (rng: Range, callback: (nodes: Node[]) => void) => void;
2600
+ split: (rng: Range) => RangeLikeObject;
2601
+ normalize: (rng: Range) => boolean;
2408
2602
  }
2409
2603
  interface ScriptLoaderSettings {
2410
2604
  referrerPolicy?: ReferrerPolicy;
@@ -2521,12 +2715,12 @@ interface EntitiesMap {
2521
2715
  [name: string]: string;
2522
2716
  }
2523
2717
  interface Entities {
2524
- encodeRaw(text: string, attr?: boolean): string;
2525
- encodeAllRaw(text: string): string;
2526
- encodeNumeric(text: string, attr?: boolean): string;
2527
- encodeNamed(text: string, attr?: boolean, entities?: EntitiesMap): string;
2528
- getEncodeFunc(name: string, entities?: EntitiesMap | string): (text: string, attr?: boolean) => string;
2529
- decode(text: string): string;
2718
+ encodeRaw: (text: string, attr?: boolean) => string;
2719
+ encodeAllRaw: (text: string) => string;
2720
+ encodeNumeric: (text: string, attr?: boolean) => string;
2721
+ encodeNamed: (text: string, attr?: boolean, entities?: EntitiesMap) => string;
2722
+ getEncodeFunc: (name: string, entities?: EntitiesMap | string) => (text: string, attr?: boolean) => string;
2723
+ decode: (text: string) => string;
2530
2724
  }
2531
2725
  declare type AttrList = Array<{
2532
2726
  name: string;
@@ -2544,20 +2738,18 @@ interface SaxParserSettings {
2544
2738
  remove_internals?: boolean;
2545
2739
  self_closing_elements?: Record<string, {}>;
2546
2740
  validate?: boolean;
2547
- cdata?(text: string): void;
2548
- comment?(text: string): void;
2549
- doctype?(text: string): void;
2550
- end?(name: string): void;
2551
- pi?(name: string, text: string): void;
2552
- start?(name: string, attrs: AttrList, empty: boolean): void;
2553
- text?(text: string, raw?: boolean): void;
2741
+ document?: Document;
2742
+ cdata?: (text: string) => void;
2743
+ comment?: (text: string) => void;
2744
+ doctype?: (text: string) => void;
2745
+ end?: (name: string) => void;
2746
+ pi?: (name: string, text: string) => void;
2747
+ start?: (name: string, attrs: AttrList, empty: boolean) => void;
2748
+ text?: (text: string, raw?: boolean) => void;
2554
2749
  }
2555
2750
  declare type ParserFormat = 'html' | 'xhtml' | 'xml';
2556
2751
  interface SaxParser {
2557
- parse(html: string, format?: ParserFormat): void;
2558
- }
2559
- declare namespace SaxParser {
2560
- const findEndTag: (schema: Schema, html: string, startIndex: number) => number;
2752
+ parse: (html: string, format?: ParserFormat) => void;
2561
2753
  }
2562
2754
  interface IconPack {
2563
2755
  icons: Record<string, string>;
@@ -2568,8 +2760,8 @@ interface IconManager {
2568
2760
  has: (id: string) => boolean;
2569
2761
  }
2570
2762
  interface Resource {
2571
- load<T = any>(id: string, url: string): Promise<T>;
2572
- add(id: string, data: any): void;
2763
+ load: <T = any>(id: string, url: string) => Promise<T>;
2764
+ add: (id: string, data: any) => void;
2573
2765
  }
2574
2766
  declare type WithSubItems<T, K extends keyof T> = T[K] extends Array<any> ? (T & T[K][number]) : T;
2575
2767
  interface Props<A extends any[] = any[]> {
@@ -2599,41 +2791,45 @@ interface HSV {
2599
2791
  s: number;
2600
2792
  v: number;
2601
2793
  }
2794
+ declare type ColorConstructor = new (value?: string | RGB | HSV) => Color;
2602
2795
  interface Color {
2603
- toRgb(): RGB;
2604
- toHsv(): HSV;
2605
- toHex(): string;
2606
- parse(value: string | RGB | HSV): Color;
2796
+ toRgb: () => RGB;
2797
+ toHsv: () => HSV;
2798
+ toHex: () => string;
2799
+ parse: (value: string | RGB | HSV) => Color;
2607
2800
  }
2608
- declare type ColorConstructor = new (value?: string | RGB | HSV) => Color;
2609
- declare type DebounceFunc<T extends (...args: any[]) => void> = {
2801
+ interface DebounceFunc<T extends (...args: any[]) => void> {
2610
2802
  (...args: Parameters<T>): void;
2611
2803
  stop: () => void;
2612
- };
2804
+ }
2613
2805
  interface Delay {
2614
- requestAnimationFrame(callback: () => void, element?: HTMLElement): void;
2615
- setEditorInterval(editor: Editor, callback: () => void, time?: number): number;
2616
- setEditorTimeout(editor: Editor, callback: () => void, time?: number): number;
2617
- setInterval(callback: () => void, time?: number): number;
2618
- setTimeout(callback: () => void, time?: number): number;
2619
- clearInterval(id: number): void;
2620
- clearTimeout(id: number): void;
2621
- debounce<T extends (...args: any[]) => any>(callback: T, time?: number): DebounceFunc<T>;
2622
- throttle<T extends (...args: any[]) => any>(callback: T, time?: number): DebounceFunc<T>;
2806
+ requestAnimationFrame: (callback: () => void, element?: HTMLElement) => void;
2807
+ setEditorInterval: (editor: Editor, callback: () => void, time?: number) => number;
2808
+ setEditorTimeout: (editor: Editor, callback: () => void, time?: number) => number;
2809
+ setInterval: (callback: () => void, time?: number) => number;
2810
+ setTimeout: (callback: () => void, time?: number) => number;
2811
+ clearInterval: (id?: number) => void;
2812
+ clearTimeout: (id?: number) => void;
2813
+ debounce: <T extends (...args: any[]) => any>(callback: T, time?: number) => DebounceFunc<T>;
2814
+ throttle: <T extends (...args: any[]) => any>(callback: T, time?: number) => DebounceFunc<T>;
2815
+ }
2816
+ declare type UploadResult = UploadResult$2;
2817
+ interface ImageUploader {
2818
+ upload: (blobInfos: BlobInfo[], showNotification?: boolean) => Promise<UploadResult[]>;
2623
2819
  }
2624
2820
  interface JSONUtils {
2625
- serialize(obj: any): string;
2626
- parse(text: string): any;
2821
+ serialize: (obj: any) => string;
2822
+ parse: (text: string) => any;
2627
2823
  }
2628
2824
  interface JSONPSettings {
2629
2825
  count?: number;
2630
2826
  url: string;
2631
- callback(json: string): void;
2827
+ callback: (json: string) => void;
2632
2828
  }
2633
2829
  interface JSONP {
2634
2830
  callbacks: {};
2635
2831
  count: number;
2636
- send(settings: JSONPSettings): void;
2832
+ send(this: JSONP, settings: JSONPSettings): void;
2637
2833
  }
2638
2834
  interface JSONRequestSettings {
2639
2835
  crossDomain?: boolean;
@@ -2645,8 +2841,8 @@ interface JSONRequestSettings {
2645
2841
  url?: string;
2646
2842
  error_scope?: any;
2647
2843
  success_scope?: any;
2648
- success?(data: any): void;
2649
- error?(error: any, xhr: XMLHttpRequest): void;
2844
+ success?: (data: any) => void;
2845
+ error?: (error: any, xhr: XMLHttpRequest) => void;
2650
2846
  }
2651
2847
  interface JSONRequestArgs extends JSONRequestSettings {
2652
2848
  id?: string;
@@ -2656,7 +2852,7 @@ interface JSONRequestArgs extends JSONRequestSettings {
2656
2852
  interface JSONRequestConstructor {
2657
2853
  readonly prototype: JSONRequest;
2658
2854
  new (settings?: JSONRequestSettings): JSONRequest;
2659
- sendRPC(o: JSONRequestArgs): void;
2855
+ sendRPC: (o: JSONRequestArgs) => void;
2660
2856
  }
2661
2857
  declare class JSONRequest {
2662
2858
  static sendRPC(o: JSONRequestArgs): void;
@@ -2676,15 +2872,18 @@ interface VK {
2676
2872
  DELETE: number;
2677
2873
  DOWN: number;
2678
2874
  ENTER: number;
2875
+ ESC: number;
2679
2876
  LEFT: number;
2680
2877
  RIGHT: number;
2681
2878
  SPACEBAR: number;
2682
2879
  TAB: number;
2683
2880
  UP: number;
2881
+ PAGE_UP: number;
2882
+ PAGE_DOWN: number;
2684
2883
  END: number;
2685
2884
  HOME: number;
2686
- modifierPressed(e: KeyboardLikeEvent): boolean;
2687
- metaKeyPressed(e: KeyboardLikeEvent): boolean;
2885
+ modifierPressed: (e: KeyboardLikeEvent) => boolean;
2886
+ metaKeyPressed: (e: KeyboardLikeEvent) => boolean;
2688
2887
  }
2689
2888
  interface XHRSettings {
2690
2889
  async?: boolean;
@@ -2700,8 +2899,8 @@ interface XHRSettings {
2700
2899
  url: string;
2701
2900
  error_scope?: any;
2702
2901
  success_scope?: any;
2703
- error?(message: 'TIMED_OUT' | 'GENERAL', xhr: XMLHttpRequest, settings: XHRSettings): void;
2704
- success?(text: string, xhr: XMLHttpRequest, settings: XHRSettings): void;
2902
+ error?: (message: 'TIMED_OUT' | 'GENERAL', xhr: XMLHttpRequest, settings: XHRSettings) => void;
2903
+ success?: (text: string, xhr: XMLHttpRequest, settings: XHRSettings) => void;
2705
2904
  }
2706
2905
  interface XHREventMap {
2707
2906
  beforeInitialize: {
@@ -2713,7 +2912,35 @@ interface XHREventMap {
2713
2912
  };
2714
2913
  }
2715
2914
  interface XHR extends Observable<XHREventMap> {
2716
- send(settings: XHRSettings): void;
2915
+ send(this: XHR, settings: XHRSettings): void;
2916
+ }
2917
+ interface DOMUtilsNamespace {
2918
+ new (doc: Document, settings: Partial<DOMUtilsSettings>): DOMUtils;
2919
+ DOM: DOMUtils;
2920
+ nodeIndex: (node: Node, normalized?: boolean) => number;
2921
+ }
2922
+ interface RangeUtilsNamespace {
2923
+ new (dom: DOMUtils): RangeUtils;
2924
+ compareRanges: (rng1: RangeLikeObject, rng2: RangeLikeObject) => boolean;
2925
+ getCaretRangeFromPoint: (clientX: number, clientY: number, doc: Document) => Range;
2926
+ getSelectedNode: (range: Range) => Node;
2927
+ getNode: (container: Node, offset: number) => Node;
2928
+ }
2929
+ interface AddOnManagerNamespace {
2930
+ new <T>(): AddOnManager<T>;
2931
+ language: string | undefined;
2932
+ languageLoad: boolean;
2933
+ baseURL: string;
2934
+ PluginManager: PluginManager;
2935
+ ThemeManager: ThemeManager;
2936
+ }
2937
+ interface BookmarkManagerNamespace {
2938
+ (selection: EditorSelection): BookmarkManager;
2939
+ isBookmarkNode: (node: Node) => boolean;
2940
+ }
2941
+ interface SaxParserNamespace {
2942
+ new (settings?: SaxParserSettings, schema?: Schema): SaxParser;
2943
+ findEndTag: (schema: Schema, html: string, startIndex: number) => number;
2717
2944
  }
2718
2945
  interface TinyMCE extends EditorManager {
2719
2946
  geom: {
@@ -2735,6 +2962,7 @@ interface TinyMCE extends EditorManager {
2735
2962
  JSONP: JSONP;
2736
2963
  LocalStorage: Storage;
2737
2964
  Color: ColorConstructor;
2965
+ ImageUploader: ImageUploader;
2738
2966
  };
2739
2967
  dom: {
2740
2968
  EventUtils: EventUtilsConstructor;
@@ -2742,12 +2970,12 @@ interface TinyMCE extends EditorManager {
2742
2970
  DomQuery: DomQueryConstructor;
2743
2971
  TreeWalker: DomTreeWalkerConstructor;
2744
2972
  TextSeeker: new (dom: DOMUtils, isBlockBoundary?: (node: Node) => boolean) => TextSeeker;
2745
- DOMUtils: new (doc: Document, settings: Partial<DOMUtilsSettings>) => DOMUtils;
2973
+ DOMUtils: DOMUtilsNamespace;
2746
2974
  ScriptLoader: ScriptLoaderConstructor;
2747
- RangeUtils: new (dom: DOMUtils) => RangeUtils;
2975
+ RangeUtils: RangeUtilsNamespace;
2748
2976
  Serializer: new (settings: DomSerializerSettings, editor?: Editor) => DomSerializer;
2749
2977
  ControlSelection: (selection: EditorSelection, editor: Editor) => ControlSelection;
2750
- BookmarkManager: (selection: EditorSelection) => BookmarkManager;
2978
+ BookmarkManager: BookmarkManagerNamespace;
2751
2979
  Selection: new (dom: DOMUtils, win: Window, serializer: DomSerializer, editor: Editor) => EditorSelection;
2752
2980
  StyleSheetLoader: new (documentOrShadowRoot: Document | ShadowRoot, settings: StyleSheetLoaderSettings) => StyleSheetLoader;
2753
2981
  Event: EventUtils;
@@ -2757,12 +2985,12 @@ interface TinyMCE extends EditorManager {
2757
2985
  Entities: Entities;
2758
2986
  Node: AstNodeConstructor;
2759
2987
  Schema: new (settings?: SchemaSettings) => Schema;
2760
- SaxParser: new (settings?: SaxParserSettings, schema?: Schema) => SaxParser;
2988
+ SaxParser: SaxParserNamespace;
2761
2989
  DomParser: new (settings?: DomParserSettings, schema?: Schema) => DomParser;
2762
2990
  Writer: new (settings?: WriterSettings) => Writer;
2763
2991
  Serializer: new (settings?: HtmlSerializerSettings, schema?: Schema) => HtmlSerializer;
2764
2992
  };
2765
- AddOnManager: new <T>() => AddOnManager<T>;
2993
+ AddOnManager: AddOnManagerNamespace;
2766
2994
  Annotator: new (editor: Editor) => Annotator;
2767
2995
  Editor: EditorConstructor;
2768
2996
  EditorCommands: EditorCommandsConstructor;
@@ -2804,17 +3032,5 @@ interface TinyMCE extends EditorManager {
2804
3032
  isMac: boolean;
2805
3033
  }
2806
3034
  declare const tinymce: TinyMCE;
2807
- declare type Formats$1 = {
2808
- Formats: Formats;
2809
- Format: Format;
2810
- ApplyFormat: ApplyFormat;
2811
- BlockFormat: BlockFormat;
2812
- InlineFormat: InlineFormat;
2813
- SelectorFormat: SelectorFormat;
2814
- RemoveFormat: RemoveFormat;
2815
- RemoveBlockFormat: RemoveBlockFormat;
2816
- RemoveInlineFormat: RemoveInlineFormat;
2817
- RemoveSelectorFormat: RemoveSelectorFormat;
2818
- };
2819
3035
  export default tinymce;
2820
- export { AddOnManager, Annotator, AstNode, Bookmark, BookmarkManager, Class, Color, ControlSelection, DOMUtils, Delay, DomParser, DomParserSettings, DomQuery, DomSerializer, DomSerializerSettings, DomTreeWalker, Editor, EditorCommands, EditorEvent, EditorManager, EditorModeApi, EditorObservable, EditorSelection, EditorSettings, Entities, Env, EventDispatcher, EventUtils, EventTypes_d as Events, FocusManager, Formats$1 as Formats, Formatter, GeomRect, HtmlSerializer, HtmlSerializerSettings, I18n, IconManager, JSONUtils as JSON, JSONP, JSONRequest, JSONRequestArgs, JSONRequestSettings, NotificationApi, NotificationManager, NotificationSpec, Observable, Plugin, PluginManager, RangeUtils, RawEditorSettings, Rect, Resource, SaxParser, SaxParserSettings, Schema, SchemaSettings, ScriptLoader, Shortcuts, StyleSheetLoader, Styles, TextSeeker, Theme, ThemeManager, TinyMCE, Tools, URI, Ui_d as Ui, UndoManager, VK, WindowManager, Writer, WriterSettings, XHR, XHRSettings };
3036
+ export { AddOnManager, Annotator, AstNode, Bookmark, BookmarkManager, Class, Color, ControlSelection, DOMUtils, Delay, DomParser, DomParserSettings, DomQuery, DomSerializer, DomSerializerSettings, DomTreeWalker, Editor, EditorCommands, EditorEvent, EditorManager, EditorModeApi, EditorObservable, EditorSelection, EditorSettings, Entities, Env, EventDispatcher, EventUtils, EventTypes_d as Events, FocusManager, Format_d as Formats, Formatter, GeomRect, HtmlSerializer, HtmlSerializerSettings, I18n, IconManager, JSONUtils as JSON, JSONP, JSONRequest, JSONRequestArgs, JSONRequestSettings, NotificationApi, NotificationManager, NotificationSpec, Observable, Plugin, PluginManager, RangeUtils, RawEditorSettings, Rect, Resource, SaxParser, SaxParserSettings, Schema, SchemaSettings, ScriptLoader, Shortcuts, StyleSheetLoader, Styles, TextSeeker, Theme, ThemeManager, TinyMCE, Tools, URI, Ui_d as Ui, UndoManager, VK, WindowManager, Writer, WriterSettings, XHR, XHRSettings };