@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
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* TinyMCE
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
|
5
|
+
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
|
6
|
+
*
|
|
7
|
+
* Version: 6.5.1
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
(function () {
|
|
11
|
+
'use strict';
|
|
12
|
+
|
|
13
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
14
|
+
|
|
15
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.RangeUtils');
|
|
16
|
+
|
|
17
|
+
var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
18
|
+
|
|
19
|
+
const option = name => editor => editor.options.get(name);
|
|
20
|
+
const register$2 = editor => {
|
|
21
|
+
const registerOption = editor.options.register;
|
|
22
|
+
registerOption('allow_html_in_named_anchor', {
|
|
23
|
+
processor: 'boolean',
|
|
24
|
+
default: false
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const allowHtmlInNamedAnchor = option('allow_html_in_named_anchor');
|
|
28
|
+
|
|
29
|
+
const namedAnchorSelector = 'a:not([href])';
|
|
30
|
+
const isEmptyString = str => !str;
|
|
31
|
+
const getIdFromAnchor = elm => {
|
|
32
|
+
const id = elm.getAttribute('id') || elm.getAttribute('name');
|
|
33
|
+
return id || '';
|
|
34
|
+
};
|
|
35
|
+
const isAnchor = elm => elm.nodeName.toLowerCase() === 'a';
|
|
36
|
+
const isNamedAnchor = elm => isAnchor(elm) && !elm.getAttribute('href') && getIdFromAnchor(elm) !== '';
|
|
37
|
+
const isEmptyNamedAnchor = elm => isNamedAnchor(elm) && !elm.firstChild;
|
|
38
|
+
|
|
39
|
+
const removeEmptyNamedAnchorsInSelection = editor => {
|
|
40
|
+
const dom = editor.dom;
|
|
41
|
+
global$1(dom).walk(editor.selection.getRng(), nodes => {
|
|
42
|
+
global.each(nodes, node => {
|
|
43
|
+
if (isEmptyNamedAnchor(node)) {
|
|
44
|
+
dom.remove(node, false);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const isValidId = id => /^[A-Za-z][A-Za-z0-9\-:._]*$/.test(id);
|
|
50
|
+
const getNamedAnchor = editor => editor.dom.getParent(editor.selection.getStart(), namedAnchorSelector);
|
|
51
|
+
const getId = editor => {
|
|
52
|
+
const anchor = getNamedAnchor(editor);
|
|
53
|
+
if (anchor) {
|
|
54
|
+
return getIdFromAnchor(anchor);
|
|
55
|
+
} else {
|
|
56
|
+
return '';
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const createAnchor = (editor, id) => {
|
|
60
|
+
editor.undoManager.transact(() => {
|
|
61
|
+
if (!allowHtmlInNamedAnchor(editor)) {
|
|
62
|
+
editor.selection.collapse(true);
|
|
63
|
+
}
|
|
64
|
+
if (editor.selection.isCollapsed()) {
|
|
65
|
+
editor.insertContent(editor.dom.createHTML('a', { id }));
|
|
66
|
+
} else {
|
|
67
|
+
removeEmptyNamedAnchorsInSelection(editor);
|
|
68
|
+
editor.formatter.remove('namedAnchor', undefined, undefined, true);
|
|
69
|
+
editor.formatter.apply('namedAnchor', { value: id });
|
|
70
|
+
editor.addVisual();
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
const updateAnchor = (editor, id, anchorElement) => {
|
|
75
|
+
anchorElement.removeAttribute('name');
|
|
76
|
+
anchorElement.id = id;
|
|
77
|
+
editor.addVisual();
|
|
78
|
+
editor.undoManager.add();
|
|
79
|
+
};
|
|
80
|
+
const insert = (editor, id) => {
|
|
81
|
+
const anchor = getNamedAnchor(editor);
|
|
82
|
+
if (anchor) {
|
|
83
|
+
updateAnchor(editor, id, anchor);
|
|
84
|
+
} else {
|
|
85
|
+
createAnchor(editor, id);
|
|
86
|
+
}
|
|
87
|
+
editor.focus();
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const insertAnchor = (editor, newId) => {
|
|
91
|
+
if (!isValidId(newId)) {
|
|
92
|
+
editor.windowManager.alert('ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.');
|
|
93
|
+
return false;
|
|
94
|
+
} else {
|
|
95
|
+
insert(editor, newId);
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const open = editor => {
|
|
100
|
+
const currentId = getId(editor);
|
|
101
|
+
editor.windowManager.open({
|
|
102
|
+
title: 'Anchor',
|
|
103
|
+
size: 'normal',
|
|
104
|
+
body: {
|
|
105
|
+
type: 'panel',
|
|
106
|
+
items: [{
|
|
107
|
+
name: 'id',
|
|
108
|
+
type: 'input',
|
|
109
|
+
label: 'ID',
|
|
110
|
+
placeholder: 'example'
|
|
111
|
+
}]
|
|
112
|
+
},
|
|
113
|
+
buttons: [
|
|
114
|
+
{
|
|
115
|
+
type: 'cancel',
|
|
116
|
+
name: 'cancel',
|
|
117
|
+
text: 'Cancel'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
type: 'submit',
|
|
121
|
+
name: 'save',
|
|
122
|
+
text: 'Save',
|
|
123
|
+
primary: true
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
initialData: { id: currentId },
|
|
127
|
+
onSubmit: api => {
|
|
128
|
+
if (insertAnchor(editor, api.getData().id)) {
|
|
129
|
+
api.close();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const register$1 = editor => {
|
|
136
|
+
editor.addCommand('mceAnchor', () => {
|
|
137
|
+
open(editor);
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const isNamedAnchorNode = node => isEmptyString(node.attr('href')) && !isEmptyString(node.attr('id') || node.attr('name'));
|
|
142
|
+
const isEmptyNamedAnchorNode = node => isNamedAnchorNode(node) && !node.firstChild;
|
|
143
|
+
const setContentEditable = state => nodes => {
|
|
144
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
145
|
+
const node = nodes[i];
|
|
146
|
+
if (isEmptyNamedAnchorNode(node)) {
|
|
147
|
+
node.attr('contenteditable', state);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const setup = editor => {
|
|
152
|
+
editor.on('PreInit', () => {
|
|
153
|
+
editor.parser.addNodeFilter('a', setContentEditable('false'));
|
|
154
|
+
editor.serializer.addNodeFilter('a', setContentEditable(null));
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const registerFormats = editor => {
|
|
159
|
+
editor.formatter.register('namedAnchor', {
|
|
160
|
+
inline: 'a',
|
|
161
|
+
selector: namedAnchorSelector,
|
|
162
|
+
remove: 'all',
|
|
163
|
+
split: true,
|
|
164
|
+
deep: true,
|
|
165
|
+
attributes: { id: '%value' },
|
|
166
|
+
onmatch: (node, _fmt, _itemName) => {
|
|
167
|
+
return isNamedAnchor(node);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
const onSetupEditable = editor => api => {
|
|
173
|
+
const nodeChanged = () => {
|
|
174
|
+
api.setEnabled(editor.selection.isEditable());
|
|
175
|
+
};
|
|
176
|
+
editor.on('NodeChange', nodeChanged);
|
|
177
|
+
nodeChanged();
|
|
178
|
+
return () => {
|
|
179
|
+
editor.off('NodeChange', nodeChanged);
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
const register = editor => {
|
|
183
|
+
const onAction = () => editor.execCommand('mceAnchor');
|
|
184
|
+
editor.ui.registry.addToggleButton('anchor', {
|
|
185
|
+
icon: 'bookmark',
|
|
186
|
+
tooltip: 'Anchor',
|
|
187
|
+
onAction,
|
|
188
|
+
onSetup: buttonApi => {
|
|
189
|
+
const unbindSelectorChanged = editor.selection.selectorChangedWithUnbind('a:not([href])', buttonApi.setActive).unbind;
|
|
190
|
+
const unbindEditableChanged = onSetupEditable(editor)(buttonApi);
|
|
191
|
+
return () => {
|
|
192
|
+
unbindSelectorChanged();
|
|
193
|
+
unbindEditableChanged();
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
editor.ui.registry.addMenuItem('anchor', {
|
|
198
|
+
icon: 'bookmark',
|
|
199
|
+
text: 'Anchor...',
|
|
200
|
+
onAction,
|
|
201
|
+
onSetup: onSetupEditable(editor)
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
var Plugin = () => {
|
|
206
|
+
global$2.add('anchor', editor => {
|
|
207
|
+
register$2(editor);
|
|
208
|
+
setup(editor);
|
|
209
|
+
register$1(editor);
|
|
210
|
+
register(editor);
|
|
211
|
+
editor.on('PreInit', () => {
|
|
212
|
+
registerFormats(editor);
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
Plugin();
|
|
218
|
+
|
|
219
|
+
})();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* TinyMCE
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
|
5
|
+
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
|
6
|
+
*
|
|
7
|
+
* Version: 6.5.1
|
|
8
|
+
*/
|
|
9
|
+
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),o=tinymce.util.Tools.resolve("tinymce.util.Tools");const n=("allow_html_in_named_anchor",e=>e.options.get("allow_html_in_named_anchor"));const a="a:not([href])",r=e=>!e,i=e=>e.getAttribute("id")||e.getAttribute("name")||"",l=e=>(e=>"a"===e.nodeName.toLowerCase())(e)&&!e.getAttribute("href")&&""!==i(e),s=e=>e.dom.getParent(e.selection.getStart(),a),d=(e,a)=>{const r=s(e);r?((e,t,o)=>{o.removeAttribute("name"),o.id=t,e.addVisual(),e.undoManager.add()})(e,a,r):((e,a)=>{e.undoManager.transact((()=>{n(e)||e.selection.collapse(!0),e.selection.isCollapsed()?e.insertContent(e.dom.createHTML("a",{id:a})):((e=>{const n=e.dom;t(n).walk(e.selection.getRng(),(e=>{o.each(e,(e=>{var t;l(t=e)&&!t.firstChild&&n.remove(e,!1)}))}))})(e),e.formatter.remove("namedAnchor",void 0,void 0,!0),e.formatter.apply("namedAnchor",{value:a}),e.addVisual())}))})(e,a),e.focus()},c=e=>(e=>r(e.attr("href"))&&!r(e.attr("id")||e.attr("name")))(e)&&!e.firstChild,m=e=>t=>{for(let o=0;o<t.length;o++){const n=t[o];c(n)&&n.attr("contenteditable",e)}},u=e=>t=>{const o=()=>{t.setEnabled(e.selection.isEditable())};return e.on("NodeChange",o),o(),()=>{e.off("NodeChange",o)}};e.add("anchor",(e=>{(e=>{(0,e.options.register)("allow_html_in_named_anchor",{processor:"boolean",default:!1})})(e),(e=>{e.on("PreInit",(()=>{e.parser.addNodeFilter("a",m("false")),e.serializer.addNodeFilter("a",m(null))}))})(e),(e=>{e.addCommand("mceAnchor",(()=>{(e=>{const t=(e=>{const t=s(e);return t?i(t):""})(e);e.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:t=>{((e,t)=>/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(t)?(d(e,t),!0):(e.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1))(e,t.getData().id)&&t.close()}})})(e)}))})(e),(e=>{const t=()=>e.execCommand("mceAnchor");e.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:t,onSetup:t=>{const o=e.selection.selectorChangedWithUnbind("a:not([href])",t.setActive).unbind,n=u(e)(t);return()=>{o(),n()}}}),e.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:t,onSetup:u(e)})})(e),e.on("PreInit",(()=>{(e=>{e.formatter.register("namedAnchor",{inline:"a",selector:a,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:(e,t,o)=>l(e)})})(e)}))}))}();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* TinyMCE
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
|
5
|
+
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
|
6
|
+
*/
|
|
7
|
+
// Exports the "autolink" plugin for usage with module loaders
|
|
8
|
+
// Usage:
|
|
9
|
+
// CommonJS:
|
|
10
|
+
// require('tinymce/plugins/autolink')
|
|
11
|
+
// ES2015:
|
|
12
|
+
// import 'tinymce/plugins/autolink'
|
|
13
|
+
require('./plugin.js');
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* TinyMCE
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
|
5
|
+
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
|
6
|
+
*
|
|
7
|
+
* Version: 6.5.1
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
(function () {
|
|
11
|
+
'use strict';
|
|
12
|
+
|
|
13
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
14
|
+
|
|
15
|
+
const link = () => /(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g;
|
|
16
|
+
|
|
17
|
+
const option = name => editor => editor.options.get(name);
|
|
18
|
+
const register = editor => {
|
|
19
|
+
const registerOption = editor.options.register;
|
|
20
|
+
registerOption('autolink_pattern', {
|
|
21
|
+
processor: 'regexp',
|
|
22
|
+
default: new RegExp('^' + link().source + '$', 'i')
|
|
23
|
+
});
|
|
24
|
+
registerOption('link_default_target', { processor: 'string' });
|
|
25
|
+
registerOption('link_default_protocol', {
|
|
26
|
+
processor: 'string',
|
|
27
|
+
default: 'https'
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
const getAutoLinkPattern = option('autolink_pattern');
|
|
31
|
+
const getDefaultLinkTarget = option('link_default_target');
|
|
32
|
+
const getDefaultLinkProtocol = option('link_default_protocol');
|
|
33
|
+
const allowUnsafeLinkTarget = option('allow_unsafe_link_target');
|
|
34
|
+
|
|
35
|
+
const hasProto = (v, constructor, predicate) => {
|
|
36
|
+
var _a;
|
|
37
|
+
if (predicate(v, constructor.prototype)) {
|
|
38
|
+
return true;
|
|
39
|
+
} else {
|
|
40
|
+
return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const typeOf = x => {
|
|
44
|
+
const t = typeof x;
|
|
45
|
+
if (x === null) {
|
|
46
|
+
return 'null';
|
|
47
|
+
} else if (t === 'object' && Array.isArray(x)) {
|
|
48
|
+
return 'array';
|
|
49
|
+
} else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
|
|
50
|
+
return 'string';
|
|
51
|
+
} else {
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const isType = type => value => typeOf(value) === type;
|
|
56
|
+
const eq = t => a => t === a;
|
|
57
|
+
const isString = isType('string');
|
|
58
|
+
const isUndefined = eq(undefined);
|
|
59
|
+
const isNullable = a => a === null || a === undefined;
|
|
60
|
+
const isNonNullable = a => !isNullable(a);
|
|
61
|
+
|
|
62
|
+
const not = f => t => !f(t);
|
|
63
|
+
|
|
64
|
+
const hasOwnProperty = Object.hasOwnProperty;
|
|
65
|
+
const has = (obj, key) => hasOwnProperty.call(obj, key);
|
|
66
|
+
|
|
67
|
+
const checkRange = (str, substr, start) => substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
|
|
68
|
+
const contains = (str, substr, start = 0, end) => {
|
|
69
|
+
const idx = str.indexOf(substr, start);
|
|
70
|
+
if (idx !== -1) {
|
|
71
|
+
return isUndefined(end) ? true : idx + substr.length <= end;
|
|
72
|
+
} else {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const startsWith = (str, prefix) => {
|
|
77
|
+
return checkRange(str, prefix, 0);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const zeroWidth = '\uFEFF';
|
|
81
|
+
const isZwsp = char => char === zeroWidth;
|
|
82
|
+
const removeZwsp = s => s.replace(/\uFEFF/g, '');
|
|
83
|
+
|
|
84
|
+
var global = tinymce.util.Tools.resolve('tinymce.dom.TextSeeker');
|
|
85
|
+
|
|
86
|
+
const isTextNode = node => node.nodeType === 3;
|
|
87
|
+
const isElement = node => node.nodeType === 1;
|
|
88
|
+
const isBracketOrSpace = char => /^[(\[{ \u00a0]$/.test(char);
|
|
89
|
+
const hasProtocol = url => /^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(url);
|
|
90
|
+
const isPunctuation = char => /[?!,.;:]/.test(char);
|
|
91
|
+
const findChar = (text, index, predicate) => {
|
|
92
|
+
for (let i = index - 1; i >= 0; i--) {
|
|
93
|
+
const char = text.charAt(i);
|
|
94
|
+
if (!isZwsp(char) && predicate(char)) {
|
|
95
|
+
return i;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return -1;
|
|
99
|
+
};
|
|
100
|
+
const freefallRtl = (container, offset) => {
|
|
101
|
+
let tempNode = container;
|
|
102
|
+
let tempOffset = offset;
|
|
103
|
+
while (isElement(tempNode) && tempNode.childNodes[tempOffset]) {
|
|
104
|
+
tempNode = tempNode.childNodes[tempOffset];
|
|
105
|
+
tempOffset = isTextNode(tempNode) ? tempNode.data.length : tempNode.childNodes.length;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
container: tempNode,
|
|
109
|
+
offset: tempOffset
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const parseCurrentLine = (editor, offset) => {
|
|
114
|
+
var _a;
|
|
115
|
+
const voidElements = editor.schema.getVoidElements();
|
|
116
|
+
const autoLinkPattern = getAutoLinkPattern(editor);
|
|
117
|
+
const {dom, selection} = editor;
|
|
118
|
+
if (dom.getParent(selection.getNode(), 'a[href]') !== null) {
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
const rng = selection.getRng();
|
|
122
|
+
const textSeeker = global(dom, node => {
|
|
123
|
+
return dom.isBlock(node) || has(voidElements, node.nodeName.toLowerCase()) || dom.getContentEditable(node) === 'false';
|
|
124
|
+
});
|
|
125
|
+
const {
|
|
126
|
+
container: endContainer,
|
|
127
|
+
offset: endOffset
|
|
128
|
+
} = freefallRtl(rng.endContainer, rng.endOffset);
|
|
129
|
+
const root = (_a = dom.getParent(endContainer, dom.isBlock)) !== null && _a !== void 0 ? _a : dom.getRoot();
|
|
130
|
+
const endSpot = textSeeker.backwards(endContainer, endOffset + offset, (node, offset) => {
|
|
131
|
+
const text = node.data;
|
|
132
|
+
const idx = findChar(text, offset, not(isBracketOrSpace));
|
|
133
|
+
return idx === -1 || isPunctuation(text[idx]) ? idx : idx + 1;
|
|
134
|
+
}, root);
|
|
135
|
+
if (!endSpot) {
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
let lastTextNode = endSpot.container;
|
|
139
|
+
const startSpot = textSeeker.backwards(endSpot.container, endSpot.offset, (node, offset) => {
|
|
140
|
+
lastTextNode = node;
|
|
141
|
+
const idx = findChar(node.data, offset, isBracketOrSpace);
|
|
142
|
+
return idx === -1 ? idx : idx + 1;
|
|
143
|
+
}, root);
|
|
144
|
+
const newRng = dom.createRng();
|
|
145
|
+
if (!startSpot) {
|
|
146
|
+
newRng.setStart(lastTextNode, 0);
|
|
147
|
+
} else {
|
|
148
|
+
newRng.setStart(startSpot.container, startSpot.offset);
|
|
149
|
+
}
|
|
150
|
+
newRng.setEnd(endSpot.container, endSpot.offset);
|
|
151
|
+
const rngText = removeZwsp(newRng.toString());
|
|
152
|
+
const matches = rngText.match(autoLinkPattern);
|
|
153
|
+
if (matches) {
|
|
154
|
+
let url = matches[0];
|
|
155
|
+
if (startsWith(url, 'www.')) {
|
|
156
|
+
const protocol = getDefaultLinkProtocol(editor);
|
|
157
|
+
url = protocol + '://' + url;
|
|
158
|
+
} else if (contains(url, '@') && !hasProtocol(url)) {
|
|
159
|
+
url = 'mailto:' + url;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
rng: newRng,
|
|
163
|
+
url
|
|
164
|
+
};
|
|
165
|
+
} else {
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
const convertToLink = (editor, result) => {
|
|
170
|
+
const {dom, selection} = editor;
|
|
171
|
+
const {rng, url} = result;
|
|
172
|
+
const bookmark = selection.getBookmark();
|
|
173
|
+
selection.setRng(rng);
|
|
174
|
+
const command = 'createlink';
|
|
175
|
+
const args = {
|
|
176
|
+
command,
|
|
177
|
+
ui: false,
|
|
178
|
+
value: url
|
|
179
|
+
};
|
|
180
|
+
const beforeExecEvent = editor.dispatch('BeforeExecCommand', args);
|
|
181
|
+
if (!beforeExecEvent.isDefaultPrevented()) {
|
|
182
|
+
editor.getDoc().execCommand(command, false, url);
|
|
183
|
+
editor.dispatch('ExecCommand', args);
|
|
184
|
+
const defaultLinkTarget = getDefaultLinkTarget(editor);
|
|
185
|
+
if (isString(defaultLinkTarget)) {
|
|
186
|
+
const anchor = selection.getNode();
|
|
187
|
+
dom.setAttrib(anchor, 'target', defaultLinkTarget);
|
|
188
|
+
if (defaultLinkTarget === '_blank' && !allowUnsafeLinkTarget(editor)) {
|
|
189
|
+
dom.setAttrib(anchor, 'rel', 'noopener');
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
selection.moveToBookmark(bookmark);
|
|
194
|
+
editor.nodeChanged();
|
|
195
|
+
};
|
|
196
|
+
const handleSpacebar = editor => {
|
|
197
|
+
const result = parseCurrentLine(editor, -1);
|
|
198
|
+
if (isNonNullable(result)) {
|
|
199
|
+
convertToLink(editor, result);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
const handleBracket = handleSpacebar;
|
|
203
|
+
const handleEnter = editor => {
|
|
204
|
+
const result = parseCurrentLine(editor, 0);
|
|
205
|
+
if (isNonNullable(result)) {
|
|
206
|
+
convertToLink(editor, result);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const setup = editor => {
|
|
210
|
+
editor.on('keydown', e => {
|
|
211
|
+
if (e.keyCode === 13 && !e.isDefaultPrevented()) {
|
|
212
|
+
handleEnter(editor);
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
editor.on('keyup', e => {
|
|
216
|
+
if (e.keyCode === 32) {
|
|
217
|
+
handleSpacebar(editor);
|
|
218
|
+
} else if (e.keyCode === 48 && e.shiftKey || e.keyCode === 221) {
|
|
219
|
+
handleBracket(editor);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
var Plugin = () => {
|
|
225
|
+
global$1.add('autolink', editor => {
|
|
226
|
+
register(editor);
|
|
227
|
+
setup(editor);
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
Plugin();
|
|
232
|
+
|
|
233
|
+
})();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* TinyMCE
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
|
5
|
+
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
|
6
|
+
*
|
|
7
|
+
* Version: 6.5.1
|
|
8
|
+
*/
|
|
9
|
+
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>t=>t.options.get(e),n=t("autolink_pattern"),o=t("link_default_target"),r=t("link_default_protocol"),a=t("allow_unsafe_link_target"),s=("string",e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(a=o.constructor)||void 0===a?void 0:a.name)===r.name)?"string":t;var n,o,r,a})(e));const l=(void 0,e=>undefined===e);const i=e=>!(e=>null==e)(e),c=Object.hasOwnProperty,d=e=>"\ufeff"===e;var u=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const f=e=>/^[(\[{ \u00a0]$/.test(e),g=(e,t,n)=>{for(let o=t-1;o>=0;o--){const t=e.charAt(o);if(!d(t)&&n(t))return o}return-1},m=(e,t)=>{var o;const a=e.schema.getVoidElements(),s=n(e),{dom:i,selection:d}=e;if(null!==i.getParent(d.getNode(),"a[href]"))return null;const m=d.getRng(),k=u(i,(e=>{return i.isBlock(e)||(t=a,n=e.nodeName.toLowerCase(),c.call(t,n))||"false"===i.getContentEditable(e);var t,n})),{container:p,offset:y}=((e,t)=>{let n=e,o=t;for(;1===n.nodeType&&n.childNodes[o];)n=n.childNodes[o],o=3===n.nodeType?n.data.length:n.childNodes.length;return{container:n,offset:o}})(m.endContainer,m.endOffset),w=null!==(o=i.getParent(p,i.isBlock))&&void 0!==o?o:i.getRoot(),h=k.backwards(p,y+t,((e,t)=>{const n=e.data,o=g(n,t,(r=f,e=>!r(e)));var r,a;return-1===o||(a=n[o],/[?!,.;:]/.test(a))?o:o+1}),w);if(!h)return null;let v=h.container;const _=k.backwards(h.container,h.offset,((e,t)=>{v=e;const n=g(e.data,t,f);return-1===n?n:n+1}),w),A=i.createRng();_?A.setStart(_.container,_.offset):A.setStart(v,0),A.setEnd(h.container,h.offset);const C=A.toString().replace(/\uFEFF/g,"").match(s);if(C){let t=C[0];return $="www.",(b=t).length>=4&&b.substr(0,4)===$?t=r(e)+"://"+t:((e,t,n=0,o)=>{const r=e.indexOf(t,n);return-1!==r&&(!!l(o)||r+t.length<=o)})(t,"@")&&!(e=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(e))(t)&&(t="mailto:"+t),{rng:A,url:t}}var b,$;return null},k=(e,t)=>{const{dom:n,selection:r}=e,{rng:l,url:i}=t,c=r.getBookmark();r.setRng(l);const d="createlink",u={command:d,ui:!1,value:i};if(!e.dispatch("BeforeExecCommand",u).isDefaultPrevented()){e.getDoc().execCommand(d,!1,i),e.dispatch("ExecCommand",u);const t=o(e);if(s(t)){const o=r.getNode();n.setAttrib(o,"target",t),"_blank"!==t||a(e)||n.setAttrib(o,"rel","noopener")}}r.moveToBookmark(c),e.nodeChanged()},p=e=>{const t=m(e,-1);i(t)&&k(e,t)},y=p;e.add("autolink",(e=>{(e=>{const t=e.options.register;t("autolink_pattern",{processor:"regexp",default:new RegExp("^"+/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g.source+"$","i")}),t("link_default_target",{processor:"string"}),t("link_default_protocol",{processor:"string",default:"https"})})(e),(e=>{e.on("keydown",(t=>{13!==t.keyCode||t.isDefaultPrevented()||(e=>{const t=m(e,0);i(t)&&k(e,t)})(e)})),e.on("keyup",(t=>{32===t.keyCode?p(e):(48===t.keyCode&&t.shiftKey||221===t.keyCode)&&y(e)}))})(e)}))}();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* TinyMCE
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
|
5
|
+
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
|
6
|
+
*/
|
|
7
|
+
// Exports the "autoresize" plugin for usage with module loaders
|
|
8
|
+
// Usage:
|
|
9
|
+
// CommonJS:
|
|
10
|
+
// require('tinymce/plugins/autoresize')
|
|
11
|
+
// ES2015:
|
|
12
|
+
// import 'tinymce/plugins/autoresize'
|
|
13
|
+
require('./plugin.js');
|