@sapui5/sap.ui.richtexteditor 1.105.1 → 1.107.1
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/README.md +1 -1
- package/package.json +1 -1
- package/src/sap/ui/richtexteditor/.library +6 -6
- package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
- package/src/sap/ui/richtexteditor/RichTextEditor.js +192 -77
- package/src/sap/ui/richtexteditor/RichTextEditorRenderer.js +1 -1
- package/src/sap/ui/richtexteditor/ToolbarWrapper.js +29 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/icons.js +188 -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 +7 -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 +7 -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 +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/et.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 +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lv.js +7 -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_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 +7 -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 +7980 -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/advcode/CHANGELOG.md +81 -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/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 +251 -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 +200 -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 +209 -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 +161 -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 +237 -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 +1641 -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 +2441 -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 +389 -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 +582 -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 +1195 -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/plugin.js +853 -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 +1480 -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 +347 -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 +181 -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 +1195 -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 +1825 -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 +1162 -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 +116 -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 +110 -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 +379 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/js/wordimport.js +2476 -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 +426 -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 +1084 -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 +3398 -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 +553 -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 +511 -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 +409 -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 +753 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.css +747 -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 +3080 -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 +734 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.css +747 -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 +3083 -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 +753 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.css +747 -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 +3164 -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 +734 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.css +747 -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 +3164 -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 +26188 -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 +2895 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.js +29407 -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 +16 -6
- package/src/sap/ui/richtexteditor/themes/base/RichTextEditor.less +9 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
# @sapui5/sap.ui.richtexteditor
|
|
4
|
-
Runtime resources of the [SAPUI5](https://
|
|
4
|
+
Runtime resources of the [SAPUI5](https://ui5.sap.com) Library **sap.ui.richtexteditor**.
|
|
5
5
|
|
|
6
6
|
## Usage
|
|
7
7
|
Refrain from installing this package using npm, Yarn or similar package managers.
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.
|
|
8
|
+
<version>1.107.1</version>
|
|
9
9
|
|
|
10
10
|
<documentation>A rich text editor (RTE) control. Requires installation of an additional rich text editor library.</documentation>
|
|
11
11
|
|
|
@@ -30,11 +30,6 @@
|
|
|
30
30
|
</jscoverage>
|
|
31
31
|
<packaging xmlns="http://www.sap.com/ui5/buildext/packaging" version="2.0" >
|
|
32
32
|
<all-in-one>
|
|
33
|
-
<!-- ===========================================================================
|
|
34
|
-
!! ATTENTION !!
|
|
35
|
-
The following excludes must be kept in sync with those configured for the
|
|
36
|
-
'preload-and-merge' plugin execution in the pom.xml of this library.
|
|
37
|
-
=========================================================================== -->
|
|
38
33
|
<exclude name="sap/ui/richtexteditor/js/" />
|
|
39
34
|
</all-in-one>
|
|
40
35
|
</packaging>
|
|
@@ -56,6 +51,11 @@
|
|
|
56
51
|
<copyright>Tiny Technologies, Inc.</copyright>
|
|
57
52
|
<pattern>sap/ui/richtexteditor/js/tiny_mce5/*</pattern>
|
|
58
53
|
</lib>
|
|
54
|
+
<lib name="TinyMCE-6" displayName="TinyMCE 6.1.0" version="6.1.0-6" homepage="https://www.tiny.cloud/">
|
|
55
|
+
<license url="https://about.tiny.cloud/legal/" type="Commercial"/>
|
|
56
|
+
<copyright>Tiny Technologies, Inc.</copyright>
|
|
57
|
+
<pattern>sap/ui/richtexteditor/js/tiny_mce6/*</pattern>
|
|
58
|
+
</lib>
|
|
59
59
|
</thirdparty>
|
|
60
60
|
|
|
61
61
|
</appData>
|
|
@@ -124,7 +124,7 @@ sap.ui.define([
|
|
|
124
124
|
* Below is a list of supported groups and buttons, which can be specified in the configuration objects (format is <<group name>>: <<supported buttons>>):
|
|
125
125
|
* <ul>
|
|
126
126
|
* <li>font-style: bold, italic, underline, strikethrough</li>
|
|
127
|
-
* <li>font: fontselect, fontsizeselect, forecolor, backcolor</li>
|
|
127
|
+
* <li>font: fontfamily (fontselect in TinyMCE5), fontsize (fontsizeselect in TinyMCE5), forecolor, backcolor</li>
|
|
128
128
|
* <li>clipboard: cut, copy, paste</li>
|
|
129
129
|
* <li>structure: bullist, numlist, outdent, indent</li>
|
|
130
130
|
* <li>undo: undo, redo</li>
|
|
@@ -159,7 +159,6 @@ sap.ui.define([
|
|
|
159
159
|
* @alias sap.ui.richtexteditor.RichTextEditor
|
|
160
160
|
* @see {@link fiori:https://experience.sap.com/fiori-design-web/rich-text-editor/ Rich Text Editor}
|
|
161
161
|
* @see {@link topic:d4f3f1598373452bb73f2120930c133c}
|
|
162
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
163
162
|
*/
|
|
164
163
|
var RichTextEditor = Control.extend("sap.ui.richtexteditor.RichTextEditor", /** @lends sap.ui.richtexteditor.RichTextEditor.prototype */ {
|
|
165
164
|
metadata: {
|
|
@@ -197,11 +196,15 @@ sap.ui.define([
|
|
|
197
196
|
* not an enumeration).
|
|
198
197
|
*
|
|
199
198
|
* <b>Notes:</b>
|
|
200
|
-
* <ul><li>TinyMCE version 3
|
|
199
|
+
* <ul><li>TinyMCE version 3 and 4 are no longer supported and cannot be used. If you set the property to TinyMCE, it will load TinyMCE version 6.</li>
|
|
201
200
|
* <li>Any attempts to set this property after the first rendering will not
|
|
202
|
-
* have any effect.</li
|
|
201
|
+
* have any effect.</li>
|
|
202
|
+
* <li>The default value of the property will always resolve to the recommended version by UI5. Due to the different support cycles, we will be constantly getting newer TinyMCE versions and update the default value accordingly.</li>
|
|
203
|
+
* <li>Usage of internal TinyMCE APIs is not recommended, since it might lead to issues upon TinyMCE version update.</li>
|
|
204
|
+
* <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>
|
|
205
|
+
* <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></ul>
|
|
203
206
|
*/
|
|
204
|
-
editorType: { type: "string", group: "Misc", defaultValue: '
|
|
207
|
+
editorType: { type: "string", group: "Misc", defaultValue: 'TinyMCE' },
|
|
205
208
|
|
|
206
209
|
/**
|
|
207
210
|
* Relative or absolute URL where the editor is available. Must be on the same server.
|
|
@@ -299,7 +302,7 @@ sap.ui.define([
|
|
|
299
302
|
buttonGroups: {type: "object[]", group: "Behavior", defaultValue: [] },
|
|
300
303
|
|
|
301
304
|
/**
|
|
302
|
-
* Determines whether a Fiori Toolbar is used instead of the TinyMCE default toolbar one. It is applied only when the EditorType is
|
|
305
|
+
* 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.
|
|
303
306
|
* <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.
|
|
304
307
|
*
|
|
305
308
|
* @since 1.48
|
|
@@ -386,18 +389,59 @@ sap.ui.define([
|
|
|
386
389
|
// Editor type entries for backwards compatibility
|
|
387
390
|
RichTextEditor.EDITORTYPE_TINYMCE4 = library.EditorType.TinyMCE4;
|
|
388
391
|
RichTextEditor.EDITORTYPE_TINYMCE5 = library.EditorType.TinyMCE5;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
392
|
+
RichTextEditor.EDITORTYPE_TINYMCE6 = library.EditorType.TinyMCE6;
|
|
393
|
+
|
|
394
|
+
// default
|
|
395
|
+
RichTextEditor.EDITORTYPE_TINYMCE = library.EditorType.TinyMCE;
|
|
396
|
+
|
|
397
|
+
var EDITOR_LOCATION_MAPPING = {};
|
|
398
|
+
|
|
399
|
+
// default
|
|
400
|
+
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE] = "js/tiny_mce6/tinymce.min.js";
|
|
401
|
+
|
|
402
|
+
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE4] = "js/tiny_mce4/tinymce.min.js";
|
|
403
|
+
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE5] = "js/tiny_mce5/tinymce.min.js";
|
|
404
|
+
EDITOR_LOCATION_MAPPING[RichTextEditor.EDITORTYPE_TINYMCE6] = "js/tiny_mce6/tinymce.min.js";
|
|
405
|
+
|
|
406
|
+
RichTextEditor.DEFAULT_PLUGINS_TINYMCE5 = [
|
|
407
|
+
"emoticons",
|
|
408
|
+
"directionality",
|
|
409
|
+
"tabfocus",
|
|
410
|
+
"table",
|
|
411
|
+
"image",
|
|
412
|
+
"link",
|
|
413
|
+
"textcolor",
|
|
414
|
+
"colorpicker",
|
|
415
|
+
"textpattern",
|
|
416
|
+
"powerpaste"
|
|
417
|
+
];
|
|
418
|
+
RichTextEditor.DEFAULT_PLUGINS_TINYMCE6 = [
|
|
419
|
+
"emoticons",
|
|
420
|
+
"directionality",
|
|
421
|
+
"image",
|
|
422
|
+
"table",
|
|
423
|
+
"link",
|
|
424
|
+
"powerpaste"
|
|
425
|
+
];
|
|
426
|
+
|
|
427
|
+
// 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
|
|
393
428
|
RichTextEditor.MAPPED_LANGUAGES_TINYMCE = {
|
|
394
|
-
"
|
|
395
|
-
"
|
|
429
|
+
"bg": "bg_BG",
|
|
430
|
+
"en_US": "en_GB",
|
|
431
|
+
"fr": "fr_FR",
|
|
432
|
+
"fr_CA": "fr_FR",
|
|
433
|
+
"hu": "hu_HU",
|
|
396
434
|
"in": "id",
|
|
397
435
|
"iw": "he",
|
|
436
|
+
"ji": "yi",
|
|
437
|
+
"ko": "ko_KR",
|
|
398
438
|
"no": "nb",
|
|
399
|
-
"
|
|
400
|
-
"
|
|
439
|
+
"pt": "pt_PT",
|
|
440
|
+
"sh": "sr",
|
|
441
|
+
"sl": "sl_SI",
|
|
442
|
+
"sv": "sv_SE",
|
|
443
|
+
"th": "th_TH"
|
|
444
|
+
|
|
401
445
|
};
|
|
402
446
|
|
|
403
447
|
RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE = {
|
|
@@ -434,6 +478,7 @@ sap.ui.define([
|
|
|
434
478
|
"gd": true,
|
|
435
479
|
"gl": true,
|
|
436
480
|
"he_IL": true,
|
|
481
|
+
"hi": true,
|
|
437
482
|
"hi_IN": true,
|
|
438
483
|
"hr": true,
|
|
439
484
|
"hu_HU": true,
|
|
@@ -492,6 +537,8 @@ sap.ui.define([
|
|
|
492
537
|
"ro_RO": true
|
|
493
538
|
};
|
|
494
539
|
|
|
540
|
+
RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE6 = RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE5;
|
|
541
|
+
|
|
495
542
|
RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS = {
|
|
496
543
|
"zh": "CN",
|
|
497
544
|
"fr": "FR",
|
|
@@ -517,7 +564,38 @@ sap.ui.define([
|
|
|
517
564
|
"vi": "VN"
|
|
518
565
|
};
|
|
519
566
|
|
|
567
|
+
RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS_TINYMCE6 = {
|
|
568
|
+
"zh": "CN",
|
|
569
|
+
"fr": "FR",
|
|
570
|
+
"bn": "BD",
|
|
571
|
+
"bg": "BG",
|
|
572
|
+
"ka": "GE",
|
|
573
|
+
"he": "IL",
|
|
574
|
+
"hu": "HU",
|
|
575
|
+
"is": "IS",
|
|
576
|
+
"km": "KH",
|
|
577
|
+
"ko": "KR",
|
|
578
|
+
"ku": "IQ",
|
|
579
|
+
"ml": "IN",
|
|
580
|
+
"mn": "MN",
|
|
581
|
+
"nb": "NO",
|
|
582
|
+
"pt": "PT",
|
|
583
|
+
"si": "SI",
|
|
584
|
+
"sl": "SI",
|
|
585
|
+
"sv": "SE",
|
|
586
|
+
"th": "TH"
|
|
587
|
+
};
|
|
588
|
+
|
|
520
589
|
RichTextEditor.pLoadTinyMCE = null;
|
|
590
|
+
var oEditorMapping = {};
|
|
591
|
+
|
|
592
|
+
// default
|
|
593
|
+
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE] = RichTextEditor.EDITORTYPE_TINYMCE6;
|
|
594
|
+
|
|
595
|
+
// other versions
|
|
596
|
+
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE4] = RichTextEditor.EDITORTYPE_TINYMCE4;
|
|
597
|
+
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE5] = RichTextEditor.EDITORTYPE_TINYMCE5;
|
|
598
|
+
oEditorMapping[RichTextEditor.EDITORTYPE_TINYMCE6] = RichTextEditor.EDITORTYPE_TINYMCE6;
|
|
521
599
|
|
|
522
600
|
/**
|
|
523
601
|
* Creates and returns a promise to load the given location as script url. Only the first invocation needs the
|
|
@@ -557,8 +635,8 @@ sap.ui.define([
|
|
|
557
635
|
* @private
|
|
558
636
|
*/
|
|
559
637
|
RichTextEditor.prototype.init = function() {
|
|
560
|
-
var sEditorType = this.getEditorType()
|
|
561
|
-
|
|
638
|
+
var sEditorType = oEditorMapping[this.getEditorType()] || RichTextEditor.EDITORTYPE_TINYMCE;
|
|
639
|
+
|
|
562
640
|
this._bEditorCreated = false;
|
|
563
641
|
this._sTimerId = null;
|
|
564
642
|
RichTextEditor._iCountInstances++;
|
|
@@ -591,11 +669,7 @@ sap.ui.define([
|
|
|
591
669
|
}
|
|
592
670
|
|
|
593
671
|
if (this.isPropertyInitial("editorType")) {
|
|
594
|
-
Log.
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
if (this.getEditorType() === library.EditorType.TinyMCE4) {
|
|
598
|
-
Log.warning("TinyMCE version 4 is used as editor. This version is no longer supported by TinyMCE and will be removed in future releases. Please consider upgrading to TinyMCE version 5.");
|
|
672
|
+
Log.info("You are using the default value of the editorType which is subject to changes and might affect your application.");
|
|
599
673
|
}
|
|
600
674
|
|
|
601
675
|
this.onBeforeRenderingTinyMCE();
|
|
@@ -624,7 +698,6 @@ sap.ui.define([
|
|
|
624
698
|
*
|
|
625
699
|
* @returns {object} The native editor object (here: The TinyMCE editor instance)
|
|
626
700
|
* @public
|
|
627
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
628
701
|
*/
|
|
629
702
|
RichTextEditor.prototype.getNativeApi = function() {
|
|
630
703
|
return this.getNativeApiTinyMCE();
|
|
@@ -653,7 +726,7 @@ sap.ui.define([
|
|
|
653
726
|
|
|
654
727
|
this.setProperty("value", sValue, true);
|
|
655
728
|
sValue = this.getProperty("value");
|
|
656
|
-
if (this.getEditorType()
|
|
729
|
+
if (oEditorMapping[this.getEditorType()]) {
|
|
657
730
|
this.setValueTinyMCE(sValue);
|
|
658
731
|
} else {
|
|
659
732
|
this.reinitialize();
|
|
@@ -894,6 +967,20 @@ sap.ui.define([
|
|
|
894
967
|
customToolbarPriority: 90
|
|
895
968
|
};
|
|
896
969
|
break;
|
|
970
|
+
// TinyMCE 6
|
|
971
|
+
case "blocks":
|
|
972
|
+
vGroup = {
|
|
973
|
+
name: "blocks",
|
|
974
|
+
buttons: ["blocks"]
|
|
975
|
+
};
|
|
976
|
+
break;
|
|
977
|
+
case "styles":
|
|
978
|
+
vGroup = {
|
|
979
|
+
name: "styles",
|
|
980
|
+
buttons: ["styles"],
|
|
981
|
+
customToolbarPriority: 40
|
|
982
|
+
};
|
|
983
|
+
break;
|
|
897
984
|
default:
|
|
898
985
|
vGroup = {
|
|
899
986
|
name: this._createId("buttonGroup"),
|
|
@@ -1019,9 +1106,7 @@ sap.ui.define([
|
|
|
1019
1106
|
aPlugins.push({name: "lists"});
|
|
1020
1107
|
}
|
|
1021
1108
|
|
|
1022
|
-
this.setProperty("plugins", aPlugins);
|
|
1023
|
-
|
|
1024
|
-
return this;
|
|
1109
|
+
return this.setProperty("plugins", aPlugins);
|
|
1025
1110
|
};
|
|
1026
1111
|
|
|
1027
1112
|
/**
|
|
@@ -1059,27 +1144,27 @@ sap.ui.define([
|
|
|
1059
1144
|
};
|
|
1060
1145
|
|
|
1061
1146
|
RichTextEditor.prototype._setupToolbar = function () {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
1147
|
+
var fnMapPluginList = function (aList) {
|
|
1148
|
+
return aList.map(function(item) {
|
|
1149
|
+
return { "name": item };
|
|
1150
|
+
});
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
var mapping = {
|
|
1154
|
+
"TinyMCE": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE6),
|
|
1155
|
+
"TinyMCE4": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE5),
|
|
1156
|
+
"TinyMCE5": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE5),
|
|
1157
|
+
"TinyMCE6": fnMapPluginList(RichTextEditor.DEFAULT_PLUGINS_TINYMCE6)
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
this.setPlugins(mapping[this.getEditorType()]);
|
|
1161
|
+
|
|
1162
|
+
var fontButtonGroupButtoNamesMapping = {
|
|
1163
|
+
"TinyMCE": ["fontfamily", "fontsize", "forecolor", "backcolor"],
|
|
1164
|
+
"TinyMCE4": ["fontselect", "fontsizeselect", "forecolor", "backcolor"],
|
|
1165
|
+
"TinyMCE5": ["fontselect", "fontsizeselect", "forecolor", "backcolor"],
|
|
1166
|
+
"TinyMCE6": ["fontfamily", "fontsize", "forecolor", "backcolor"]
|
|
1167
|
+
};
|
|
1083
1168
|
|
|
1084
1169
|
this.setButtonGroups([{
|
|
1085
1170
|
name: "font-style",
|
|
@@ -1096,9 +1181,7 @@ sap.ui.define([
|
|
|
1096
1181
|
row: 0,
|
|
1097
1182
|
priority: 30,
|
|
1098
1183
|
customToolbarPriority: 50,
|
|
1099
|
-
buttons: [
|
|
1100
|
-
"fontselect", "fontsizeselect", "forecolor", "backcolor"
|
|
1101
|
-
]
|
|
1184
|
+
buttons: fontButtonGroupButtoNamesMapping[this.getEditorType()]
|
|
1102
1185
|
}, {
|
|
1103
1186
|
name: "clipboard",
|
|
1104
1187
|
visible: true,
|
|
@@ -1162,23 +1245,28 @@ sap.ui.define([
|
|
|
1162
1245
|
* Switches the editor type and sets the default settings for the editor.
|
|
1163
1246
|
* All plugins and button groups should be set after this has been invoked
|
|
1164
1247
|
*
|
|
1165
|
-
* @param {string} [sEditorType] Which editor type to be used (currently only TinyMCE 4 and
|
|
1248
|
+
* @param {string} [sEditorType] Which editor type to be used (currently only TinyMCE 4, 5 and 6)
|
|
1166
1249
|
* @returns {object} Control instance (for method chaining)
|
|
1167
1250
|
* @public
|
|
1168
1251
|
*/
|
|
1169
1252
|
RichTextEditor.prototype.setEditorType = function(sEditorType) {
|
|
1170
|
-
|
|
1253
|
+
|
|
1171
1254
|
if (!this._bEditorCreated) { // only supported before first rendering!
|
|
1172
1255
|
this.setProperty("editorType", sEditorType);
|
|
1173
1256
|
sEditorType = this.getEditorType();
|
|
1174
1257
|
|
|
1175
|
-
|
|
1176
|
-
|
|
1258
|
+
this._setupToolbar();
|
|
1259
|
+
|
|
1260
|
+
this.setEditorLocation(EDITOR_LOCATION_MAPPING[this.getEditorType()]);
|
|
1177
1261
|
|
|
1178
|
-
if (sEditorType
|
|
1262
|
+
if (!oEditorMapping[sEditorType]) {
|
|
1179
1263
|
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');
|
|
1180
1264
|
}
|
|
1181
1265
|
|
|
1266
|
+
if (oEditorMapping[sEditorType] === "TinyMCE4") {
|
|
1267
|
+
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.");
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1182
1270
|
this.initTinyMCE();
|
|
1183
1271
|
} else {
|
|
1184
1272
|
Log.error(
|
|
@@ -1226,7 +1314,7 @@ sap.ui.define([
|
|
|
1226
1314
|
sGroupSep = sButtonSeparator + sGroupSeparator + sButtonSeparator,
|
|
1227
1315
|
i, iLen, mGroup,
|
|
1228
1316
|
aOrderedGroups = {},
|
|
1229
|
-
|
|
1317
|
+
bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6, RichTextEditor.EDITORTYPE_TINYMCE].includes(this.getEditorType()),
|
|
1230
1318
|
sButtonRows = "",
|
|
1231
1319
|
aButtonRows = [];
|
|
1232
1320
|
|
|
@@ -1254,7 +1342,7 @@ sap.ui.define([
|
|
|
1254
1342
|
continue;
|
|
1255
1343
|
}
|
|
1256
1344
|
|
|
1257
|
-
if (
|
|
1345
|
+
if (bIsTinyMCE5Or6) {
|
|
1258
1346
|
if (!sButtonRows) {
|
|
1259
1347
|
sButtonRows = "";
|
|
1260
1348
|
}
|
|
@@ -1268,7 +1356,7 @@ sap.ui.define([
|
|
|
1268
1356
|
}
|
|
1269
1357
|
}
|
|
1270
1358
|
|
|
1271
|
-
if (
|
|
1359
|
+
if (bIsTinyMCE5Or6) {
|
|
1272
1360
|
return sButtonRows;
|
|
1273
1361
|
}
|
|
1274
1362
|
|
|
@@ -1422,6 +1510,8 @@ sap.ui.define([
|
|
|
1422
1510
|
return window.tinymce.majorVersion != "4";
|
|
1423
1511
|
case RichTextEditor.EDITORTYPE_TINYMCE5:
|
|
1424
1512
|
return window.tinymce.majorVersion != "5";
|
|
1513
|
+
case RichTextEditor.EDITORTYPE_TINYMCE6:
|
|
1514
|
+
return window.tinymce.majorVersion != "6";
|
|
1425
1515
|
default:
|
|
1426
1516
|
return false;
|
|
1427
1517
|
}
|
|
@@ -1808,12 +1898,29 @@ sap.ui.define([
|
|
|
1808
1898
|
sPluginsList = sPluginsList.replace(/(,powerpaste|powerpaste,)/gi, "");
|
|
1809
1899
|
}
|
|
1810
1900
|
|
|
1901
|
+
var bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6, RichTextEditor.EDITORTYPE_TINYMCE].includes(this.getEditorType());
|
|
1902
|
+
var bIsTinyMCE6 = this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE6 || this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE;
|
|
1903
|
+
|
|
1904
|
+
// since TinyMCE 6 plugins property format has changed
|
|
1905
|
+
if (bIsTinyMCE6) {
|
|
1906
|
+
sPluginsList = this.getPlugins().map(function(oPlugin) {
|
|
1907
|
+
return oPlugin.name;
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
if (bIsTinyMCE6 && !this.getEditable()) {
|
|
1912
|
+
sPluginsList = sPluginsList.filter(function(oPlugin) {
|
|
1913
|
+
return oPlugin !== "powerpaste";
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1811
1917
|
/*eslint-disable camelcase */
|
|
1812
1918
|
var oConfig = {
|
|
1813
1919
|
// The following line only covers the editor content, not the UI in general
|
|
1920
|
+
height: "100%",
|
|
1814
1921
|
directionality: this._getTextDirection(),
|
|
1815
1922
|
selector: "[id='" + this._textAreaId + "']",
|
|
1816
|
-
theme:
|
|
1923
|
+
theme: bIsTinyMCE5Or6 ? "silver" : "modern",
|
|
1817
1924
|
menubar: false,
|
|
1818
1925
|
language: this._getLanguageTinyMCE(),
|
|
1819
1926
|
browser_spellcheck: true,
|
|
@@ -1830,7 +1937,14 @@ sap.ui.define([
|
|
|
1830
1937
|
init_instance_callback: function(oEditor) {
|
|
1831
1938
|
this._oEditor = oEditor;
|
|
1832
1939
|
fnOnInit();
|
|
1833
|
-
}.bind(this)
|
|
1940
|
+
}.bind(this),
|
|
1941
|
+
setup: function(editor) {
|
|
1942
|
+
editor.on('Init', function() {
|
|
1943
|
+
if (this.editorManager.majorVersion === "4") {
|
|
1944
|
+
editor.schema.getSpecialElements()['iframe'] = new RegExp('</iframe[^>]*>', 'gi');
|
|
1945
|
+
}
|
|
1946
|
+
});
|
|
1947
|
+
}
|
|
1834
1948
|
};
|
|
1835
1949
|
/*eslint-enable camelcase */
|
|
1836
1950
|
|
|
@@ -1858,7 +1972,8 @@ sap.ui.define([
|
|
|
1858
1972
|
var oLocale = new Locale(Core.getConfiguration().getLanguage()),
|
|
1859
1973
|
sLanguage = oLocale.getLanguage(),
|
|
1860
1974
|
sRegion = oLocale.getRegion(),
|
|
1861
|
-
|
|
1975
|
+
bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6, RichTextEditor.EDITORTYPE_TINYMCE].includes(this.getEditorType()),
|
|
1976
|
+
bIsTinyMCE6 = this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE6 || this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE,
|
|
1862
1977
|
sLangStr;
|
|
1863
1978
|
|
|
1864
1979
|
// Language mapping for old/fallback languages
|
|
@@ -1866,7 +1981,7 @@ sap.ui.define([
|
|
|
1866
1981
|
|
|
1867
1982
|
// Find default region, if region is not given
|
|
1868
1983
|
if (!sRegion) {
|
|
1869
|
-
sRegion = RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS[sLanguage];
|
|
1984
|
+
sRegion = bIsTinyMCE6 ? RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS_TINYMCE6[sLanguage] : RichTextEditor.SUPPORTED_LANGUAGES_DEFAULT_REGIONS[sLanguage];
|
|
1870
1985
|
}
|
|
1871
1986
|
|
|
1872
1987
|
sLangStr = sRegion ? sLanguage + "_" + sRegion.toUpperCase() : sLanguage;
|
|
@@ -1876,14 +1991,16 @@ sap.ui.define([
|
|
|
1876
1991
|
return sLangStr;
|
|
1877
1992
|
}
|
|
1878
1993
|
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1994
|
+
if (bIsTinyMCE5Or6) {
|
|
1995
|
+
// If there is region language in the additional languages supported in TinyMCE5, return it
|
|
1996
|
+
if (RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE5[sLangStr]) {
|
|
1997
|
+
return sLangStr;
|
|
1998
|
+
}
|
|
1883
1999
|
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
2000
|
+
// If there is language in the additional languages supported in TinyMCE5, return it
|
|
2001
|
+
if (RichTextEditor.SUPPORTED_LANGUAGES_TINYMCE5[sLanguage]) {
|
|
2002
|
+
return sLanguage;
|
|
2003
|
+
}
|
|
1887
2004
|
}
|
|
1888
2005
|
|
|
1889
2006
|
// If there is a some language, return it
|
|
@@ -1955,7 +2072,7 @@ sap.ui.define([
|
|
|
1955
2072
|
*/
|
|
1956
2073
|
RichTextEditor.prototype._registerWithPopupTinyMCE = function() {
|
|
1957
2074
|
var oBus = Core.getEventBus(),
|
|
1958
|
-
|
|
2075
|
+
bIsTinyMCE5Or6 = [RichTextEditor.EDITORTYPE_TINYMCE5, RichTextEditor.EDITORTYPE_TINYMCE6, RichTextEditor.EDITORTYPE_TINYMCE].includes(this.getEditorType()),
|
|
1959
2076
|
$Pop = this.$().closest("[data-sap-ui-popup]");
|
|
1960
2077
|
|
|
1961
2078
|
setTimeout(function() {
|
|
@@ -1968,16 +2085,16 @@ sap.ui.define([
|
|
|
1968
2085
|
|
|
1969
2086
|
if (this._oEditor) {
|
|
1970
2087
|
this._oEditor.on('OpenWindow', function(oEvent) {
|
|
1971
|
-
if (
|
|
2088
|
+
if (bIsTinyMCE5Or6) { // sets our own id to the newly created dialog, because in TinyMCE5 doesn't set id
|
|
1972
2089
|
jQuery(".tox-dialog[role='dialog']").attr("id", sDialogId);
|
|
1973
2090
|
}
|
|
1974
|
-
var oObject = { id:
|
|
2091
|
+
var oObject = { id: bIsTinyMCE5Or6 ? sDialogId : oEvent.win._id};
|
|
1975
2092
|
oBus.publish("sap.ui", "sap.ui.core.Popup.addFocusableContent-" + sPopupId, oObject);
|
|
1976
2093
|
});
|
|
1977
2094
|
this._oEditor.on('CloseWindow', function(oEvent) {
|
|
1978
|
-
var oObject = { id:
|
|
2095
|
+
var oObject = { id: bIsTinyMCE5Or6 ? sDialogId : oEvent.win._id};
|
|
1979
2096
|
oBus.publish("sap.ui", "sap.ui.core.Popup.removeFocusableContent-" + sPopupId, oObject);
|
|
1980
|
-
if (
|
|
2097
|
+
if (bIsTinyMCE5Or6) {
|
|
1981
2098
|
jQuery(".tox-dialog[role='dialog']").attr("id"); // remove our id
|
|
1982
2099
|
}
|
|
1983
2100
|
});
|
|
@@ -1997,9 +2114,7 @@ sap.ui.define([
|
|
|
1997
2114
|
* @private
|
|
1998
2115
|
*/
|
|
1999
2116
|
RichTextEditor.prototype._checkCustomToolbarRequirements = function() {
|
|
2000
|
-
var bRequirementsFullfiled = this.getCustomToolbar() &&
|
|
2001
|
-
(this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE4 || this.getEditorType() === RichTextEditor.EDITORTYPE_TINYMCE5) &&
|
|
2002
|
-
library.RichTextEditorHelper.bSapMLoaded;
|
|
2117
|
+
var bRequirementsFullfiled = this.getCustomToolbar() && oEditorMapping[this.getEditorType()] && library.RichTextEditorHelper.bSapMLoaded;
|
|
2003
2118
|
|
|
2004
2119
|
this.$().toggleClass("sapUiRTEWithCustomToolbar", bRequirementsFullfiled);
|
|
2005
2120
|
|
|
@@ -42,7 +42,7 @@ sap.ui.define(['sap/ui/core/Core'],
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
rm.style("width", oRichTextEditor.getWidth());
|
|
45
|
-
rm.style("height", oRichTextEditor.getHeight());
|
|
45
|
+
rm.style("height", oRichTextEditor.getHeight() || "200px");
|
|
46
46
|
if (oRichTextEditor.getTooltip_AsString()) { // ensure not to render null
|
|
47
47
|
rm.attr("title", oRichTextEditor.getTooltip_AsString());
|
|
48
48
|
}
|
|
@@ -51,7 +51,6 @@ sap.ui.define([
|
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
53
53
|
* @alias sap.ui.richtexteditor.ToolbarWrapper
|
|
54
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
55
54
|
* @since 1.48
|
|
56
55
|
*/
|
|
57
56
|
var ToolbarWrapper = Control.extend("sap.ui.richtexteditor.ToolbarWrapper", /** @lends sap.ui.richtexteditor.ToolbarWrapper.prototype */ {
|
|
@@ -1342,12 +1341,22 @@ sap.ui.define([
|
|
|
1342
1341
|
id: this._getId("InsertTableButton"),
|
|
1343
1342
|
text: this._oResourceBundle.getText("DIALOG_OK_BUTTON"),
|
|
1344
1343
|
press: function () {
|
|
1345
|
-
var
|
|
1346
|
-
|
|
1347
|
-
|
|
1344
|
+
var oDomRef = oRTE.getNativeApi().dom;
|
|
1345
|
+
var oNativeAPI = oRTE.getNativeApi();
|
|
1346
|
+
var oTableElm;
|
|
1348
1347
|
|
|
1349
|
-
|
|
1350
|
-
|
|
1348
|
+
if (oRTE.getEditorType() === library.EditorType.TinyMCE6) {
|
|
1349
|
+
oNativeAPI.execCommand('mceInsertTable', false, { rows: oRowsInput.getValue(), columns: oColsInput.getValue() });
|
|
1350
|
+
|
|
1351
|
+
oTableElm = oDomRef.getParents(oNativeAPI.selection.getNode()).find(function (element) {
|
|
1352
|
+
return element.tagName.toLowerCase() === "table";
|
|
1353
|
+
});
|
|
1354
|
+
} else {
|
|
1355
|
+
oTableElm = oNativeAPI.plugins.table.insertTable(oColsInput.getValue(), oRowsInput.getValue());
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
oDomRef.setStyle(oTableElm, 'width', oDimensionWidthInput.getValue() + "px");
|
|
1359
|
+
oDomRef.setStyle(oTableElm, 'height', oDimensionHeightInput.getValue() + "px");
|
|
1351
1360
|
|
|
1352
1361
|
that.getAggregation("_customInsertTableDialog").close();
|
|
1353
1362
|
}
|
|
@@ -1467,7 +1476,9 @@ sap.ui.define([
|
|
|
1467
1476
|
aCommandsToCreate.push("TextAlign");
|
|
1468
1477
|
break;
|
|
1469
1478
|
case "formatselect":
|
|
1479
|
+
case "blocks":
|
|
1470
1480
|
case "styleselect":
|
|
1481
|
+
case "styles":
|
|
1471
1482
|
aCommandsToCreate.push("FormatBlock");
|
|
1472
1483
|
break;
|
|
1473
1484
|
case "insert":
|
|
@@ -1477,6 +1488,7 @@ sap.ui.define([
|
|
|
1477
1488
|
// Check the provided buttons in the group against the supported ones for this particular group from the library.
|
|
1478
1489
|
aNativeButtons.forEach(function (sNativeButtonName) {
|
|
1479
1490
|
var sCustomCommandName = ButtonsToCommandsMap[sNativeButtonName];
|
|
1491
|
+
|
|
1480
1492
|
if (aSupportedButtonGroup.indexOf(sCustomCommandName) > -1) {
|
|
1481
1493
|
// The button is supported in the custom toolbar and can be added
|
|
1482
1494
|
aCommandsToCreate.push(sCustomCommandName);
|
|
@@ -1741,8 +1753,10 @@ sap.ui.define([
|
|
|
1741
1753
|
aContent = this._createTextAlignToolbarContent(mGroup.visible);
|
|
1742
1754
|
break;
|
|
1743
1755
|
case "styleselect":
|
|
1756
|
+
case "styles":
|
|
1757
|
+
case "blocks":
|
|
1744
1758
|
case "formatselect":
|
|
1745
|
-
aContent = this._createFormatSelectToolbarContent(this._isButtonGroupAdded("styleselect") || this._isButtonGroupAdded("formatselect"));
|
|
1759
|
+
aContent = this._createFormatSelectToolbarContent(this._isButtonGroupAdded("styleselect") || this._isButtonGroupAdded("styles") || this._isButtonGroupAdded("blocks") || this._isButtonGroupAdded("formatselect"));
|
|
1746
1760
|
break;
|
|
1747
1761
|
case "structure":
|
|
1748
1762
|
aContent = this._createStructureToolbarContent(aToolbarButtonsToCreate, mGroup.visible);
|
|
@@ -1787,7 +1801,7 @@ sap.ui.define([
|
|
|
1787
1801
|
}
|
|
1788
1802
|
|
|
1789
1803
|
// if the group is supported (ex. "formatselect") add it to the button groups object
|
|
1790
|
-
if (mGroup.name === "formatselect" || mGroup.name === "styleselect") {
|
|
1804
|
+
if (mGroup.name === "formatselect" || mGroup.name === "styleselect" || mGroup.name === "styles" || mGroup.name === "blocks") {
|
|
1791
1805
|
sGroupName = "formatselect";
|
|
1792
1806
|
ButtonGroups[mGroup.name] = ["FormatBlock"];
|
|
1793
1807
|
}
|
|
@@ -2065,8 +2079,13 @@ sap.ui.define([
|
|
|
2065
2079
|
* @public
|
|
2066
2080
|
*/
|
|
2067
2081
|
ToolbarWrapper.prototype.modifyToolbarContent = function (sModifier) {
|
|
2068
|
-
var vResult
|
|
2069
|
-
|
|
2082
|
+
var vResult;
|
|
2083
|
+
var args = Array.prototype.slice.call(arguments);
|
|
2084
|
+
var oToolbar = this.getAggregation("_toolbar");
|
|
2085
|
+
|
|
2086
|
+
if (!oToolbar) {
|
|
2087
|
+
return null;
|
|
2088
|
+
}
|
|
2070
2089
|
|
|
2071
2090
|
args.shift();
|
|
2072
2091
|
|