@sapui5/sap.ui.richtexteditor 1.84.39 → 1.84.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/ui/richtexteditor/.library +27 -4
- package/src/sap/ui/richtexteditor/RTESplitButton.js +3 -3
- package/src/sap/ui/richtexteditor/RTESplitButtonRenderer.js +8 -4
- package/src/sap/ui/richtexteditor/RichTextEditor.js +551 -401
- package/src/sap/ui/richtexteditor/RichTextEditorRenderer.js +15 -7
- package/src/sap/ui/richtexteditor/ToolbarWrapper.js +570 -307
- package/src/sap/ui/richtexteditor/ToolbarWrapperRenderer.js +4 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/a11ychecker/plugin.js +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/a11ychecker/plugin.min.js +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/help/plugin.min.js +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 +72 -33
- package/src/sap/ui/richtexteditor/messagebundle.properties +8 -2
- package/src/sap/ui/richtexteditor/messagebundle_ar.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_bg.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_ca.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_cs.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_cy.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_da.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_de.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_el.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_en.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_en_GB.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_en_US_sappsd.properties +6 -2
- package/src/sap/ui/richtexteditor/messagebundle_en_US_saprigi.properties +105 -0
- package/src/sap/ui/richtexteditor/messagebundle_en_US_saptrc.properties +6 -2
- package/src/sap/ui/richtexteditor/messagebundle_es.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_es_MX.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_et.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_fi.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_fr.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_fr_CA.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_hi.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_hr.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_hu.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_id.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_it.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_iw.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_ja.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_kk.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_ko.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_lt.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_lv.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_ms.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_nl.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_no.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_pl.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_pt.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_pt_PT.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_ro.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_ru.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_sh.properties +64 -6
- package/src/sap/ui/richtexteditor/messagebundle_sk.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_sl.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_sr.properties +159 -0
- package/src/sap/ui/richtexteditor/messagebundle_sv.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_th.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_tr.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_uk.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_vi.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_zh_CN.properties +60 -2
- package/src/sap/ui/richtexteditor/messagebundle_zh_TW.properties +60 -2
- package/src/sap/ui/richtexteditor/themes/base/RichTextEditor.less +25 -84
- package/src/sap/ui/richtexteditor/themes/base/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_belize/RichTextEditor.less +33 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize/library.source.less +4 -2
- 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 +3 -1
- 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 +3 -1
- package/src/sap/ui/richtexteditor/themes/sap_belize_plus/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_bluecrystal/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_dark/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_dark/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcb/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcb/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcw/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcw/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/css/dialog.css +0 -118
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/img/buttons.png +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/img/icons.gif +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/img/items.gif +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/img/menu_arrow.gif +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/img/menu_check.gif +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/img/progress.gif +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/img/tabs.gif +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/plugin.js +0 -314
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/plugin.min.js +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/tiny_mce_popup.js +0 -534
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/utils/editable_selects.js +0 -64
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/utils/form_utils.js +0 -214
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/utils/mctabs.js +0 -160
- package/src/sap/ui/richtexteditor/js/tiny_mce4/plugins/compat3x/utils/validate.js +0 -259
- package/src/sap/ui/richtexteditor/themes/base/icons.gif +0 -0
- package/src/sap/ui/richtexteditor/themes/base/icons.png +0 -0
- package/src/sap/ui/richtexteditor/themes/sap_hcb/RichTextEditor.less +0 -108
- package/src/sap/ui/richtexteditor/themes/sap_hcb/library.source.less +0 -9
|
@@ -1,534 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var tinymce, tinyMCE;
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* TinyMCE popup/dialog helper class. This gives you easy access to the
|
|
7
|
-
* parent editor instance and a bunch of other things. It's higly recommended
|
|
8
|
-
* that you load this script into your dialogs.
|
|
9
|
-
*
|
|
10
|
-
* @static
|
|
11
|
-
* @class tinyMCEPopup
|
|
12
|
-
*/
|
|
13
|
-
var tinyMCEPopup = {
|
|
14
|
-
/**
|
|
15
|
-
* Initializes the popup this will be called automatically.
|
|
16
|
-
*
|
|
17
|
-
* @method init
|
|
18
|
-
*/
|
|
19
|
-
init: function () {
|
|
20
|
-
var self = this, parentWin, settings, uiWindow;
|
|
21
|
-
|
|
22
|
-
// Find window & API
|
|
23
|
-
parentWin = self.getWin();
|
|
24
|
-
tinymce = tinyMCE = parentWin.tinymce;
|
|
25
|
-
self.editor = tinymce.EditorManager.activeEditor;
|
|
26
|
-
self.params = self.editor.windowManager.getParams();
|
|
27
|
-
|
|
28
|
-
uiWindow = self.editor.windowManager.windows[self.editor.windowManager.windows.length - 1];
|
|
29
|
-
self.features = uiWindow.features;
|
|
30
|
-
self.uiWindow = uiWindow;
|
|
31
|
-
|
|
32
|
-
settings = self.editor.settings;
|
|
33
|
-
|
|
34
|
-
// Setup popup CSS path(s)
|
|
35
|
-
if (settings.popup_css !== false) {
|
|
36
|
-
if (settings.popup_css) {
|
|
37
|
-
settings.popup_css = self.editor.documentBaseURI.toAbsolute(settings.popup_css);
|
|
38
|
-
} else {
|
|
39
|
-
settings.popup_css = self.editor.baseURI.toAbsolute("plugins/compat3x/css/dialog.css");
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (settings.popup_css_add) {
|
|
44
|
-
settings.popup_css += ',' + self.editor.documentBaseURI.toAbsolute(settings.popup_css_add);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Setup local DOM
|
|
48
|
-
self.dom = self.editor.windowManager.createInstance('tinymce.dom.DOMUtils', document, {
|
|
49
|
-
ownEvents: true,
|
|
50
|
-
proxy: tinyMCEPopup._eventProxy
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
self.dom.bind(window, 'ready', self._onDOMLoaded, self);
|
|
54
|
-
|
|
55
|
-
// Enables you to skip loading the default css
|
|
56
|
-
if (self.features.popup_css !== false) {
|
|
57
|
-
self.dom.loadCSS(self.features.popup_css || self.editor.settings.popup_css);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Setup on init listeners
|
|
61
|
-
self.listeners = [];
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Fires when the popup is initialized.
|
|
65
|
-
*
|
|
66
|
-
* @event onInit
|
|
67
|
-
* @param {tinymce.Editor} editor Editor instance.
|
|
68
|
-
* @example
|
|
69
|
-
* // Alerts the selected contents when the dialog is loaded
|
|
70
|
-
* tinyMCEPopup.onInit.add(function(ed) {
|
|
71
|
-
* alert(ed.selection.getContent());
|
|
72
|
-
* });
|
|
73
|
-
*
|
|
74
|
-
* // Executes the init method on page load in some object using the SomeObject scope
|
|
75
|
-
* tinyMCEPopup.onInit.add(SomeObject.init, SomeObject);
|
|
76
|
-
*/
|
|
77
|
-
self.onInit = {
|
|
78
|
-
add: function (func, scope) {
|
|
79
|
-
self.listeners.push({ func: func, scope: scope });
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
self.isWindow = !self.getWindowArg('mce_inline');
|
|
84
|
-
self.id = self.getWindowArg('mce_window_id');
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Returns the reference to the parent window that opened the dialog.
|
|
89
|
-
*
|
|
90
|
-
* @method getWin
|
|
91
|
-
* @return {Window} Reference to the parent window that opened the dialog.
|
|
92
|
-
*/
|
|
93
|
-
getWin: function () {
|
|
94
|
-
// Added frameElement check to fix bug: #2817583
|
|
95
|
-
return (!window.frameElement && window.dialogArguments) || opener || parent || top;
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Returns a window argument/parameter by name.
|
|
100
|
-
*
|
|
101
|
-
* @method getWindowArg
|
|
102
|
-
* @param {String} name Name of the window argument to retrieve.
|
|
103
|
-
* @param {String} defaultValue Optional default value to return.
|
|
104
|
-
* @return {String} Argument value or default value if it wasn't found.
|
|
105
|
-
*/
|
|
106
|
-
getWindowArg: function (name, defaultValue) {
|
|
107
|
-
var value = this.params[name];
|
|
108
|
-
|
|
109
|
-
return tinymce.is(value) ? value : defaultValue;
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Returns a editor parameter/config option value.
|
|
114
|
-
*
|
|
115
|
-
* @method getParam
|
|
116
|
-
* @param {String} name Name of the editor config option to retrieve.
|
|
117
|
-
* @param {String} defaultValue Optional default value to return.
|
|
118
|
-
* @return {String} Parameter value or default value if it wasn't found.
|
|
119
|
-
*/
|
|
120
|
-
getParam: function (name, defaultValue) {
|
|
121
|
-
return this.editor.getParam(name, defaultValue);
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Returns a language item by key.
|
|
126
|
-
*
|
|
127
|
-
* @method getLang
|
|
128
|
-
* @param {String} name Language item like mydialog.something.
|
|
129
|
-
* @param {String} defaultValue Optional default value to return.
|
|
130
|
-
* @return {String} Language value for the item like "my string" or the default value if it wasn't found.
|
|
131
|
-
*/
|
|
132
|
-
getLang: function (name, defaultValue) {
|
|
133
|
-
return this.editor.getLang(name, defaultValue);
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Executed a command on editor that opened the dialog/popup.
|
|
138
|
-
*
|
|
139
|
-
* @method execCommand
|
|
140
|
-
* @param {String} cmd Command to execute.
|
|
141
|
-
* @param {Boolean} ui Optional boolean value if the UI for the command should be presented or not.
|
|
142
|
-
* @param {Object} val Optional value to pass with the comman like an URL.
|
|
143
|
-
* @param {Object} a Optional arguments object.
|
|
144
|
-
*/
|
|
145
|
-
execCommand: function (cmd, ui, val, args) {
|
|
146
|
-
args = args || {};
|
|
147
|
-
args.skip_focus = 1;
|
|
148
|
-
|
|
149
|
-
this.restoreSelection();
|
|
150
|
-
return this.editor.execCommand(cmd, ui, val, args);
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Resizes the dialog to the inner size of the window. This is needed since various browsers
|
|
155
|
-
* have different border sizes on windows.
|
|
156
|
-
*
|
|
157
|
-
* @method resizeToInnerSize
|
|
158
|
-
*/
|
|
159
|
-
resizeToInnerSize: function () {
|
|
160
|
-
/*var self = this;
|
|
161
|
-
|
|
162
|
-
// Detach it to workaround a Chrome specific bug
|
|
163
|
-
// https://sourceforge.net/tracker/?func=detail&atid=635682&aid=2926339&group_id=103281
|
|
164
|
-
setTimeout(function() {
|
|
165
|
-
var vp = self.dom.getViewPort(window);
|
|
166
|
-
|
|
167
|
-
self.editor.windowManager.resizeBy(
|
|
168
|
-
self.getWindowArg('mce_width') - vp.w,
|
|
169
|
-
self.getWindowArg('mce_height') - vp.h,
|
|
170
|
-
self.id || window
|
|
171
|
-
);
|
|
172
|
-
}, 10);*/
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Will executed the specified string when the page has been loaded. This function
|
|
177
|
-
* was added for compatibility with the 2.x branch.
|
|
178
|
-
*
|
|
179
|
-
* @method executeOnLoad
|
|
180
|
-
* @param {String} evil String to evalutate on init.
|
|
181
|
-
*/
|
|
182
|
-
executeOnLoad: function (evil) {
|
|
183
|
-
this.onInit.add(function () {
|
|
184
|
-
eval(evil);
|
|
185
|
-
});
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Stores the current editor selection for later restoration. This can be useful since some browsers
|
|
190
|
-
* looses it's selection if a control element is selected/focused inside the dialogs.
|
|
191
|
-
*
|
|
192
|
-
* @method storeSelection
|
|
193
|
-
*/
|
|
194
|
-
storeSelection: function () {
|
|
195
|
-
this.editor.windowManager.bookmark = tinyMCEPopup.editor.selection.getBookmark(1);
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Restores any stored selection. This can be useful since some browsers
|
|
200
|
-
* looses it's selection if a control element is selected/focused inside the dialogs.
|
|
201
|
-
*
|
|
202
|
-
* @method restoreSelection
|
|
203
|
-
*/
|
|
204
|
-
restoreSelection: function () {
|
|
205
|
-
var self = tinyMCEPopup;
|
|
206
|
-
|
|
207
|
-
if (!self.isWindow && tinymce.isIE) {
|
|
208
|
-
self.editor.selection.moveToBookmark(self.editor.windowManager.bookmark);
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Loads a specific dialog language pack. If you pass in plugin_url as a argument
|
|
214
|
-
* when you open the window it will load the <plugin url>/langs/<code>_dlg.js lang pack file.
|
|
215
|
-
*
|
|
216
|
-
* @method requireLangPack
|
|
217
|
-
*/
|
|
218
|
-
requireLangPack: function () {
|
|
219
|
-
var self = this, url = self.getWindowArg('plugin_url') || self.getWindowArg('theme_url'), settings = self.editor.settings, lang;
|
|
220
|
-
|
|
221
|
-
if (settings.language !== false) {
|
|
222
|
-
lang = settings.language || "en";
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (url && lang && self.features.translate_i18n !== false && settings.language_load !== false) {
|
|
226
|
-
url += '/langs/' + lang + '_dlg.js';
|
|
227
|
-
|
|
228
|
-
if (!tinymce.ScriptLoader.isDone(url)) {
|
|
229
|
-
document.write('<script type="text/javascript" src="' + url + '"></script>');
|
|
230
|
-
tinymce.ScriptLoader.markDone(url);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Executes a color picker on the specified element id. When the user
|
|
237
|
-
* then selects a color it will be set as the value of the specified element.
|
|
238
|
-
*
|
|
239
|
-
* @method pickColor
|
|
240
|
-
* @param {DOMEvent} e DOM event object.
|
|
241
|
-
* @param {string} element_id Element id to be filled with the color value from the picker.
|
|
242
|
-
*/
|
|
243
|
-
pickColor: function (e, element_id) {
|
|
244
|
-
var el = document.getElementById(element_id), colorPickerCallback = this.editor.settings.color_picker_callback;
|
|
245
|
-
if (colorPickerCallback) {
|
|
246
|
-
colorPickerCallback.call(
|
|
247
|
-
this.editor,
|
|
248
|
-
function (value) {
|
|
249
|
-
el.value = value;
|
|
250
|
-
try {
|
|
251
|
-
el.onchange();
|
|
252
|
-
} catch (ex) {
|
|
253
|
-
// Try fire event, ignore errors
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
el.value
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Opens a filebrowser/imagebrowser this will set the output value from
|
|
263
|
-
* the browser as a value on the specified element.
|
|
264
|
-
*
|
|
265
|
-
* @method openBrowser
|
|
266
|
-
* @param {string} element_id Id of the element to set value in.
|
|
267
|
-
* @param {string} type Type of browser to open image/file/flash.
|
|
268
|
-
* @param {string} option Option name to get the file_broswer_callback function name from.
|
|
269
|
-
*/
|
|
270
|
-
openBrowser: function (element_id, type) {
|
|
271
|
-
tinyMCEPopup.restoreSelection();
|
|
272
|
-
this.editor.execCallback('file_browser_callback', element_id, document.getElementById(element_id).value, type, window);
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Creates a confirm dialog. Please don't use the blocking behavior of this
|
|
277
|
-
* native version use the callback method instead then it can be extended.
|
|
278
|
-
*
|
|
279
|
-
* @method confirm
|
|
280
|
-
* @param {String} t Title for the new confirm dialog.
|
|
281
|
-
* @param {function} cb Callback function to be executed after the user has selected ok or cancel.
|
|
282
|
-
* @param {Object} s Optional scope to execute the callback in.
|
|
283
|
-
*/
|
|
284
|
-
confirm: function (t, cb, s) {
|
|
285
|
-
this.editor.windowManager.confirm(t, cb, s, window);
|
|
286
|
-
},
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Creates a alert dialog. Please don't use the blocking behavior of this
|
|
290
|
-
* native version use the callback method instead then it can be extended.
|
|
291
|
-
*
|
|
292
|
-
* @method alert
|
|
293
|
-
* @param {String} tx Title for the new alert dialog.
|
|
294
|
-
* @param {function} cb Callback function to be executed after the user has selected ok.
|
|
295
|
-
* @param {Object} s Optional scope to execute the callback in.
|
|
296
|
-
*/
|
|
297
|
-
alert: function (tx, cb, s) {
|
|
298
|
-
this.editor.windowManager.alert(tx, cb, s, window);
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Closes the current window.
|
|
303
|
-
*
|
|
304
|
-
* @method close
|
|
305
|
-
*/
|
|
306
|
-
close: function () {
|
|
307
|
-
var t = this;
|
|
308
|
-
|
|
309
|
-
// To avoid domain relaxing issue in Opera
|
|
310
|
-
function close() {
|
|
311
|
-
t.editor.windowManager.close(window);
|
|
312
|
-
tinymce = tinyMCE = t.editor = t.params = t.dom = t.dom.doc = null; // Cleanup
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
if (tinymce.isOpera) {
|
|
316
|
-
t.getWin().setTimeout(close, 0);
|
|
317
|
-
} else {
|
|
318
|
-
close();
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
// Internal functions
|
|
323
|
-
|
|
324
|
-
_restoreSelection: function () {
|
|
325
|
-
var e = window.event.srcElement;
|
|
326
|
-
|
|
327
|
-
if (e.nodeName == 'INPUT' && (e.type == 'submit' || e.type == 'button')) {
|
|
328
|
-
tinyMCEPopup.restoreSelection();
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
|
-
|
|
332
|
-
/* _restoreSelection : function() {
|
|
333
|
-
var e = window.event.srcElement;
|
|
334
|
-
|
|
335
|
-
// If user focus a non text input or textarea
|
|
336
|
-
if ((e.nodeName != 'INPUT' && e.nodeName != 'TEXTAREA') || e.type != 'text')
|
|
337
|
-
tinyMCEPopup.restoreSelection();
|
|
338
|
-
},*/
|
|
339
|
-
|
|
340
|
-
_onDOMLoaded: function () {
|
|
341
|
-
var t = tinyMCEPopup, ti = document.title, h, nv;
|
|
342
|
-
|
|
343
|
-
// Translate page
|
|
344
|
-
if (t.features.translate_i18n !== false) {
|
|
345
|
-
var map = {
|
|
346
|
-
"update": "Ok",
|
|
347
|
-
"insert": "Ok",
|
|
348
|
-
"cancel": "Cancel",
|
|
349
|
-
"not_set": "--",
|
|
350
|
-
"class_name": "Class name",
|
|
351
|
-
"browse": "Browse"
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
var langCode = (tinymce.settings ? tinymce.settings : t.editor.settings).language || 'en';
|
|
355
|
-
for (var key in map) {
|
|
356
|
-
tinymce.i18n.data[langCode + "." + key] = tinymce.i18n.translate(map[key]);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
h = document.body.innerHTML;
|
|
360
|
-
|
|
361
|
-
// Replace a=x with a="x" in IE
|
|
362
|
-
if (tinymce.isIE) {
|
|
363
|
-
h = h.replace(/ (value|title|alt)=([^"][^\s>]+)/gi, ' $1="$2"');
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
document.dir = t.editor.getParam('directionality', '');
|
|
367
|
-
|
|
368
|
-
if ((nv = t.editor.translate(h)) && nv != h) {
|
|
369
|
-
document.body.innerHTML = nv;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
if ((nv = t.editor.translate(ti)) && nv != ti) {
|
|
373
|
-
document.title = ti = nv;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
if (!t.editor.getParam('browser_preferred_colors', false) || !t.isWindow) {
|
|
378
|
-
t.dom.addClass(document.body, 'forceColors');
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
document.body.style.display = '';
|
|
382
|
-
|
|
383
|
-
// Restore selection in IE when focus is placed on a non textarea or input element of the type text
|
|
384
|
-
if (tinymce.Env.ie) {
|
|
385
|
-
if (tinymce.Env.ie < 11) {
|
|
386
|
-
document.attachEvent('onmouseup', tinyMCEPopup._restoreSelection);
|
|
387
|
-
|
|
388
|
-
// Add base target element for it since it would fail with modal dialogs
|
|
389
|
-
t.dom.add(t.dom.select('head')[0], 'base', { target: '_self' });
|
|
390
|
-
} else {
|
|
391
|
-
document.addEventListener('mouseup', tinyMCEPopup._restoreSelection, false);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
t.restoreSelection();
|
|
396
|
-
t.resizeToInnerSize();
|
|
397
|
-
|
|
398
|
-
// Set inline title
|
|
399
|
-
if (!t.isWindow) {
|
|
400
|
-
t.editor.windowManager.setTitle(window, ti);
|
|
401
|
-
} else {
|
|
402
|
-
window.focus();
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
if (!tinymce.isIE && !t.isWindow) {
|
|
406
|
-
t.dom.bind(document, 'focus', function () {
|
|
407
|
-
t.editor.windowManager.focus(t.id);
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
// Patch for accessibility
|
|
412
|
-
tinymce.each(t.dom.select('select'), function (e) {
|
|
413
|
-
e.onkeydown = tinyMCEPopup._accessHandler;
|
|
414
|
-
});
|
|
415
|
-
|
|
416
|
-
// Call onInit
|
|
417
|
-
// Init must be called before focus so the selection won't get lost by the focus call
|
|
418
|
-
tinymce.each(t.listeners, function (o) {
|
|
419
|
-
o.func.call(o.scope, t.editor);
|
|
420
|
-
});
|
|
421
|
-
|
|
422
|
-
// Move focus to window
|
|
423
|
-
if (t.getWindowArg('mce_auto_focus', true)) {
|
|
424
|
-
window.focus();
|
|
425
|
-
|
|
426
|
-
// Focus element with mceFocus class
|
|
427
|
-
tinymce.each(document.forms, function (f) {
|
|
428
|
-
tinymce.each(f.elements, function (e) {
|
|
429
|
-
if (t.dom.hasClass(e, 'mceFocus') && !e.disabled) {
|
|
430
|
-
e.focus();
|
|
431
|
-
return false; // Break loop
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
document.onkeyup = tinyMCEPopup._closeWinKeyHandler;
|
|
438
|
-
|
|
439
|
-
if ('textContent' in document) {
|
|
440
|
-
t.uiWindow.getEl('head').firstChild.textContent = document.title;
|
|
441
|
-
} else {
|
|
442
|
-
t.uiWindow.getEl('head').firstChild.innerText = document.title;
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
_accessHandler: function (e) {
|
|
447
|
-
e = e || window.event;
|
|
448
|
-
|
|
449
|
-
if (e.keyCode == 13 || e.keyCode == 32) {
|
|
450
|
-
var elm = e.target || e.srcElement;
|
|
451
|
-
|
|
452
|
-
if (elm.onchange) {
|
|
453
|
-
elm.onchange();
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
return tinymce.dom.Event.cancel(e);
|
|
457
|
-
}
|
|
458
|
-
},
|
|
459
|
-
|
|
460
|
-
_closeWinKeyHandler: function (e) {
|
|
461
|
-
e = e || window.event;
|
|
462
|
-
|
|
463
|
-
if (e.keyCode == 27) {
|
|
464
|
-
tinyMCEPopup.close();
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
_eventProxy: function (id) {
|
|
469
|
-
return function (evt) {
|
|
470
|
-
tinyMCEPopup.dom.events.callNativeHandler(id, evt);
|
|
471
|
-
};
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
tinyMCEPopup.init();
|
|
476
|
-
|
|
477
|
-
tinymce.util.Dispatcher = function (scope) {
|
|
478
|
-
this.scope = scope || this;
|
|
479
|
-
this.listeners = [];
|
|
480
|
-
|
|
481
|
-
this.add = function (callback, scope) {
|
|
482
|
-
this.listeners.push({ cb: callback, scope: scope || this.scope });
|
|
483
|
-
|
|
484
|
-
return callback;
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
this.addToTop = function (callback, scope) {
|
|
488
|
-
var self = this, listener = { cb: callback, scope: scope || self.scope };
|
|
489
|
-
|
|
490
|
-
// Create new listeners if addToTop is executed in a dispatch loop
|
|
491
|
-
if (self.inDispatch) {
|
|
492
|
-
self.listeners = [listener].concat(self.listeners);
|
|
493
|
-
} else {
|
|
494
|
-
self.listeners.unshift(listener);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
return callback;
|
|
498
|
-
};
|
|
499
|
-
|
|
500
|
-
this.remove = function (callback) {
|
|
501
|
-
var listeners = this.listeners, output = null;
|
|
502
|
-
|
|
503
|
-
tinymce.each(listeners, function (listener, i) {
|
|
504
|
-
if (callback == listener.cb) {
|
|
505
|
-
output = listener;
|
|
506
|
-
listeners.splice(i, 1);
|
|
507
|
-
return false;
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
|
|
511
|
-
return output;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
this.dispatch = function () {
|
|
515
|
-
var self = this, returnValue, args = arguments, i, listeners = self.listeners, listener;
|
|
516
|
-
|
|
517
|
-
self.inDispatch = true;
|
|
518
|
-
|
|
519
|
-
// Needs to be a real loop since the listener count might change while looping
|
|
520
|
-
// And this is also more efficient
|
|
521
|
-
for (i = 0; i < listeners.length; i++) {
|
|
522
|
-
listener = listeners[i];
|
|
523
|
-
returnValue = listener.cb.apply(listener.scope, args.length > 0 ? args : [listener.scope]);
|
|
524
|
-
|
|
525
|
-
if (returnValue === false) {
|
|
526
|
-
break;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
self.inDispatch = false;
|
|
531
|
-
|
|
532
|
-
return returnValue;
|
|
533
|
-
};
|
|
534
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var TinyMCE_EditableSelects = {
|
|
4
|
-
editSelectElm : null,
|
|
5
|
-
|
|
6
|
-
init : function () {
|
|
7
|
-
var nl = document.getElementsByTagName("select"), i, d = document, o;
|
|
8
|
-
|
|
9
|
-
for (i = 0; i < nl.length; i++) {
|
|
10
|
-
if (nl[i].className.indexOf('mceEditableSelect') != -1) {
|
|
11
|
-
o = new Option(tinyMCEPopup.editor.translate('value'), '__mce_add_custom__');
|
|
12
|
-
|
|
13
|
-
o.className = 'mceAddSelectValue';
|
|
14
|
-
|
|
15
|
-
nl[i].options[nl[i].options.length] = o;
|
|
16
|
-
nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
onChangeEditableSelect : function (e) {
|
|
22
|
-
var d = document, ne, se = window.event ? window.event.srcElement : e.target;
|
|
23
|
-
|
|
24
|
-
if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
|
|
25
|
-
ne = d.createElement("input");
|
|
26
|
-
ne.id = se.id + "_custom";
|
|
27
|
-
ne.name = se.name + "_custom";
|
|
28
|
-
ne.type = "text";
|
|
29
|
-
|
|
30
|
-
ne.style.width = se.offsetWidth + 'px';
|
|
31
|
-
se.parentNode.insertBefore(ne, se);
|
|
32
|
-
se.style.display = 'none';
|
|
33
|
-
ne.focus();
|
|
34
|
-
ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
|
|
35
|
-
ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
|
|
36
|
-
TinyMCE_EditableSelects.editSelectElm = se;
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
onBlurEditableSelectInput : function () {
|
|
41
|
-
var se = TinyMCE_EditableSelects.editSelectElm;
|
|
42
|
-
|
|
43
|
-
if (se) {
|
|
44
|
-
if (se.previousSibling.value != '') {
|
|
45
|
-
addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
|
|
46
|
-
selectByValue(document.forms[0], se.id, se.previousSibling.value);
|
|
47
|
-
} else {
|
|
48
|
-
selectByValue(document.forms[0], se.id, '');
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
se.style.display = 'inline';
|
|
52
|
-
se.parentNode.removeChild(se.previousSibling);
|
|
53
|
-
TinyMCE_EditableSelects.editSelectElm = null;
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
onKeyDown : function (e) {
|
|
58
|
-
e = e || window.event;
|
|
59
|
-
|
|
60
|
-
if (e.keyCode == 13) {
|
|
61
|
-
TinyMCE_EditableSelects.onBlurEditableSelectInput();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
};
|