@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.
- package/package.json +1 -1
- package/src/sap/ui/richtexteditor/.library +15 -6
- package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
- package/src/sap/ui/richtexteditor/RichTextEditor.js +365 -229
- package/src/sap/ui/richtexteditor/RichTextEditorRenderer.js +14 -5
- package/src/sap/ui/richtexteditor/ToolbarWrapper.js +563 -316
- package/src/sap/ui/richtexteditor/ToolbarWrapperRenderer.js +3 -4
- package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/default/icons.js +11 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/default/icons.min.js +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/jquery.tinymce.min.js +88 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ar.js +1 -420
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bg_BG.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bn_BD.js +21 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ca.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cs.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cs_CZ.js +221 -19
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cy.js +61 -18
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/da.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/de.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/el.js +1 -261
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_419.js +462 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_MX.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/et.js +21 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/eu.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fa.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fa_IR.js +69 -197
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fi.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fr_FR.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/gl.js +20 -155
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/he_IL.js +1 -420
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hr.js +1 -418
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hu_HU.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/id.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/it.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ja.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/kk.js +1 -418
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ko_KR.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/lt.js +21 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nb_NO.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nl.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nl_BE.js +445 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pl.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pt_BR.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pt_PT.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ro.js +1 -418
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ru.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ru_RU.js +445 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sk.js +1 -418
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sl.js +59 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sl_SI.js +1 -388
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sq.js +219 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sv_SE.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ta.js +60 -17
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ta_IN.js +60 -17
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/th_TH.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tr.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tr_TR.js +81 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ug.js +221 -19
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/uk.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/zh_CN.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/zh_TW.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/changelog.txt +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/codemirror.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/codemirror.min.js +4023 -4246
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/customeditor.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/customeditor.min.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/plugin.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/plugin.min.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/readme.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/version.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advlist/plugin.js +33 -48
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advlist/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/anchor/plugin.js +10 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/anchor/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autolink/plugin.js +60 -30
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autolink/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autoresize/plugin.js +27 -12
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autoresize/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autosave/plugin.js +12 -12
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autosave/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/bbcode/plugin.js +8 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/bbcode/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/charmap/plugin.js +59 -67
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/charmap/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/code/plugin.js +11 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/code/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/codesample/plugin.js +1934 -1310
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/codesample/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/colorpicker/plugin.js +3 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/colorpicker/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/contextmenu/plugin.js +3 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/contextmenu/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/directionality/plugin.js +200 -59
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/directionality/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojiimages.js +9424 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojis.js +1914 -1506
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojis.min.js +2 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/plugin.js +255 -181
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullpage/plugin.js +51 -49
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullpage/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullscreen/plugin.js +542 -163
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullscreen/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/help/plugin.js +113 -105
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/help/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/hr/plugin.js +11 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/hr/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/image/plugin.js +187 -170
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/image/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/imagetools/plugin.js +625 -433
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/imagetools/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/importcss/plugin.js +54 -53
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/importcss/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/insertdatetime/plugin.js +24 -17
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/insertdatetime/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/legacyoutput/plugin.js +10 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/legacyoutput/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/link/plugin.js +145 -131
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/link/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/lists/plugin.js +440 -270
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/lists/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/media/plugin.js +232 -186
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/media/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/nonbreaking/plugin.js +15 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/nonbreaking/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/noneditable/plugin.js +8 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/noneditable/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/pagebreak/plugin.js +29 -30
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/pagebreak/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/paste/plugin.js +388 -290
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/paste/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/CHANGELOG.md +345 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/js/wordimport.js +1826 -1696
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ar.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/bg_BG.js +4 -4
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ca.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/cs.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/da.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/de.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/el.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/es.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/eu.js +4 -4
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fa.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fi.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fr_FR.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/he_IL.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/hr.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/hu_HU.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/id.js +4 -4
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/it.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ja.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/kk.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ko_KR.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/nb_NO.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/nl.js +8 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pl.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pt_BR.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pt_PT.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ro.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ru.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sk.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sl_SI.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sv_SE.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/th_TH.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/tr.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/uk.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/zh_CN.js +13 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/zh_TW.js +13 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/plugin.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/plugin.min.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/readme.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/version.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/preview/plugin.js +18 -17
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/preview/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/print/plugin.js +15 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/print/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/quickbars/plugin.js +76 -85
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/quickbars/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/save/plugin.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/save/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/searchreplace/plugin.js +108 -103
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/searchreplace/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/spellchecker/plugin.js +54 -59
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/spellchecker/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tabfocus/plugin.js +31 -28
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tabfocus/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/table/plugin.js +4394 -3142
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/table/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/template/plugin.js +89 -73
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/template/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textcolor/plugin.js +3 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textcolor/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textpattern/plugin.js +111 -122
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textpattern/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/toc/plugin.js +33 -29
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/toc/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualblocks/plugin.js +12 -11
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualblocks/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualchars/plugin.js +89 -101
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualchars/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/wordcount/plugin.js +69 -58
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/wordcount/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/readme.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.css +10 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.css +10 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.css +104 -29
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.css +37 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.min.css +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.min.css.map +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.css +9 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.css +10 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.css +104 -29
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.min.css +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/mobile/theme.js +2890 -3335
- package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/mobile/theme.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/silver/theme.js +15720 -15353
- package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/silver/theme.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.d.ts +768 -552
- package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.js +6762 -6159
- package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/version.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/icons.js +197 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/icons.min.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ar.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/bg_BG.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ca.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/cs.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/cy.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/da.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/de.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/dv.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/el.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/en_GB.js +261 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/es.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/es_MX.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/et.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/eu.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fa.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fr_FR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/he_IL.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hr.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hu_HU.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/id.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/it.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ja.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/kk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ko_KR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lt.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lv.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ms.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/nb_NO.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/nl.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pl.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pt_BR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pt_PT.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ro.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ru.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sl_SI.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sr.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sv_SE.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/th_TH.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/tr.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/uk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/vi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/zh_CN.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/zh_TW.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/model.js +8045 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/model.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/plugin.js +1038 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/CHANGELOG.md +110 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/codemirror.min.css +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/codemirror.min.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/customeditor.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/customeditor.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ar.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/bg_BG.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ca.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/cs.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/da.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/de.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/el.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/es.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/eu.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fa.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fi.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fr_FR.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/he_IL.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hi.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hr.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hu_HU.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/id.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/it.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ja.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/kk.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ko_KR.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ms.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/nb_NO.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/nl.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pl.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pt_BR.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pt_PT.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ro.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ru.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sk.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sl_SI.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sv_SE.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/th_TH.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/tr.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/uk.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/vi.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/zh_CN.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/zh_TW.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/plugin.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/plugin.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/readme.txt +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/version.txt +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/plugin.js +264 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/plugin.js +219 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/plugin.js +233 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/plugin.js +197 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/plugin.js +238 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/plugin.js +1663 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/plugin.js +90 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/plugin.js +2468 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/plugin.js +400 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojiimages.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojiimages.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojis.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojis.min.js +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/plugin.js +600 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/plugin.js +1201 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ar.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/bg_BG.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ca.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/cs.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/da.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/de.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/el.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/en.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/es.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/eu.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fa.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fi.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fr_FR.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/he_IL.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hi.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hr.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hu_HU.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/id.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/it.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ja.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/kk.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ko_KR.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ms.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/nb_NO.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/nl.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pl.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pt_BR.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pt_PT.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ro.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ru.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sk.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sl_SI.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sv_SE.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/th_TH.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/tr.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/uk.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/vi.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/zh_CN.js +90 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/zh_TW.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/plugin.js +898 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/plugin.js +1509 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/plugin.js +349 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/plugin.js +192 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/plugin.js +1246 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/plugin.js +1953 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/plugin.js +1240 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/plugin.js +128 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/plugin.js +122 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/CHANGELOG.md +402 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/js/wordimport.js +3498 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ar.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/bg_BG.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ca.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/cs.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/da.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/de.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/el.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/es.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/eu.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fa.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fi.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fr_FR.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/he_IL.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hi.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hr.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hu_HU.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/id.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/it.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ja.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/kk.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ko_KR.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ms.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/nb_NO.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/nl.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pl.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pt_BR.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pt_PT.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ro.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ru.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sk.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sl_SI.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sv_SE.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/th_TH.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/tr.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/uk.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/vi.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/zh_CN.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/zh_TW.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/plugin.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/plugin.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/readme.txt +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/version.txt +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/plugin.js +102 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/plugin.js +443 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/plugin.js +123 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/plugin.js +1098 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/plugin.js +3467 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/plugin.js +572 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/plugin.js +103 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/plugin.js +565 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/plugin.js +410 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/readme.txt +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/dark/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.css +67 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/document/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/document/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5/content.css +67 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5-dark/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/writer/content.css +68 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/writer/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.css +791 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.css +785 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.css +3694 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.css +772 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.css +785 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.css +3697 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.css +791 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.css +785 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.css +3788 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.css +772 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.css +785 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.css +3788 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/theme.js +30172 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/theme.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.d.ts +3206 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.js +31303 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/version.txt +1 -0
- package/src/sap/ui/richtexteditor/library.js +64 -27
- package/src/sap/ui/richtexteditor/messagebundle_ar.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_bg.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ca.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_cnr.properties +105 -0
- package/src/sap/ui/richtexteditor/messagebundle_cs.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_cy.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_da.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_de.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_el.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_en_GB.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_en_US_saprigi.properties +106 -52
- package/src/sap/ui/richtexteditor/messagebundle_es.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_es_MX.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_et.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_fi.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_fr.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_fr_CA.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_hi.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_hr.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_hu.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_id.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_it.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_iw.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ja.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_kk.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ko.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_lt.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_lv.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ms.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_nl.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_no.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_pl.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_pt.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_pt_PT.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ro.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ru.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sh.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sk.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sl.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sr.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sv.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_th.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_tr.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_uk.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_vi.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_zh_CN.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_zh_TW.properties +54 -0
- package/src/sap/ui/richtexteditor/themes/base/RichTextEditor.less +25 -84
- package/src/sap/ui/richtexteditor/themes/sap_belize/RichTextEditor.less +33 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize/library.source.less +3 -1
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/RichTextEditor.less +29 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/library.source.less +2 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/RichTextEditor.less +30 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/library.source.less +2 -0
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_dark/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcb/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcw/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_horizon/RichTextEditor.less +15 -30
|
@@ -3,46 +3,43 @@
|
|
|
3
3
|
* (c) Copyright 2009-2021 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/*global Promise */
|
|
7
|
-
|
|
8
6
|
// Provides control sap.ui.richtexteditor.RichTextEditor.
|
|
9
7
|
sap.ui.define([
|
|
10
8
|
"sap/ui/thirdparty/jquery",
|
|
11
9
|
'sap/ui/core/Control',
|
|
10
|
+
'sap/ui/core/library',
|
|
11
|
+
'sap/ui/core/Locale',
|
|
12
|
+
'sap/ui/core/Popup',
|
|
12
13
|
'sap/ui/core/ResizeHandler',
|
|
13
14
|
'./library',
|
|
14
15
|
'./ToolbarWrapper',
|
|
15
|
-
"sap/ui/core/RenderManager",
|
|
16
16
|
"sap/ui/dom/includeScript",
|
|
17
17
|
"sap/base/Log",
|
|
18
18
|
"sap/base/security/sanitizeHTML",
|
|
19
19
|
"sap/ui/events/KeyCodes",
|
|
20
|
-
"sap/base/security/encodeXML",
|
|
21
|
-
"sap/ui/Device",
|
|
22
20
|
"sap/ui/core/Core",
|
|
23
21
|
// Control renderer
|
|
24
|
-
"./RichTextEditorRenderer"
|
|
25
|
-
// jQuery custom selectors ":sapFocusable"
|
|
26
|
-
"sap/ui/dom/jquery/Selectors",
|
|
27
|
-
// jQuery Plugin "control"
|
|
28
|
-
"sap/ui/dom/jquery/control"
|
|
22
|
+
"./RichTextEditorRenderer"
|
|
29
23
|
],
|
|
30
24
|
function(
|
|
31
25
|
jQuery,
|
|
32
26
|
Control,
|
|
27
|
+
coreLibrary,
|
|
28
|
+
Locale,
|
|
29
|
+
Popup,
|
|
33
30
|
ResizeHandler,
|
|
34
31
|
library,
|
|
35
32
|
ToolbarWrapper,
|
|
36
|
-
RenderManager,
|
|
37
33
|
includeScript,
|
|
38
34
|
Log,
|
|
39
35
|
sanitizeHTML,
|
|
40
36
|
KeyCodes,
|
|
41
|
-
encodeXML,
|
|
42
|
-
Device,
|
|
43
37
|
Core
|
|
44
38
|
) {
|
|
45
39
|
"use strict";
|
|
40
|
+
|
|
41
|
+
var TextDirection = coreLibrary.TextDirection;
|
|
42
|
+
|
|
46
43
|
/**
|
|
47
44
|
* Describes the internal status of the editor component used inside the RichTextEditor control.
|
|
48
45
|
*
|
|
@@ -112,6 +109,47 @@ sap.ui.define([
|
|
|
112
109
|
* <li>Use callbacks to the native third-party API with care, as there may be compatibility issues with later versions.</li>
|
|
113
110
|
* </ul>
|
|
114
111
|
*
|
|
112
|
+
* <h3>Custom toolbar - adding and removing buttons</h3>
|
|
113
|
+
* With version 1.96.27 it is possible to redefine the button groups configuration in order to show only particular set of buttons in the custom toolbar of the <code>RichTextEditor</code>.
|
|
114
|
+
* This is possible in few ways:
|
|
115
|
+
* <ul>
|
|
116
|
+
* <li>By providing the buttons group configurations as a whole by setting the <code>buttonGroups</code> property of the control.</li>
|
|
117
|
+
* <li>By providing individual button group configuration via <code>addButtonGroup</code> method.</li>
|
|
118
|
+
* </ul>
|
|
119
|
+
*
|
|
120
|
+
* Consider the following when choosing your approach:
|
|
121
|
+
* <ul>
|
|
122
|
+
* <li>Setting <code>buttonGroups</code> will override all current custom toolbar button group configurations. This method allows for total redefining of the custom toolbar groups.</li>
|
|
123
|
+
* <li>Using <code>addButtonGroups</code> will try to add non-existing group into the configuration array, however, if such group configuration exists already, a warning will be logged and the new configuration will not be added. In order to replace the existing configuration you will need to remove it first via <code>removeButtonGroup</code>.</li>
|
|
124
|
+
* </ul>
|
|
125
|
+
*
|
|
126
|
+
* Below is a list of supported groups and buttons, which can be specified in the configuration objects (format is <<group name>>: <<supported buttons>>):
|
|
127
|
+
* <ul>
|
|
128
|
+
* <li>font-style: bold, italic, underline, strikethrough</li>
|
|
129
|
+
* <li>font: fontfamily (fontselect in TinyMCE5), fontsize (fontsizeselect in TinyMCE5), forecolor, backcolor</li>
|
|
130
|
+
* <li>clipboard: cut, copy, paste</li>
|
|
131
|
+
* <li>structure: bullist, numlist, outdent, indent</li>
|
|
132
|
+
* <li>undo: undo, redo</li>
|
|
133
|
+
* <li>insert: image, emoticons</li>
|
|
134
|
+
* <li>link: link, unlink</li>
|
|
135
|
+
* <li>text-align: alignleft, aligncenter, alignright, alignjustify</li>
|
|
136
|
+
* </ul>
|
|
137
|
+
* Additional supported groups, which can be added only after the editor is loaded (they can not be specified in the above mentioned configuration):
|
|
138
|
+
* <ul>
|
|
139
|
+
* <li>table: table</li>
|
|
140
|
+
* <li>styleselect: styleselect</li>
|
|
141
|
+
* <ul>
|
|
142
|
+
* <b>Note!</b> Adding configuration for "text-align" group with any buttons will still render a menu button with all available options inside. Removing/hiding the group can be achieved by invoking <code>removeButtonGroup</code> or <code>setShowGroupTextAlign(false)</code> depending on the desired result.
|
|
143
|
+
*
|
|
144
|
+
* <b>Note!</b> There is no synchronization between the <code>setShowGroup*</code> properties and the configuration object that the application can specifying via <code>buttonGroups</code> in the constructor or on a later stage. This means that in case new configuration is provided and for particular group the passed object contains property <code>visible: true</code>, this group property will be respected no matter if the <code>RichTextEditor</code>'s property for this particular group is set to <code>false</code>.
|
|
145
|
+
* Example:
|
|
146
|
+
* Providing the following object as group configuration:
|
|
147
|
+
* {
|
|
148
|
+
* name: "font"
|
|
149
|
+
* visible: true
|
|
150
|
+
* }
|
|
151
|
+
* Will make the "font" group visible, no matter that calling <code>RichTextEditor.getShowGroupFont()</code> returns <code>false</code>.
|
|
152
|
+
*
|
|
115
153
|
* @extends sap.ui.core.Control
|
|
116
154
|
*
|
|
117
155
|
* @author SAP SE
|
|
@@ -123,7 +161,6 @@ sap.ui.define([
|
|
|
123
161
|
* @alias sap.ui.richtexteditor.RichTextEditor
|
|
124
162
|
* @see {@link fiori:https://experience.sap.com/fiori-design-web/rich-text-editor/ Rich Text Editor}
|
|
125
163
|
* @see {@link topic:d4f3f1598373452bb73f2120930c133c}
|
|
126
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
127
164
|
*/
|
|
128
165
|
var RichTextEditor = Control.extend("sap.ui.richtexteditor.RichTextEditor", /** @lends sap.ui.richtexteditor.RichTextEditor.prototype */ {
|
|
129
166
|
metadata: {
|
|
@@ -140,7 +177,7 @@ sap.ui.define([
|
|
|
140
177
|
/**
|
|
141
178
|
* The text direction
|
|
142
179
|
*/
|
|
143
|
-
textDirection: { type: "sap.ui.core.TextDirection", group: "Appearance", defaultValue:
|
|
180
|
+
textDirection: { type: "sap.ui.core.TextDirection", group: "Appearance", defaultValue: TextDirection.Inherit },
|
|
144
181
|
|
|
145
182
|
/**
|
|
146
183
|
* Width of RichTextEditor control in CSS units.
|
|
@@ -150,6 +187,7 @@ sap.ui.define([
|
|
|
150
187
|
/**
|
|
151
188
|
* Height of RichTextEditor control in CSS units.
|
|
152
189
|
* <b>Note:</b> If the height property results in a value smaller than 200px, the minimum height of 200px will be applied.
|
|
190
|
+
* <b>Note:</b> If the "autoresize" TinyMCE plugin is used, the height property is not taken into account.
|
|
153
191
|
*/
|
|
154
192
|
height: { type: "sap.ui.core.CSSSize", group: "Dimension", defaultValue: null },
|
|
155
193
|
|
|
@@ -161,11 +199,16 @@ sap.ui.define([
|
|
|
161
199
|
* not an enumeration).
|
|
162
200
|
*
|
|
163
201
|
* <b>Notes:</b>
|
|
164
|
-
* <ul><li>
|
|
165
|
-
*
|
|
166
|
-
*
|
|
202
|
+
* <ul><li>Any attempts to set this property after the first rendering will not
|
|
203
|
+
* have any effect.</li>
|
|
204
|
+
* <li>Usage of internal TinyMCE APIs is not recommended, since it might lead to issues upon TinyMCE version update.</li>
|
|
205
|
+
* <li>TinyMCE version 3 and 4 are no longer supported and cannot be used.</li>
|
|
206
|
+
* <li>TinyMCE 4 is out of support and by using it, application developers are accepting all the risks comming from that fact. In addition TinyMCE 4 will be removed in future releases.</li>
|
|
207
|
+
* <li>TinyMCE 5 will be removed in future releases.</li>
|
|
208
|
+
* <li>Have in mind when choosing a specific TinyMCE version that there might be differences in the support rules compared to UI5, therefore we might be forced to remove any TinyMCE version.</li>
|
|
209
|
+
* </ul>
|
|
167
210
|
*/
|
|
168
|
-
editorType: { type: "string", group: "Misc", defaultValue: '
|
|
211
|
+
editorType: { type: "string", group: "Misc", defaultValue: 'TinyMCE' },
|
|
169
212
|
|
|
170
213
|
/**
|
|
171
214
|
* Relative or absolute URL where the editor is available. Must be on the same server.
|
|
@@ -182,41 +225,49 @@ sap.ui.define([
|
|
|
182
225
|
|
|
183
226
|
/**
|
|
184
227
|
* Determines whether the toolbar button group containing commands like Bold, Italic, Underline and Strikethrough is available. Changing this after the initial rendering will result in some visible redrawing.
|
|
228
|
+
* Note: This property will not be synchronized with group configuration provided via the buttonGroups property or when groups are added on a later stage.
|
|
185
229
|
*/
|
|
186
230
|
showGroupFontStyle: { type: "boolean", group: "Misc", defaultValue: true },
|
|
187
231
|
|
|
188
232
|
/**
|
|
189
233
|
* Determines whether the toolbar button group containing text alignment commands is available. Changing this after the initial rendering will result in some visible redrawing.
|
|
234
|
+
* Note: This property will not be synchronized with group configuration provided via the buttonGroups property or when groups are added on a later stage.
|
|
190
235
|
*/
|
|
191
236
|
showGroupTextAlign: { type: "boolean", group: "Misc", defaultValue: true },
|
|
192
237
|
|
|
193
238
|
/**
|
|
194
239
|
* Determines whether the toolbar button group containing commands like Bullets and Indentation is available. Changing this after the initial rendering will result in some visible redrawing.
|
|
240
|
+
* Note: This property will not be synchronized with group configuration provided via the buttonGroups property or when groups are added on a later stage.
|
|
195
241
|
*/
|
|
196
242
|
showGroupStructure: { type: "boolean", group: "Misc", defaultValue: true },
|
|
197
243
|
|
|
198
244
|
/**
|
|
199
245
|
* Determines whether the toolbar button group containing commands like Font, Font Size and Colors is available. Changing this after the initial rendering will result in some visible redrawing.
|
|
246
|
+
* Note: This property will not be synchronized with group configuration provided via the buttonGroups property or when groups are added on a later stage.
|
|
200
247
|
*/
|
|
201
248
|
showGroupFont: { type: "boolean", group: "Misc", defaultValue: false },
|
|
202
249
|
|
|
203
250
|
/**
|
|
204
251
|
* Determines whether the toolbar button group containing commands like Cut, Copy and Paste is available. Changing this after the initial rendering will result in some visible redrawing.
|
|
252
|
+
* Note: This property will not be synchronized with group configuration provided via the buttonGroups property or when groups are added on a later stage.
|
|
205
253
|
*/
|
|
206
254
|
showGroupClipboard: { type: "boolean", group: "Misc", defaultValue: true },
|
|
207
255
|
|
|
208
256
|
/**
|
|
209
257
|
* Determines whether the toolbar button group containing commands like Insert Image and Insert Smiley is available. Changing this after the initial rendering will result in some visible redrawing.
|
|
258
|
+
* Note: This property will not be synchronized with group configuration provided via the buttonGroups property or when groups are added on a later stage.
|
|
210
259
|
*/
|
|
211
260
|
showGroupInsert: { type: "boolean", group: "Misc", defaultValue: false },
|
|
212
261
|
|
|
213
262
|
/**
|
|
214
263
|
* Determines whether the toolbar button group containing commands like Create Link and Remove Link is available. Changing this after the initial rendering will result in some visible redrawing.
|
|
264
|
+
* Note: This property will not be synchronized with group configuration provided via the buttonGroups property or when groups are added on a later stage.
|
|
215
265
|
*/
|
|
216
266
|
showGroupLink: { type: "boolean", group: "Misc", defaultValue: false },
|
|
217
267
|
|
|
218
268
|
/**
|
|
219
269
|
* Determines whether the toolbar button group containing commands like Undo and Redo is available. Changing this after the initial rendering will result in some visible redrawing.
|
|
270
|
+
* Note: This property will not be synchronized with group configuration provided via the buttonGroups property or when groups are added on a later stage.
|
|
220
271
|
*/
|
|
221
272
|
showGroupUndo: { type: "boolean", group: "Misc", defaultValue: false },
|
|
222
273
|
|
|
@@ -243,17 +294,19 @@ sap.ui.define([
|
|
|
243
294
|
|
|
244
295
|
/**
|
|
245
296
|
* Determines whether or not to use the legacy theme for the toolbar buttons. If this is set to false, the default theme for the editor will be used (which might change slightly with every update). The legacy theme has the disadvantage that not all functionality has its own icon, so using non default buttons might lead to invisible buttons with the legacy theme - use the default editor theme in this case.
|
|
297
|
+
* @deprecated Since version 1.96.27
|
|
298
|
+
* This property became obsolete after the deprecation of TinyMCE v3.
|
|
246
299
|
*/
|
|
247
|
-
useLegacyTheme: { type: "boolean", group: "Appearance", defaultValue: true },
|
|
300
|
+
useLegacyTheme: { type: "boolean", group: "Appearance", defaultValue: true, deprecated: true },
|
|
248
301
|
|
|
249
302
|
/**
|
|
250
303
|
* An array of button configurations. These configurations contain the names of buttons as array in the property "buttons" and the name of the group in "name", they can also contain the "row" where the buttons should be placed, a "priority" and whether the buttons are "visible". See method addButtonGroup() for more details on the structure of the objects in this array.
|
|
251
|
-
* <b>Note:</b> <code>buttonGroups</code> is a feature from the native editor. Its supported scope with <code>customToolbar</code> is limited up to the grouping- the user could turn on/off a whole group, but
|
|
304
|
+
* <b>Note:</b> <code>buttonGroups</code> is a feature from the native editor. Its supported scope with <code>customToolbar</code> is limited up to the grouping- the user could turn on/off a whole group, but modifying buttons within a group is not possible. In order to achieve that functionality with <code>customToolbar</code>, the developer needs to turn the group off and instantiate their own <code>sap.m.Button</code>(s) with the desired functionality.
|
|
252
305
|
*/
|
|
253
306
|
buttonGroups: {type: "object[]", group: "Behavior", defaultValue: [] },
|
|
254
307
|
|
|
255
308
|
/**
|
|
256
|
-
* Determines whether a Fiori Toolbar is used instead of the TinyMCE default toolbar one. It is applied only when the EditorType is
|
|
309
|
+
* Determines whether a Fiori Toolbar is used instead of the TinyMCE default toolbar one. It is applied only when the EditorType is TinyMCE5 or TinyMCE6 and sap.m library is loaded.
|
|
257
310
|
* <b>Note:</b> The <code>customToolbar</code> property will have effect only on initial loading. Changing it during runtime will not affect the initially loaded toolbar.
|
|
258
311
|
*
|
|
259
312
|
* @since 1.48
|
|
@@ -287,7 +340,8 @@ sap.ui.define([
|
|
|
287
340
|
readyRecurring: {},
|
|
288
341
|
|
|
289
342
|
/**
|
|
290
|
-
* This event is fired right before the TinyMCE instance is created and can be used to change the settings object that will be given to TinyMCE. The parameter "configuration" is the javascript
|
|
343
|
+
* This event is fired right before the TinyMCE instance is created and can be used to change the settings object that will be given to TinyMCE. The parameter "configuration" is the javascript object that will be given to TinyMCE upon first instantiation. The configuration parameter contains a map that can be changed in the case of TinyMCE.
|
|
344
|
+
* <b>Note:</b> In order to add plugins to the <code>RichTextEditor</code> control, you have to use the <code>addPlugin</code> method. Adding plugins through the settings object may lead to synchronizing issues between TinyMCE and <code>RichTextEditor</code> control.
|
|
291
345
|
*/
|
|
292
346
|
beforeEditorInit: {}
|
|
293
347
|
},
|
|
@@ -326,11 +380,10 @@ sap.ui.define([
|
|
|
326
380
|
|
|
327
381
|
// global tinymce
|
|
328
382
|
// Tells JSLint/SAPUI5 validation we need access to this global variable
|
|
329
|
-
/* eslint-disable strict -- (Will be adressed when moving to AMD syntax) */
|
|
330
383
|
|
|
331
384
|
/*
|
|
332
|
-
|
|
333
|
-
|
|
385
|
+
* The following code is editor-independent
|
|
386
|
+
*/
|
|
334
387
|
// Counter for creating internal ids
|
|
335
388
|
RichTextEditor._lastId = 0;
|
|
336
389
|
|
|
@@ -341,16 +394,59 @@ sap.ui.define([
|
|
|
341
394
|
// Editor type entries for backwards compatibility
|
|
342
395
|
RichTextEditor.EDITORTYPE_TINYMCE4 = library.EditorType.TinyMCE4;
|
|
343
396
|
RichTextEditor.EDITORTYPE_TINYMCE5 = library.EditorType.TinyMCE5;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
397
|
+
RichTextEditor.EDITORTYPE_TINYMCE6 = library.EditorType.TinyMCE6;
|
|
398
|
+
|
|
399
|
+
// default
|
|
400
|
+
RichTextEditor.EDITORTYPE_TINYMCE = library.EditorType.TinyMCE;
|
|
401
|
+
|
|
402
|
+
var EDITOR_LOCATION_MAPPING = {};
|
|
403
|
+
|
|
404
|
+
// default
|
|
405
|
+
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE] = "js/tiny_mce4/tinymce.min.js";
|
|
406
|
+
|
|
407
|
+
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE4] = "js/tiny_mce4/tinymce.min.js";
|
|
408
|
+
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE5] = "js/tiny_mce5/tinymce.min.js";
|
|
409
|
+
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE6] = "js/tiny_mce6/tinymce.min.js";
|
|
410
|
+
|
|
411
|
+
RichTextEditor.DEFAULT_PLUGINS_TINYMCE5 = [
|
|
412
|
+
"emoticons",
|
|
413
|
+
"directionality",
|
|
414
|
+
"tabfocus",
|
|
415
|
+
"table",
|
|
416
|
+
"image",
|
|
417
|
+
"link",
|
|
418
|
+
"textcolor",
|
|
419
|
+
"colorpicker",
|
|
420
|
+
"textpattern",
|
|
421
|
+
"powerpaste"
|
|
422
|
+
];
|
|
423
|
+
RichTextEditor.DEFAULT_PLUGINS_TINYMCE6 = [
|
|
424
|
+
"emoticons",
|
|
425
|
+
"directionality",
|
|
426
|
+
"image",
|
|
427
|
+
"table",
|
|
428
|
+
"link",
|
|
429
|
+
"powerpaste"
|
|
430
|
+
];
|
|
431
|
+
|
|
432
|
+
// TinyMCE does not provide some of the regions/languages that our messagebundle has, therefore with this mapping, we are falling back to the ones provided
|
|
348
433
|
RichTextEditor.MAPPED_LANGUAGES_TINYMCE = {
|
|
349
|
-
"
|
|
350
|
-
"
|
|
434
|
+
"bg": "bg_BG",
|
|
435
|
+
"en_US": "en_GB",
|
|
436
|
+
"fr": "fr_FR",
|
|
437
|
+
"fr_CA": "fr_FR",
|
|
438
|
+
"hu": "hu_HU",
|
|
351
439
|
"in": "id",
|
|
352
440
|
"iw": "he",
|
|
353
|
-
"
|
|
441
|
+
"ji": "yi",
|
|
442
|
+
"ko": "ko_KR",
|
|
443
|
+
"no": "nb",
|
|
444
|
+
"pt": "pt_PT",
|
|
445
|
+
"sh": "sr",
|
|
446
|
+
"sl": "sl_SI",
|
|
447
|
+
"sv": "sv_SE",
|
|
448
|
+
"th": "th_TH"
|
|
449
|
+
|
|
354
450
|
};
|
|
355
451
|
|
|
356
452
|
RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE = {
|
|
@@ -387,6 +483,7 @@ sap.ui.define([
|
|
|
387
483
|
"gd": true,
|
|
388
484
|
"gl": true,
|
|
389
485
|
"he_IL": true,
|
|
486
|
+
"hi": true,
|
|
390
487
|
"hi_IN": true,
|
|
391
488
|
"hr": true,
|
|
392
489
|
"hu_HU": true,
|
|
@@ -445,6 +542,8 @@ sap.ui.define([
|
|
|
445
542
|
"ro_RO": true
|
|
446
543
|
};
|
|
447
544
|
|
|
545
|
+
RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE6 = RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE5;
|
|
546
|
+
|
|
448
547
|
RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS = {
|
|
449
548
|
"zh": "CN",
|
|
450
549
|
"fr": "FR",
|
|
@@ -470,7 +569,38 @@ sap.ui.define([
|
|
|
470
569
|
"vi": "VN"
|
|
471
570
|
};
|
|
472
571
|
|
|
572
|
+
RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS_TINYMCE6 = {
|
|
573
|
+
"zh": "CN",
|
|
574
|
+
"fr": "FR",
|
|
575
|
+
"bn": "BD",
|
|
576
|
+
"bg": "BG",
|
|
577
|
+
"ka": "GE",
|
|
578
|
+
"he": "IL",
|
|
579
|
+
"hu": "HU",
|
|
580
|
+
"is": "IS",
|
|
581
|
+
"km": "KH",
|
|
582
|
+
"ko": "KR",
|
|
583
|
+
"ku": "IQ",
|
|
584
|
+
"ml": "IN",
|
|
585
|
+
"mn": "MN",
|
|
586
|
+
"nb": "NO",
|
|
587
|
+
"pt": "PT",
|
|
588
|
+
"si": "SI",
|
|
589
|
+
"sl": "SI",
|
|
590
|
+
"sv": "SE",
|
|
591
|
+
"th": "TH"
|
|
592
|
+
};
|
|
593
|
+
|
|
473
594
|
RichTextEditor.pLoadTinyMCE = null;
|
|
595
|
+
var oEditorMapping = {};
|
|
596
|
+
|
|
597
|
+
// default
|
|
598
|
+
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE] = RichTextEditor.EDITORTYPE_TINYMCE4;
|
|
599
|
+
|
|
600
|
+
// other versions
|
|
601
|
+
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE4] = RichTextEditor.EDITORTYPE_TINYMCE4;
|
|
602
|
+
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE5] = RichTextEditor.EDITORTYPE_TINYMCE5;
|
|
603
|
+
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE6] = RichTextEditor.EDITORTYPE_TINYMCE6;
|
|
474
604
|
|
|
475
605
|
/**
|
|
476
606
|
* Creates and returns a promise to load the given location as script url. Only the first invocation needs the
|
|
@@ -484,11 +614,10 @@ sap.ui.define([
|
|
|
484
614
|
*/
|
|
485
615
|
RichTextEditor.loadTinyMCE = function(sLocation) {
|
|
486
616
|
if (sLocation) {
|
|
487
|
-
var sRealLocation = sap.ui.
|
|
617
|
+
var sRealLocation = sap.ui.require.toUrl('sap/ui/richtexteditor/' + sLocation),
|
|
488
618
|
oScriptElement = document.querySelector("#sapui5-tinyMCE"),
|
|
489
619
|
sLoadedLocation = oScriptElement ? oScriptElement.getAttribute("src") : "";
|
|
490
620
|
|
|
491
|
-
|
|
492
621
|
if (sRealLocation !== sLoadedLocation && RichTextEditor._iCountInstances === 1) {
|
|
493
622
|
delete window.tinymce;
|
|
494
623
|
delete window.TinyMCE;
|
|
@@ -496,8 +625,9 @@ sap.ui.define([
|
|
|
496
625
|
}
|
|
497
626
|
|
|
498
627
|
if (!RichTextEditor.pLoadTinyMCE) {
|
|
499
|
-
RichTextEditor.pLoadTinyMCE =
|
|
500
|
-
|
|
628
|
+
RichTextEditor.pLoadTinyMCE = includeScript({
|
|
629
|
+
id: "sapui5-tinyMCE",
|
|
630
|
+
url: sRealLocation
|
|
501
631
|
});
|
|
502
632
|
}
|
|
503
633
|
}
|
|
@@ -509,8 +639,8 @@ sap.ui.define([
|
|
|
509
639
|
* @private
|
|
510
640
|
*/
|
|
511
641
|
RichTextEditor.prototype.init = function() {
|
|
512
|
-
var sEditorType = this.getEditorType()
|
|
513
|
-
|
|
642
|
+
var sEditorType = oEditorMapping[this.getEditorType()] || RichTextEditor.EDITORTYPE_TINYMCE;
|
|
643
|
+
|
|
514
644
|
this._bEditorCreated = false;
|
|
515
645
|
this._sTimerId = null;
|
|
516
646
|
RichTextEditor._iCountInstances++;
|
|
@@ -543,7 +673,7 @@ sap.ui.define([
|
|
|
543
673
|
}
|
|
544
674
|
|
|
545
675
|
if (this.isPropertyInitial("editorType")) {
|
|
546
|
-
Log.
|
|
676
|
+
Log.info("You are using the default value of the editorType which is subject to changes and might affect your application.");
|
|
547
677
|
}
|
|
548
678
|
|
|
549
679
|
this.onBeforeRenderingTinyMCE();
|
|
@@ -551,8 +681,6 @@ sap.ui.define([
|
|
|
551
681
|
|
|
552
682
|
RichTextEditor.prototype.onAfterRendering = function() {
|
|
553
683
|
this.onAfterRenderingTinyMCE();
|
|
554
|
-
|
|
555
|
-
this.getDomRef() && jQuery(this).toggleClass("sapUiRTELegacyTheme", this.getUseLegacyTheme());
|
|
556
684
|
};
|
|
557
685
|
|
|
558
686
|
/**
|
|
@@ -574,7 +702,6 @@ sap.ui.define([
|
|
|
574
702
|
*
|
|
575
703
|
* @returns {object} The native editor object (here: The TinyMCE editor instance)
|
|
576
704
|
* @public
|
|
577
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
578
705
|
*/
|
|
579
706
|
RichTextEditor.prototype.getNativeApi = function() {
|
|
580
707
|
return this.getNativeApiTinyMCE();
|
|
@@ -603,7 +730,7 @@ sap.ui.define([
|
|
|
603
730
|
|
|
604
731
|
this.setProperty("value", sValue, true);
|
|
605
732
|
sValue = this.getProperty("value");
|
|
606
|
-
if (this.getEditorType()
|
|
733
|
+
if (oEditorMapping[this.getEditorType()]) {
|
|
607
734
|
this.setValueTinyMCE(sValue);
|
|
608
735
|
} else {
|
|
609
736
|
this.reinitialize();
|
|
@@ -737,7 +864,7 @@ sap.ui.define([
|
|
|
737
864
|
* RichTextEditor.
|
|
738
865
|
*
|
|
739
866
|
* @param {object|string} [mPlugin] The plugin ID/name or an object with property "name", containing the ID/name of the plugin
|
|
740
|
-
* @returns {
|
|
867
|
+
* @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
|
|
741
868
|
* @public
|
|
742
869
|
*/
|
|
743
870
|
RichTextEditor.prototype.addPlugin = function (mPlugin) {
|
|
@@ -762,7 +889,7 @@ sap.ui.define([
|
|
|
762
889
|
* Removes the plugin with the given name/ID from the list of plugins to load
|
|
763
890
|
*
|
|
764
891
|
* @param {string} [sPluginName] The name/ID of the plugin to remove
|
|
765
|
-
* @returns {
|
|
892
|
+
* @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
|
|
766
893
|
* @public
|
|
767
894
|
*/
|
|
768
895
|
RichTextEditor.prototype.removePlugin = function(sPluginName) {
|
|
@@ -781,85 +908,114 @@ sap.ui.define([
|
|
|
781
908
|
|
|
782
909
|
/**
|
|
783
910
|
* Adds a button group to the editor.
|
|
911
|
+
* <b>Note</b>: Adding already existing group will not do anything. If a button group needs to be changed, it first needs to be removed and then added by providing its name or map object, containing its desired configuration.
|
|
784
912
|
*
|
|
785
|
-
* @param {object|string} [
|
|
786
|
-
* @param {string[]} [
|
|
787
|
-
* @param {string} [
|
|
788
|
-
* @param {boolean} [
|
|
789
|
-
* @param {int} [
|
|
790
|
-
* @param {int} [
|
|
791
|
-
* @param {int} [
|
|
792
|
-
* @returns {
|
|
913
|
+
* @param {object|string} [vGroup] Name/ID of a single button or object containing the group information
|
|
914
|
+
* @param {string[]} [vGroup.buttons] Array of name/IDs of the buttons in the group
|
|
915
|
+
* @param {string} [vGroup.name] Name/ID of the group.
|
|
916
|
+
* @param {boolean} [vGroup.visible=true] (optional) The priority of the button group. Lower priorities are added first.
|
|
917
|
+
* @param {int} [vGroup.row=0] (optional) Row number in which the button should be
|
|
918
|
+
* @param {int} [vGroup.priority=10] (optional) The priority of the button group. Lower priorities are added first.
|
|
919
|
+
* @param {int} [vGroup.customToolbarPriority] (optional) The priority of the button group in the custom toolbar. Each default group in the custom toolbar has a predefined <code>customToolbarPriority</code>. Lower priorities are added in first.
|
|
920
|
+
* @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
|
|
793
921
|
* @public
|
|
794
922
|
*/
|
|
795
|
-
RichTextEditor.prototype.addButtonGroup = function (
|
|
923
|
+
RichTextEditor.prototype.addButtonGroup = function (vGroup) {
|
|
796
924
|
var aGroups = this.getProperty("buttonGroups").slice(),
|
|
797
|
-
oCustomToolbar = this.getAggregation("_toolbarWrapper")
|
|
798
|
-
|
|
925
|
+
oCustomToolbar = this.getAggregation("_toolbarWrapper");
|
|
926
|
+
|
|
927
|
+
if (!vGroup) {
|
|
928
|
+
return this;
|
|
929
|
+
}
|
|
799
930
|
|
|
800
931
|
// check if the group is already added
|
|
801
932
|
for (var i = 0; i < aGroups.length; ++i) {
|
|
802
|
-
if (
|
|
933
|
+
if (typeof vGroup === "string" && aGroups[i].name === vGroup || aGroups[i].name === vGroup.name) {
|
|
934
|
+
Log.warning("Trying to add already existing group: " + (typeof vGroup === "string" ? vGroup : vGroup.name) + ". Please remove the group first and then add it.", this);
|
|
803
935
|
return this;
|
|
804
936
|
}
|
|
805
937
|
}
|
|
806
938
|
|
|
807
|
-
//
|
|
808
|
-
if (typeof
|
|
809
|
-
|
|
810
|
-
|
|
939
|
+
// check for the mandatory parameters "vGroup.buttons" and "vGroup.name"
|
|
940
|
+
if (typeof vGroup === "object" && !(vGroup.name && Array.isArray(vGroup.buttons))) {
|
|
941
|
+
Log.error("The properties 'name' and 'buttons' are mandatory for the group configuration object. Please make sure they exist within the provided configuration.", this);
|
|
942
|
+
return this;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
// check buttons in the vGroup.buttons property
|
|
946
|
+
if (typeof vGroup === "object" && !(Array.isArray(vGroup.buttons) && vGroup.buttons.length)) {
|
|
947
|
+
Log.error("The 'buttons' array of the provided group configuration object cannot be empty.", this);
|
|
948
|
+
return this;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
//if vGroup is string and the group name is known to the RTE control, internally we are creating a group object.
|
|
952
|
+
if (typeof vGroup === "string") {
|
|
953
|
+
switch (vGroup) {
|
|
811
954
|
case "formatselect":
|
|
812
|
-
|
|
813
|
-
mGroup = {
|
|
955
|
+
vGroup = {
|
|
814
956
|
name: "formatselect",
|
|
815
957
|
buttons: ["formatselect"]
|
|
816
958
|
};
|
|
817
959
|
break;
|
|
818
960
|
case "styleselect":
|
|
819
|
-
|
|
820
|
-
mGroup = {
|
|
961
|
+
vGroup = {
|
|
821
962
|
name: "styleselect",
|
|
822
963
|
buttons: ["styleselect"],
|
|
823
964
|
customToolbarPriority: 40
|
|
824
965
|
};
|
|
825
966
|
break;
|
|
826
967
|
case "table":
|
|
827
|
-
|
|
828
|
-
mGroup = {
|
|
968
|
+
vGroup = {
|
|
829
969
|
name: "table",
|
|
830
970
|
buttons: ["table"],
|
|
831
971
|
customToolbarPriority: 90
|
|
832
972
|
};
|
|
833
973
|
break;
|
|
974
|
+
// TinyMCE 6
|
|
975
|
+
case "blocks":
|
|
976
|
+
vGroup = {
|
|
977
|
+
name: "blocks",
|
|
978
|
+
buttons: ["blocks"]
|
|
979
|
+
};
|
|
980
|
+
break;
|
|
981
|
+
case "styles":
|
|
982
|
+
vGroup = {
|
|
983
|
+
name: "styles",
|
|
984
|
+
buttons: ["styles"],
|
|
985
|
+
customToolbarPriority: 40
|
|
986
|
+
};
|
|
987
|
+
break;
|
|
834
988
|
default:
|
|
835
|
-
|
|
989
|
+
vGroup = {
|
|
836
990
|
name: this._createId("buttonGroup"),
|
|
837
|
-
buttons: [
|
|
991
|
+
buttons: [vGroup]
|
|
838
992
|
};
|
|
839
993
|
}
|
|
840
994
|
}
|
|
841
995
|
|
|
842
|
-
if
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
if (mGroup.priority === undefined) {
|
|
846
|
-
mGroup.priority = 10;
|
|
847
|
-
}
|
|
848
|
-
if (mGroup.row === undefined) {
|
|
849
|
-
mGroup.row = 0;
|
|
850
|
-
}
|
|
996
|
+
// Check if any optional configuration parameters are missing
|
|
997
|
+
// and if so - update the group object with their default values.
|
|
998
|
+
this._checkAndUpdateGroupInfo(vGroup);
|
|
851
999
|
|
|
852
1000
|
var aButtonGroups = this.getButtonGroups();
|
|
853
|
-
aButtonGroups.push(
|
|
1001
|
+
aButtonGroups.push(vGroup);
|
|
854
1002
|
this.setProperty("buttonGroups", aButtonGroups);
|
|
855
1003
|
|
|
856
1004
|
if (oCustomToolbar) {
|
|
857
|
-
|
|
1005
|
+
// Provide the new configuration of the group to the custom toolbar
|
|
1006
|
+
oCustomToolbar.addButtonGroupToContent(vGroup);
|
|
858
1007
|
}
|
|
859
1008
|
|
|
860
1009
|
return this;
|
|
861
1010
|
};
|
|
862
1011
|
|
|
1012
|
+
/**
|
|
1013
|
+
* Removes a button group from the editor.
|
|
1014
|
+
*
|
|
1015
|
+
* @param {string} [sGroupName] The name of the group to be removed.
|
|
1016
|
+
* @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
|
|
1017
|
+
* @public
|
|
1018
|
+
*/
|
|
863
1019
|
RichTextEditor.prototype.removeButtonGroup = function(sGroupName) {
|
|
864
1020
|
var aGroups = this.getProperty("buttonGroups").slice(0),
|
|
865
1021
|
oCustomToolbar = this.getAggregation("_toolbarWrapper");
|
|
@@ -868,7 +1024,6 @@ sap.ui.define([
|
|
|
868
1024
|
if (aGroups[i].name === sGroupName) {
|
|
869
1025
|
aGroups.splice(i, 1);
|
|
870
1026
|
--i;
|
|
871
|
-
|
|
872
1027
|
oCustomToolbar && oCustomToolbar.removeButtonGroup(sGroupName);
|
|
873
1028
|
}
|
|
874
1029
|
}
|
|
@@ -882,7 +1037,7 @@ sap.ui.define([
|
|
|
882
1037
|
* Sets the button groups to the editor.
|
|
883
1038
|
*
|
|
884
1039
|
* @param {array} [aGroups] Array of names or objects containing the group information
|
|
885
|
-
* @returns {
|
|
1040
|
+
* @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
|
|
886
1041
|
* @public
|
|
887
1042
|
*/
|
|
888
1043
|
RichTextEditor.prototype.setButtonGroups = function (aGroups) {
|
|
@@ -892,6 +1047,10 @@ sap.ui.define([
|
|
|
892
1047
|
return this;
|
|
893
1048
|
}
|
|
894
1049
|
|
|
1050
|
+
// There are some optional parameters in the groups config, which need to be checked and if not provided
|
|
1051
|
+
// set a default values
|
|
1052
|
+
aGroups.forEach(this._checkAndUpdateGroupInfo);
|
|
1053
|
+
|
|
895
1054
|
this.setProperty("buttonGroups", aGroups);
|
|
896
1055
|
|
|
897
1056
|
oCustomToolbar = this.getAggregation("_toolbarWrapper");
|
|
@@ -904,11 +1063,34 @@ sap.ui.define([
|
|
|
904
1063
|
|
|
905
1064
|
};
|
|
906
1065
|
|
|
1066
|
+
/**
|
|
1067
|
+
* Checks the group object for optional parameters and adds them with their default values in case they are missing
|
|
1068
|
+
* The properties that this method checks for are (default values are in brackets):
|
|
1069
|
+
* - visible (true)
|
|
1070
|
+
* - priority (10)
|
|
1071
|
+
* - row (0)
|
|
1072
|
+
*
|
|
1073
|
+
* @param {object} oGroup The group object that needs to be checked and modified if needed.
|
|
1074
|
+
*/
|
|
1075
|
+
RichTextEditor.prototype._checkAndUpdateGroupInfo = function (oGroup) {
|
|
1076
|
+
// As those are optional parameters we are adding default values
|
|
1077
|
+
// in case the application developers have not done so.
|
|
1078
|
+
if (oGroup.visible === undefined) {
|
|
1079
|
+
oGroup.visible = true;
|
|
1080
|
+
}
|
|
1081
|
+
if (oGroup.priority === undefined) {
|
|
1082
|
+
oGroup.priority = 10;
|
|
1083
|
+
}
|
|
1084
|
+
if (oGroup.row === undefined) {
|
|
1085
|
+
oGroup.row = 0;
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
|
|
907
1089
|
/**
|
|
908
1090
|
* Sets the plugins to the editor.
|
|
909
1091
|
*
|
|
910
1092
|
* @param {array} [aPlugins] Array of names or objects containing the plugin information
|
|
911
|
-
* @returns {
|
|
1093
|
+
* @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
|
|
912
1094
|
* @public
|
|
913
1095
|
*/
|
|
914
1096
|
RichTextEditor.prototype.setPlugins = function (aPlugins) {
|
|
@@ -928,15 +1110,13 @@ sap.ui.define([
|
|
|
928
1110
|
aPlugins.push({name: "lists"});
|
|
929
1111
|
}
|
|
930
1112
|
|
|
931
|
-
this.setProperty("plugins", aPlugins);
|
|
932
|
-
|
|
933
|
-
return this;
|
|
1113
|
+
return this.setProperty("plugins", aPlugins);
|
|
934
1114
|
};
|
|
935
1115
|
|
|
936
1116
|
/**
|
|
937
1117
|
* Make the button group with the given name (in)visible (if used before initialization of the editor)
|
|
938
1118
|
*
|
|
939
|
-
* @param {string} [sGroupName] Name of the group of buttons to be
|
|
1119
|
+
* @param {string} [sGroupName] Name of the group of buttons to be changed
|
|
940
1120
|
* @param {boolean} [bVisible=false] Whether or not this group should be visible
|
|
941
1121
|
* @returns {object} Control instance (for method chaining)
|
|
942
1122
|
* @private
|
|
@@ -968,31 +1148,31 @@ sap.ui.define([
|
|
|
968
1148
|
};
|
|
969
1149
|
|
|
970
1150
|
RichTextEditor.prototype._setupToolbar = function () {
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}
|
|
1151
|
+
var fnMapPluginList = function (aList) {
|
|
1152
|
+
return aList.map(function(item) {
|
|
1153
|
+
return { "name": item };
|
|
1154
|
+
});
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
var mapping = {
|
|
1158
|
+
"TinyMCE": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE5),
|
|
1159
|
+
"TinyMCE4": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE5),
|
|
1160
|
+
"TinyMCE5": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE5),
|
|
1161
|
+
"TinyMCE6": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE6)
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
this.setPlugins(mapping[this.getEditorType()]);
|
|
1165
|
+
|
|
1166
|
+
var fontButtonGroupButtoNamesMapping = {
|
|
1167
|
+
"TinyMCE": ["fontfamily", "fontsize", "forecolor", "backcolor"],
|
|
1168
|
+
"TinyMCE4": ["fontselect", "fontsizeselect", "forecolor", "backcolor"],
|
|
1169
|
+
"TinyMCE5": ["fontselect", "fontsizeselect", "forecolor", "backcolor"],
|
|
1170
|
+
"TinyMCE6": ["fontfamily", "fontsize", "forecolor", "backcolor"]
|
|
1171
|
+
};
|
|
992
1172
|
|
|
993
1173
|
this.setButtonGroups([{
|
|
994
1174
|
name: "font-style",
|
|
995
|
-
visible:
|
|
1175
|
+
visible: this.getShowGroupFontStyle(),
|
|
996
1176
|
row: 0,
|
|
997
1177
|
priority: 10,
|
|
998
1178
|
customToolbarPriority: 20,
|
|
@@ -1001,16 +1181,14 @@ sap.ui.define([
|
|
|
1001
1181
|
]
|
|
1002
1182
|
}, {
|
|
1003
1183
|
name: "font",
|
|
1004
|
-
visible:
|
|
1184
|
+
visible: this.getShowGroupFont(),
|
|
1005
1185
|
row: 0,
|
|
1006
1186
|
priority: 30,
|
|
1007
1187
|
customToolbarPriority: 50,
|
|
1008
|
-
buttons: [
|
|
1009
|
-
"fontselect", "fontsizeselect", "forecolor", "backcolor"
|
|
1010
|
-
]
|
|
1188
|
+
buttons: fontButtonGroupButtoNamesMapping[this.getEditorType()]
|
|
1011
1189
|
}, {
|
|
1012
1190
|
name: "clipboard",
|
|
1013
|
-
visible:
|
|
1191
|
+
visible: this.getShowGroupClipboard(),
|
|
1014
1192
|
row: 1,
|
|
1015
1193
|
priority: 10,
|
|
1016
1194
|
customToolbarPriority: 110,
|
|
@@ -1019,23 +1197,16 @@ sap.ui.define([
|
|
|
1019
1197
|
]
|
|
1020
1198
|
}, {
|
|
1021
1199
|
name: "structure",
|
|
1022
|
-
visible:
|
|
1200
|
+
visible: this.getShowGroupStructure(),
|
|
1023
1201
|
row: 1,
|
|
1024
1202
|
priority: 20,
|
|
1025
1203
|
customToolbarPriority: 60,
|
|
1026
1204
|
buttons: [
|
|
1027
1205
|
"bullist", "numlist", "outdent", "indent"
|
|
1028
1206
|
]
|
|
1029
|
-
}, {
|
|
1030
|
-
name: "e-mail",
|
|
1031
|
-
visible: false,
|
|
1032
|
-
row: 1,
|
|
1033
|
-
priority: 30,
|
|
1034
|
-
customToolbarPriority: 10,
|
|
1035
|
-
buttons: []
|
|
1036
1207
|
}, {
|
|
1037
1208
|
name: "undo",
|
|
1038
|
-
visible:
|
|
1209
|
+
visible: this.getShowGroupUndo(),
|
|
1039
1210
|
row: 1,
|
|
1040
1211
|
priority: 40,
|
|
1041
1212
|
customToolbarPriority: 100,
|
|
@@ -1044,7 +1215,7 @@ sap.ui.define([
|
|
|
1044
1215
|
]
|
|
1045
1216
|
}, {
|
|
1046
1217
|
name: "insert",
|
|
1047
|
-
visible:
|
|
1218
|
+
visible: this.getShowGroupInsert(),
|
|
1048
1219
|
row: 1,
|
|
1049
1220
|
priority: 50,
|
|
1050
1221
|
customToolbarPriority: 80,
|
|
@@ -1053,26 +1224,24 @@ sap.ui.define([
|
|
|
1053
1224
|
]
|
|
1054
1225
|
}, {
|
|
1055
1226
|
name: "link",
|
|
1056
|
-
visible:
|
|
1227
|
+
visible: this.getShowGroupLink(),
|
|
1057
1228
|
row: 1,
|
|
1058
1229
|
priority: 60,
|
|
1059
1230
|
customToolbarPriority: 70,
|
|
1060
1231
|
buttons: [
|
|
1061
1232
|
"link", "unlink"
|
|
1062
1233
|
]
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
this.addButtonGroup({
|
|
1234
|
+
}, {
|
|
1066
1235
|
// Text Align group
|
|
1067
1236
|
name: "text-align",
|
|
1068
|
-
visible:
|
|
1237
|
+
visible: this.getShowGroupTextAlign(),
|
|
1069
1238
|
row: 0,
|
|
1070
1239
|
priority: 20,
|
|
1071
1240
|
customToolbarPriority: 30,
|
|
1072
1241
|
buttons: [
|
|
1073
1242
|
"alignleft", "aligncenter", "alignright", "alignjustify"
|
|
1074
1243
|
]
|
|
1075
|
-
});
|
|
1244
|
+
}]);
|
|
1076
1245
|
};
|
|
1077
1246
|
|
|
1078
1247
|
// the following functions shall not work after the first rendering
|
|
@@ -1080,22 +1249,28 @@ sap.ui.define([
|
|
|
1080
1249
|
* Switches the editor type and sets the default settings for the editor.
|
|
1081
1250
|
* All plugins and button groups should be set after this has been invoked
|
|
1082
1251
|
*
|
|
1083
|
-
* @param {string} [sEditorType] Which editor type to be used (currently only TinyMCE 4 and
|
|
1084
|
-
* @returns {
|
|
1252
|
+
* @param {string} [sEditorType] Which editor type to be used (currently only TinyMCE 4, 5 and 6)
|
|
1253
|
+
* @returns {sap.ui.richtexteditor.RichTextEditor} Control instance (for method chaining)
|
|
1085
1254
|
* @public
|
|
1086
1255
|
*/
|
|
1087
1256
|
RichTextEditor.prototype.setEditorType = function(sEditorType) {
|
|
1088
|
-
|
|
1257
|
+
|
|
1089
1258
|
if (!this._bEditorCreated) { // only supported before first rendering!
|
|
1090
1259
|
this.setProperty("editorType", sEditorType);
|
|
1260
|
+
sEditorType = this.getEditorType();
|
|
1091
1261
|
|
|
1092
|
-
|
|
1093
|
-
this.setEditorLocation(sEditorLocation);
|
|
1262
|
+
this._setupToolbar();
|
|
1094
1263
|
|
|
1095
|
-
if (sEditorType
|
|
1264
|
+
if (!oEditorMapping[sEditorType]) {
|
|
1096
1265
|
Log.error('TinyMCE3 is removed now due to security concerns, please do NOT use it anymore. The framework automatically will load TinyMCE4 since v1.60');
|
|
1097
1266
|
}
|
|
1098
1267
|
|
|
1268
|
+
if (oEditorMapping[sEditorType] === "TinyMCE4") {
|
|
1269
|
+
Log.error("TinyMCE version 4 is used as editor. This version is no longer supported by TinyMCE and will be removed in future releases, therefore using it is at your own risk. Please consider upgrading to TinyMCE version 6.");
|
|
1270
|
+
} else if (oEditorMapping[sEditorType] === "TinyMCE5") {
|
|
1271
|
+
Log.warning("TinyMCE version 5 is used as editor type. TinyMCE 5 will be depreacated with the next stable release of SAPUI5.");
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1099
1274
|
this.initTinyMCE();
|
|
1100
1275
|
} else {
|
|
1101
1276
|
Log.error(
|
|
@@ -1143,7 +1318,7 @@ sap.ui.define([
|
|
|
1143
1318
|
sGroupSep = sButtonSeparator + sGroupSeparator + sButtonSeparator,
|
|
1144
1319
|
i, iLen, mGroup,
|
|
1145
1320
|
aOrderedGroups = {},
|
|
1146
|
-
|
|
1321
|
+
bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6].includes(this.getEditorType()),
|
|
1147
1322
|
sButtonRows = "",
|
|
1148
1323
|
aButtonRows = [];
|
|
1149
1324
|
|
|
@@ -1171,7 +1346,7 @@ sap.ui.define([
|
|
|
1171
1346
|
continue;
|
|
1172
1347
|
}
|
|
1173
1348
|
|
|
1174
|
-
if (
|
|
1349
|
+
if (bIsTinyMCE5Or6) {
|
|
1175
1350
|
if (!sButtonRows) {
|
|
1176
1351
|
sButtonRows = "";
|
|
1177
1352
|
}
|
|
@@ -1185,7 +1360,7 @@ sap.ui.define([
|
|
|
1185
1360
|
}
|
|
1186
1361
|
}
|
|
1187
1362
|
|
|
1188
|
-
if (
|
|
1363
|
+
if (bIsTinyMCE5Or6) {
|
|
1189
1364
|
return sButtonRows;
|
|
1190
1365
|
}
|
|
1191
1366
|
|
|
@@ -1231,19 +1406,6 @@ sap.ui.define([
|
|
|
1231
1406
|
return aPluginNames.join(",");
|
|
1232
1407
|
};
|
|
1233
1408
|
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
/**
|
|
1237
|
-
* Checks whether TinyMCE has rendered its HTML
|
|
1238
|
-
*
|
|
1239
|
-
* @returns {boolean} Whether TinyMCE is rendered inside the page
|
|
1240
|
-
* @private
|
|
1241
|
-
*/
|
|
1242
|
-
RichTextEditor.prototype.tinyMCEReady = function() {
|
|
1243
|
-
var iframe = (this._iframeId ? window.document.getElementById(this._iframeId) : null);
|
|
1244
|
-
return !!iframe;
|
|
1245
|
-
};
|
|
1246
|
-
|
|
1247
1409
|
/**
|
|
1248
1410
|
* Event handler being called when the text in the editor has changed
|
|
1249
1411
|
*
|
|
@@ -1262,48 +1424,6 @@ sap.ui.define([
|
|
|
1262
1424
|
}
|
|
1263
1425
|
};
|
|
1264
1426
|
|
|
1265
|
-
/**
|
|
1266
|
-
* Called on every keydown
|
|
1267
|
-
*
|
|
1268
|
-
* @param {jQuery.Event} [oEvent] The keyboard event
|
|
1269
|
-
* @returns {void}
|
|
1270
|
-
* @private
|
|
1271
|
-
*/
|
|
1272
|
-
RichTextEditor.prototype._tinyMCEKeyboardHandler = function(oEvent) {
|
|
1273
|
-
var newIndex,
|
|
1274
|
-
key = oEvent['keyCode'];
|
|
1275
|
-
|
|
1276
|
-
switch (key) {
|
|
1277
|
-
case KeyCodes.TAB: /* 9 */
|
|
1278
|
-
if (!this.$focusables.index(jQuery(oEvent.target)) === 0) { // if not on very first element
|
|
1279
|
-
var index = this.$focusables.length - 1; // this element moves the focus into the iframe
|
|
1280
|
-
this.$focusables.get(index).focus();
|
|
1281
|
-
}
|
|
1282
|
-
break;
|
|
1283
|
-
|
|
1284
|
-
case KeyCodes.ARROW_LEFT:
|
|
1285
|
-
case KeyCodes.ARROW_UP:
|
|
1286
|
-
newIndex = this.$focusables.index(jQuery(oEvent.target)) - 1;
|
|
1287
|
-
if (newIndex === 0) {
|
|
1288
|
-
newIndex = this.$focusables.length - 2;
|
|
1289
|
-
}
|
|
1290
|
-
this.$focusables.get(newIndex).focus();
|
|
1291
|
-
break;
|
|
1292
|
-
|
|
1293
|
-
case KeyCodes.ARROW_RIGHT:
|
|
1294
|
-
case KeyCodes.ARROW_DOWN:
|
|
1295
|
-
newIndex = this.$focusables.index(jQuery(oEvent.target)) + 1;
|
|
1296
|
-
if (newIndex === this.$focusables.length - 1) {
|
|
1297
|
-
newIndex = 1;
|
|
1298
|
-
}
|
|
1299
|
-
this.$focusables.get(newIndex).focus();
|
|
1300
|
-
break;
|
|
1301
|
-
|
|
1302
|
-
default:
|
|
1303
|
-
// Do not react to other keys
|
|
1304
|
-
break;
|
|
1305
|
-
}
|
|
1306
|
-
};
|
|
1307
1427
|
//////////////////////////// End editor section "TinyMCE" (All versions) ///////////////////////////
|
|
1308
1428
|
|
|
1309
1429
|
////////////////////////////////// Begin editor section "TinyMCE" /////////////////////////////////
|
|
@@ -1380,7 +1500,7 @@ sap.ui.define([
|
|
|
1380
1500
|
/**
|
|
1381
1501
|
* Determines if a new TinyMCE instance should be loaded.
|
|
1382
1502
|
* @private
|
|
1383
|
-
* @returns {boolean}
|
|
1503
|
+
* @returns {boolean} Whether tinyMCE should be loaded.
|
|
1384
1504
|
*/
|
|
1385
1505
|
RichTextEditor.prototype._shouldLoadTinyMCE = function () {
|
|
1386
1506
|
var sEditorType = this.getEditorType();
|
|
@@ -1394,6 +1514,8 @@ sap.ui.define([
|
|
|
1394
1514
|
return window.tinymce.majorVersion != "4";
|
|
1395
1515
|
case RichTextEditor.EDITORTYPE_TINYMCE5:
|
|
1396
1516
|
return window.tinymce.majorVersion != "5";
|
|
1517
|
+
case RichTextEditor.EDITORTYPE_TINYMCE6:
|
|
1518
|
+
return window.tinymce.majorVersion != "6";
|
|
1397
1519
|
default:
|
|
1398
1520
|
return false;
|
|
1399
1521
|
}
|
|
@@ -1404,9 +1526,11 @@ sap.ui.define([
|
|
|
1404
1526
|
*/
|
|
1405
1527
|
RichTextEditor.prototype.onBeforeRenderingTinyMCE = function() {
|
|
1406
1528
|
if (this._shouldLoadTinyMCE()) {
|
|
1529
|
+
// fallback to tinymce 4 for now since the editorLocation property used to do so
|
|
1530
|
+
var sEditorLocation = EDITOR_LOCATION_MAPPING[this.getEditorType()] || EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE4];
|
|
1407
1531
|
// Load TinyMCE component
|
|
1408
1532
|
this._tinyMCEStatus = EditorStatus.Loading;
|
|
1409
|
-
this._pTinyMCELoaded = RichTextEditor.loadTinyMCE(
|
|
1533
|
+
this._pTinyMCELoaded = RichTextEditor.loadTinyMCE(sEditorLocation).then(function() {
|
|
1410
1534
|
this._tinyMCEStatus = EditorStatus.Loaded;
|
|
1411
1535
|
}.bind(this));
|
|
1412
1536
|
} else {
|
|
@@ -1525,6 +1649,7 @@ sap.ui.define([
|
|
|
1525
1649
|
* @private
|
|
1526
1650
|
*/
|
|
1527
1651
|
RichTextEditor.prototype.setValueTinyMCE = function(sValue) {
|
|
1652
|
+
|
|
1528
1653
|
switch (this._tinyMCEStatus) {
|
|
1529
1654
|
case EditorStatus.Initial:
|
|
1530
1655
|
case EditorStatus.Initializing:
|
|
@@ -1641,10 +1766,6 @@ sap.ui.define([
|
|
|
1641
1766
|
this._oEditor.save();
|
|
1642
1767
|
}
|
|
1643
1768
|
|
|
1644
|
-
// Focus handling
|
|
1645
|
-
var $Editor = jQuery(this._oEditor.getContainer());
|
|
1646
|
-
$Editor.on('keydown', jQuery.proxy(this, this._tinyMCEKeyboardHandler));
|
|
1647
|
-
|
|
1648
1769
|
// Make sure focus event is triggered, when body inside the iframe is focused
|
|
1649
1770
|
var $EditorIFrame = jQuery(oEditorIFrame),
|
|
1650
1771
|
$Body = jQuery(this._oEditor.getBody()),
|
|
@@ -1678,6 +1799,8 @@ sap.ui.define([
|
|
|
1678
1799
|
oToolbarDOM.setAttribute("aria-roledescription", oResourceBundle.getText("CUSTOM_TOOLBAR_ARIA_ROLEDESCRIPTION"));
|
|
1679
1800
|
}
|
|
1680
1801
|
|
|
1802
|
+
this._oEditor.getContainer().classList.add("sapUiRteEditorContainer");
|
|
1803
|
+
|
|
1681
1804
|
// TODO: make sure ready is fired if no reinitializations are pending
|
|
1682
1805
|
this.fireReadyTinyMCE();
|
|
1683
1806
|
};
|
|
@@ -1745,7 +1868,7 @@ sap.ui.define([
|
|
|
1745
1868
|
/**
|
|
1746
1869
|
* Helper function for evaluating the textDirection of the tinyMCE's content config
|
|
1747
1870
|
*
|
|
1748
|
-
* @returns {
|
|
1871
|
+
* @returns {string} Text direction
|
|
1749
1872
|
* @private
|
|
1750
1873
|
*/
|
|
1751
1874
|
RichTextEditor.prototype._getTextDirection = function() {
|
|
@@ -1781,12 +1904,29 @@ sap.ui.define([
|
|
|
1781
1904
|
sPluginsList = sPluginsList.replace(/(,powerpaste|powerpaste,)/gi, "");
|
|
1782
1905
|
}
|
|
1783
1906
|
|
|
1907
|
+
var bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6].includes(this.getEditorType());
|
|
1908
|
+
var bIsTinyMCE6 = this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE6;
|
|
1909
|
+
|
|
1910
|
+
// since TinyMCE 6 plugins property format has changed
|
|
1911
|
+
if (bIsTinyMCE6) {
|
|
1912
|
+
sPluginsList = this.getPlugins().map(function(oPlugin) {
|
|
1913
|
+
return oPlugin.name;
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
if (bIsTinyMCE6 && !this.getEditable()) {
|
|
1918
|
+
sPluginsList = sPluginsList.filter(function(oPlugin) {
|
|
1919
|
+
return oPlugin !== "powerpaste";
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1784
1923
|
/*eslint-disable camelcase */
|
|
1785
1924
|
var oConfig = {
|
|
1786
1925
|
// The following line only covers the editor content, not the UI in general
|
|
1926
|
+
height: "calc(100% - var(--_sap_ui_richtexteditor__toolbar_height))",
|
|
1787
1927
|
directionality: this._getTextDirection(),
|
|
1788
1928
|
selector: "[id='" + this._textAreaId + "']",
|
|
1789
|
-
theme:
|
|
1929
|
+
theme: bIsTinyMCE5Or6 ? "silver" : "modern",
|
|
1790
1930
|
menubar: false,
|
|
1791
1931
|
language: this._getLanguageTinyMCE(),
|
|
1792
1932
|
browser_spellcheck: true,
|
|
@@ -1835,10 +1975,11 @@ sap.ui.define([
|
|
|
1835
1975
|
* @returns {string} The language to be used for TinyMCE
|
|
1836
1976
|
*/
|
|
1837
1977
|
RichTextEditor.prototype._getLanguageTinyMCE = function() {
|
|
1838
|
-
var oLocale = new
|
|
1978
|
+
var oLocale = new Locale(Core.getConfiguration().getLanguage()),
|
|
1839
1979
|
sLanguage = oLocale.getLanguage(),
|
|
1840
1980
|
sRegion = oLocale.getRegion(),
|
|
1841
|
-
|
|
1981
|
+
bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6].includes(this.getEditorType()),
|
|
1982
|
+
bIsTinyMCE6 = this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE6,
|
|
1842
1983
|
sLangStr;
|
|
1843
1984
|
|
|
1844
1985
|
// Language mapping for old/fallback languages
|
|
@@ -1846,7 +1987,7 @@ sap.ui.define([
|
|
|
1846
1987
|
|
|
1847
1988
|
// Find default region, if region is not given
|
|
1848
1989
|
if (!sRegion) {
|
|
1849
|
-
sRegion = RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS[sLanguage];
|
|
1990
|
+
sRegion = bIsTinyMCE6 ? RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS_TINYMCE6[sLanguage] : RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS[sLanguage];
|
|
1850
1991
|
}
|
|
1851
1992
|
|
|
1852
1993
|
sLangStr = sRegion ? sLanguage + "_" + sRegion.toUpperCase() : sLanguage;
|
|
@@ -1856,14 +1997,16 @@ sap.ui.define([
|
|
|
1856
1997
|
return sLangStr;
|
|
1857
1998
|
}
|
|
1858
1999
|
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
2000
|
+
if (bIsTinyMCE5Or6) {
|
|
2001
|
+
// If there is region language in the additional languages supported in TinyMCE5, return it
|
|
2002
|
+
if (RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE5[sLangStr]) {
|
|
2003
|
+
return sLangStr;
|
|
2004
|
+
}
|
|
1863
2005
|
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
2006
|
+
// If there is language in the additional languages supported in TinyMCE5, return it
|
|
2007
|
+
if (RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE5[sLanguage]) {
|
|
2008
|
+
return sLanguage;
|
|
2009
|
+
}
|
|
1867
2010
|
}
|
|
1868
2011
|
|
|
1869
2012
|
// If there is a some language, return it
|
|
@@ -1934,30 +2077,25 @@ sap.ui.define([
|
|
|
1934
2077
|
* @private
|
|
1935
2078
|
*/
|
|
1936
2079
|
RichTextEditor.prototype._registerWithPopupTinyMCE = function() {
|
|
1937
|
-
var
|
|
1938
|
-
bIsTinyMCE5 = this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE5,
|
|
2080
|
+
var bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6].includes(this.getEditorType()),
|
|
1939
2081
|
$Pop = this.$().closest("[data-sap-ui-popup]");
|
|
1940
2082
|
|
|
1941
2083
|
setTimeout(function() {
|
|
1942
2084
|
if ($Pop.length === 1) {
|
|
1943
|
-
var
|
|
1944
|
-
sDialogId = "tox-dialog-" + this.getId(),
|
|
1945
|
-
oObject = { id: this._iframeId };
|
|
1946
|
-
|
|
1947
|
-
oBus.publish("sap.ui", "sap.ui.core.Popup.addFocusableContent-" + sPopupId, oObject);
|
|
2085
|
+
var sDialogId = "tox-dialog-" + this.getId();
|
|
1948
2086
|
|
|
1949
2087
|
if (this._oEditor) {
|
|
1950
2088
|
this._oEditor.on('OpenWindow', function(oEvent) {
|
|
1951
|
-
if (
|
|
2089
|
+
if (bIsTinyMCE5Or6) { // sets our own id to the newly created dialog, because in TinyMCE5 doesn't set id
|
|
1952
2090
|
jQuery(".tox-dialog[role='dialog']").attr("id", sDialogId);
|
|
1953
2091
|
}
|
|
1954
|
-
var
|
|
1955
|
-
|
|
2092
|
+
var sSelector = "#" + (bIsTinyMCE5Or6 ? sDialogId : oEvent.win._id);
|
|
2093
|
+
Popup.addExternalContent(sSelector, /* marked as selectable */ true);
|
|
1956
2094
|
});
|
|
1957
2095
|
this._oEditor.on('CloseWindow', function(oEvent) {
|
|
1958
|
-
var
|
|
1959
|
-
|
|
1960
|
-
if (
|
|
2096
|
+
var sSelector = "#" + (bIsTinyMCE5Or6 ? sDialogId : oEvent.win._id);
|
|
2097
|
+
Popup.removeExternalContent(sSelector, /* remove selectable */ true);
|
|
2098
|
+
if (bIsTinyMCE5Or6) {
|
|
1961
2099
|
jQuery(".tox-dialog[role='dialog']").attr("id"); // remove our id
|
|
1962
2100
|
}
|
|
1963
2101
|
});
|
|
@@ -1977,9 +2115,7 @@ sap.ui.define([
|
|
|
1977
2115
|
* @private
|
|
1978
2116
|
*/
|
|
1979
2117
|
RichTextEditor.prototype._checkCustomToolbarRequirements = function() {
|
|
1980
|
-
var bRequirementsFullfiled = this.getCustomToolbar() &&
|
|
1981
|
-
(this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE4 || this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE5) &&
|
|
1982
|
-
library.RichTextEditorHelper.bSapMLoaded;
|
|
2118
|
+
var bRequirementsFullfiled = this.getCustomToolbar() && oEditorMapping[this.getEditorType()] && library.RichTextEditorHelper.bSapMLoaded;
|
|
1983
2119
|
|
|
1984
2120
|
this.$().toggleClass("sapUiRTEWithCustomToolbar", bRequirementsFullfiled);
|
|
1985
2121
|
|