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,69 +1,56 @@
|
|
|
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$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
27
23
|
|
|
28
|
-
|
|
24
|
+
const constant = value => {
|
|
25
|
+
return () => {
|
|
26
|
+
return value;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
29
|
|
|
30
|
-
var global
|
|
30
|
+
var global = tinymce.util.Tools.resolve('tinymce.Env');
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
return editor.fire('ResizeEditor');
|
|
34
|
-
};
|
|
32
|
+
const fireResizeEditor = editor => editor.dispatch('ResizeEditor');
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
var shouldAutoResizeOnInit = function (editor) {
|
|
49
|
-
return editor.getParam('autoresize_on_init', true, 'boolean');
|
|
34
|
+
const option = name => editor => editor.options.get(name);
|
|
35
|
+
const register$1 = editor => {
|
|
36
|
+
const registerOption = editor.options.register;
|
|
37
|
+
registerOption('autoresize_overflow_padding', {
|
|
38
|
+
processor: 'number',
|
|
39
|
+
default: 1
|
|
40
|
+
});
|
|
41
|
+
registerOption('autoresize_bottom_margin', {
|
|
42
|
+
processor: 'number',
|
|
43
|
+
default: 50
|
|
44
|
+
});
|
|
50
45
|
};
|
|
46
|
+
const getMinHeight = option('min_height');
|
|
47
|
+
const getMaxHeight = option('max_height');
|
|
48
|
+
const getAutoResizeOverflowPadding = option('autoresize_overflow_padding');
|
|
49
|
+
const getAutoResizeBottomMargin = option('autoresize_bottom_margin');
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
var wait = function (editor, oldSize, times, interval, callback) {
|
|
56
|
-
global$2.setEditorTimeout(editor, function () {
|
|
57
|
-
resize(editor, oldSize);
|
|
58
|
-
if (times--) {
|
|
59
|
-
wait(editor, oldSize, times, interval, callback);
|
|
60
|
-
} else if (callback) {
|
|
61
|
-
callback();
|
|
62
|
-
}
|
|
63
|
-
}, interval);
|
|
64
|
-
};
|
|
65
|
-
var toggleScrolling = function (editor, state) {
|
|
66
|
-
var body = editor.getBody();
|
|
51
|
+
const isFullscreen = editor => editor.plugins.fullscreen && editor.plugins.fullscreen.isFullscreen();
|
|
52
|
+
const toggleScrolling = (editor, state) => {
|
|
53
|
+
const body = editor.getBody();
|
|
67
54
|
if (body) {
|
|
68
55
|
body.style.overflowY = state ? '' : 'hidden';
|
|
69
56
|
if (!state) {
|
|
@@ -71,13 +58,23 @@
|
|
|
71
58
|
}
|
|
72
59
|
}
|
|
73
60
|
};
|
|
74
|
-
|
|
75
|
-
var
|
|
61
|
+
const parseCssValueToInt = (dom, elm, name, computed) => {
|
|
62
|
+
var _a;
|
|
63
|
+
const value = parseInt((_a = dom.getStyle(elm, name, computed)) !== null && _a !== void 0 ? _a : '', 10);
|
|
76
64
|
return isNaN(value) ? 0 : value;
|
|
77
65
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
66
|
+
const shouldScrollIntoView = trigger => {
|
|
67
|
+
if ((trigger === null || trigger === void 0 ? void 0 : trigger.type.toLowerCase()) === 'setcontent') {
|
|
68
|
+
const setContentEvent = trigger;
|
|
69
|
+
return setContentEvent.selection === true || setContentEvent.paste === true;
|
|
70
|
+
} else {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const resize = (editor, oldSize, trigger, getExtraMarginBottom) => {
|
|
75
|
+
var _a;
|
|
76
|
+
const dom = editor.dom;
|
|
77
|
+
const doc = editor.getDoc();
|
|
81
78
|
if (!doc) {
|
|
82
79
|
return;
|
|
83
80
|
}
|
|
@@ -85,22 +82,23 @@
|
|
|
85
82
|
toggleScrolling(editor, true);
|
|
86
83
|
return;
|
|
87
84
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
const docEle = doc.documentElement;
|
|
86
|
+
const resizeBottomMargin = getExtraMarginBottom ? getExtraMarginBottom() : getAutoResizeOverflowPadding(editor);
|
|
87
|
+
const minHeight = (_a = getMinHeight(editor)) !== null && _a !== void 0 ? _a : editor.getElement().offsetHeight;
|
|
88
|
+
let resizeHeight = minHeight;
|
|
89
|
+
const marginTop = parseCssValueToInt(dom, docEle, 'margin-top', true);
|
|
90
|
+
const marginBottom = parseCssValueToInt(dom, docEle, 'margin-bottom', true);
|
|
91
|
+
let contentHeight = docEle.offsetHeight + marginTop + marginBottom + resizeBottomMargin;
|
|
94
92
|
if (contentHeight < 0) {
|
|
95
93
|
contentHeight = 0;
|
|
96
94
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
if (contentHeight + chromeHeight >
|
|
95
|
+
const containerHeight = editor.getContainer().offsetHeight;
|
|
96
|
+
const contentAreaHeight = editor.getContentAreaContainer().offsetHeight;
|
|
97
|
+
const chromeHeight = containerHeight - contentAreaHeight;
|
|
98
|
+
if (contentHeight + chromeHeight > minHeight) {
|
|
101
99
|
resizeHeight = contentHeight + chromeHeight;
|
|
102
100
|
}
|
|
103
|
-
|
|
101
|
+
const maxHeight = getMaxHeight(editor);
|
|
104
102
|
if (maxHeight && resizeHeight > maxHeight) {
|
|
105
103
|
resizeHeight = maxHeight;
|
|
106
104
|
toggleScrolling(editor, true);
|
|
@@ -108,64 +106,87 @@
|
|
|
108
106
|
toggleScrolling(editor, false);
|
|
109
107
|
}
|
|
110
108
|
if (resizeHeight !== oldSize.get()) {
|
|
111
|
-
|
|
109
|
+
const deltaSize = resizeHeight - oldSize.get();
|
|
112
110
|
dom.setStyle(editor.getContainer(), 'height', resizeHeight + 'px');
|
|
113
111
|
oldSize.set(resizeHeight);
|
|
114
112
|
fireResizeEditor(editor);
|
|
115
|
-
if (global
|
|
116
|
-
|
|
113
|
+
if (global.browser.isSafari() && (global.os.isMacOS() || global.os.isiOS())) {
|
|
114
|
+
const win = editor.getWin();
|
|
117
115
|
win.scrollTo(win.pageXOffset, win.pageYOffset);
|
|
118
116
|
}
|
|
119
|
-
if (editor.hasFocus()) {
|
|
120
|
-
editor.selection.scrollIntoView(
|
|
117
|
+
if (editor.hasFocus() && shouldScrollIntoView(trigger)) {
|
|
118
|
+
editor.selection.scrollIntoView();
|
|
121
119
|
}
|
|
122
|
-
if (global
|
|
123
|
-
resize(editor, oldSize);
|
|
120
|
+
if ((global.browser.isSafari() || global.browser.isChromium()) && deltaSize < 0) {
|
|
121
|
+
resize(editor, oldSize, trigger, getExtraMarginBottom);
|
|
124
122
|
}
|
|
125
123
|
}
|
|
126
124
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
const setup = (editor, oldSize) => {
|
|
126
|
+
let getExtraMarginBottom = () => getAutoResizeBottomMargin(editor);
|
|
127
|
+
let resizeCounter;
|
|
128
|
+
let sizeAfterFirstResize;
|
|
129
|
+
editor.on('init', e => {
|
|
130
|
+
resizeCounter = 0;
|
|
131
|
+
const overflowPadding = getAutoResizeOverflowPadding(editor);
|
|
132
|
+
const dom = editor.dom;
|
|
131
133
|
dom.setStyles(editor.getDoc().documentElement, { height: 'auto' });
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
if (global.browser.isEdge() || global.browser.isIE()) {
|
|
135
|
+
dom.setStyles(editor.getBody(), {
|
|
136
|
+
'paddingLeft': overflowPadding,
|
|
137
|
+
'paddingRight': overflowPadding,
|
|
138
|
+
'min-height': 0
|
|
139
|
+
});
|
|
140
|
+
} else {
|
|
141
|
+
dom.setStyles(editor.getBody(), {
|
|
142
|
+
paddingLeft: overflowPadding,
|
|
143
|
+
paddingRight: overflowPadding
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
resize(editor, oldSize, e, getExtraMarginBottom);
|
|
147
|
+
resizeCounter += 1;
|
|
137
148
|
});
|
|
138
|
-
editor.on('NodeChange SetContent keyup FullscreenStateChanged ResizeContent',
|
|
139
|
-
|
|
149
|
+
editor.on('NodeChange SetContent keyup FullscreenStateChanged ResizeContent', e => {
|
|
150
|
+
if (resizeCounter === 1) {
|
|
151
|
+
sizeAfterFirstResize = editor.getContainer().offsetHeight;
|
|
152
|
+
resize(editor, oldSize, e, getExtraMarginBottom);
|
|
153
|
+
resizeCounter += 1;
|
|
154
|
+
} else if (resizeCounter === 2) {
|
|
155
|
+
const isLooping = sizeAfterFirstResize < editor.getContainer().offsetHeight;
|
|
156
|
+
if (isLooping) {
|
|
157
|
+
const dom = editor.dom;
|
|
158
|
+
const doc = editor.getDoc();
|
|
159
|
+
dom.setStyles(doc.documentElement, { 'min-height': 0 });
|
|
160
|
+
dom.setStyles(editor.getBody(), { 'min-height': 'inherit' });
|
|
161
|
+
}
|
|
162
|
+
getExtraMarginBottom = isLooping ? constant(0) : getExtraMarginBottom;
|
|
163
|
+
resizeCounter += 1;
|
|
164
|
+
} else {
|
|
165
|
+
resize(editor, oldSize, e, getExtraMarginBottom);
|
|
166
|
+
}
|
|
140
167
|
});
|
|
141
|
-
if (shouldAutoResizeOnInit(editor)) {
|
|
142
|
-
editor.on('init', function () {
|
|
143
|
-
wait(editor, oldSize, 20, 100, function () {
|
|
144
|
-
wait(editor, oldSize, 5, 1000);
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
168
|
};
|
|
149
169
|
|
|
150
|
-
|
|
151
|
-
editor.addCommand('mceAutoResize',
|
|
170
|
+
const register = (editor, oldSize) => {
|
|
171
|
+
editor.addCommand('mceAutoResize', () => {
|
|
152
172
|
resize(editor, oldSize);
|
|
153
173
|
});
|
|
154
174
|
};
|
|
155
175
|
|
|
156
|
-
|
|
157
|
-
global.add('autoresize',
|
|
158
|
-
|
|
159
|
-
|
|
176
|
+
var Plugin = () => {
|
|
177
|
+
global$1.add('autoresize', editor => {
|
|
178
|
+
register$1(editor);
|
|
179
|
+
if (!editor.options.isSet('resize')) {
|
|
180
|
+
editor.options.set('resize', false);
|
|
160
181
|
}
|
|
161
182
|
if (!editor.inline) {
|
|
162
|
-
|
|
183
|
+
const oldSize = Cell(0);
|
|
163
184
|
register(editor, oldSize);
|
|
164
185
|
setup(editor, oldSize);
|
|
165
186
|
}
|
|
166
187
|
});
|
|
167
|
-
}
|
|
188
|
+
};
|
|
168
189
|
|
|
169
190
|
Plugin();
|
|
170
191
|
|
|
171
|
-
}()
|
|
192
|
+
})();
|
|
@@ -1,9 +1,4 @@
|
|
|
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
|
*/
|
|
9
|
-
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),
|
|
4
|
+
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env");const o=e=>t=>t.options.get(e),s=o("min_height"),i=o("max_height"),n=o("autoresize_overflow_padding"),r=o("autoresize_bottom_margin"),l=(e,t)=>{const o=e.getBody();o&&(o.style.overflowY=t?"":"hidden",t||(o.scrollTop=0))},g=(e,t,o,s)=>{var i;const n=parseInt(null!==(i=e.getStyle(t,o,s))&&void 0!==i?i:"",10);return isNaN(n)?0:n},a=(e,o,r,c)=>{var d;const f=e.dom,u=e.getDoc();if(!u)return;if((e=>e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen())(e))return void l(e,!0);const m=u.documentElement,h=c?c():n(e),p=null!==(d=s(e))&&void 0!==d?d:e.getElement().offsetHeight;let y=p;const S=g(f,m,"margin-top",!0),v=g(f,m,"margin-bottom",!0);let C=m.offsetHeight+S+v+h;C<0&&(C=0);const b=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;C+b>p&&(y=C+b);const w=i(e);if(w&&y>w?(y=w,l(e,!0)):l(e,!1),y!==o.get()){const s=y-o.get();if(f.setStyle(e.getContainer(),"height",y+"px"),o.set(y),(e=>{e.dispatch("ResizeEditor")})(e),t.browser.isSafari()&&(t.os.isMacOS()||t.os.isiOS())){const t=e.getWin();t.scrollTo(t.pageXOffset,t.pageYOffset)}e.hasFocus()&&(e=>{if("setcontent"===(null==e?void 0:e.type.toLowerCase())){const t=e;return!0===t.selection||!0===t.paste}return!1})(r)&&e.selection.scrollIntoView(),(t.browser.isSafari()||t.browser.isChromium())&&s<0&&a(e,o,r,c)}};e.add("autoresize",(e=>{if((e=>{const t=e.options.register;t("autoresize_overflow_padding",{processor:"number",default:1}),t("autoresize_bottom_margin",{processor:"number",default:50})})(e),e.options.isSet("resize")||e.options.set("resize",!1),!e.inline){const o=(e=>{let t=0;return{get:()=>t,set:e=>{t=e}}})();((e,t)=>{e.addCommand("mceAutoResize",(()=>{a(e,t)}))})(e,o),((e,o)=>{let s,i,l=()=>r(e);e.on("init",(i=>{s=0;const r=n(e),g=e.dom;g.setStyles(e.getDoc().documentElement,{height:"auto"}),t.browser.isEdge()||t.browser.isIE()?g.setStyles(e.getBody(),{paddingLeft:r,paddingRight:r,"min-height":0}):g.setStyles(e.getBody(),{paddingLeft:r,paddingRight:r}),a(e,o,i,l),s+=1})),e.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(t=>{if(1===s)i=e.getContainer().offsetHeight,a(e,o,t,l),s+=1;else if(2===s){const t=i<e.getContainer().offsetHeight;if(t){const t=e.dom,o=e.getDoc();t.setStyles(o.documentElement,{"min-height":0}),t.setStyles(e.getBody(),{"min-height":"inherit"})}l=t?(0,()=>0):l,s+=1}else a(e,o,t,l)}))})(e,o)}}))}();
|
|
@@ -1,97 +1,135 @@
|
|
|
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
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
8
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
13
9
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
const hasProto = (v, constructor, predicate) => {
|
|
11
|
+
var _a;
|
|
12
|
+
if (predicate(v, constructor.prototype)) {
|
|
13
|
+
return true;
|
|
14
|
+
} else {
|
|
15
|
+
return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
|
|
16
|
+
}
|
|
18
17
|
};
|
|
19
|
-
|
|
18
|
+
const typeOf = x => {
|
|
19
|
+
const t = typeof x;
|
|
20
|
+
if (x === null) {
|
|
21
|
+
return 'null';
|
|
22
|
+
} else if (t === 'object' && Array.isArray(x)) {
|
|
23
|
+
return 'array';
|
|
24
|
+
} else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
|
|
25
|
+
return 'string';
|
|
26
|
+
} else {
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const isType = type => value => typeOf(value) === type;
|
|
31
|
+
const eq = t => a => t === a;
|
|
32
|
+
const isString = isType('string');
|
|
33
|
+
const isUndefined = eq(undefined);
|
|
20
34
|
|
|
21
|
-
var global$
|
|
35
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
|
22
36
|
|
|
23
37
|
var global$2 = tinymce.util.Tools.resolve('tinymce.util.LocalStorage');
|
|
24
38
|
|
|
25
|
-
var global$
|
|
39
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
26
40
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var fireStoreDraft = function (editor) {
|
|
31
|
-
return editor.fire('StoreDraft');
|
|
32
|
-
};
|
|
33
|
-
var fireRemoveDraft = function (editor) {
|
|
34
|
-
return editor.fire('RemoveDraft');
|
|
35
|
-
};
|
|
41
|
+
const fireRestoreDraft = editor => editor.dispatch('RestoreDraft');
|
|
42
|
+
const fireStoreDraft = editor => editor.dispatch('StoreDraft');
|
|
43
|
+
const fireRemoveDraft = editor => editor.dispatch('RemoveDraft');
|
|
36
44
|
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
const parse = timeString => {
|
|
46
|
+
const multiples = {
|
|
39
47
|
s: 1000,
|
|
40
48
|
m: 60000
|
|
41
49
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
const parsedTime = /^(\d+)([ms]?)$/.exec(timeString);
|
|
51
|
+
return (parsedTime && parsedTime[2] ? multiples[parsedTime[2]] : 1) * parseInt(timeString, 10);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const option = name => editor => editor.options.get(name);
|
|
55
|
+
const register$1 = editor => {
|
|
56
|
+
const registerOption = editor.options.register;
|
|
57
|
+
const timeProcessor = value => {
|
|
58
|
+
const valid = isString(value);
|
|
59
|
+
if (valid) {
|
|
60
|
+
return {
|
|
61
|
+
value: parse(value),
|
|
62
|
+
valid
|
|
63
|
+
};
|
|
64
|
+
} else {
|
|
65
|
+
return {
|
|
66
|
+
valid: false,
|
|
67
|
+
message: 'Must be a string.'
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
registerOption('autosave_ask_before_unload', {
|
|
72
|
+
processor: 'boolean',
|
|
73
|
+
default: true
|
|
74
|
+
});
|
|
75
|
+
registerOption('autosave_prefix', {
|
|
76
|
+
processor: 'string',
|
|
77
|
+
default: 'tinymce-autosave-{path}{query}{hash}-{id}-'
|
|
78
|
+
});
|
|
79
|
+
registerOption('autosave_restore_when_empty', {
|
|
80
|
+
processor: 'boolean',
|
|
81
|
+
default: false
|
|
82
|
+
});
|
|
83
|
+
registerOption('autosave_interval', {
|
|
84
|
+
processor: timeProcessor,
|
|
85
|
+
default: '30s'
|
|
86
|
+
});
|
|
87
|
+
registerOption('autosave_retention', {
|
|
88
|
+
processor: timeProcessor,
|
|
89
|
+
default: '20m'
|
|
90
|
+
});
|
|
59
91
|
};
|
|
60
|
-
|
|
61
|
-
|
|
92
|
+
const shouldAskBeforeUnload = option('autosave_ask_before_unload');
|
|
93
|
+
const shouldRestoreWhenEmpty = option('autosave_restore_when_empty');
|
|
94
|
+
const getAutoSaveInterval = option('autosave_interval');
|
|
95
|
+
const getAutoSaveRetention = option('autosave_retention');
|
|
96
|
+
const getAutoSavePrefix = editor => {
|
|
97
|
+
const location = document.location;
|
|
98
|
+
return editor.options.get('autosave_prefix').replace(/{path}/g, location.pathname).replace(/{query}/g, location.search).replace(/{hash}/g, location.hash).replace(/{id}/g, editor.id);
|
|
62
99
|
};
|
|
63
100
|
|
|
64
|
-
|
|
101
|
+
const isEmpty = (editor, html) => {
|
|
65
102
|
if (isUndefined(html)) {
|
|
66
103
|
return editor.dom.isEmpty(editor.getBody());
|
|
67
104
|
} else {
|
|
68
|
-
|
|
105
|
+
const trimmedHtml = global$1.trim(html);
|
|
69
106
|
if (trimmedHtml === '') {
|
|
70
107
|
return true;
|
|
71
108
|
} else {
|
|
72
|
-
|
|
109
|
+
const fragment = new DOMParser().parseFromString(trimmedHtml, 'text/html');
|
|
73
110
|
return editor.dom.isEmpty(fragment);
|
|
74
111
|
}
|
|
75
112
|
}
|
|
76
113
|
};
|
|
77
|
-
|
|
78
|
-
var
|
|
114
|
+
const hasDraft = editor => {
|
|
115
|
+
var _a;
|
|
116
|
+
const time = parseInt((_a = global$2.getItem(getAutoSavePrefix(editor) + 'time')) !== null && _a !== void 0 ? _a : '0', 10) || 0;
|
|
79
117
|
if (new Date().getTime() - time > getAutoSaveRetention(editor)) {
|
|
80
118
|
removeDraft(editor, false);
|
|
81
119
|
return false;
|
|
82
120
|
}
|
|
83
121
|
return true;
|
|
84
122
|
};
|
|
85
|
-
|
|
86
|
-
|
|
123
|
+
const removeDraft = (editor, fire) => {
|
|
124
|
+
const prefix = getAutoSavePrefix(editor);
|
|
87
125
|
global$2.removeItem(prefix + 'draft');
|
|
88
126
|
global$2.removeItem(prefix + 'time');
|
|
89
127
|
if (fire !== false) {
|
|
90
128
|
fireRemoveDraft(editor);
|
|
91
129
|
}
|
|
92
130
|
};
|
|
93
|
-
|
|
94
|
-
|
|
131
|
+
const storeDraft = editor => {
|
|
132
|
+
const prefix = getAutoSavePrefix(editor);
|
|
95
133
|
if (!isEmpty(editor) && editor.isDirty()) {
|
|
96
134
|
global$2.setItem(prefix + 'draft', editor.getContent({
|
|
97
135
|
format: 'raw',
|
|
@@ -101,53 +139,42 @@
|
|
|
101
139
|
fireStoreDraft(editor);
|
|
102
140
|
}
|
|
103
141
|
};
|
|
104
|
-
|
|
105
|
-
var
|
|
142
|
+
const restoreDraft = editor => {
|
|
143
|
+
var _a;
|
|
144
|
+
const prefix = getAutoSavePrefix(editor);
|
|
106
145
|
if (hasDraft(editor)) {
|
|
107
|
-
editor.setContent(global$2.getItem(prefix + 'draft'), { format: 'raw' });
|
|
146
|
+
editor.setContent((_a = global$2.getItem(prefix + 'draft')) !== null && _a !== void 0 ? _a : '', { format: 'raw' });
|
|
108
147
|
fireRestoreDraft(editor);
|
|
109
148
|
}
|
|
110
149
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
global$
|
|
150
|
+
const startStoreDraft = editor => {
|
|
151
|
+
const interval = getAutoSaveInterval(editor);
|
|
152
|
+
global$3.setEditorInterval(editor, () => {
|
|
114
153
|
storeDraft(editor);
|
|
115
154
|
}, interval);
|
|
116
155
|
};
|
|
117
|
-
|
|
118
|
-
editor.undoManager.transact(
|
|
156
|
+
const restoreLastDraft = editor => {
|
|
157
|
+
editor.undoManager.transact(() => {
|
|
119
158
|
restoreDraft(editor);
|
|
120
159
|
removeDraft(editor);
|
|
121
160
|
});
|
|
122
161
|
editor.focus();
|
|
123
162
|
};
|
|
124
163
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
restoreDraft: function () {
|
|
134
|
-
return restoreDraft(editor);
|
|
135
|
-
},
|
|
136
|
-
removeDraft: function (fire) {
|
|
137
|
-
return removeDraft(editor, fire);
|
|
138
|
-
},
|
|
139
|
-
isEmpty: function (html) {
|
|
140
|
-
return isEmpty(editor, html);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
};
|
|
164
|
+
const get = editor => ({
|
|
165
|
+
hasDraft: () => hasDraft(editor),
|
|
166
|
+
storeDraft: () => storeDraft(editor),
|
|
167
|
+
restoreDraft: () => restoreDraft(editor),
|
|
168
|
+
removeDraft: fire => removeDraft(editor, fire),
|
|
169
|
+
isEmpty: html => isEmpty(editor, html)
|
|
170
|
+
});
|
|
144
171
|
|
|
145
|
-
var global
|
|
172
|
+
var global = tinymce.util.Tools.resolve('tinymce.EditorManager');
|
|
146
173
|
|
|
147
|
-
|
|
148
|
-
editor.editorManager.on('BeforeUnload',
|
|
149
|
-
|
|
150
|
-
global$
|
|
174
|
+
const setup = editor => {
|
|
175
|
+
editor.editorManager.on('BeforeUnload', e => {
|
|
176
|
+
let msg;
|
|
177
|
+
global$1.each(global.get(), editor => {
|
|
151
178
|
if (editor.plugins.autosave) {
|
|
152
179
|
editor.plugins.autosave.storeDraft();
|
|
153
180
|
}
|
|
@@ -162,51 +189,45 @@
|
|
|
162
189
|
});
|
|
163
190
|
};
|
|
164
191
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
};
|
|
171
|
-
editor.on('StoreDraft RestoreDraft RemoveDraft', editorEventCallback);
|
|
172
|
-
return function () {
|
|
173
|
-
return editor.off('StoreDraft RestoreDraft RemoveDraft', editorEventCallback);
|
|
174
|
-
};
|
|
175
|
-
};
|
|
192
|
+
const makeSetupHandler = editor => api => {
|
|
193
|
+
api.setEnabled(hasDraft(editor));
|
|
194
|
+
const editorEventCallback = () => api.setEnabled(hasDraft(editor));
|
|
195
|
+
editor.on('StoreDraft RestoreDraft RemoveDraft', editorEventCallback);
|
|
196
|
+
return () => editor.off('StoreDraft RestoreDraft RemoveDraft', editorEventCallback);
|
|
176
197
|
};
|
|
177
|
-
|
|
198
|
+
const register = editor => {
|
|
178
199
|
startStoreDraft(editor);
|
|
200
|
+
const onAction = () => {
|
|
201
|
+
restoreLastDraft(editor);
|
|
202
|
+
};
|
|
179
203
|
editor.ui.registry.addButton('restoredraft', {
|
|
180
204
|
tooltip: 'Restore last draft',
|
|
181
205
|
icon: 'restore-draft',
|
|
182
|
-
onAction
|
|
183
|
-
restoreLastDraft(editor);
|
|
184
|
-
},
|
|
206
|
+
onAction,
|
|
185
207
|
onSetup: makeSetupHandler(editor)
|
|
186
208
|
});
|
|
187
209
|
editor.ui.registry.addMenuItem('restoredraft', {
|
|
188
210
|
text: 'Restore last draft',
|
|
189
211
|
icon: 'restore-draft',
|
|
190
|
-
onAction
|
|
191
|
-
restoreLastDraft(editor);
|
|
192
|
-
},
|
|
212
|
+
onAction,
|
|
193
213
|
onSetup: makeSetupHandler(editor)
|
|
194
214
|
});
|
|
195
215
|
};
|
|
196
216
|
|
|
197
|
-
|
|
198
|
-
global.add('autosave',
|
|
217
|
+
var Plugin = () => {
|
|
218
|
+
global$4.add('autosave', editor => {
|
|
219
|
+
register$1(editor);
|
|
199
220
|
setup(editor);
|
|
200
221
|
register(editor);
|
|
201
|
-
editor.on('init',
|
|
222
|
+
editor.on('init', () => {
|
|
202
223
|
if (shouldRestoreWhenEmpty(editor) && editor.dom.isEmpty(editor.getBody())) {
|
|
203
224
|
restoreDraft(editor);
|
|
204
225
|
}
|
|
205
226
|
});
|
|
206
227
|
return get(editor);
|
|
207
228
|
});
|
|
208
|
-
}
|
|
229
|
+
};
|
|
209
230
|
|
|
210
231
|
Plugin();
|
|
211
232
|
|
|
212
|
-
}()
|
|
233
|
+
})();
|