@sapui5/sap.ui.richtexteditor 1.84.40 → 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 +60 -2
- 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 +60 -2
- 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,214 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
|
|
4
|
-
|
|
5
|
-
function getColorPickerHTML(id, target_form_element) {
|
|
6
|
-
var h = "", dom = tinyMCEPopup.dom;
|
|
7
|
-
|
|
8
|
-
if (label = dom.select('label[for=' + target_form_element + ']')[0]) {
|
|
9
|
-
label.id = label.id || dom.uniqueId();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
h += '<a role="button" aria-labelledby="' + id + '_label" id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element + '\');" onmousedown="return false;" class="pickcolor">';
|
|
13
|
-
h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> <span id="' + id + '_label" class="mceVoiceLabel mceIconOnly" style="display:none;">' + tinyMCEPopup.getLang('browse') + '</span></span></a>';
|
|
14
|
-
|
|
15
|
-
return h;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function updateColor(img_id, form_element_id) {
|
|
19
|
-
document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function setBrowserDisabled(id, state) {
|
|
23
|
-
var img = document.getElementById(id);
|
|
24
|
-
var lnk = document.getElementById(id + "_link");
|
|
25
|
-
|
|
26
|
-
if (lnk) {
|
|
27
|
-
if (state) {
|
|
28
|
-
lnk.setAttribute("realhref", lnk.getAttribute("href"));
|
|
29
|
-
lnk.removeAttribute("href");
|
|
30
|
-
tinyMCEPopup.dom.addClass(img, 'disabled');
|
|
31
|
-
} else {
|
|
32
|
-
if (lnk.getAttribute("realhref")) {
|
|
33
|
-
lnk.setAttribute("href", lnk.getAttribute("realhref"));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
tinyMCEPopup.dom.removeClass(img, 'disabled');
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function getBrowserHTML(id, target_form_element, type, prefix) {
|
|
42
|
-
var option = prefix + "_" + type + "_browser_callback", cb, html;
|
|
43
|
-
|
|
44
|
-
cb = tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback"));
|
|
45
|
-
|
|
46
|
-
if (!cb) {
|
|
47
|
-
return "";
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
html = "";
|
|
51
|
-
html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">';
|
|
52
|
-
html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> </span></a>';
|
|
53
|
-
|
|
54
|
-
return html;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function openBrowser(img_id, target_form_element, type, option) {
|
|
58
|
-
var img = document.getElementById(img_id);
|
|
59
|
-
|
|
60
|
-
if (img.className != "mceButtonDisabled") {
|
|
61
|
-
tinyMCEPopup.openBrowser(target_form_element, type, option);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
|
|
66
|
-
if (!form_obj || !form_obj.elements[field_name]) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
if (!value) {
|
|
71
|
-
value = "";
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
var sel = form_obj.elements[field_name];
|
|
75
|
-
|
|
76
|
-
var found = false;
|
|
77
|
-
for (var i = 0; i < sel.options.length; i++) {
|
|
78
|
-
var option = sel.options[i];
|
|
79
|
-
|
|
80
|
-
if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
|
|
81
|
-
option.selected = true;
|
|
82
|
-
found = true;
|
|
83
|
-
} else {
|
|
84
|
-
option.selected = false;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (!found && add_custom && value != '') {
|
|
89
|
-
var option = new Option(value, value);
|
|
90
|
-
option.selected = true;
|
|
91
|
-
sel.options[sel.options.length] = option;
|
|
92
|
-
sel.selectedIndex = sel.options.length - 1;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return found;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function getSelectValue(form_obj, field_name) {
|
|
99
|
-
var elm = form_obj.elements[field_name];
|
|
100
|
-
|
|
101
|
-
if (elm == null || elm.options == null || elm.selectedIndex === -1) {
|
|
102
|
-
return "";
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return elm.options[elm.selectedIndex].value;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function addSelectValue(form_obj, field_name, name, value) {
|
|
109
|
-
var s = form_obj.elements[field_name];
|
|
110
|
-
var o = new Option(name, value);
|
|
111
|
-
s.options[s.options.length] = o;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function addClassesToList(list_id, specific_option) {
|
|
115
|
-
// Setup class droplist
|
|
116
|
-
var styleSelectElm = document.getElementById(list_id);
|
|
117
|
-
var styles = tinyMCEPopup.getParam('theme_advanced_styles', false);
|
|
118
|
-
styles = tinyMCEPopup.getParam(specific_option, styles);
|
|
119
|
-
|
|
120
|
-
if (styles) {
|
|
121
|
-
var stylesAr = styles.split(';');
|
|
122
|
-
|
|
123
|
-
for (var i = 0; i < stylesAr.length; i++) {
|
|
124
|
-
if (stylesAr != "") {
|
|
125
|
-
var key, value;
|
|
126
|
-
|
|
127
|
-
key = stylesAr[i].split('=')[0];
|
|
128
|
-
value = stylesAr[i].split('=')[1];
|
|
129
|
-
|
|
130
|
-
styleSelectElm.options[styleSelectElm.length] = new Option(key, value);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
} else {
|
|
134
|
-
/*tinymce.each(tinyMCEPopup.editor.dom.getClasses(), function(o) {
|
|
135
|
-
styleSelectElm.options[styleSelectElm.length] = new Option(o.title || o['class'], o['class']);
|
|
136
|
-
});*/
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function isVisible(element_id) {
|
|
141
|
-
var elm = document.getElementById(element_id);
|
|
142
|
-
|
|
143
|
-
return elm && elm.style.display != "none";
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
function convertRGBToHex(col) {
|
|
147
|
-
var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi");
|
|
148
|
-
|
|
149
|
-
var rgb = col.replace(re, "$1,$2,$3").split(',');
|
|
150
|
-
if (rgb.length == 3) {
|
|
151
|
-
r = parseInt(rgb[0]).toString(16);
|
|
152
|
-
g = parseInt(rgb[1]).toString(16);
|
|
153
|
-
b = parseInt(rgb[2]).toString(16);
|
|
154
|
-
|
|
155
|
-
r = r.length == 1 ? '0' + r : r;
|
|
156
|
-
g = g.length == 1 ? '0' + g : g;
|
|
157
|
-
b = b.length == 1 ? '0' + b : b;
|
|
158
|
-
|
|
159
|
-
return "#" + r + g + b;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return col;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
function convertHexToRGB(col) {
|
|
166
|
-
if (col.indexOf('#') != -1) {
|
|
167
|
-
col = col.replace(new RegExp('[^0-9A-F]', 'gi'), '');
|
|
168
|
-
|
|
169
|
-
r = parseInt(col.substring(0, 2), 16);
|
|
170
|
-
g = parseInt(col.substring(2, 4), 16);
|
|
171
|
-
b = parseInt(col.substring(4, 6), 16);
|
|
172
|
-
|
|
173
|
-
return "rgb(" + r + "," + g + "," + b + ")";
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return col;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
function trimSize(size) {
|
|
180
|
-
return size.replace(/([0-9\.]+)(px|%|in|cm|mm|em|ex|pt|pc)/i, '$1$2');
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function getCSSSize(size) {
|
|
184
|
-
size = trimSize(size);
|
|
185
|
-
|
|
186
|
-
if (size == "") {
|
|
187
|
-
return "";
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
// Add px
|
|
191
|
-
if (/^[0-9]+$/.test(size)) {
|
|
192
|
-
size += 'px';
|
|
193
|
-
}
|
|
194
|
-
// Sanity check, IE doesn't like broken values
|
|
195
|
-
else if (!(/^[0-9\.]+(px|%|in|cm|mm|em|ex|pt|pc)$/i.test(size))) {
|
|
196
|
-
return "";
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
return size;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
function getStyle(elm, attrib, style) {
|
|
203
|
-
var val = tinyMCEPopup.dom.getAttrib(elm, attrib);
|
|
204
|
-
|
|
205
|
-
if (val != '') {
|
|
206
|
-
return '' + val;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
if (typeof (style) == 'undefined') {
|
|
210
|
-
style = attrib;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
return tinyMCEPopup.dom.getStyle(elm, style);
|
|
214
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/*jshint globals: tinyMCEPopup */
|
|
4
|
-
|
|
5
|
-
function MCTabs() {
|
|
6
|
-
this.settings = [];
|
|
7
|
-
this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tinymce.util.Dispatcher');
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
MCTabs.prototype.init = function (settings) {
|
|
11
|
-
this.settings = settings;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
MCTabs.prototype.getParam = function (name, default_value) {
|
|
15
|
-
var value = null;
|
|
16
|
-
|
|
17
|
-
value = (typeof (this.settings[name]) == "undefined") ? default_value : this.settings[name];
|
|
18
|
-
|
|
19
|
-
// Fix bool values
|
|
20
|
-
if (value == "true" || value == "false") {
|
|
21
|
-
return (value == "true");
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return value;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
MCTabs.prototype.showTab = function (tab) {
|
|
28
|
-
tab.className = 'current';
|
|
29
|
-
tab.setAttribute("aria-selected", true);
|
|
30
|
-
tab.setAttribute("aria-expanded", true);
|
|
31
|
-
tab.tabIndex = 0;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
MCTabs.prototype.hideTab = function (tab) {
|
|
35
|
-
var t = this;
|
|
36
|
-
|
|
37
|
-
tab.className = '';
|
|
38
|
-
tab.setAttribute("aria-selected", false);
|
|
39
|
-
tab.setAttribute("aria-expanded", false);
|
|
40
|
-
tab.tabIndex = -1;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
MCTabs.prototype.showPanel = function (panel) {
|
|
44
|
-
panel.className = 'current';
|
|
45
|
-
panel.setAttribute("aria-hidden", false);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
MCTabs.prototype.hidePanel = function (panel) {
|
|
49
|
-
panel.className = 'panel';
|
|
50
|
-
panel.setAttribute("aria-hidden", true);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
MCTabs.prototype.getPanelForTab = function (tabElm) {
|
|
54
|
-
return tinyMCEPopup.dom.getAttrib(tabElm, "aria-controls");
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
MCTabs.prototype.displayTab = function (tab_id, panel_id, avoid_focus) {
|
|
58
|
-
var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i, t = this;
|
|
59
|
-
|
|
60
|
-
tabElm = document.getElementById(tab_id);
|
|
61
|
-
|
|
62
|
-
if (panel_id === undefined) {
|
|
63
|
-
panel_id = t.getPanelForTab(tabElm);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
panelElm = document.getElementById(panel_id);
|
|
67
|
-
panelContainerElm = panelElm ? panelElm.parentNode : null;
|
|
68
|
-
tabContainerElm = tabElm ? tabElm.parentNode : null;
|
|
69
|
-
selectionClass = t.getParam('selection_class', 'current');
|
|
70
|
-
|
|
71
|
-
if (tabElm && tabContainerElm) {
|
|
72
|
-
nodes = tabContainerElm.childNodes;
|
|
73
|
-
|
|
74
|
-
// Hide all other tabs
|
|
75
|
-
for (i = 0; i < nodes.length; i++) {
|
|
76
|
-
if (nodes[i].nodeName == "LI") {
|
|
77
|
-
t.hideTab(nodes[i]);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// Show selected tab
|
|
82
|
-
t.showTab(tabElm);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (panelElm && panelContainerElm) {
|
|
86
|
-
nodes = panelContainerElm.childNodes;
|
|
87
|
-
|
|
88
|
-
// Hide all other panels
|
|
89
|
-
for (i = 0; i < nodes.length; i++) {
|
|
90
|
-
if (nodes[i].nodeName == "DIV") {
|
|
91
|
-
t.hidePanel(nodes[i]);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (!avoid_focus) {
|
|
96
|
-
tabElm.focus();
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Show selected panel
|
|
100
|
-
t.showPanel(panelElm);
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
MCTabs.prototype.getAnchor = function () {
|
|
105
|
-
var pos, url = document.location.href;
|
|
106
|
-
|
|
107
|
-
if ((pos = url.lastIndexOf('#')) != -1) {
|
|
108
|
-
return url.substring(pos + 1);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
return "";
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
//Global instance
|
|
116
|
-
var mcTabs = new MCTabs();
|
|
117
|
-
|
|
118
|
-
tinyMCEPopup.onInit.add(function () {
|
|
119
|
-
var tinymce = tinyMCEPopup.getWin().tinymce, dom = tinyMCEPopup.dom, each = tinymce.each;
|
|
120
|
-
|
|
121
|
-
each(dom.select('div.tabs'), function (tabContainerElm) {
|
|
122
|
-
//var keyNav;
|
|
123
|
-
|
|
124
|
-
dom.setAttrib(tabContainerElm, "role", "tablist");
|
|
125
|
-
|
|
126
|
-
var items = tinyMCEPopup.dom.select('li', tabContainerElm);
|
|
127
|
-
var action = function (id) {
|
|
128
|
-
mcTabs.displayTab(id, mcTabs.getPanelForTab(id));
|
|
129
|
-
mcTabs.onChange.dispatch(id);
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
each(items, function (item) {
|
|
133
|
-
dom.setAttrib(item, 'role', 'tab');
|
|
134
|
-
dom.bind(item, 'click', function (evt) {
|
|
135
|
-
action(item.id);
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
dom.bind(dom.getRoot(), 'keydown', function (evt) {
|
|
140
|
-
if (evt.keyCode === 9 && evt.ctrlKey && !evt.altKey) { // Tab
|
|
141
|
-
//keyNav.moveFocus(evt.shiftKey ? -1 : 1);
|
|
142
|
-
tinymce.dom.Event.cancel(evt);
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
each(dom.select('a', tabContainerElm), function (a) {
|
|
147
|
-
dom.setAttrib(a, 'tabindex', '-1');
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
/*keyNav = tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
|
|
151
|
-
root: tabContainerElm,
|
|
152
|
-
items: items,
|
|
153
|
-
onAction: action,
|
|
154
|
-
actOnFocus: true,
|
|
155
|
-
enableLeftRight: true,
|
|
156
|
-
enableUpDown: true
|
|
157
|
-
}, tinyMCEPopup.dom);*/
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
});
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
// String validation:
|
|
5
|
-
|
|
6
|
-
if (!Validator.isEmail('myemail'))
|
|
7
|
-
alert('Invalid email.');
|
|
8
|
-
|
|
9
|
-
// Form validation:
|
|
10
|
-
|
|
11
|
-
var f = document.forms['myform'];
|
|
12
|
-
|
|
13
|
-
if (!Validator.isEmail(f.myemail))
|
|
14
|
-
alert('Invalid email.');
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
var Validator = {
|
|
18
|
-
isEmail : function (s) {
|
|
19
|
-
return this.test(s, '^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$');
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
isAbsUrl : function (s) {
|
|
23
|
-
return this.test(s, '^(news|telnet|nttp|file|http|ftp|https)://[-A-Za-z0-9\\.]+\\/?.*$');
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
isSize : function (s) {
|
|
27
|
-
return this.test(s, '^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
isId : function (s) {
|
|
31
|
-
return this.test(s, '^[A-Za-z_]([A-Za-z0-9_])*$');
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
isEmpty : function (s) {
|
|
35
|
-
var nl, i;
|
|
36
|
-
|
|
37
|
-
if (s.nodeName == 'SELECT' && s.selectedIndex < 1) {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (s.type == 'checkbox' && !s.checked) {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (s.type == 'radio') {
|
|
46
|
-
for (i = 0, nl = s.form.elements; i < nl.length; i++) {
|
|
47
|
-
if (nl[i].type == "radio" && nl[i].name == s.name && nl[i].checked) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return new RegExp('^\\s*$').test(s.nodeType == 1 ? s.value : s);
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
isNumber : function (s, d) {
|
|
59
|
-
return !isNaN(s.nodeType == 1 ? s.value : s) && (!d || !this.test(s, '^-?[0-9]*\\.[0-9]*$'));
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
test : function (s, p) {
|
|
63
|
-
s = s.nodeType == 1 ? s.value : s;
|
|
64
|
-
|
|
65
|
-
return s == '' || new RegExp(p).test(s);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
var AutoValidator = {
|
|
70
|
-
settings : {
|
|
71
|
-
id_cls : 'id',
|
|
72
|
-
int_cls : 'int',
|
|
73
|
-
url_cls : 'url',
|
|
74
|
-
number_cls : 'number',
|
|
75
|
-
email_cls : 'email',
|
|
76
|
-
size_cls : 'size',
|
|
77
|
-
required_cls : 'required',
|
|
78
|
-
invalid_cls : 'invalid',
|
|
79
|
-
min_cls : 'min',
|
|
80
|
-
max_cls : 'max'
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
init : function (s) {
|
|
84
|
-
var n;
|
|
85
|
-
|
|
86
|
-
for (n in s) {
|
|
87
|
-
this.settings[n] = s[n];
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
validate : function (f) {
|
|
92
|
-
var i, nl, s = this.settings, c = 0;
|
|
93
|
-
|
|
94
|
-
nl = this.tags(f, 'label');
|
|
95
|
-
for (i = 0; i < nl.length; i++) {
|
|
96
|
-
this.removeClass(nl[i], s.invalid_cls);
|
|
97
|
-
nl[i].setAttribute('aria-invalid', false);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
c += this.validateElms(f, 'input');
|
|
101
|
-
c += this.validateElms(f, 'select');
|
|
102
|
-
c += this.validateElms(f, 'textarea');
|
|
103
|
-
|
|
104
|
-
return c == 3;
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
invalidate : function (n) {
|
|
108
|
-
this.mark(n.form, n);
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
getErrorMessages : function (f) {
|
|
112
|
-
var nl, i, s = this.settings, field, msg, values, messages = [], ed = tinyMCEPopup.editor;
|
|
113
|
-
nl = this.tags(f, "label");
|
|
114
|
-
for (i = 0; i < nl.length; i++) {
|
|
115
|
-
if (this.hasClass(nl[i], s.invalid_cls)) {
|
|
116
|
-
field = document.getElementById(nl[i].getAttribute("for"));
|
|
117
|
-
values = { field: nl[i].textContent };
|
|
118
|
-
if (this.hasClass(field, s.min_cls, true)) {
|
|
119
|
-
message = ed.getLang('invalid_data_min');
|
|
120
|
-
values.min = this.getNum(field, s.min_cls);
|
|
121
|
-
} else if (this.hasClass(field, s.number_cls)) {
|
|
122
|
-
message = ed.getLang('invalid_data_number');
|
|
123
|
-
} else if (this.hasClass(field, s.size_cls)) {
|
|
124
|
-
message = ed.getLang('invalid_data_size');
|
|
125
|
-
} else {
|
|
126
|
-
message = ed.getLang('invalid_data');
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
message = message.replace(/{\#([^}]+)\}/g, function (a, b) {
|
|
130
|
-
return values[b] || '{#' + b + '}';
|
|
131
|
-
});
|
|
132
|
-
messages.push(message);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return messages;
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
reset : function (e) {
|
|
139
|
-
var t = ['label', 'input', 'select', 'textarea'];
|
|
140
|
-
var i, j, nl, s = this.settings;
|
|
141
|
-
|
|
142
|
-
if (e == null) {
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
for (i = 0; i < t.length; i++) {
|
|
147
|
-
nl = this.tags(e.form ? e.form : e, t[i]);
|
|
148
|
-
for (j = 0; j < nl.length; j++) {
|
|
149
|
-
this.removeClass(nl[j], s.invalid_cls);
|
|
150
|
-
nl[j].setAttribute('aria-invalid', false);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
validateElms : function (f, e) {
|
|
156
|
-
var nl, i, n, s = this.settings, st = true, va = Validator, v;
|
|
157
|
-
|
|
158
|
-
nl = this.tags(f, e);
|
|
159
|
-
for (i = 0; i < nl.length; i++) {
|
|
160
|
-
n = nl[i];
|
|
161
|
-
|
|
162
|
-
this.removeClass(n, s.invalid_cls);
|
|
163
|
-
|
|
164
|
-
if (this.hasClass(n, s.required_cls) && va.isEmpty(n)) {
|
|
165
|
-
st = this.mark(f, n);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (this.hasClass(n, s.number_cls) && !va.isNumber(n)) {
|
|
169
|
-
st = this.mark(f, n);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
if (this.hasClass(n, s.int_cls) && !va.isNumber(n, true)) {
|
|
173
|
-
st = this.mark(f, n);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
if (this.hasClass(n, s.url_cls) && !va.isAbsUrl(n)) {
|
|
177
|
-
st = this.mark(f, n);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
if (this.hasClass(n, s.email_cls) && !va.isEmail(n)) {
|
|
181
|
-
st = this.mark(f, n);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
if (this.hasClass(n, s.size_cls) && !va.isSize(n)) {
|
|
185
|
-
st = this.mark(f, n);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (this.hasClass(n, s.id_cls) && !va.isId(n)) {
|
|
189
|
-
st = this.mark(f, n);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if (this.hasClass(n, s.min_cls, true)) {
|
|
193
|
-
v = this.getNum(n, s.min_cls);
|
|
194
|
-
|
|
195
|
-
if (isNaN(v) || parseInt(n.value) < parseInt(v)) {
|
|
196
|
-
st = this.mark(f, n);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
if (this.hasClass(n, s.max_cls, true)) {
|
|
201
|
-
v = this.getNum(n, s.max_cls);
|
|
202
|
-
|
|
203
|
-
if (isNaN(v) || parseInt(n.value) > parseInt(v)) {
|
|
204
|
-
st = this.mark(f, n);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
return st;
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
hasClass : function (n, c, d) {
|
|
213
|
-
return new RegExp('\\b' + c + (d ? '[0-9]+' : '') + '\\b', 'g').test(n.className);
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
getNum : function (n, c) {
|
|
217
|
-
c = n.className.match(new RegExp('\\b' + c + '([0-9]+)\\b', 'g'))[0];
|
|
218
|
-
c = c.replace(/[^0-9]/g, '');
|
|
219
|
-
|
|
220
|
-
return c;
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
addClass : function (n, c, b) {
|
|
224
|
-
var o = this.removeClass(n, c);
|
|
225
|
-
n.className = b ? c + (o !== '' ? (' ' + o) : '') : (o !== '' ? (o + ' ') : '') + c;
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
removeClass : function (n, c) {
|
|
229
|
-
c = n.className.replace(new RegExp("(^|\\s+)" + c + "(\\s+|$)"), ' ');
|
|
230
|
-
return n.className = c !== ' ' ? c : '';
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
tags : function (f, s) {
|
|
234
|
-
return f.getElementsByTagName(s);
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
mark : function (f, n) {
|
|
238
|
-
var s = this.settings;
|
|
239
|
-
|
|
240
|
-
this.addClass(n, s.invalid_cls);
|
|
241
|
-
n.setAttribute('aria-invalid', 'true');
|
|
242
|
-
this.markLabels(f, n, s.invalid_cls);
|
|
243
|
-
|
|
244
|
-
return false;
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
markLabels : function (f, n, ic) {
|
|
248
|
-
var nl, i;
|
|
249
|
-
|
|
250
|
-
nl = this.tags(f, "label");
|
|
251
|
-
for (i = 0; i < nl.length; i++) {
|
|
252
|
-
if (nl[i].getAttribute("for") == n.id || nl[i].htmlFor == n.id) {
|
|
253
|
-
this.addClass(nl[i], ic);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
return null;
|
|
258
|
-
}
|
|
259
|
-
};
|
|
Binary file
|
|
Binary file
|