argous 1.2.201 → 1.2.203
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/dist/components/ConfirmModal/ModalProvider.d.ts +1 -1
- package/dist/components/DropArea/DropArea.js +2 -7
- package/dist/components/Editor/components/Editor.d.ts +4 -4
- package/dist/components/Editor/components/Editor.js +3 -3
- package/dist/components/Editor/skins/content/dark/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/dark/content.js +3 -0
- package/dist/components/Editor/skins/content/default/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/default/content.js +3 -0
- package/dist/components/Editor/skins/content/document/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/document/content.js +3 -0
- package/dist/components/Editor/skins/content/tinymce-5/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/tinymce-5/content.js +3 -0
- package/dist/components/Editor/skins/content/tinymce-5-dark/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/tinymce-5-dark/content.js +3 -0
- package/dist/components/Editor/skins/content/writer/content.d.ts +0 -0
- package/dist/components/Editor/skins/content/writer/content.js +3 -0
- package/dist/components/Editor/skins/ui/oxide/content.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide/content.inline.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide/content.inline.js +3 -0
- package/dist/components/Editor/skins/ui/oxide/content.js +3 -0
- package/dist/components/Editor/skins/ui/oxide/skin.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide/skin.js +3 -0
- package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.js +3 -0
- package/dist/components/Editor/skins/ui/oxide-dark/content.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide-dark/content.inline.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide-dark/content.inline.js +3 -0
- package/dist/components/Editor/skins/ui/oxide-dark/content.js +3 -0
- package/dist/components/Editor/skins/ui/oxide-dark/skin.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide-dark/skin.js +3 -0
- package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
- package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5/content.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5/content.inline.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5/content.inline.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5/content.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5/skin.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5/skin.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.js +3 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.d.ts +0 -0
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +3 -0
- package/dist/components/Editor/tinymce/tinymce.d.ts +1722 -1447
- package/lib/components/DropArea/DropArea.js +9 -10
- package/lib/components/Editor/components/Editor.tsx +8 -8
- package/lib/components/Editor/skins/content/dark/content.js +2 -0
- package/lib/components/Editor/skins/content/dark/content.min.css +1 -8
- package/lib/components/Editor/skins/content/default/content.js +2 -0
- package/lib/components/Editor/skins/content/default/content.min.css +0 -7
- package/lib/components/Editor/skins/content/document/content.js +2 -0
- package/lib/components/Editor/skins/content/document/content.min.css +0 -7
- package/lib/components/Editor/skins/content/tinymce-5/content.js +2 -0
- package/lib/components/Editor/skins/content/tinymce-5/content.min.css +1 -0
- package/lib/components/Editor/skins/content/tinymce-5-dark/content.js +2 -0
- package/lib/components/Editor/skins/content/tinymce-5-dark/content.min.css +1 -0
- package/lib/components/Editor/skins/content/writer/content.js +2 -0
- package/lib/components/Editor/skins/content/writer/content.min.css +0 -7
- package/lib/components/Editor/skins/ui/oxide/content.inline.js +2 -0
- package/lib/components/Editor/skins/ui/oxide/content.inline.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide/content.js +2 -0
- package/lib/components/Editor/skins/ui/oxide/content.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide/skin.js +2 -0
- package/lib/components/Editor/skins/ui/oxide/skin.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.js +2 -0
- package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide-dark/content.inline.js +2 -0
- package/lib/components/Editor/skins/ui/oxide-dark/content.inline.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide-dark/content.js +2 -0
- package/lib/components/Editor/skins/ui/oxide-dark/content.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide-dark/skin.js +2 -0
- package/lib/components/Editor/skins/ui/oxide-dark/skin.min.css +1 -0
- package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
- package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5/content.inline.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5/content.inline.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5/content.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5/content.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5/skin.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5/skin.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/content.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/content.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +1 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
- package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
- package/lib/components/Editor/tinymce/README.md +24 -14
- package/lib/components/Editor/tinymce/icons/default/icons.js +185 -163
- package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -1
- package/lib/components/Editor/tinymce/langs/README.md +1 -1
- package/lib/components/Editor/tinymce/license.txt +21 -504
- package/lib/components/Editor/tinymce/models/dom/model.js +8040 -0
- package/lib/components/Editor/tinymce/models/dom/model.min.js +4 -0
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.js +1054 -0
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +4 -0
- package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +187 -208
- package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +82 -84
- package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +210 -167
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +118 -97
- package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +129 -108
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +285 -333
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/code/plugin.js +19 -26
- package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2225 -2094
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +318 -243
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -9424
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +1 -9423
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +406 -416
- package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +821 -604
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
- package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
- package/lib/components/Editor/tinymce/plugins/help/plugin.js +428 -403
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/image/plugin.js +887 -1043
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +163 -162
- package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +101 -91
- package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/link/plugin.js +739 -784
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/lists/plugin.js +1282 -1396
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/media/plugin.js +641 -806
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +76 -54
- package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +58 -46
- package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/preview/plugin.js +39 -69
- package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +307 -349
- package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/save/plugin.js +50 -51
- package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +517 -587
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +2666 -10142
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/template/plugin.js +403 -413
- package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +42 -48
- package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +352 -333
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +184 -195
- package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +2 -7
- package/lib/components/Editor/tinymce/skins/content/dark/content.css +2 -8
- package/lib/components/Editor/tinymce/skins/content/dark/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +2 -8
- package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/content/default/content.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/default/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/content/document/content.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/document/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.min.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -1
- package/lib/components/Editor/{skins/content/default → tinymce/skins/content/tinymce-5}/content.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css.map +1 -0
- package/lib/components/Editor/{skins/content/dark → tinymce/skins/content/tinymce-5-dark}/content.css +1 -7
- package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/writer/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +0 -6
- package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +74 -21
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +74 -21
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +1131 -402
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +8 -15
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +72 -20
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +74 -21
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +1155 -423
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +8 -15
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -1
- package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.css +75 -22
- package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.inline.css +75 -22
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.css +1261 -438
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.shadowdom.css +8 -15
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.css +73 -21
- package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.inline.css +75 -22
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.css +1244 -421
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css.map +1 -0
- package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.shadowdom.css +8 -15
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +2 -0
- package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/tinymce/themes/silver/theme.js +23228 -24955
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +2 -7
- package/lib/components/Editor/tinymce/tinymce.d.ts +1722 -1447
- package/lib/components/Editor/tinymce/tinymce.js +23668 -22018
- package/lib/components/Editor/tinymce/tinymce.min.js +2 -30104
- package/package.json +1 -1
- package/lib/components/Editor/skins/content/dark/content.min.css.map +0 -1
- package/lib/components/Editor/skins/content/default/content.min.css.map +0 -1
- package/lib/components/Editor/skins/content/document/content.css +0 -72
- package/lib/components/Editor/skins/content/document/content.min.css.map +0 -1
- package/lib/components/Editor/skins/content/writer/content.css +0 -68
- package/lib/components/Editor/skins/content/writer/content.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/content.inline.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/content.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/content.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/content.mobile.css +0 -29
- package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/dark/skin.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/skin.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/skin.mobile.css +0 -673
- package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +0 -8
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/content.inline.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/content.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/content.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/content.mobile.css +0 -29
- package/lib/components/Editor/skins/ui/default/content.mobile.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/default/skin.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/skin.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/skin.mobile.css +0 -673
- package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +0 -8
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +0 -1
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +0 -1641
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +0 -8
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +0 -1
- package/lib/components/Editor/tinymce/jquery.tinymce.min.js +0 -92
- package/lib/components/Editor/tinymce/langs/pt_BR.js +0 -419
- package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -99
- package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.js +0 -22
- package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.js +0 -22
- package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -544
- package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/hr/plugin.js +0 -46
- package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1354
- package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -199
- package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -117
- package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/paste/plugin.js +0 -1764
- package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/print/plugin.js +0 -53
- package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -731
- package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -129
- package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/textcolor/plugin.js +0 -22
- package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1394
- package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/plugins/toc/plugin.js +0 -236
- package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +0 -9
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +0 -29
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +0 -8
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +0 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +0 -673
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -8
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +0 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -8
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +0 -1
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +0 -1
- package/lib/components/Editor/tinymce/themes/mobile/theme.js +0 -13587
- package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +0 -9
|
@@ -1,44 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Licensed under the LGPL or a commercial license.
|
|
4
|
-
* For LGPL see License.txt in the project root for license information.
|
|
5
|
-
* For commercial licenses see https://www.tiny.cloud/
|
|
6
|
-
*
|
|
7
|
-
* Version: 5.9.0 (TBD)
|
|
2
|
+
* TinyMCE version 6.8.2 (2023-12-11)
|
|
8
3
|
*/
|
|
4
|
+
|
|
9
5
|
(function () {
|
|
10
6
|
'use strict';
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
const Cell = initial => {
|
|
9
|
+
let value = initial;
|
|
10
|
+
const get = () => {
|
|
15
11
|
return value;
|
|
16
12
|
};
|
|
17
|
-
|
|
13
|
+
const set = v => {
|
|
18
14
|
value = v;
|
|
19
15
|
};
|
|
20
16
|
return {
|
|
21
|
-
get
|
|
22
|
-
set
|
|
17
|
+
get,
|
|
18
|
+
set
|
|
23
19
|
};
|
|
24
20
|
};
|
|
25
21
|
|
|
26
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
22
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
23
|
+
|
|
24
|
+
let unique = 0;
|
|
25
|
+
const generate = prefix => {
|
|
26
|
+
const date = new Date();
|
|
27
|
+
const time = date.getTime();
|
|
28
|
+
const random = Math.floor(Math.random() * 1000000000);
|
|
29
|
+
unique++;
|
|
30
|
+
return prefix + '_' + random + unique + String(time);
|
|
31
|
+
};
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
33
|
+
const get$1 = customTabs => {
|
|
34
|
+
const addTab = spec => {
|
|
35
|
+
var _a;
|
|
36
|
+
const name = (_a = spec.name) !== null && _a !== void 0 ? _a : generate('tab-name');
|
|
37
|
+
const currentCustomTabs = customTabs.get();
|
|
38
|
+
currentCustomTabs[name] = spec;
|
|
32
39
|
customTabs.set(currentCustomTabs);
|
|
33
40
|
};
|
|
34
|
-
return { addTab
|
|
41
|
+
return { addTab };
|
|
35
42
|
};
|
|
36
43
|
|
|
37
|
-
|
|
44
|
+
const register$2 = (editor, dialogOpener) => {
|
|
38
45
|
editor.addCommand('mceHelp', dialogOpener);
|
|
39
46
|
};
|
|
40
47
|
|
|
41
|
-
|
|
48
|
+
const option = name => editor => editor.options.get(name);
|
|
49
|
+
const register$1 = editor => {
|
|
50
|
+
const registerOption = editor.options.register;
|
|
51
|
+
registerOption('help_tabs', { processor: 'array' });
|
|
52
|
+
};
|
|
53
|
+
const getHelpTabs = option('help_tabs');
|
|
54
|
+
const getForcedPlugins = option('forced_plugins');
|
|
55
|
+
|
|
56
|
+
const register = (editor, dialogOpener) => {
|
|
42
57
|
editor.ui.registry.addButton('help', {
|
|
43
58
|
icon: 'help',
|
|
44
59
|
tooltip: 'Help',
|
|
@@ -52,164 +67,161 @@
|
|
|
52
67
|
});
|
|
53
68
|
};
|
|
54
69
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
const hasProto = (v, constructor, predicate) => {
|
|
71
|
+
var _a;
|
|
72
|
+
if (predicate(v, constructor.prototype)) {
|
|
73
|
+
return true;
|
|
74
|
+
} else {
|
|
75
|
+
return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const typeOf = x => {
|
|
79
|
+
const t = typeof x;
|
|
80
|
+
if (x === null) {
|
|
81
|
+
return 'null';
|
|
82
|
+
} else if (t === 'object' && Array.isArray(x)) {
|
|
83
|
+
return 'array';
|
|
84
|
+
} else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
|
|
85
|
+
return 'string';
|
|
86
|
+
} else {
|
|
63
87
|
return t;
|
|
64
|
-
}
|
|
65
|
-
return __assign.apply(this, arguments);
|
|
88
|
+
}
|
|
66
89
|
};
|
|
90
|
+
const isType = type => value => typeOf(value) === type;
|
|
91
|
+
const isSimpleType = type => value => typeof value === type;
|
|
92
|
+
const eq = t => a => t === a;
|
|
93
|
+
const isString = isType('string');
|
|
94
|
+
const isUndefined = eq(undefined);
|
|
95
|
+
const isNullable = a => a === null || a === undefined;
|
|
96
|
+
const isNonNullable = a => !isNullable(a);
|
|
97
|
+
const isFunction = isSimpleType('function');
|
|
67
98
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
var constant = function (value) {
|
|
71
|
-
return function () {
|
|
99
|
+
const constant = value => {
|
|
100
|
+
return () => {
|
|
72
101
|
return value;
|
|
73
102
|
};
|
|
74
103
|
};
|
|
75
|
-
|
|
76
|
-
var always = constant(true);
|
|
104
|
+
const never = constant(false);
|
|
77
105
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return
|
|
94
|
-
},
|
|
95
|
-
is: never,
|
|
96
|
-
isSome: never,
|
|
97
|
-
isNone: always,
|
|
98
|
-
getOr: id,
|
|
99
|
-
getOrThunk: call,
|
|
100
|
-
getOrDie: function (msg) {
|
|
101
|
-
throw new Error(msg || 'error: getOrDie called on none.');
|
|
102
|
-
},
|
|
103
|
-
getOrNull: constant(null),
|
|
104
|
-
getOrUndefined: constant(undefined),
|
|
105
|
-
or: id,
|
|
106
|
-
orThunk: call,
|
|
107
|
-
map: none,
|
|
108
|
-
each: noop,
|
|
109
|
-
bind: none,
|
|
110
|
-
exists: never,
|
|
111
|
-
forall: always,
|
|
112
|
-
filter: none,
|
|
113
|
-
equals: eq,
|
|
114
|
-
equals_: eq,
|
|
115
|
-
toArray: function () {
|
|
116
|
-
return [];
|
|
117
|
-
},
|
|
118
|
-
toString: constant('none()')
|
|
119
|
-
};
|
|
120
|
-
return me;
|
|
121
|
-
}();
|
|
122
|
-
var some = function (a) {
|
|
123
|
-
var constant_a = constant(a);
|
|
124
|
-
var self = function () {
|
|
125
|
-
return me;
|
|
126
|
-
};
|
|
127
|
-
var bind = function (f) {
|
|
128
|
-
return f(a);
|
|
129
|
-
};
|
|
130
|
-
var me = {
|
|
131
|
-
fold: function (n, s) {
|
|
132
|
-
return s(a);
|
|
133
|
-
},
|
|
134
|
-
is: function (v) {
|
|
135
|
-
return a === v;
|
|
136
|
-
},
|
|
137
|
-
isSome: always,
|
|
138
|
-
isNone: never,
|
|
139
|
-
getOr: constant_a,
|
|
140
|
-
getOrThunk: constant_a,
|
|
141
|
-
getOrDie: constant_a,
|
|
142
|
-
getOrNull: constant_a,
|
|
143
|
-
getOrUndefined: constant_a,
|
|
144
|
-
or: self,
|
|
145
|
-
orThunk: self,
|
|
146
|
-
map: function (f) {
|
|
147
|
-
return some(f(a));
|
|
148
|
-
},
|
|
149
|
-
each: function (f) {
|
|
150
|
-
f(a);
|
|
151
|
-
},
|
|
152
|
-
bind: bind,
|
|
153
|
-
exists: bind,
|
|
154
|
-
forall: bind,
|
|
155
|
-
filter: function (f) {
|
|
156
|
-
return f(a) ? me : NONE;
|
|
157
|
-
},
|
|
158
|
-
toArray: function () {
|
|
159
|
-
return [a];
|
|
160
|
-
},
|
|
161
|
-
toString: function () {
|
|
162
|
-
return 'some(' + a + ')';
|
|
163
|
-
},
|
|
164
|
-
equals: function (o) {
|
|
165
|
-
return o.is(a);
|
|
166
|
-
},
|
|
167
|
-
equals_: function (o, elementEq) {
|
|
168
|
-
return o.fold(never, function (b) {
|
|
169
|
-
return elementEq(a, b);
|
|
170
|
-
});
|
|
106
|
+
class Optional {
|
|
107
|
+
constructor(tag, value) {
|
|
108
|
+
this.tag = tag;
|
|
109
|
+
this.value = value;
|
|
110
|
+
}
|
|
111
|
+
static some(value) {
|
|
112
|
+
return new Optional(true, value);
|
|
113
|
+
}
|
|
114
|
+
static none() {
|
|
115
|
+
return Optional.singletonNone;
|
|
116
|
+
}
|
|
117
|
+
fold(onNone, onSome) {
|
|
118
|
+
if (this.tag) {
|
|
119
|
+
return onSome(this.value);
|
|
120
|
+
} else {
|
|
121
|
+
return onNone();
|
|
171
122
|
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
123
|
+
}
|
|
124
|
+
isSome() {
|
|
125
|
+
return this.tag;
|
|
126
|
+
}
|
|
127
|
+
isNone() {
|
|
128
|
+
return !this.tag;
|
|
129
|
+
}
|
|
130
|
+
map(mapper) {
|
|
131
|
+
if (this.tag) {
|
|
132
|
+
return Optional.some(mapper(this.value));
|
|
133
|
+
} else {
|
|
134
|
+
return Optional.none();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
bind(binder) {
|
|
138
|
+
if (this.tag) {
|
|
139
|
+
return binder(this.value);
|
|
140
|
+
} else {
|
|
141
|
+
return Optional.none();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exists(predicate) {
|
|
145
|
+
return this.tag && predicate(this.value);
|
|
146
|
+
}
|
|
147
|
+
forall(predicate) {
|
|
148
|
+
return !this.tag || predicate(this.value);
|
|
149
|
+
}
|
|
150
|
+
filter(predicate) {
|
|
151
|
+
if (!this.tag || predicate(this.value)) {
|
|
152
|
+
return this;
|
|
153
|
+
} else {
|
|
154
|
+
return Optional.none();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
getOr(replacement) {
|
|
158
|
+
return this.tag ? this.value : replacement;
|
|
159
|
+
}
|
|
160
|
+
or(replacement) {
|
|
161
|
+
return this.tag ? this : replacement;
|
|
162
|
+
}
|
|
163
|
+
getOrThunk(thunk) {
|
|
164
|
+
return this.tag ? this.value : thunk();
|
|
165
|
+
}
|
|
166
|
+
orThunk(thunk) {
|
|
167
|
+
return this.tag ? this : thunk();
|
|
168
|
+
}
|
|
169
|
+
getOrDie(message) {
|
|
170
|
+
if (!this.tag) {
|
|
171
|
+
throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
|
|
172
|
+
} else {
|
|
173
|
+
return this.value;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
static from(value) {
|
|
177
|
+
return isNonNullable(value) ? Optional.some(value) : Optional.none();
|
|
178
|
+
}
|
|
179
|
+
getOrNull() {
|
|
180
|
+
return this.tag ? this.value : null;
|
|
181
|
+
}
|
|
182
|
+
getOrUndefined() {
|
|
183
|
+
return this.value;
|
|
184
|
+
}
|
|
185
|
+
each(worker) {
|
|
186
|
+
if (this.tag) {
|
|
187
|
+
worker(this.value);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
toArray() {
|
|
191
|
+
return this.tag ? [this.value] : [];
|
|
192
|
+
}
|
|
193
|
+
toString() {
|
|
194
|
+
return this.tag ? `some(${ this.value })` : 'none()';
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
Optional.singletonNone = new Optional(false);
|
|
183
198
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
var r = new Array(len);
|
|
194
|
-
for (var i = 0; i < len; i++) {
|
|
195
|
-
var x = xs[i];
|
|
199
|
+
const nativeSlice = Array.prototype.slice;
|
|
200
|
+
const nativeIndexOf = Array.prototype.indexOf;
|
|
201
|
+
const rawIndexOf = (ts, t) => nativeIndexOf.call(ts, t);
|
|
202
|
+
const contains = (xs, x) => rawIndexOf(xs, x) > -1;
|
|
203
|
+
const map = (xs, f) => {
|
|
204
|
+
const len = xs.length;
|
|
205
|
+
const r = new Array(len);
|
|
206
|
+
for (let i = 0; i < len; i++) {
|
|
207
|
+
const x = xs[i];
|
|
196
208
|
r[i] = f(x, i);
|
|
197
209
|
}
|
|
198
210
|
return r;
|
|
199
211
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
for (
|
|
203
|
-
|
|
212
|
+
const filter = (xs, pred) => {
|
|
213
|
+
const r = [];
|
|
214
|
+
for (let i = 0, len = xs.length; i < len; i++) {
|
|
215
|
+
const x = xs[i];
|
|
204
216
|
if (pred(x, i)) {
|
|
205
217
|
r.push(x);
|
|
206
218
|
}
|
|
207
219
|
}
|
|
208
220
|
return r;
|
|
209
221
|
};
|
|
210
|
-
|
|
211
|
-
for (
|
|
212
|
-
|
|
222
|
+
const findUntil = (xs, pred, until) => {
|
|
223
|
+
for (let i = 0, len = xs.length; i < len; i++) {
|
|
224
|
+
const x = xs[i];
|
|
213
225
|
if (pred(x, i)) {
|
|
214
226
|
return Optional.some(x);
|
|
215
227
|
} else if (until(x, i)) {
|
|
@@ -218,43 +230,50 @@
|
|
|
218
230
|
}
|
|
219
231
|
return Optional.none();
|
|
220
232
|
};
|
|
221
|
-
|
|
233
|
+
const find = (xs, pred) => {
|
|
222
234
|
return findUntil(xs, pred, never);
|
|
223
235
|
};
|
|
236
|
+
const sort = (xs, comparator) => {
|
|
237
|
+
const copy = nativeSlice.call(xs, 0);
|
|
238
|
+
copy.sort(comparator);
|
|
239
|
+
return copy;
|
|
240
|
+
};
|
|
224
241
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
242
|
+
const keys = Object.keys;
|
|
243
|
+
const hasOwnProperty = Object.hasOwnProperty;
|
|
244
|
+
const get = (obj, key) => {
|
|
228
245
|
return has(obj, key) ? Optional.from(obj[key]) : Optional.none();
|
|
229
246
|
};
|
|
230
|
-
|
|
231
|
-
return hasOwnProperty.call(obj, key);
|
|
232
|
-
};
|
|
247
|
+
const has = (obj, key) => hasOwnProperty.call(obj, key);
|
|
233
248
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
249
|
+
const cat = arr => {
|
|
250
|
+
const r = [];
|
|
251
|
+
const push = x => {
|
|
237
252
|
r.push(x);
|
|
238
253
|
};
|
|
239
|
-
for (
|
|
254
|
+
for (let i = 0; i < arr.length; i++) {
|
|
240
255
|
arr[i].each(push);
|
|
241
256
|
}
|
|
242
257
|
return r;
|
|
243
258
|
};
|
|
244
259
|
|
|
245
|
-
var
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
260
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.Resource');
|
|
261
|
+
|
|
262
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.I18n');
|
|
263
|
+
|
|
264
|
+
const pLoadHtmlByLangCode = (baseUrl, langCode) => global$3.load(`tinymce.html-i18n.help-keynav.${ langCode }`, `${ baseUrl }/js/i18n/keynav/${ langCode }.js`);
|
|
265
|
+
const pLoadI18nHtml = baseUrl => pLoadHtmlByLangCode(baseUrl, global$2.getCode()).catch(() => pLoadHtmlByLangCode(baseUrl, 'en'));
|
|
266
|
+
const initI18nLoad = (editor, baseUrl) => {
|
|
267
|
+
editor.on('init', () => {
|
|
268
|
+
pLoadI18nHtml(baseUrl);
|
|
269
|
+
});
|
|
250
270
|
};
|
|
251
271
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
var body = {
|
|
272
|
+
const pTab = async pluginUrl => {
|
|
273
|
+
const body = {
|
|
255
274
|
type: 'htmlpanel',
|
|
256
275
|
presets: 'document',
|
|
257
|
-
html:
|
|
276
|
+
html: await pLoadI18nHtml(pluginUrl)
|
|
258
277
|
};
|
|
259
278
|
return {
|
|
260
279
|
name: 'keyboardnav',
|
|
@@ -265,28 +284,29 @@
|
|
|
265
284
|
|
|
266
285
|
var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
|
|
267
286
|
|
|
268
|
-
|
|
269
|
-
|
|
287
|
+
const convertText = source => {
|
|
288
|
+
const isMac = global$1.os.isMacOS() || global$1.os.isiOS();
|
|
289
|
+
const mac = {
|
|
270
290
|
alt: '⌥',
|
|
271
291
|
ctrl: '⌃',
|
|
272
292
|
shift: '⇧',
|
|
273
293
|
meta: '⌘',
|
|
274
294
|
access: '⌃⌥'
|
|
275
295
|
};
|
|
276
|
-
|
|
296
|
+
const other = {
|
|
277
297
|
meta: 'Ctrl ',
|
|
278
298
|
access: 'Shift + Alt '
|
|
279
299
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
300
|
+
const replace = isMac ? mac : other;
|
|
301
|
+
const shortcut = source.split('+');
|
|
302
|
+
const updated = map(shortcut, segment => {
|
|
303
|
+
const search = segment.toLowerCase().trim();
|
|
284
304
|
return has(replace, search) ? replace[search] : segment;
|
|
285
305
|
});
|
|
286
|
-
return
|
|
306
|
+
return isMac ? updated.join('').replace(/\s/, '') : updated.join('+');
|
|
287
307
|
};
|
|
288
308
|
|
|
289
|
-
|
|
309
|
+
const shortcuts = [
|
|
290
310
|
{
|
|
291
311
|
shortcuts: ['Meta + B'],
|
|
292
312
|
action: 'Bold'
|
|
@@ -392,15 +412,15 @@
|
|
|
392
412
|
}
|
|
393
413
|
];
|
|
394
414
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
415
|
+
const tab$2 = () => {
|
|
416
|
+
const shortcutList = map(shortcuts, shortcut => {
|
|
417
|
+
const shortcutText = map(shortcut.shortcuts, convertText).join(' or ');
|
|
398
418
|
return [
|
|
399
419
|
shortcut.action,
|
|
400
420
|
shortcutText
|
|
401
421
|
];
|
|
402
422
|
});
|
|
403
|
-
|
|
423
|
+
const tablePanel = {
|
|
404
424
|
type: 'table',
|
|
405
425
|
header: [
|
|
406
426
|
'Action',
|
|
@@ -415,11 +435,11 @@
|
|
|
415
435
|
};
|
|
416
436
|
};
|
|
417
437
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
438
|
+
const urls = map([
|
|
439
|
+
{
|
|
440
|
+
key: 'accordion',
|
|
441
|
+
name: 'Accordion'
|
|
442
|
+
},
|
|
423
443
|
{
|
|
424
444
|
key: 'advlist',
|
|
425
445
|
name: 'Advanced List'
|
|
@@ -440,10 +460,6 @@
|
|
|
440
460
|
key: 'autosave',
|
|
441
461
|
name: 'Autosave'
|
|
442
462
|
},
|
|
443
|
-
{
|
|
444
|
-
key: 'bbcode',
|
|
445
|
-
name: 'BBCode'
|
|
446
|
-
},
|
|
447
463
|
{
|
|
448
464
|
key: 'charmap',
|
|
449
465
|
name: 'Character Map'
|
|
@@ -468,10 +484,6 @@
|
|
|
468
484
|
key: 'emoticons',
|
|
469
485
|
name: 'Emoticons'
|
|
470
486
|
},
|
|
471
|
-
{
|
|
472
|
-
key: 'fullpage',
|
|
473
|
-
name: 'Full Page'
|
|
474
|
-
},
|
|
475
487
|
{
|
|
476
488
|
key: 'fullscreen',
|
|
477
489
|
name: 'Full Screen'
|
|
@@ -480,18 +492,10 @@
|
|
|
480
492
|
key: 'help',
|
|
481
493
|
name: 'Help'
|
|
482
494
|
},
|
|
483
|
-
{
|
|
484
|
-
key: 'hr',
|
|
485
|
-
name: 'Horizontal Rule'
|
|
486
|
-
},
|
|
487
495
|
{
|
|
488
496
|
key: 'image',
|
|
489
497
|
name: 'Image'
|
|
490
498
|
},
|
|
491
|
-
{
|
|
492
|
-
key: 'imagetools',
|
|
493
|
-
name: 'Image Tools'
|
|
494
|
-
},
|
|
495
499
|
{
|
|
496
500
|
key: 'importcss',
|
|
497
501
|
name: 'Import CSS'
|
|
@@ -500,10 +504,6 @@
|
|
|
500
504
|
key: 'insertdatetime',
|
|
501
505
|
name: 'Insert Date/Time'
|
|
502
506
|
},
|
|
503
|
-
{
|
|
504
|
-
key: 'legacyoutput',
|
|
505
|
-
name: 'Legacy Output'
|
|
506
|
-
},
|
|
507
507
|
{
|
|
508
508
|
key: 'link',
|
|
509
509
|
name: 'Link'
|
|
@@ -520,25 +520,17 @@
|
|
|
520
520
|
key: 'nonbreaking',
|
|
521
521
|
name: 'Nonbreaking'
|
|
522
522
|
},
|
|
523
|
-
{
|
|
524
|
-
key: 'noneditable',
|
|
525
|
-
name: 'Noneditable'
|
|
526
|
-
},
|
|
527
523
|
{
|
|
528
524
|
key: 'pagebreak',
|
|
529
525
|
name: 'Page Break'
|
|
530
526
|
},
|
|
531
|
-
{
|
|
532
|
-
key: 'paste',
|
|
533
|
-
name: 'Paste'
|
|
534
|
-
},
|
|
535
527
|
{
|
|
536
528
|
key: 'preview',
|
|
537
529
|
name: 'Preview'
|
|
538
530
|
},
|
|
539
531
|
{
|
|
540
|
-
key: '
|
|
541
|
-
name: '
|
|
532
|
+
key: 'quickbars',
|
|
533
|
+
name: 'Quick Toolbars'
|
|
542
534
|
},
|
|
543
535
|
{
|
|
544
536
|
key: 'save',
|
|
@@ -548,14 +540,6 @@
|
|
|
548
540
|
key: 'searchreplace',
|
|
549
541
|
name: 'Search and Replace'
|
|
550
542
|
},
|
|
551
|
-
{
|
|
552
|
-
key: 'spellchecker',
|
|
553
|
-
name: 'Spell Checker'
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
key: 'tabfocus',
|
|
557
|
-
name: 'Tab Focus'
|
|
558
|
-
},
|
|
559
543
|
{
|
|
560
544
|
key: 'table',
|
|
561
545
|
name: 'Table'
|
|
@@ -568,14 +552,6 @@
|
|
|
568
552
|
key: 'textcolor',
|
|
569
553
|
name: 'Text Color'
|
|
570
554
|
},
|
|
571
|
-
{
|
|
572
|
-
key: 'textpattern',
|
|
573
|
-
name: 'Text Pattern'
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
key: 'toc',
|
|
577
|
-
name: 'Table of Contents'
|
|
578
|
-
},
|
|
579
555
|
{
|
|
580
556
|
key: 'visualblocks',
|
|
581
557
|
name: 'Visual Blocks'
|
|
@@ -588,168 +564,217 @@
|
|
|
588
564
|
key: 'wordcount',
|
|
589
565
|
name: 'Word Count'
|
|
590
566
|
},
|
|
567
|
+
{
|
|
568
|
+
key: 'a11ychecker',
|
|
569
|
+
name: 'Accessibility Checker',
|
|
570
|
+
type: 'premium'
|
|
571
|
+
},
|
|
591
572
|
{
|
|
592
573
|
key: 'advcode',
|
|
593
|
-
name: 'Advanced Code Editor
|
|
594
|
-
type:
|
|
574
|
+
name: 'Advanced Code Editor',
|
|
575
|
+
type: 'premium'
|
|
595
576
|
},
|
|
596
577
|
{
|
|
597
|
-
key: '
|
|
598
|
-
name: '
|
|
599
|
-
type:
|
|
578
|
+
key: 'advtable',
|
|
579
|
+
name: 'Advanced Tables',
|
|
580
|
+
type: 'premium'
|
|
600
581
|
},
|
|
601
582
|
{
|
|
602
|
-
key: '
|
|
603
|
-
name: '
|
|
604
|
-
type:
|
|
583
|
+
key: 'advtemplate',
|
|
584
|
+
name: 'Advanced Templates',
|
|
585
|
+
type: 'premium',
|
|
586
|
+
slug: 'advanced-templates'
|
|
605
587
|
},
|
|
606
588
|
{
|
|
607
|
-
key: '
|
|
608
|
-
name: '
|
|
609
|
-
type:
|
|
589
|
+
key: 'ai',
|
|
590
|
+
name: 'AI Assistant',
|
|
591
|
+
type: 'premium'
|
|
610
592
|
},
|
|
611
593
|
{
|
|
612
|
-
key: '
|
|
613
|
-
name: '
|
|
614
|
-
type:
|
|
594
|
+
key: 'casechange',
|
|
595
|
+
name: 'Case Change',
|
|
596
|
+
type: 'premium'
|
|
615
597
|
},
|
|
616
598
|
{
|
|
617
|
-
key: '
|
|
618
|
-
name: '
|
|
619
|
-
type:
|
|
599
|
+
key: 'checklist',
|
|
600
|
+
name: 'Checklist',
|
|
601
|
+
type: 'premium'
|
|
620
602
|
},
|
|
621
603
|
{
|
|
622
|
-
key: '
|
|
623
|
-
name: '
|
|
624
|
-
type:
|
|
604
|
+
key: 'editimage',
|
|
605
|
+
name: 'Enhanced Image Editing',
|
|
606
|
+
type: 'premium'
|
|
625
607
|
},
|
|
626
608
|
{
|
|
627
|
-
key: '
|
|
628
|
-
name: '
|
|
629
|
-
type:
|
|
609
|
+
key: 'footnotes',
|
|
610
|
+
name: 'Footnotes',
|
|
611
|
+
type: 'premium'
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
key: 'typography',
|
|
615
|
+
name: 'Advanced Typography',
|
|
616
|
+
type: 'premium',
|
|
617
|
+
slug: 'advanced-typography'
|
|
630
618
|
},
|
|
631
619
|
{
|
|
632
620
|
key: 'mediaembed',
|
|
633
|
-
name: 'Enhanced Media Embed
|
|
634
|
-
type:
|
|
621
|
+
name: 'Enhanced Media Embed',
|
|
622
|
+
type: 'premium',
|
|
623
|
+
slug: 'introduction-to-mediaembed'
|
|
635
624
|
},
|
|
636
625
|
{
|
|
637
|
-
key: '
|
|
638
|
-
name: '
|
|
639
|
-
type:
|
|
626
|
+
key: 'export',
|
|
627
|
+
name: 'Export',
|
|
628
|
+
type: 'premium'
|
|
640
629
|
},
|
|
641
630
|
{
|
|
642
|
-
key: '
|
|
643
|
-
name: '
|
|
644
|
-
type:
|
|
631
|
+
key: 'formatpainter',
|
|
632
|
+
name: 'Format Painter',
|
|
633
|
+
type: 'premium'
|
|
645
634
|
},
|
|
646
635
|
{
|
|
647
|
-
key: '
|
|
648
|
-
name: '
|
|
649
|
-
type:
|
|
636
|
+
key: 'inlinecss',
|
|
637
|
+
name: 'Inline CSS',
|
|
638
|
+
type: 'premium',
|
|
639
|
+
slug: 'inline-css'
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
key: 'linkchecker',
|
|
643
|
+
name: 'Link Checker',
|
|
644
|
+
type: 'premium'
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
key: 'mentions',
|
|
648
|
+
name: 'Mentions',
|
|
649
|
+
type: 'premium'
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
key: 'mergetags',
|
|
653
|
+
name: 'Merge Tags',
|
|
654
|
+
type: 'premium'
|
|
650
655
|
},
|
|
651
656
|
{
|
|
652
657
|
key: 'pageembed',
|
|
653
|
-
name: 'Page Embed
|
|
654
|
-
type:
|
|
658
|
+
name: 'Page Embed',
|
|
659
|
+
type: 'premium'
|
|
655
660
|
},
|
|
656
661
|
{
|
|
657
|
-
key: '
|
|
658
|
-
name: '
|
|
659
|
-
type:
|
|
660
|
-
slug: 'comments'
|
|
662
|
+
key: 'permanentpen',
|
|
663
|
+
name: 'Permanent Pen',
|
|
664
|
+
type: 'premium'
|
|
661
665
|
},
|
|
662
666
|
{
|
|
663
|
-
key: '
|
|
664
|
-
name: '
|
|
665
|
-
type:
|
|
667
|
+
key: 'powerpaste',
|
|
668
|
+
name: 'PowerPaste',
|
|
669
|
+
type: 'premium',
|
|
670
|
+
slug: 'introduction-to-powerpaste'
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
key: 'rtc',
|
|
674
|
+
name: 'Real-Time Collaboration',
|
|
675
|
+
type: 'premium',
|
|
676
|
+
slug: 'rtc-introduction'
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
key: 'tinymcespellchecker',
|
|
680
|
+
name: 'Spell Checker Pro',
|
|
681
|
+
type: 'premium',
|
|
682
|
+
slug: 'introduction-to-tiny-spellchecker'
|
|
666
683
|
},
|
|
667
684
|
{
|
|
668
685
|
key: 'autocorrect',
|
|
669
|
-
name: 'Autocorrect
|
|
670
|
-
type:
|
|
686
|
+
name: 'Spelling Autocorrect',
|
|
687
|
+
type: 'premium'
|
|
671
688
|
},
|
|
672
689
|
{
|
|
673
|
-
key: '
|
|
674
|
-
name: '
|
|
675
|
-
type:
|
|
690
|
+
key: 'tableofcontents',
|
|
691
|
+
name: 'Table of Contents',
|
|
692
|
+
type: 'premium'
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
key: 'tinycomments',
|
|
696
|
+
name: 'Tiny Comments',
|
|
697
|
+
type: 'premium',
|
|
698
|
+
slug: 'introduction-to-tiny-comments'
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
key: 'tinydrive',
|
|
702
|
+
name: 'Tiny Drive',
|
|
703
|
+
type: 'premium',
|
|
704
|
+
slug: 'tinydrive-introduction'
|
|
676
705
|
}
|
|
677
|
-
],
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
});
|
|
706
|
+
], item => ({
|
|
707
|
+
...item,
|
|
708
|
+
type: item.type || 'opensource',
|
|
709
|
+
slug: item.slug || item.key
|
|
710
|
+
}));
|
|
683
711
|
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
'Advanced Code Editor',
|
|
689
|
-
'Advanced Tables',
|
|
690
|
-
'Case Change',
|
|
691
|
-
'Checklist',
|
|
692
|
-
'Export',
|
|
693
|
-
'Tiny Comments',
|
|
694
|
-
'Tiny Drive',
|
|
695
|
-
'Enhanced Media Embed',
|
|
696
|
-
'Format Painter',
|
|
697
|
-
'Link Checker',
|
|
698
|
-
'Mentions',
|
|
699
|
-
'MoxieManager',
|
|
700
|
-
'Page Embed',
|
|
701
|
-
'Permanent Pen',
|
|
702
|
-
'PowerPaste',
|
|
703
|
-
'Spell Checker Pro'
|
|
704
|
-
];
|
|
705
|
-
var premiumPluginList = map(premiumPlugins, function (plugin) {
|
|
706
|
-
return '<li>' + global$2.translate(plugin) + '</li>';
|
|
707
|
-
}).join('');
|
|
708
|
-
return '<div data-mce-tabstop="1" tabindex="-1">' + '<p><b>' + global$2.translate('Premium plugins:') + '</b></p>' + '<ul>' + premiumPluginList + '<li class="tox-help__more-link" "><a href="https://www.tiny.cloud/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">' + global$2.translate('Learn more...') + '</a></li>' + '</ul>' + '</div>';
|
|
709
|
-
};
|
|
710
|
-
var makeLink = function (p) {
|
|
711
|
-
return '<a href="' + p.url + '" target="_blank" rel="noopener">' + p.name + '</a>';
|
|
712
|
-
};
|
|
713
|
-
var maybeUrlize = function (editor, key) {
|
|
714
|
-
return find(urls, function (x) {
|
|
715
|
-
return x.key === key;
|
|
716
|
-
}).fold(function () {
|
|
717
|
-
var getMetadata = editor.plugins[key].getMetadata;
|
|
718
|
-
return typeof getMetadata === 'function' ? makeLink(getMetadata()) : key;
|
|
719
|
-
}, function (x) {
|
|
720
|
-
return makeLink({
|
|
721
|
-
name: x.name,
|
|
722
|
-
url: 'https://www.tiny.cloud/docs/plugins/' + x.type + '/' + x.slug
|
|
723
|
-
});
|
|
712
|
+
const tab$1 = editor => {
|
|
713
|
+
const availablePlugins = () => {
|
|
714
|
+
const premiumPlugins = filter(urls, ({type}) => {
|
|
715
|
+
return type === 'premium';
|
|
724
716
|
});
|
|
717
|
+
const sortedPremiumPlugins = sort(map(premiumPlugins, p => p.name), (s1, s2) => s1.localeCompare(s2));
|
|
718
|
+
const premiumPluginList = map(sortedPremiumPlugins, pluginName => `<li>${ pluginName }</li>`).join('');
|
|
719
|
+
return '<div>' + '<p><b>' + global$2.translate('Premium plugins:') + '</b></p>' + '<ul>' + premiumPluginList + '<li class="tox-help__more-link" ">' + '<a href="https://www.tiny.cloud/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" rel="noopener" target="_blank"' + ' data-alloy-tabstop="true" tabindex="-1">' + global$2.translate('Learn more...') + '</a></li>' + '</ul>' + '</div>';
|
|
720
|
+
};
|
|
721
|
+
const makeLink = p => `<a data-alloy-tabstop="true" tabindex="-1" href="${ p.url }" target="_blank" rel="noopener">${ p.name }</a>`;
|
|
722
|
+
const identifyUnknownPlugin = (editor, key) => {
|
|
723
|
+
const getMetadata = editor.plugins[key].getMetadata;
|
|
724
|
+
if (isFunction(getMetadata)) {
|
|
725
|
+
const metadata = getMetadata();
|
|
726
|
+
return {
|
|
727
|
+
name: metadata.name,
|
|
728
|
+
html: makeLink(metadata)
|
|
729
|
+
};
|
|
730
|
+
} else {
|
|
731
|
+
return {
|
|
732
|
+
name: key,
|
|
733
|
+
html: key
|
|
734
|
+
};
|
|
735
|
+
}
|
|
725
736
|
};
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
return
|
|
730
|
-
|
|
737
|
+
const getPluginData = (editor, key) => find(urls, x => {
|
|
738
|
+
return x.key === key;
|
|
739
|
+
}).fold(() => {
|
|
740
|
+
return identifyUnknownPlugin(editor, key);
|
|
741
|
+
}, x => {
|
|
742
|
+
const name = x.type === 'premium' ? `${ x.name }*` : x.name;
|
|
743
|
+
const html = makeLink({
|
|
744
|
+
name,
|
|
745
|
+
url: `https://www.tiny.cloud/docs/tinymce/6/${ x.slug }/`
|
|
731
746
|
});
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
747
|
+
return {
|
|
748
|
+
name,
|
|
749
|
+
html
|
|
750
|
+
};
|
|
751
|
+
});
|
|
752
|
+
const getPluginKeys = editor => {
|
|
753
|
+
const keys$1 = keys(editor.plugins);
|
|
754
|
+
const forcedPlugins = getForcedPlugins(editor);
|
|
755
|
+
return isUndefined(forcedPlugins) ? keys$1 : filter(keys$1, k => !contains(forcedPlugins, k));
|
|
756
|
+
};
|
|
757
|
+
const pluginLister = editor => {
|
|
758
|
+
const pluginKeys = getPluginKeys(editor);
|
|
759
|
+
const sortedPluginData = sort(map(pluginKeys, k => getPluginData(editor, k)), (pd1, pd2) => pd1.name.localeCompare(pd2.name));
|
|
760
|
+
const pluginLis = map(sortedPluginData, key => {
|
|
761
|
+
return '<li>' + key.html + '</li>';
|
|
737
762
|
});
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
763
|
+
const count = pluginLis.length;
|
|
764
|
+
const pluginsString = pluginLis.join('');
|
|
765
|
+
const html = '<p><b>' + global$2.translate([
|
|
741
766
|
'Plugins installed ({0}):',
|
|
742
767
|
count
|
|
743
768
|
]) + '</b></p>' + '<ul>' + pluginsString + '</ul>';
|
|
744
769
|
return html;
|
|
745
770
|
};
|
|
746
|
-
|
|
771
|
+
const installedPlugins = editor => {
|
|
747
772
|
if (editor == null) {
|
|
748
773
|
return '';
|
|
749
774
|
}
|
|
750
|
-
return '<div
|
|
775
|
+
return '<div>' + pluginLister(editor) + '</div>';
|
|
751
776
|
};
|
|
752
|
-
|
|
777
|
+
const htmlPanel = {
|
|
753
778
|
type: 'htmlpanel',
|
|
754
779
|
presets: 'document',
|
|
755
780
|
html: [
|
|
@@ -764,15 +789,13 @@
|
|
|
764
789
|
};
|
|
765
790
|
};
|
|
766
791
|
|
|
767
|
-
var global
|
|
792
|
+
var global = tinymce.util.Tools.resolve('tinymce.EditorManager');
|
|
768
793
|
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
var changeLogLink = '<a href="https://www.tiny.cloud/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE ' + version + '</a>';
|
|
775
|
-
var htmlPanel = {
|
|
794
|
+
const tab = () => {
|
|
795
|
+
const getVersion = (major, minor) => major.indexOf('@') === 0 ? 'X.X.X' : major + '.' + minor;
|
|
796
|
+
const version = getVersion(global.majorVersion, global.minorVersion);
|
|
797
|
+
const changeLogLink = '<a data-alloy-tabstop="true" tabindex="-1" href="https://www.tiny.cloud/docs/tinymce/6/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" rel="noopener" target="_blank">TinyMCE ' + version + '</a>';
|
|
798
|
+
const htmlPanel = {
|
|
776
799
|
type: 'htmlpanel',
|
|
777
800
|
html: '<p>' + global$2.translate([
|
|
778
801
|
'You are using {0}',
|
|
@@ -787,64 +810,64 @@
|
|
|
787
810
|
};
|
|
788
811
|
};
|
|
789
812
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
813
|
+
const parseHelpTabsSetting = (tabsFromSettings, tabs) => {
|
|
814
|
+
const newTabs = {};
|
|
815
|
+
const names = map(tabsFromSettings, t => {
|
|
816
|
+
var _a;
|
|
817
|
+
if (isString(t)) {
|
|
794
818
|
if (has(tabs, t)) {
|
|
795
819
|
newTabs[t] = tabs[t];
|
|
796
820
|
}
|
|
797
821
|
return t;
|
|
798
822
|
} else {
|
|
799
|
-
|
|
800
|
-
|
|
823
|
+
const name = (_a = t.name) !== null && _a !== void 0 ? _a : generate('tab-name');
|
|
824
|
+
newTabs[name] = t;
|
|
825
|
+
return name;
|
|
801
826
|
}
|
|
802
827
|
});
|
|
803
828
|
return {
|
|
804
829
|
tabs: newTabs,
|
|
805
|
-
names
|
|
830
|
+
names
|
|
806
831
|
};
|
|
807
832
|
};
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
833
|
+
const getNamesFromTabs = tabs => {
|
|
834
|
+
const names = keys(tabs);
|
|
835
|
+
const idx = names.indexOf('versions');
|
|
811
836
|
if (idx !== -1) {
|
|
812
837
|
names.splice(idx, 1);
|
|
813
838
|
names.push('versions');
|
|
814
839
|
}
|
|
815
840
|
return {
|
|
816
|
-
tabs
|
|
817
|
-
names
|
|
841
|
+
tabs,
|
|
842
|
+
names
|
|
818
843
|
};
|
|
819
844
|
};
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}
|
|
845
|
+
const pParseCustomTabs = async (editor, customTabs, pluginUrl) => {
|
|
846
|
+
const shortcuts = tab$2();
|
|
847
|
+
const nav = await pTab(pluginUrl);
|
|
848
|
+
const plugins = tab$1(editor);
|
|
849
|
+
const versions = tab();
|
|
850
|
+
const tabs = {
|
|
851
|
+
[shortcuts.name]: shortcuts,
|
|
852
|
+
[nav.name]: nav,
|
|
853
|
+
[plugins.name]: plugins,
|
|
854
|
+
[versions.name]: versions,
|
|
855
|
+
...customTabs.get()
|
|
856
|
+
};
|
|
857
|
+
return Optional.from(getHelpTabs(editor)).fold(() => getNamesFromTabs(tabs), tabsFromSettings => parseHelpTabsSetting(tabsFromSettings, tabs));
|
|
832
858
|
};
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
});
|
|
839
|
-
var dialogTabs = cat(foundTabs);
|
|
840
|
-
var body = {
|
|
859
|
+
const init = (editor, customTabs, pluginUrl) => () => {
|
|
860
|
+
pParseCustomTabs(editor, customTabs, pluginUrl).then(({tabs, names}) => {
|
|
861
|
+
const foundTabs = map(names, name => get(tabs, name));
|
|
862
|
+
const dialogTabs = cat(foundTabs);
|
|
863
|
+
const body = {
|
|
841
864
|
type: 'tabpanel',
|
|
842
865
|
tabs: dialogTabs
|
|
843
866
|
};
|
|
844
867
|
editor.windowManager.open({
|
|
845
868
|
title: 'Help',
|
|
846
869
|
size: 'medium',
|
|
847
|
-
body
|
|
870
|
+
body,
|
|
848
871
|
buttons: [{
|
|
849
872
|
type: 'cancel',
|
|
850
873
|
name: 'close',
|
|
@@ -853,21 +876,23 @@
|
|
|
853
876
|
}],
|
|
854
877
|
initialData: {}
|
|
855
878
|
});
|
|
856
|
-
};
|
|
879
|
+
});
|
|
857
880
|
};
|
|
858
881
|
|
|
859
|
-
|
|
860
|
-
global.add('help',
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
882
|
+
var Plugin = () => {
|
|
883
|
+
global$4.add('help', (editor, pluginUrl) => {
|
|
884
|
+
const customTabs = Cell({});
|
|
885
|
+
const api = get$1(customTabs);
|
|
886
|
+
register$1(editor);
|
|
887
|
+
const dialogOpener = init(editor, customTabs, pluginUrl);
|
|
865
888
|
register(editor, dialogOpener);
|
|
889
|
+
register$2(editor, dialogOpener);
|
|
866
890
|
editor.shortcuts.add('Alt+0', 'Open help dialog', 'mceHelp');
|
|
891
|
+
initI18nLoad(editor, pluginUrl);
|
|
867
892
|
return api;
|
|
868
893
|
});
|
|
869
|
-
}
|
|
894
|
+
};
|
|
870
895
|
|
|
871
896
|
Plugin();
|
|
872
897
|
|
|
873
|
-
}()
|
|
898
|
+
})();
|