@sapui5/sap.ui.richtexteditor 1.97.1 → 1.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/ui/richtexteditor/.library +2 -2
- package/src/sap/ui/richtexteditor/RTESplitButton.js +2 -2
- package/src/sap/ui/richtexteditor/RTESplitButtonRenderer.js +1 -1
- package/src/sap/ui/richtexteditor/RichTextEditor.js +18 -67
- package/src/sap/ui/richtexteditor/RichTextEditorRenderer.js +3 -3
- package/src/sap/ui/richtexteditor/ToolbarWrapper.js +6 -4
- package/src/sap/ui/richtexteditor/ToolbarWrapperRenderer.js +3 -3
- package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/default/icons.js +11 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/default/icons.min.js +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/jquery.tinymce.min.js +88 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ar.js +1 -420
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bg_BG.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bn_BD.js +21 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ca.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cs.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cs_CZ.js +221 -19
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/cy.js +61 -18
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/da.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/de.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/el.js +1 -261
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_419.js +462 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_MX.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/et.js +21 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/eu.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fa.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fa_IR.js +69 -197
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fi.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fr_FR.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/gl.js +20 -155
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/he_IL.js +1 -420
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hr.js +1 -418
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hu_HU.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/id.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/it.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ja.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/kk.js +1 -418
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ko_KR.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/lt.js +21 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nb_NO.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nl.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/nl_BE.js +445 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pl.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pt_BR.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/pt_PT.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ro.js +1 -418
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ru.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ru_RU.js +445 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sk.js +1 -418
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sl.js +59 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sl_SI.js +1 -388
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/{mn_MN.js → sq.js} +109 -69
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/sv_SE.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ta.js +60 -17
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ta_IN.js +60 -17
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/th_TH.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tr.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tr_TR.js +81 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ug.js +221 -19
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/uk.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/zh_CN.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/zh_TW.js +1 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/changelog.txt +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/codemirror.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/codemirror.min.js +4023 -4246
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/customeditor.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/customeditor.min.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/plugin.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/plugin.min.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/readme.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advcode/version.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advlist/plugin.js +33 -48
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/advlist/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/anchor/plugin.js +10 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/anchor/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autolink/plugin.js +60 -30
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autolink/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autoresize/plugin.js +27 -12
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autoresize/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autosave/plugin.js +12 -12
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/autosave/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/bbcode/plugin.js +8 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/bbcode/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/charmap/plugin.js +59 -67
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/charmap/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/code/plugin.js +11 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/code/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/codesample/plugin.js +1934 -1310
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/codesample/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/colorpicker/plugin.js +3 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/colorpicker/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/contextmenu/plugin.js +3 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/contextmenu/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/directionality/plugin.js +200 -59
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/directionality/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojiimages.js +9424 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojis.js +1914 -1506
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/js/emojis.min.js +2 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/plugin.js +255 -181
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/emoticons/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullpage/plugin.js +51 -49
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullpage/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullscreen/plugin.js +542 -163
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/fullscreen/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/help/plugin.js +113 -105
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/help/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/hr/plugin.js +11 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/hr/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/image/plugin.js +187 -170
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/image/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/imagetools/plugin.js +625 -433
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/imagetools/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/importcss/plugin.js +54 -53
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/importcss/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/insertdatetime/plugin.js +24 -17
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/insertdatetime/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/legacyoutput/plugin.js +10 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/legacyoutput/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/link/plugin.js +145 -131
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/link/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/lists/plugin.js +440 -270
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/lists/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/media/plugin.js +232 -186
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/media/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/nonbreaking/plugin.js +15 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/nonbreaking/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/noneditable/plugin.js +8 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/noneditable/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/pagebreak/plugin.js +29 -30
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/pagebreak/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/paste/plugin.js +388 -290
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/paste/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/CHANGELOG.md +345 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/js/wordimport.js +1826 -1696
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ar.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/bg_BG.js +4 -4
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ca.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/cs.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/da.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/de.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/el.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/es.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/eu.js +4 -4
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fa.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fi.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/fr_FR.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/he_IL.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/hr.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/hu_HU.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/id.js +4 -4
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/it.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ja.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/kk.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ko_KR.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/nb_NO.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/nl.js +8 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pl.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pt_BR.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/pt_PT.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ro.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/ru.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sk.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sl_SI.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/sv_SE.js +10 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/th_TH.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/tr.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/uk.js +12 -9
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/zh_CN.js +13 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/langs/zh_TW.js +13 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/plugin.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/plugin.min.js +5 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/readme.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/version.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/preview/plugin.js +18 -17
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/preview/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/print/plugin.js +15 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/print/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/quickbars/plugin.js +76 -85
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/quickbars/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/save/plugin.js +11 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/save/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/searchreplace/plugin.js +108 -103
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/searchreplace/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/spellchecker/plugin.js +54 -59
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/spellchecker/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tabfocus/plugin.js +31 -28
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tabfocus/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/table/plugin.js +4394 -3142
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/table/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/template/plugin.js +89 -73
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/template/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textcolor/plugin.js +3 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textcolor/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textpattern/plugin.js +111 -122
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/textpattern/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/toc/plugin.js +33 -29
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/toc/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualblocks/plugin.js +12 -11
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualblocks/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualchars/plugin.js +89 -101
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/visualchars/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/wordcount/plugin.js +69 -58
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/wordcount/plugin.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/readme.txt +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.css +10 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.css +10 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.inline.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/content.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.css +104 -29
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.css +37 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.min.css +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide/skin.shadowdom.min.css.map +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.css +9 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.css +10 -6
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/content.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.css +104 -29
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.min.css +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.min.css.map +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.min.css +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/mobile/theme.js +2890 -3335
- package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/mobile/theme.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/silver/theme.js +15719 -15353
- package/src/sap/ui/richtexteditor/js/tiny_mce5/themes/silver/theme.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.d.ts +768 -552
- package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.js +6762 -6159
- package/src/sap/ui/richtexteditor/js/tiny_mce5/tinymce.min.js +4 -2
- package/src/sap/ui/richtexteditor/js/tiny_mce5/version.txt +1 -1
- package/src/sap/ui/richtexteditor/library.js +2 -2
- package/src/sap/ui/richtexteditor/themes/base/RichTextEditor.less +0 -44
- package/src/sap/ui/richtexteditor/themes/base/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_belize/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_belize_plus/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_bluecrystal/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_dark/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcb/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcw/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/themes/sap_horizon/library.source.less +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/jam/icons.js +0 -163
- package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/material/icons.js +0 -165
- package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/small/icons.js +0 -153
- package/src/sap/ui/richtexteditor/js/tiny_mce5/icons/thin/icons.js +0 -147
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ar_SA.js +0 -194
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/bs.js +0 -197
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/eo.js +0 -219
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/es_ES.js +0 -370
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/fo.js +0 -219
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/gd.js +0 -219
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/hy.js +0 -419
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/is_IS.js +0 -200
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ku.js +0 -415
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ku_IQ.js +0 -200
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/lb.js +0 -200
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ml.js +0 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ml_IN.js +0 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/ro_RO.js +0 -370
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/si_LK.js +0 -179
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tg.js +0 -197
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/tt.js +0 -200
- package/src/sap/ui/richtexteditor/js/tiny_mce5/langs/vi.js +0 -261
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/changelog.txt +0 -46
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/css/annotations.css +0 -29
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/ar.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/bg_BG.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/ca.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/cs.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/da.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/de.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/el.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/es.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/eu.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/fa.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/fi.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/fr_FR.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/he_IL.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/hr.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/hu_HU.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/id.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/it.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/ja.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/kk.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/ko_KR.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/nb_NO.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/nl.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/pl.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/pt_BR.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/pt_PT.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/ro.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/ru.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/sk.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/sl_SI.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/sv_SE.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/th_TH.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/tr.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/uk.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/zh_CN.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/langs/zh_TW.js +0 -57
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/license.txt +0 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/plugin.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/plugin.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/readme.txt +0 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/a11ychecker/version.txt +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/formatpainter/changelog.txt +0 -11
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/formatpainter/license.txt +0 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/formatpainter/plugin.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/formatpainter/plugin.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/formatpainter/readme.txt +0 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/formatpainter/version.txt +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/linkchecker/changelog.txt +0 -25
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/linkchecker/content.min.css +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/linkchecker/license.txt +0 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/linkchecker/plugin.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/linkchecker/plugin.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/linkchecker/readme.txt +0 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/linkchecker/version.txt +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mediaembed/changelog.txt +0 -26
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mediaembed/content.min.css +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mediaembed/license.txt +0 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mediaembed/plugin.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mediaembed/plugin.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mediaembed/readme.txt +0 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mediaembed/version.txt +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mentions/changelog.txt +0 -22
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mentions/license.txt +0 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mentions/plugin.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mentions/plugin.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mentions/readme.txt +0 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/mentions/version.txt +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/powerpaste/changelog.txt +0 -141
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/changelog.txt +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/css/fonts/remark.eot +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/css/fonts/remark.svg +0 -11
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/css/fonts/remark.ttf +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/css/fonts/remark.woff +0 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/css/tinycomments-tinymce4.css +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/css/tinycomments.css +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/css/tinymce4-content.css +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/css/tinymce4-icons.css +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/js/tinycomments-sidebar.js +0 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/js/tinycomments-sidebar.min.js +0 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/ar.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/bg_BG.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/ca.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/cs.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/da.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/de.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/el.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/es.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/eu.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/fa.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/fi.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/fr_FR.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/he_IL.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/hr.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/hu_HU.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/id.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/it.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/ja.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/kk.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/ko_KR.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/nb_NO.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/nl.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/pl.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/pt_BR.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/pt_PT.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/ro.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/ru.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/sk.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/sl_SI.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/sv_SE.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/th_TH.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/tr.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/uk.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/zh_CN.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/langs/zh_TW.js +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/license.txt +0 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/plugin.js +0 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/plugin.min.js +0 -7
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/readme.txt +0 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinycomments/version.txt +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/assetmanager.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/assetmanager.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/changelog.txt +0 -26
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/license.txt +0 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/plugin.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/plugin.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/readme.txt +0 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/tinydrive.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/tinydrive.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinydrive/version.txt +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/changelog.txt +0 -37
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/ar.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/bg_BG.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/ca.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/cs.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/da.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/de.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/el.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/es.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/eu.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/fa.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/fi.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/fr_FR.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/he_IL.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/hr.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/hu_HU.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/id.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/it.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/ja.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/kk.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/ko_KR.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/nb_NO.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/nl.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/pl.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/pt_BR.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/pt_PT.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/ro.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/ru.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/sk.js +0 -13
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/sl_SI.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/sv_SE.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/th_TH.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/tr.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/uk.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/zh_CN.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/langs/zh_TW.js +0 -14
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/license.txt +0 -5
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/plugin.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/plugin.min.js +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/readme.txt +0 -10
- package/src/sap/ui/richtexteditor/js/tiny_mce5/plugins/tinymcespellchecker/version.txt +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/fabric/content.css +0 -771
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/fabric/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/fabric/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/material-classic/content.css +0 -819
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/material-classic/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/material-classic/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/material-outline/content.css +0 -818
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/material-outline/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/content/material-outline/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/skin.css +0 -2947
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/bootstrap/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/skin.css +0 -2947
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/borderless/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/skin.css +0 -2959
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/fabric/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/skin.css +0 -2954
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/jam/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/skin.css +0 -2983
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-classic/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/skin.css +0 -2983
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/material-outline/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/skin.css +0 -2947
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/naked/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/skin.css +0 -2947
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/outside/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/skin.css +0 -2947
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/small/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.css +0 -728
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.inline.css +0 -742
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.inline.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.inline.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.mobile.css +0 -35
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/content.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/skin.css +0 -2947
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/skin.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/skin.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/skin.mobile.css +0 -678
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/skin.mobile.min.css +0 -8
- package/src/sap/ui/richtexteditor/js/tiny_mce5/skins/ui/snow/skin.mobile.min.css.map +0 -1
- package/src/sap/ui/richtexteditor/themes/base/icons.gif +0 -0
- package/src/sap/ui/richtexteditor/themes/base/icons.png +0 -0
- package/src/sap/ui/richtexteditor/themes/sap_hcb/RichTextEditor.less +0 -108
- package/src/sap/ui/richtexteditor/themes/sap_hcb/library.source.less +0 -9
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Version 1.2.0 (2019-10-25)
|
|
2
|
-
Added a new format registered by the format painter for legacy font-elements #FOPA-28
|
|
3
|
-
Added support for painting on touch devices #FOPA-27
|
|
4
|
-
Version 1.1.0 (2019-03-28)
|
|
5
|
-
Changed so that formats registered by the format painter are namespaced with a prefix #FOPA-25
|
|
6
|
-
Added checklist and liststyletype format registration #FOPA-7
|
|
7
|
-
Fixed an issue that made the format painter too lenient when matching/reading formats #FOPA-23
|
|
8
|
-
Fixed an issue where applying formats with keyboard shortcut would toggle off the format painter #FOPA-22
|
|
9
|
-
Fixed an issue where formats with selectors would be handled incorrectly #FOPA-22
|
|
10
|
-
Version 1.0.0 (2019-01-07)
|
|
11
|
-
Initial release.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Tiny Technologies, Inc SOFTWARE TERMS & CONDITIONS OF USE
|
|
2
|
-
|
|
3
|
-
Use of this software is covered by the Tiny Technologies, Inc Software Terms & Conditions of Use presented at https://about.tiny.cloud/legal/. By use of this Software you have agreed to the Tiny Technologies, Inc Software Terms & Conditions of Use.
|
|
4
|
-
|
|
5
|
-
14 May 2019
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* Tiny FormatPainter plugin
|
|
2
|
-
*
|
|
3
|
-
* Copyright 2010-2018 Tiny Technologies LLC. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Version: 1.2.0-29
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
!function(l){"use strict";var e,r,t,n,o,m,i,d,a,u,c,v,s,g=function(e){var r=e,t=function(){return r};return{get:t,set:function(e){r=e},clone:function(){return g(t())}}},f=function(e){return parseInt(e,10)},p=function(e,r,t){return{major:e,minor:r,patch:t}},h=function(e){var r=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e);return r?p(f(r[1]),f(r[2]),f(r[3])):p(0,0,0)},b=function(e,r){var t=e-r;return 0===t?0:0<t?1:-1},y=function(e,r){return!!e&&-1===function(e,r){var t=b(e.major,r.major);if(0!==t)return t;var n=b(e.minor,r.minor);if(0!==n)return n;var o=b(e.patch,r.patch);return 0!==o?o:0}(h([(t=e).majorVersion,t.minorVersion].join(".").split(".").slice(0,3).join(".")),h(r));var t},S=function(){},O=function(e){return function(){return e}},N=O(!1),w=O(!0),T=function(){return x(0,0)},x=function(e,r){return{major:e,minor:r}},E={nu:x,detect:function(e,r){var t=String(r).toLowerCase();return 0===e.length?T():function(e,r){var t=function(e,r){for(var t=0;t<e.length;t++){var n=e[t];if(n.test(r))return n}}(e,r);if(!t)return{major:0,minor:0};var n=function(e){return Number(r.replace(t,"$"+e))};return x(n(1),n(2))}(e,t)},unknown:T},k="Edge",A="Chrome",_="Opera",D="Firefox",C="Safari",L=function(e,r){return function(){return r===e}},P=function(e){var r=e.current;return{current:r,version:e.version,isEdge:L(k,r),isChrome:L(A,r),isIE:L("IE",r),isOpera:L(_,r),isFirefox:L(D,r),isSafari:L(C,r)}},R={unknown:function(){return P({current:void 0,version:E.unknown()})},nu:P,edge:O(k),chrome:O(A),ie:O("IE"),opera:O(_),firefox:O(D),safari:O(C)},I="Windows",F="Android",M="Linux",B="Solaris",j="FreeBSD",U=function(e,r){return function(){return r===e}},V=function(e){var r=e.current;return{current:r,version:e.version,isWindows:U(I,r),isiOS:U("iOS",r),isAndroid:U(F,r),isOSX:U("OSX",r),isLinux:U(M,r),isSolaris:U(B,r),isFreeBSD:U(j,r)}},q={unknown:function(){return V({current:void 0,version:E.unknown()})},nu:V,windows:O(I),ios:O("iOS"),android:O(F),linux:O(M),osx:O("OSX"),solaris:O(B),freebsd:O(j)},z=function(){return X},X=(e=function(e){return e.isNone()},n={fold:function(e,r){return e()},is:N,isSome:N,isNone:w,getOr:t=function(e){return e},getOrThunk:r=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:O(null),getOrUndefined:O(void 0),or:t,orThunk:r,map:z,each:S,bind:z,exists:N,forall:w,filter:z,equals:e,equals_:e,toArray:function(){return[]},toString:O("none()")},Object.freeze&&Object.freeze(n),n),H=function(t){var e=O(t),r=function(){return o},n=function(e){return e(t)},o={fold:function(e,r){return r(t)},is:function(e){return t===e},isSome:w,isNone:N,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:r,orThunk:r,map:function(e){return H(e(t))},each:function(e){e(t)},bind:n,exists:n,forall:n,filter:function(e){return e(t)?o:X},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,r){return e.fold(N,function(e){return r(t,e)})}};return o},W={some:H,none:z,from:function(e){return null==e?X:H(e)}},Y=function(r){return function(e){return function(e){if(null===e)return"null";var r=typeof e;return"object"===r&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":r}(e)===r}},G=Y("string"),$=Y("array"),K=Y("boolean"),Z=Y("function"),J=Y("number"),Q=Array.prototype.slice,ee=Array.prototype.indexOf,re=Array.prototype.push,te=function(e,r){return t=e,n=r,-1<ee.call(t,n);var t,n},ne=function(e,r){for(var t=0,n=e.length;t<n;t++){if(r(e[t],t))return!0}return!1},oe=function(e,r){for(var t=e.length,n=new Array(t),o=0;o<t;o++){var i=e[o];n[o]=r(i,o)}return n},ie=function(e,r){for(var t=[],n=0,o=e.length;n<o;n++){var i=e[n];r(i,n)&&t.push(i)}return t},ae=function(e,r){for(var t=0,n=e.length;t<n;t++){var o=e[t];if(r(o,t))return W.some(o)}return W.none()},ue=function(e,r){return function(e){for(var r=[],t=0,n=e.length;t<n;++t){if(!$(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);re.apply(r,e[t])}return r}(oe(e,r))},ce=(Z(Array.from)&&Array.from,function(e,r){var t=String(r).toLowerCase();return ae(e,function(e){return e.search(t)})}),se=function(e,t){return ce(e,t).map(function(e){var r=E.detect(e.versionRegexes,t);return{current:e.name,version:r}})},fe=function(e,t){return ce(e,t).map(function(e){var r=E.detect(e.versionRegexes,t);return{current:e.name,version:r}})},le=function(e,r){return-1!==e.indexOf(r)},me=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,de=function(r){return function(e){return le(e,r)}},ve=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return le(e,"edge/")&&le(e,"chrome")&&le(e,"safari")&&le(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,me],search:function(e){return le(e,"chrome")&&!le(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return le(e,"msie")||le(e,"trident")}},{name:"Opera",versionRegexes:[me,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:de("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:de("firefox")},{name:"Safari",versionRegexes:[me,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(le(e,"safari")||le(e,"mobile/"))&&le(e,"applewebkit")}}],ge=[{name:"Windows",search:de("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return le(e,"iphone")||le(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:de("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:de("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:de("linux"),versionRegexes:[]},{name:"Solaris",search:de("sunos"),versionRegexes:[]},{name:"FreeBSD",search:de("freebsd"),versionRegexes:[]}],pe={browsers:O(ve),oses:O(ge)},he=g(function(e,r){var t,n,o,i,a,u,c,s,f,l,m,d,v=pe.browsers(),g=pe.oses(),p=se(v,e).fold(R.unknown,R.nu),h=fe(g,e).fold(q.unknown,q.nu);return{browser:p,os:h,deviceType:(n=p,o=e,i=r,a=(t=h).isiOS()&&!0===/ipad/i.test(o),u=t.isiOS()&&!a,c=t.isiOS()||t.isAndroid(),s=c||i("(pointer:coarse)"),f=a||!u&&c&&i("(min-device-width:768px)"),l=u||c&&!f,m=n.isSafari()&&t.isiOS()&&!1===/safari/i.test(o),d=!l&&!f&&!m,{isiPad:O(a),isiPhone:O(u),isTablet:O(f),isPhone:O(l),isTouch:O(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:O(m),isDesktop:O(d)})}}(l.navigator.userAgent,function(e){return l.window.matchMedia(e).matches})),be=function(){return he.get()},ye=Object.keys,Se=Object.hasOwnProperty,Oe=function(e,r){for(var t=ye(e),n=0,o=t.length;n<o;n++){var i=t[n];r(e[i],i)}},Ne=function(e,n){var o={};return Oe(e,function(e,r){var t=n(e,r);o[t.k]=t.v}),o},we=function(e){return t=function(e){return e},n=[],Oe(e,function(e,r){n.push(t(e,r))}),n;var t,n},Te=function(e,r){return xe(e,r)?W.from(e[r]):W.none()},xe=function(e,r){return Se.call(e,r)},Ee=(l.Node.ATTRIBUTE_NODE,l.Node.CDATA_SECTION_NODE,l.Node.COMMENT_NODE,l.Node.DOCUMENT_NODE,l.Node.DOCUMENT_TYPE_NODE,l.Node.DOCUMENT_FRAGMENT_NODE,l.Node.ELEMENT_NODE),ke=l.Node.TEXT_NODE,Ae=(l.Node.PROCESSING_INSTRUCTION_NODE,l.Node.ENTITY_REFERENCE_NODE,l.Node.ENTITY_NODE,l.Node.NOTATION_NODE,void 0!==l.window?l.window:Function("return this;")(),o=ke,function(e){return e.dom().nodeType===o}),_e=function(e,r,t){!function(e,r,t){if(!(G(t)||K(t)||J(t)))throw l.console.error("Invalid call to Attr.set. Key ",r,":: Value ",t,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(r,t+"")}(e.dom(),r,t)},De=function(e,r){var t=e.dom().getAttribute(r);return null===t?void 0:t},Ce=function(e,r){e.dom().removeAttribute(r)},Le=function(e,r){var t=De(e,r);return void 0===t||""===t?[]:t.split(" ")},Pe=function(e){return void 0!==e.dom().classList},Re=function(e){return Le(e,"class")},Ie=function(e,r){return o=r,i=Le(t=e,n="class").concat([o]),_e(t,n,i.join(" ")),!0;var t,n,o,i},Fe=function(e,r){return o=r,0<(i=ie(Le(t=e,n="class"),function(e){return e!==o})).length?_e(t,n,i.join(" ")):Ce(t,n),!1;var t,n,o,i},Me=function(e,r){var t;Pe(e)?e.dom().classList.remove(r):Fe(e,r);0===(Pe(t=e)?t.dom().classList:Re(t)).length&&Ce(t,"class")},Be=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:O(e)}},je={fromHtml:function(e,r){var t=(r||l.document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw l.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Be(t.childNodes[0])},fromTag:function(e,r){var t=(r||l.document).createElement(e);return Be(t)},fromText:function(e,r){var t=(r||l.document).createTextNode(e);return Be(t)},fromDom:Be,fromPoint:function(e,r,t){var n=e.dom();return W.from(n.elementFromPoint(r,t)).map(Be)}},Ue=function(e,r){e.fire("FormatPainterToggle",{state:r})};(i=m||(m={})).Retrival="Retrieval",i.Application="Application",(a=d||(d={})).ListSchema="ListSchema",a.SubstitutionSchema="SubstitionSchema",(c=u||(u={})).InsertUnorderedList="InsertUnorderedList",c.InsertOrderedList="InsertOrderedList",c.InsertDefinitionList="InsertDefinitionList",(s=v||(v={})).Table="Table",s.Unspecified="Unspecified";var Ve=function(e){var r,t;r=je.fromDom(e.getBody()),t="tox-cursor-format-painter",Pe(r)?r.dom().classList.add(t):Ie(r,t)},qe=function(e,r){var t;t=e,Me(je.fromDom(t.getBody()),"tox-cursor-format-painter"),r.set(m.Retrival),Ue(e,!1)},ze=function(e,r){r.get()===m.Application?qe(e,r):function(r,t){var n=be(),o=g(!1);Ve(r),t.set(m.Application),Ue(r,!0),r.execCommand("mceRetrieveFormats");var i=function(){r.execCommand("mcePaintFormats"),qe(r,t)},e=function(){t.get()===m.Application&&i(),s()},a=function(e){t.get()===m.Application&&("touchcancel"===e.type&&n.os.isAndroid()?r.once("contextmenu",i):o.get()?i():r.once("selectionchange",i)),s()},u=function(e){27===e.keyCode&&(qe(r,t),s())},c=function(e){o.set("touchmove"===e.type)};r.on("click",e),r.on("touchstart touchmove",c),r.on("touchend touchcancel",a),r.on("keydown",u);var s=function(){r.off("click",e),r.off("touchstart touchmove",c),r.off("touchend touchcancel",a),r.off("keydown",u)}}(e,r)},Xe=function(e,r,t){return 0!=(e.compareDocumentPosition(r)&t)},He=function(e,r){return Xe(e,r,l.Node.DOCUMENT_POSITION_CONTAINED_BY)},We=Ee,Ye=function(e,r){return e.dom()===r.dom()},Ge=(be().browser.isIE(),function(e,r){var t=e.dom();if(t.nodeType!==We)return!1;var n=t;if(void 0!==n.matches)return n.matches(r);if(void 0!==n.msMatchesSelector)return n.msMatchesSelector(r);if(void 0!==n.webkitMatchesSelector)return n.webkitMatchesSelector(r);if(void 0!==n.mozMatchesSelector)return n.mozMatchesSelector(r);throw new Error("Browser lacks native selectors")});var $e=function(e,r,t){for(var n=e.dom(),o=Z(t)?t:O(!1);n.parentNode;){n=n.parentNode;var i=je.fromDom(n);if(r(i))return W.some(i);if(o(i))break}return W.none()},Ke=function(e,r,t){var n,o,i,a;return n=$e,a=t,function(e,r){return r(e)}(o=e,i=r)?W.some(o):Z(a)&&a(o)?W.none():n(o,i,a)},Ze={formatpainter_checklist:{selector:"ul",classes:"tox-checklist"},formatpainter_liststyletype:{selector:"ul,ol",styles:{listStyleType:"%value"}},formatpainter_borderstyle:{selector:"td,th",styles:{borderTopStyle:"%valueTop",borderRightStyle:"%valueRight",borderBottomStyle:"%valueBottom",borderLeftStyle:"%valueLeft"},remove_similar:!0},formatpainter_bordercolor:{selector:"td,th",styles:{borderTopColor:"%valueTop",borderRightColor:"%valueRight",borderBottomColor:"%valueBottom",borderLeftColor:"%valueLeft"},remove_similar:!0},formatpainter_backgroundcolor:{selector:"td,th",styles:{backgroundColor:"%value"},remove_similar:!0},formatpainter_removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*:not(tr,td,th,table)",attributes:["style","class"],split:!1,expand:!1,deep:!0}],formatpainter_legacy_font:{inline:"font",attributes:{size:"%value"}}},Je=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var i=arguments[r],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n},Qe=function(i,e){return Te(e,"selector").exists(function(e){var r=i.getBody(),t=i.selection.getStart(),n=i.dom.getParents(t,O(!0),r),o=i.selection.getSelectedBlocks();return i.dom.is(Je(n,o),e)})},er=function(n,e){return ne(n.formatter.get(e),function(e){return r=n,xe(t=e,"inline")&&!Qe(r,t);var r,t})},rr=function(n,e,r){return ne(e.get(r),function(e){return r=n,xe(t=e,"block")||Qe(r,t);var r,t})},tr=function(e){return 1<e.length&&"%"===e.charAt(0)},nr=function(e,r){return ne(e.formatter.get(r),function(e){return t=Te(r=e,"styles").exists(function(e){return ne(we(e),tr)}),n=Te(r,"attributes").exists(function(e){return ne(we(e),tr)}),t||n;var r,t,n})},or=function(e){return Ge(e,"OL,UL,DL")},ir=function(e){return Ge(e,"LI,DT,DD")},ar=function(e,r,t){var n,o=e.formatter,i=er(e,t.formatName),a=rr(e,o,t.formatName),u=(n=t.formatName,te(["formatpainter_borderstyle","formatpainter_bordercolor","formatpainter_backgroundcolor"],n));(r.table&&u||r.inline&&i||r.block&&a&&!u)&&o.apply(t.formatName,t.substitutedVariables)},ur=function(e,r){var t,n,o,i=function(e){return Ye(e,r)};return(t=Ke(je.fromDom(e.getStart()),or,i),n=Ke(je.fromDom(e.getEnd()),or,i),o=function(e,r){return Ye(e,r)},t.isSome()&&n.isSome()?W.some(o(t.getOrDie(),n.getOrDie())):W.none()).getOr(!1)},cr=function(e){var r=e.selection,t=r.getRng(),n=je.fromDom(e.getBody()),o=ie(e.selection.getSelectedBlocks().map(je.fromDom),ir),i=t.collapsed&&o.length,a=o.length&&!ur(r,n);return 1<o.length||i||a},sr=function(n,e){var r,t;r=n,t=e.context,r.formatter.remove("formatpainter_removeformat"),t===v.Table&&function(e,r){for(var t=0,n=e.length;t<n;t++)r(e[t],t)}(["formatpainter_borderstyle","formatpainter_bordercolor","formatpainter_backgroundcolor"],function(e){r.formatter.remove(e)}),cr(r)&&r.execCommand("RemoveList");var o,i,a,u,c,s,f=(a=(o=n).selection.getStart(),u=o.selection.getRng().collapsed,c=0<o.dom.select("td[data-mce-selected]").length,s=!!o.dom.getParent(a,"TABLE"),{inline:!0,table:u&&s||c,block:u||(i=o.selection,1<i.getSelectedBlocks().length)||c});e.schemas.forEach(function(e){switch(e.kind){case d.ListSchema:r=n,t=e,f.block&&r.execCommand(t.command);break;case d.SubstitutionSchema:ar(n,f,e)}var r,t})},fr=function(e){return Pe(e)?function(e){for(var r=e.dom().classList,t=new Array(r.length),n=0;n<r.length;n++)t[n]=r.item(n);return t}(e):Re(e)},lr=function(e,r){var t,n,o=e.dom(),i=l.window.getComputedStyle(o).getPropertyValue(r),a=""!==i||null!=(n=Ae(t=e)?t.dom().parentNode:t.dom())&&n.ownerDocument.body.contains(n)?i:mr(o,r);return null===a?void 0:a},mr=function(e,r){return void 0!==(t=e).style&&Z(t.style.getPropertyValue)?e.style.getPropertyValue(r):"";var t},dr=function(){return(dr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},vr=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var i=arguments[r],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n},gr=function(o,e){return Ne(e,function(e,r){return{k:e.slice(1,e.length),v:(t=o,n=r,"class"===n?fr(t).filter(function(e){return!/^(mce-.*)/.test(e)}).join(" "):De(t,n))};var t,n})},pr=function(e){return(r=e,t=function(e){return 1<(r=e).length&&"%"===r.charAt(0);var r},n={},o={},Oe(r,function(e,r){(t(e,r)?n:o)[r]=e}),{t:n,f:o}).t;var r,t,n,o},hr=function(e,t){var r=Te(e,"styles").map(function(e){return n=t,r=pr(e),Ne(r,function(e,r){return{k:e.slice(1,e.length),v:lr(n,(t=r,t.replace(/([A-Z])/g,function(e){return"-"+e[0].toLowerCase()})))};var t});var n,r}),n=Te(e,"attributes").map(function(e){return gr(t,pr(e))}),o=dr(dr({},r.getOr({})),n.getOr({}));return we(o).every(function(e){return""!==e})?W.some(o):W.none()},br=function(e,r,t){return(n=e.get(r),0===n.length?W.none():W.some(n[0])).bind(function(e){return hr(e,t)}).map(function(e){return{kind:d.SubstitutionSchema,formatName:r,substitutedVariables:e}});var n},yr=function(t,n){return(e=t,r=e.getParam("formatpainter_blacklisted_formats","link,address,removeformat,formatpainter_removeformat","string").split(/[ ,]/),ye(e.formatter.get()).filter(function(e){return!te(r,e)})).filter(function(e){var r=nr(t,e);return t.formatter.matchNode(n.dom(),e,{},r)});var e,r},Sr=function(e){return(r=e,ae(we(u),function(e){return r.queryCommandState(e)})).map(function(e){return{kind:d.ListSchema,command:e}});var r},Or=function(e){var r,t,n,o,i,a=e.dom,u=e.selection.getStart();return{schemas:vr(Sr(e).toArray(),(n=e,o=u,i=n.dom.getParents(o,O(!0)),ue(oe(i,je.fromDom),function(r){return ue(yr(n,r),function(e){return br(n.formatter,e,r).toArray()})}))),context:(r=a,t=u,r.getParent(t,"TABLE")?v.Table:v.Unspecified)}},Nr=function(e){if(y(tinymce,"4.9.0"))return l.window.console.error("The format painter plugin requires at least version 4.9.0 of TinyMCE."),{};var t,r,n,o,i,a,u,c,s=g(m.Retrival),f=g({schemas:[],context:v.Unspecified});return(t=e).on("PreInit",function(){Oe(Ze,function(e,r){t.formatter.get(r)||t.formatter.register(r,e)})}),n=s,o=f,(r=e).addCommand("mceToggleFormatPainter",function(){ze(r,n)}),r.addCommand("mcePaintFormats",function(){r.undoManager.transact(function(){sr(r,o.get())})}),r.addCommand("mceRetrieveFormats",function(){o.set(Or(r))}),(i=e).ui?(u=i).ui.registry.addToggleButton("formatpainter",{active:!1,icon:"format-painter",tooltip:"Format Painter",onAction:function(){return u.execCommand("mceToggleFormatPainter")},onSetup:function(r){var e=function(e){r.setActive(e.state)};return u.on("FormatPainterToggle",e),function(){return u.off("FormatPainterToggle",e)}}}):(a=i).addButton("formatpainter",{active:!1,icon:"format-painter",tooltip:"Format Painter",cmd:"mceToggleFormatPainter",onPostRender:function(r){a.on("FormatPainterToggle",function(e){r.control.active(e.state)})}}),(c=e).addShortcut("Meta+alt+C","",function(){c.execCommand("mceRetrieveFormats")}),c.addShortcut("Meta+alt+V","",function(){c.execCommand("mcePaintFormats")}),{}};tinymce.PluginManager.add("formatpainter",Nr)}(window);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* Tiny FormatPainter plugin
|
|
2
|
-
*
|
|
3
|
-
* Copyright 2010-2018 Tiny Technologies LLC. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Version: 1.2.0-29
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
!function(l){"use strict";var e,r,t,n,o,m,i,d,a,u,c,v,s,g=function(e){var r=e,t=function(){return r};return{get:t,set:function(e){r=e},clone:function(){return g(t())}}},f=function(e){return parseInt(e,10)},p=function(e,r,t){return{major:e,minor:r,patch:t}},h=function(e){var r=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e);return r?p(f(r[1]),f(r[2]),f(r[3])):p(0,0,0)},b=function(e,r){var t=e-r;return 0===t?0:0<t?1:-1},y=function(e,r){return!!e&&-1===function(e,r){var t=b(e.major,r.major);if(0!==t)return t;var n=b(e.minor,r.minor);if(0!==n)return n;var o=b(e.patch,r.patch);return 0!==o?o:0}(h([(t=e).majorVersion,t.minorVersion].join(".").split(".").slice(0,3).join(".")),h(r));var t},S=function(){},O=function(e){return function(){return e}},N=O(!1),w=O(!0),T=function(){return x(0,0)},x=function(e,r){return{major:e,minor:r}},E={nu:x,detect:function(e,r){var t=String(r).toLowerCase();return 0===e.length?T():function(e,r){var t=function(e,r){for(var t=0;t<e.length;t++){var n=e[t];if(n.test(r))return n}}(e,r);if(!t)return{major:0,minor:0};var n=function(e){return Number(r.replace(t,"$"+e))};return x(n(1),n(2))}(e,t)},unknown:T},k="Edge",A="Chrome",_="Opera",D="Firefox",C="Safari",L=function(e,r){return function(){return r===e}},P=function(e){var r=e.current;return{current:r,version:e.version,isEdge:L(k,r),isChrome:L(A,r),isIE:L("IE",r),isOpera:L(_,r),isFirefox:L(D,r),isSafari:L(C,r)}},R={unknown:function(){return P({current:void 0,version:E.unknown()})},nu:P,edge:O(k),chrome:O(A),ie:O("IE"),opera:O(_),firefox:O(D),safari:O(C)},I="Windows",F="Android",M="Linux",B="Solaris",j="FreeBSD",U=function(e,r){return function(){return r===e}},V=function(e){var r=e.current;return{current:r,version:e.version,isWindows:U(I,r),isiOS:U("iOS",r),isAndroid:U(F,r),isOSX:U("OSX",r),isLinux:U(M,r),isSolaris:U(B,r),isFreeBSD:U(j,r)}},q={unknown:function(){return V({current:void 0,version:E.unknown()})},nu:V,windows:O(I),ios:O("iOS"),android:O(F),linux:O(M),osx:O("OSX"),solaris:O(B),freebsd:O(j)},z=function(){return X},X=(e=function(e){return e.isNone()},n={fold:function(e,r){return e()},is:N,isSome:N,isNone:w,getOr:t=function(e){return e},getOrThunk:r=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:O(null),getOrUndefined:O(void 0),or:t,orThunk:r,map:z,each:S,bind:z,exists:N,forall:w,filter:z,equals:e,equals_:e,toArray:function(){return[]},toString:O("none()")},Object.freeze&&Object.freeze(n),n),H=function(t){var e=O(t),r=function(){return o},n=function(e){return e(t)},o={fold:function(e,r){return r(t)},is:function(e){return t===e},isSome:w,isNone:N,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:r,orThunk:r,map:function(e){return H(e(t))},each:function(e){e(t)},bind:n,exists:n,forall:n,filter:function(e){return e(t)?o:X},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(e){return e.is(t)},equals_:function(e,r){return e.fold(N,function(e){return r(t,e)})}};return o},W={some:H,none:z,from:function(e){return null==e?X:H(e)}},Y=function(r){return function(e){return function(e){if(null===e)return"null";var r=typeof e;return"object"===r&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":r}(e)===r}},G=Y("string"),$=Y("array"),K=Y("boolean"),Z=Y("function"),J=Y("number"),Q=Array.prototype.slice,ee=Array.prototype.indexOf,re=Array.prototype.push,te=function(e,r){return t=e,n=r,-1<ee.call(t,n);var t,n},ne=function(e,r){for(var t=0,n=e.length;t<n;t++){if(r(e[t],t))return!0}return!1},oe=function(e,r){for(var t=e.length,n=new Array(t),o=0;o<t;o++){var i=e[o];n[o]=r(i,o)}return n},ie=function(e,r){for(var t=[],n=0,o=e.length;n<o;n++){var i=e[n];r(i,n)&&t.push(i)}return t},ae=function(e,r){for(var t=0,n=e.length;t<n;t++){var o=e[t];if(r(o,t))return W.some(o)}return W.none()},ue=function(e,r){return function(e){for(var r=[],t=0,n=e.length;t<n;++t){if(!$(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);re.apply(r,e[t])}return r}(oe(e,r))},ce=(Z(Array.from)&&Array.from,function(e,r){var t=String(r).toLowerCase();return ae(e,function(e){return e.search(t)})}),se=function(e,t){return ce(e,t).map(function(e){var r=E.detect(e.versionRegexes,t);return{current:e.name,version:r}})},fe=function(e,t){return ce(e,t).map(function(e){var r=E.detect(e.versionRegexes,t);return{current:e.name,version:r}})},le=function(e,r){return-1!==e.indexOf(r)},me=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,de=function(r){return function(e){return le(e,r)}},ve=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return le(e,"edge/")&&le(e,"chrome")&&le(e,"safari")&&le(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,me],search:function(e){return le(e,"chrome")&&!le(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return le(e,"msie")||le(e,"trident")}},{name:"Opera",versionRegexes:[me,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:de("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:de("firefox")},{name:"Safari",versionRegexes:[me,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(le(e,"safari")||le(e,"mobile/"))&&le(e,"applewebkit")}}],ge=[{name:"Windows",search:de("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return le(e,"iphone")||le(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:de("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:de("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:de("linux"),versionRegexes:[]},{name:"Solaris",search:de("sunos"),versionRegexes:[]},{name:"FreeBSD",search:de("freebsd"),versionRegexes:[]}],pe={browsers:O(ve),oses:O(ge)},he=g(function(e,r){var t,n,o,i,a,u,c,s,f,l,m,d,v=pe.browsers(),g=pe.oses(),p=se(v,e).fold(R.unknown,R.nu),h=fe(g,e).fold(q.unknown,q.nu);return{browser:p,os:h,deviceType:(n=p,o=e,i=r,a=(t=h).isiOS()&&!0===/ipad/i.test(o),u=t.isiOS()&&!a,c=t.isiOS()||t.isAndroid(),s=c||i("(pointer:coarse)"),f=a||!u&&c&&i("(min-device-width:768px)"),l=u||c&&!f,m=n.isSafari()&&t.isiOS()&&!1===/safari/i.test(o),d=!l&&!f&&!m,{isiPad:O(a),isiPhone:O(u),isTablet:O(f),isPhone:O(l),isTouch:O(s),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:O(m),isDesktop:O(d)})}}(l.navigator.userAgent,function(e){return l.window.matchMedia(e).matches})),be=function(){return he.get()},ye=Object.keys,Se=Object.hasOwnProperty,Oe=function(e,r){for(var t=ye(e),n=0,o=t.length;n<o;n++){var i=t[n];r(e[i],i)}},Ne=function(e,n){var o={};return Oe(e,function(e,r){var t=n(e,r);o[t.k]=t.v}),o},we=function(e){return t=function(e){return e},n=[],Oe(e,function(e,r){n.push(t(e,r))}),n;var t,n},Te=function(e,r){return xe(e,r)?W.from(e[r]):W.none()},xe=function(e,r){return Se.call(e,r)},Ee=(l.Node.ATTRIBUTE_NODE,l.Node.CDATA_SECTION_NODE,l.Node.COMMENT_NODE,l.Node.DOCUMENT_NODE,l.Node.DOCUMENT_TYPE_NODE,l.Node.DOCUMENT_FRAGMENT_NODE,l.Node.ELEMENT_NODE),ke=l.Node.TEXT_NODE,Ae=(l.Node.PROCESSING_INSTRUCTION_NODE,l.Node.ENTITY_REFERENCE_NODE,l.Node.ENTITY_NODE,l.Node.NOTATION_NODE,void 0!==l.window?l.window:Function("return this;")(),o=ke,function(e){return e.dom().nodeType===o}),_e=function(e,r,t){!function(e,r,t){if(!(G(t)||K(t)||J(t)))throw l.console.error("Invalid call to Attr.set. Key ",r,":: Value ",t,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(r,t+"")}(e.dom(),r,t)},De=function(e,r){var t=e.dom().getAttribute(r);return null===t?void 0:t},Ce=function(e,r){e.dom().removeAttribute(r)},Le=function(e,r){var t=De(e,r);return void 0===t||""===t?[]:t.split(" ")},Pe=function(e){return void 0!==e.dom().classList},Re=function(e){return Le(e,"class")},Ie=function(e,r){return o=r,i=Le(t=e,n="class").concat([o]),_e(t,n,i.join(" ")),!0;var t,n,o,i},Fe=function(e,r){return o=r,0<(i=ie(Le(t=e,n="class"),function(e){return e!==o})).length?_e(t,n,i.join(" ")):Ce(t,n),!1;var t,n,o,i},Me=function(e,r){var t;Pe(e)?e.dom().classList.remove(r):Fe(e,r);0===(Pe(t=e)?t.dom().classList:Re(t)).length&&Ce(t,"class")},Be=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:O(e)}},je={fromHtml:function(e,r){var t=(r||l.document).createElement("div");if(t.innerHTML=e,!t.hasChildNodes()||1<t.childNodes.length)throw l.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Be(t.childNodes[0])},fromTag:function(e,r){var t=(r||l.document).createElement(e);return Be(t)},fromText:function(e,r){var t=(r||l.document).createTextNode(e);return Be(t)},fromDom:Be,fromPoint:function(e,r,t){var n=e.dom();return W.from(n.elementFromPoint(r,t)).map(Be)}},Ue=function(e,r){e.fire("FormatPainterToggle",{state:r})};(i=m||(m={})).Retrival="Retrieval",i.Application="Application",(a=d||(d={})).ListSchema="ListSchema",a.SubstitutionSchema="SubstitionSchema",(c=u||(u={})).InsertUnorderedList="InsertUnorderedList",c.InsertOrderedList="InsertOrderedList",c.InsertDefinitionList="InsertDefinitionList",(s=v||(v={})).Table="Table",s.Unspecified="Unspecified";var Ve=function(e){var r,t;r=je.fromDom(e.getBody()),t="tox-cursor-format-painter",Pe(r)?r.dom().classList.add(t):Ie(r,t)},qe=function(e,r){var t;t=e,Me(je.fromDom(t.getBody()),"tox-cursor-format-painter"),r.set(m.Retrival),Ue(e,!1)},ze=function(e,r){r.get()===m.Application?qe(e,r):function(r,t){var n=be(),o=g(!1);Ve(r),t.set(m.Application),Ue(r,!0),r.execCommand("mceRetrieveFormats");var i=function(){r.execCommand("mcePaintFormats"),qe(r,t)},e=function(){t.get()===m.Application&&i(),s()},a=function(e){t.get()===m.Application&&("touchcancel"===e.type&&n.os.isAndroid()?r.once("contextmenu",i):o.get()?i():r.once("selectionchange",i)),s()},u=function(e){27===e.keyCode&&(qe(r,t),s())},c=function(e){o.set("touchmove"===e.type)};r.on("click",e),r.on("touchstart touchmove",c),r.on("touchend touchcancel",a),r.on("keydown",u);var s=function(){r.off("click",e),r.off("touchstart touchmove",c),r.off("touchend touchcancel",a),r.off("keydown",u)}}(e,r)},Xe=function(e,r,t){return 0!=(e.compareDocumentPosition(r)&t)},He=function(e,r){return Xe(e,r,l.Node.DOCUMENT_POSITION_CONTAINED_BY)},We=Ee,Ye=function(e,r){return e.dom()===r.dom()},Ge=(be().browser.isIE(),function(e,r){var t=e.dom();if(t.nodeType!==We)return!1;var n=t;if(void 0!==n.matches)return n.matches(r);if(void 0!==n.msMatchesSelector)return n.msMatchesSelector(r);if(void 0!==n.webkitMatchesSelector)return n.webkitMatchesSelector(r);if(void 0!==n.mozMatchesSelector)return n.mozMatchesSelector(r);throw new Error("Browser lacks native selectors")});var $e=function(e,r,t){for(var n=e.dom(),o=Z(t)?t:O(!1);n.parentNode;){n=n.parentNode;var i=je.fromDom(n);if(r(i))return W.some(i);if(o(i))break}return W.none()},Ke=function(e,r,t){var n,o,i,a;return n=$e,a=t,function(e,r){return r(e)}(o=e,i=r)?W.some(o):Z(a)&&a(o)?W.none():n(o,i,a)},Ze={formatpainter_checklist:{selector:"ul",classes:"tox-checklist"},formatpainter_liststyletype:{selector:"ul,ol",styles:{listStyleType:"%value"}},formatpainter_borderstyle:{selector:"td,th",styles:{borderTopStyle:"%valueTop",borderRightStyle:"%valueRight",borderBottomStyle:"%valueBottom",borderLeftStyle:"%valueLeft"},remove_similar:!0},formatpainter_bordercolor:{selector:"td,th",styles:{borderTopColor:"%valueTop",borderRightColor:"%valueRight",borderBottomColor:"%valueBottom",borderLeftColor:"%valueLeft"},remove_similar:!0},formatpainter_backgroundcolor:{selector:"td,th",styles:{backgroundColor:"%value"},remove_similar:!0},formatpainter_removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*:not(tr,td,th,table)",attributes:["style","class"],split:!1,expand:!1,deep:!0}],formatpainter_legacy_font:{inline:"font",attributes:{size:"%value"}}},Je=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var i=arguments[r],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n},Qe=function(i,e){return Te(e,"selector").exists(function(e){var r=i.getBody(),t=i.selection.getStart(),n=i.dom.getParents(t,O(!0),r),o=i.selection.getSelectedBlocks();return i.dom.is(Je(n,o),e)})},er=function(n,e){return ne(n.formatter.get(e),function(e){return r=n,xe(t=e,"inline")&&!Qe(r,t);var r,t})},rr=function(n,e,r){return ne(e.get(r),function(e){return r=n,xe(t=e,"block")||Qe(r,t);var r,t})},tr=function(e){return 1<e.length&&"%"===e.charAt(0)},nr=function(e,r){return ne(e.formatter.get(r),function(e){return t=Te(r=e,"styles").exists(function(e){return ne(we(e),tr)}),n=Te(r,"attributes").exists(function(e){return ne(we(e),tr)}),t||n;var r,t,n})},or=function(e){return Ge(e,"OL,UL,DL")},ir=function(e){return Ge(e,"LI,DT,DD")},ar=function(e,r,t){var n,o=e.formatter,i=er(e,t.formatName),a=rr(e,o,t.formatName),u=(n=t.formatName,te(["formatpainter_borderstyle","formatpainter_bordercolor","formatpainter_backgroundcolor"],n));(r.table&&u||r.inline&&i||r.block&&a&&!u)&&o.apply(t.formatName,t.substitutedVariables)},ur=function(e,r){var t,n,o,i=function(e){return Ye(e,r)};return(t=Ke(je.fromDom(e.getStart()),or,i),n=Ke(je.fromDom(e.getEnd()),or,i),o=function(e,r){return Ye(e,r)},t.isSome()&&n.isSome()?W.some(o(t.getOrDie(),n.getOrDie())):W.none()).getOr(!1)},cr=function(e){var r=e.selection,t=r.getRng(),n=je.fromDom(e.getBody()),o=ie(e.selection.getSelectedBlocks().map(je.fromDom),ir),i=t.collapsed&&o.length,a=o.length&&!ur(r,n);return 1<o.length||i||a},sr=function(n,e){var r,t;r=n,t=e.context,r.formatter.remove("formatpainter_removeformat"),t===v.Table&&function(e,r){for(var t=0,n=e.length;t<n;t++)r(e[t],t)}(["formatpainter_borderstyle","formatpainter_bordercolor","formatpainter_backgroundcolor"],function(e){r.formatter.remove(e)}),cr(r)&&r.execCommand("RemoveList");var o,i,a,u,c,s,f=(a=(o=n).selection.getStart(),u=o.selection.getRng().collapsed,c=0<o.dom.select("td[data-mce-selected]").length,s=!!o.dom.getParent(a,"TABLE"),{inline:!0,table:u&&s||c,block:u||(i=o.selection,1<i.getSelectedBlocks().length)||c});e.schemas.forEach(function(e){switch(e.kind){case d.ListSchema:r=n,t=e,f.block&&r.execCommand(t.command);break;case d.SubstitutionSchema:ar(n,f,e)}var r,t})},fr=function(e){return Pe(e)?function(e){for(var r=e.dom().classList,t=new Array(r.length),n=0;n<r.length;n++)t[n]=r.item(n);return t}(e):Re(e)},lr=function(e,r){var t,n,o=e.dom(),i=l.window.getComputedStyle(o).getPropertyValue(r),a=""!==i||null!=(n=Ae(t=e)?t.dom().parentNode:t.dom())&&n.ownerDocument.body.contains(n)?i:mr(o,r);return null===a?void 0:a},mr=function(e,r){return void 0!==(t=e).style&&Z(t.style.getPropertyValue)?e.style.getPropertyValue(r):"";var t},dr=function(){return(dr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},vr=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var i=arguments[r],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n},gr=function(o,e){return Ne(e,function(e,r){return{k:e.slice(1,e.length),v:(t=o,n=r,"class"===n?fr(t).filter(function(e){return!/^(mce-.*)/.test(e)}).join(" "):De(t,n))};var t,n})},pr=function(e){return(r=e,t=function(e){return 1<(r=e).length&&"%"===r.charAt(0);var r},n={},o={},Oe(r,function(e,r){(t(e,r)?n:o)[r]=e}),{t:n,f:o}).t;var r,t,n,o},hr=function(e,t){var r=Te(e,"styles").map(function(e){return n=t,r=pr(e),Ne(r,function(e,r){return{k:e.slice(1,e.length),v:lr(n,(t=r,t.replace(/([A-Z])/g,function(e){return"-"+e[0].toLowerCase()})))};var t});var n,r}),n=Te(e,"attributes").map(function(e){return gr(t,pr(e))}),o=dr(dr({},r.getOr({})),n.getOr({}));return we(o).every(function(e){return""!==e})?W.some(o):W.none()},br=function(e,r,t){return(n=e.get(r),0===n.length?W.none():W.some(n[0])).bind(function(e){return hr(e,t)}).map(function(e){return{kind:d.SubstitutionSchema,formatName:r,substitutedVariables:e}});var n},yr=function(t,n){return(e=t,r=e.getParam("formatpainter_blacklisted_formats","link,address,removeformat,formatpainter_removeformat","string").split(/[ ,]/),ye(e.formatter.get()).filter(function(e){return!te(r,e)})).filter(function(e){var r=nr(t,e);return t.formatter.matchNode(n.dom(),e,{},r)});var e,r},Sr=function(e){return(r=e,ae(we(u),function(e){return r.queryCommandState(e)})).map(function(e){return{kind:d.ListSchema,command:e}});var r},Or=function(e){var r,t,n,o,i,a=e.dom,u=e.selection.getStart();return{schemas:vr(Sr(e).toArray(),(n=e,o=u,i=n.dom.getParents(o,O(!0)),ue(oe(i,je.fromDom),function(r){return ue(yr(n,r),function(e){return br(n.formatter,e,r).toArray()})}))),context:(r=a,t=u,r.getParent(t,"TABLE")?v.Table:v.Unspecified)}},Nr=function(e){if(y(tinymce,"4.9.0"))return l.window.console.error("The format painter plugin requires at least version 4.9.0 of TinyMCE."),{};var t,r,n,o,i,a,u,c,s=g(m.Retrival),f=g({schemas:[],context:v.Unspecified});return(t=e).on("PreInit",function(){Oe(Ze,function(e,r){t.formatter.get(r)||t.formatter.register(r,e)})}),n=s,o=f,(r=e).addCommand("mceToggleFormatPainter",function(){ze(r,n)}),r.addCommand("mcePaintFormats",function(){r.undoManager.transact(function(){sr(r,o.get())})}),r.addCommand("mceRetrieveFormats",function(){o.set(Or(r))}),(i=e).ui?(u=i).ui.registry.addToggleButton("formatpainter",{active:!1,icon:"format-painter",tooltip:"Format Painter",onAction:function(){return u.execCommand("mceToggleFormatPainter")},onSetup:function(r){var e=function(e){r.setActive(e.state)};return u.on("FormatPainterToggle",e),function(){return u.off("FormatPainterToggle",e)}}}):(a=i).addButton("formatpainter",{active:!1,icon:"format-painter",tooltip:"Format Painter",cmd:"mceToggleFormatPainter",onPostRender:function(r){a.on("FormatPainterToggle",function(e){r.control.active(e.state)})}}),(c=e).addShortcut("Meta+alt+C","",function(){c.execCommand("mceRetrieveFormats")}),c.addShortcut("Meta+alt+V","",function(){c.execCommand("mcePaintFormats")}),{}};tinymce.PluginManager.add("formatpainter",Nr)}(window);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
formatpainter - build: 1.2.0-29
|
|
2
|
-
|
|
3
|
-
Documentation
|
|
4
|
-
-----------------
|
|
5
|
-
For detailed documentation, please see the following location:
|
|
6
|
-
https://www.tiny.cloud/docs/plugins/
|
|
7
|
-
|
|
8
|
-
Support
|
|
9
|
-
-----------------
|
|
10
|
-
For further support, please use the Tiny Support website, located here: https://support.tiny.cloud/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.2.0-29
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Version 2.1.0 (2020-02-13)
|
|
2
|
-
Added new `linkchecker_preprocess` function to allow links to be adjusted before link checking #LIN-3
|
|
3
|
-
Version 2.0.3 (2019-06-07)
|
|
4
|
-
Fixed link checking being performed incorrectly on empty links #TINY-3654
|
|
5
|
-
Version 2.0.2 (2019-04-29)
|
|
6
|
-
Changed error messages to display in the console instead of the UI #TINY-3593
|
|
7
|
-
Fixed repeating context menu items #TINY-3543
|
|
8
|
-
Improved screen reader accessibility and added "ignore invalid link" status #TINY-2329
|
|
9
|
-
Marked local links as unknown instead of invalid.
|
|
10
|
-
Version 1.1.1 (2018-05-16)
|
|
11
|
-
Fixed bug where the link context menu wasn't working #TINY-1680.
|
|
12
|
-
Version 1.1.0 (2018-02-01)
|
|
13
|
-
Decreased plugin size by improving build steps.
|
|
14
|
-
Version 1.0.5 (2017-12-08)
|
|
15
|
-
Fixed issue where it would use a direct reference to the menu control instead of using the ui factory.
|
|
16
|
-
Version 1.0.4 (2017-06-13)
|
|
17
|
-
Fixed so that the error messages are more human readable. #TINY-1077
|
|
18
|
-
Version 1.0.3 (2017-05-04)
|
|
19
|
-
Fixed bug where anchor links were highlighted as invalid, they are now ignored by the checker. #TINY-997
|
|
20
|
-
Version 1.0.2 (2017-04-03)
|
|
21
|
-
Added inline tooltip to show more info when a link does not seem to be valid. #TINY-944
|
|
22
|
-
Version 1.0.1 (2017-03-01)
|
|
23
|
-
Fixed web url normalization. #TINY-922
|
|
24
|
-
Version 1.0.0 (2017-01-11)
|
|
25
|
-
Initial release.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a[data-mce-linkchecker-status="invalid"]{outline-color:rgba(231,76,60,0.25);background-color:rgba(231,76,60,0.25)}a[data-mce-linkchecker-focus="true"]{outline:1px solid rgba(231,76,60,0.75)}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Tiny Technologies, Inc SOFTWARE TERMS & CONDITIONS OF USE
|
|
2
|
-
|
|
3
|
-
Use of this software is covered by the Tiny Technologies, Inc Software Terms & Conditions of Use presented at https://about.tiny.cloud/legal/. By use of this Software you have agreed to the Tiny Technologies, Inc Software Terms & Conditions of Use.
|
|
4
|
-
|
|
5
|
-
14 May 2019
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* Tiny link checker plugin
|
|
2
|
-
*
|
|
3
|
-
* Copyright 2010-2020 Tiny Technologies Inc. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Version: 2.1.0-97
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
!function(p){"use strict";var n,t,e,r,o,u,d=function(n){var t=n,e=function(){return t};return{get:e,set:function(n){t=n},clone:function(){return d(e())}}},i=function(n){return parseInt(n,10)},c=function(n,t){var e=n-t;return 0===e?0:0<e?1:-1},a=function(n,t,e){return{major:n,minor:t,patch:e}},f=function(n){var t=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(n);return t?a(i(t[1]),i(t[2]),i(t[3])):a(0,0,0)},m=function(n,t){return!!n&&-1===function(n,t){var e=c(n.major,t.major);if(0!==e)return e;var r=c(n.minor,t.minor);if(0!==r)return r;var o=c(n.patch,t.patch);return 0!==o?o:0}(f([(e=n).majorVersion,e.minorVersion].join(".").split(".").slice(0,3).join(".")),f(t));var e},l=function(r,o){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=r.console;e&&o in e&&e[o].apply(e,arguments)}},h={log:l(window,"log"),error:l(window,"error"),warn:l(window,"warm")},s=function(){},v=function(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e(r.apply(null,n))}},g=function(n){return function(){return n}},y=function(n){return n},w=g(!1),k=g(!0),T=function(n){return n.getParam("linkchecker_service_url",void 0,"string")},b=function(t,e){var r,n;return(n=function(){var n=arguments;clearTimeout(r),r=setTimeout(function(){t.apply(this,n)},e)}).stop=function(){clearTimeout(r)},n},x=function(){return O},O=(n=function(n){return n.isNone()},r={fold:function(n,t){return n()},is:w,isSome:w,isNone:k,getOr:e=function(n){return n},getOrThunk:t=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:e,orThunk:t,map:x,each:s,bind:x,exists:w,forall:k,filter:x,equals:n,equals_:n,toArray:function(){return[]},toString:g("none()")},Object.freeze&&Object.freeze(r),r),_=function(e){var n=g(e),t=function(){return o},r=function(n){return n(e)},o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:k,isNone:w,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return _(n(e))},each:function(n){n(e)},bind:r,exists:r,forall:r,filter:function(n){return n(e)?o:O},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(w,function(n){return t(e,n)})}};return o},E={some:_,none:x,from:function(n){return null==n?O:_(n)}},j=function(t){return function(n){return function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t}(n)===t}},A=j("object"),R=j("array"),S=j("boolean"),F=j("function"),C=Array.prototype.slice,D=Array.prototype.indexOf,I=Array.prototype.push,P=function(n,t){return e=n,r=t,-1<D.call(e,r);var e,r},N=function(n,t){for(var e=n.length,r=new Array(e),o=0;o<e;o++){var u=n[o];r[o]=t(u,o)}return r},L=function(n,t){for(var e=0,r=n.length;e<r;e++){t(n[e],e)}},M=function(n,t,e){return L(n,function(n){e=t(e,n)}),e},U=function(n){for(var t=[],e=0,r=n.length;e<r;++e){if(!R(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);I.apply(t,n[e])}return t},B=(F(Array.from)&&Array.from,Object.keys),q=Object.hasOwnProperty,J=function(n,t){for(var e=B(n),r=0,o=e.length;r<o;r++){var u=e[r];t(n[u],u)}},V=function(n,e){return H(n,function(n,t){return{k:t,v:e(n,t)}})},H=function(n,r){var o={};return J(n,function(n,t){var e=r(n,t);o[e.k]=e.v}),o},z=function(n,e){var r=[];return J(n,function(n,t){r.push(e(n,t))}),r},W=function(n,t){return $(n,t)?E.from(n[t]):E.none()},$=function(n,t){return q.call(n,t)},Y=function(i){if(!R(i))throw new Error("cases must be an array");if(0===i.length)throw new Error("there must be at least one case");var c=[],e={};return L(i,function(n,r){var t=B(n);if(1!==t.length)throw new Error("one and only one name per case");var o=t[0],u=n[o];if(void 0!==e[o])throw new Error("duplicate key detected:"+o);if("cata"===o)throw new Error("cannot have a case named cata (sorry)");if(!R(u))throw new Error("case arguments must be an array");c.push(o),e[o]=function(){var n=arguments.length;if(n!==u.length)throw new Error("Wrong number of arguments to case "+o+". Expected "+u.length+" ("+u+"), got "+n);for(var e=new Array(n),t=0;t<e.length;t++)e[t]=arguments[t];return{fold:function(){if(arguments.length!==i.length)throw new Error("Wrong number of arguments to fold. Expected "+i.length+", got "+arguments.length);return arguments[r].apply(null,e)},match:function(n){var t=B(n);if(c.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+c.join(",")+"\nActual: "+t.join(","));if(!function(n,t){for(var e=0,r=n.length;e<r;++e)if(!0!==t(n[e],e))return!1;return!0}(c,function(n){return P(t,n)}))throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+c.join(", "));return n[o].apply(null,e)},log:function(n){p.console.log(n,{constructors:c,constructor:o,params:e})}}}}),e},K=Y([{invalid:["invalidUrl"]},{unknown:["unknownUrl"]},{valid:["validUrl"]}]),X=function(n,t,e,r){return n.fold(t,e,r)},G=function(n){return n&&/^https?:\/\//.test(n)},Q=function(n){return 0===n.indexOf("mailto:")||"#"===n.charAt(0)},Z=tinymce.DOM,nn=tinymce.util.Tools,tn="data-mce-linkchecker-status",en="data-mce-linkchecker-focus",rn=function(n){var t=Z.select('a[href]:not([href=""])',n);return nn.map(t,function(n){return Z.getAttrib(n,"href")})},on=function(n,t){Z.setAttrib(n,tn,t),an(n)&&Z.setAttrib(n,"aria-invalid",!0)},un=function(t,n){return nn.map(n,function(n){return{url:t(Z.getAttrib(n,"href")),elm:n}})},cn=function(n,t){return nn.grep(n,function(n){return n.url===t})},an=function(n){return"invalid"===Z.getAttrib(n,tn)},fn=function(n,t){return Z.setAttrib(n,en,t?"true":null)},ln=function(t){return function(n){nn.each(n,function(n){return n.attr(t,null)})}},sn=function(c){return function(n){var t,e,r,o=n.trim(),u=!1===G(t=o)&&/^\w+:/.test(t)?o:c.documentBaseURI.toAbsolute(o),i=(0===u.indexOf("//")?location.protocol+u:u).replace(/ /g,"%20");return e=i,(r=document.createElement("a")).href=e,G(e)?r.href:e}},pn=function(n){return function(){n.execCommand("mceLink")}},dn=function(n,t){return function(){!function(n){if(!tinymce.Env.ie||10<tinymce.Env.ie){var t=document.createElement("a");t.target="_blank",t.href=n,t.rel="noreferrer noopener";var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,!0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}else{var r=window.open("","_blank");if(r){r.opener=null;var o=r.document;o.open(),o.write('<meta http-equiv="refresh" content="0; url='+tinymce.DOM.encode(n)+'">'),o.close()}}}(sn(n)(tinymce.DOM.getAttrib(t,"href")))}},mn=function(n,t){return function(){n.undoManager.transact(function(){tinymce.DOM.remove(t,!0)})}},hn=function(n,t){return function(){n.add(t.href),on(t,"ignored")}},vn=tinymce.DOM,gn=function(n,t,e){var r,o,u,i,c,a,f,l=new tinymce.ui.Factory.create("menu",{items:[(r=n,r.plugins.link?{text:"Link",icon:"link",onclick:pn(r)}:null),{text:"Open link",icon:"newtab",onclick:dn(n,t)},{text:"Remove link",icon:"unlink",onclick:mn(n,t)},{text:"-"},{text:"Ignore",onclick:hn(e,t)}],context:"contextmenu",onhide:function(){l.remove(),fn(t,!1)}});l.renderTo(document.body),o=n,u=l,i=t,c=vn.getPos(o.getContentAreaContainer()),a=o.dom.getPos(i),"BODY"===(f=o.dom.getRoot()).nodeName?(a.x-=f.ownerDocument.documentElement.scrollLeft||f.scrollLeft,a.y-=f.ownerDocument.documentElement.scrollTop||f.scrollTop):(a.x-=f.scrollLeft,a.y-=f.scrollTop),c.x+=a.x,c.y+=a.y,u.moveTo(c.x,c.y+i.offsetHeight+1),fn(t,!0)},yn=function(n,t){var e,r;n.on("contextmenu",(e=n,r=t,function(n){var t=e.dom.getParent(n.target,"a[href]");an(t)&&(n.preventDefault(),n.stopImmediatePropagation(),gn(e,t,r))}),!0)},wn=function(n,t,e){return[{text:"Ignore",onAction:hn(e,t)}]},kn=function(n,t,e){var r,o=function(n,t){for(var e=[],r=0,o=n.length;r<o;r++){var u=n[r];t(u,r)&&e.push(u)}return e}(n.getParam("contextmenu","").split(" "),function(n){return""!==n});if(0!==o.length&&-1===o.indexOf("link")){var u=[{text:"Remove link",icon:"unlink",onAction:mn(n,e)},{text:"Open link",icon:"new-tab",onAction:dn(n,e)},{type:"separator"}];return(r=n,r.plugins.link?[{text:"Link...",icon:"link",onAction:pn(r)}]:[]).concat(u).concat(wn(0,e,t))}return wn(0,e,t)},Tn=tinymce.util.Tools,bn=function(n,t){return Tn.grep(n,function(n){return!1===t.has(n)})},xn=function(t){return function(n){return G(n)===t}},On=function(n,t,o,e,u){var r=Tn.grep(Tn.map(rn(u),o),xn(!0));n.checkMany(bn(r,t)).get(function(n){n.fold(e.logError,function(n){return t=u,e=n,r=un(o,Z.select("a[href]",t)),void nn.each(e,function(n,t){nn.each(cn(r,t),function(t){X(n.result,function(n){on(t.elm,"invalid")},function(n){on(t.elm,"unknown")},function(n){on(t.elm,"valid")})})});var t,e,r})})},_n=function(n,t,e,r,o){var u,i,c,a,f=Tn.grep(Tn.map(rn(o),e),xn(!1)),l=bn((u=f,Tn.grep(u,function(n){return!1===Q(n)})),t);i=o,c=l,a=un(e,Z.select("a[href]",i)),nn.each(c,function(n){nn.each(cn(a,n),function(n){on(n.elm,"unknown")})})},En=function(n,t,e,r,o){var u=o.getBody();On(n,t,e,r,u),_n(0,t,e,0,u)},jn=function(n,t,e,r,o,u,i){var c,a,f,l,s=b(En,500);(c=n.serializer).addTempAttr(tn),c.addTempAttr(en),c.addAttributeFilter(tn,ln(tn)),c.addAttributeFilter(en,ln(tn)),n.dom.loadCSS((a=u,n.getParam("linkchecker_content_css")||a+"/content.min.css")),n.on("change setContent undo redo",function(){s(r,t,e,o,n,i)}),En(r,t,e,o,n),i?(l=t,(f=n).ui.registry.addContextMenu("linkchecker",{update:function(n){var t=f.dom.getParent(n,"a[href]");return an(t)?kn(f,l,t):[]}})):yn(n,t)},An=function(n,t){return function(){return{status:n,message:t}}},Rn=An("invalid","URL does not seem to be valid"),Sn=An("none",""),Fn=An("valid","The URL seems to be valid"),Cn=function(n,r,t){var e,o=b((e=t,function(n,t){e.checkOne(n).get(function(n){n.fold(function(){t({status:"none",message:""})},function(n){X(n.result,function(n){t(Rn())},function(n){t(Sn())},function(n){t(Fn())})})})}),500);return function(n,t){var e=r(n.url);0===n.url.length||!G(e)&&Q(e)?t(Fn()):G(e)?o(e,t):t(Sn())}},Dn=function(n,t){return $(e=n,r=t)?E.from(e[r]):E.none();var e,r},In=function(n,t){var e={};return e[n]=t,e},Pn=function(e){return{is:function(n){return e===n},isValue:k,isError:w,getOr:g(e),getOrThunk:g(e),getOrDie:g(e),or:function(n){return Pn(e)},orThunk:function(n){return Pn(e)},fold:function(n,t){return t(e)},map:function(n){return Pn(n(e))},mapError:function(n){return Pn(e)},each:function(n){n(e)},bind:function(n){return n(e)},exists:function(n){return n(e)},forall:function(n){return n(e)},toOption:function(){return E.some(e)}}},Nn=function(e){return{is:w,isValue:w,isError:k,getOr:y,getOrThunk:function(n){return n()},getOrDie:function(){return n=String(e),function(){throw new Error(n)}();var n},or:function(n){return n},orThunk:function(n){return n()},fold:function(n,t){return n(e)},map:function(n){return Nn(e)},mapError:function(n){return Nn(n(e))},each:s,bind:function(n){return Nn(e)},exists:w,forall:k,toOption:E.none}},Ln={value:Pn,error:Nn,fromOption:function(n,t){return n.fold(function(){return Nn(t)},Pn)}},Mn=(Y([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),Object.prototype.hasOwnProperty),Un=function(i){return function(){for(var n=new Array(arguments.length),t=0;t<n.length;t++)n[t]=arguments[t];if(0===n.length)throw new Error("Can't merge zero objects");for(var e={},r=0;r<n.length;r++){var o=n[r];for(var u in o)Mn.call(o,u)&&(e[u]=i(e[u],o[u]))}return e}},Bn=Un(function(n,t){return A(n)&&A(t)?Bn(n,t):t}),qn=Un(function(n,t){return t}),Jn=function(n,t){return e=t,r={},L(n,function(n){var t=n[e];r[t]=n}),r;var e,r};(u=o||(o={}))[u.Error=0]="Error",u[u.Value=1]="Value";var Vn,Hn,zn,Wn=function(n,t,e){return n.stype===o.Error?t(n.serror):e(n.svalue)},$n=function(n){return{stype:o.Value,svalue:n}},Yn=function(n){return{stype:o.Error,serror:n}},Kn=function(n){return Wn(n,Ln.error,Ln.value)},Xn=$n,Gn=function(n){var t=[],e=[];return L(n,function(n){Wn(n,function(n){return e.push(n)},function(n){return t.push(n)})}),{values:t,errors:e}},Qn=Yn,Zn=function(n,t){return n.stype===o.Value?t(n.svalue):n},nt=function(n,t){return n.stype===o.Error?t(n.serror):n},tt=function(n,t){return n.stype===o.Value?{stype:o.Value,svalue:t(n.svalue)}:n},et=function(n,t){return n.stype===o.Error?{stype:o.Error,serror:t(n.serror)}:n},rt=Y([{setOf:["validator","valueType"]},{arrOf:["valueType"]},{objOf:["fields"]},{itemOf:["validator"]},{choiceOf:["key","branches"]},{thunk:["description"]},{func:["args","outputSchema"]}]),ot=Y([{field:["name","presence","type"]},{state:["name"]}]),ut=function(n){return A(n)&&100<B(n).length?" removed due to size":JSON.stringify(n,null,2)},it=function(n,t){return Qn([{path:n,getErrorInfo:t}])},ct=Y([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),at=ct.strict,ft=(ct.asOption,ct.defaultedThunk,ct.asDefaultedOptionThunk,ct.mergeWithThunk,function(n){return v(Qn,U)(n)}),lt=function(n,t){var e,r,o=Gn(n);return 0<o.errors.length?ft(o.errors):(e=o.values,r=t,0<e.length?Xn(Bn(r,qn.apply(void 0,e))):Xn(r))},st=function(n){var t=Gn(n);return 0<t.errors.length?ft(t.errors):Xn(t.values)},pt=Y([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),dt=function(e,r,o){return Dn(r,o).fold(function(){return n=o,t=r,it(e,function(){return'Could not find valid *strict* value for "'+n+'" in '+ut(t)});var n,t},Xn)},mt=function(n,t,e){var r=Dn(n,t).fold(function(){return e(n)},y);return Xn(r)},ht=function(c,a,n,f){return n.fold(function(o,e,n,r){var u=function(n){var t=r.extract(c.concat([o]),f,n);return tt(t,function(n){return In(e,f(n))})},i=function(n){return n.fold(function(){var n=In(e,f(E.none()));return Xn(n)},function(n){var t=r.extract(c.concat([o]),f,n);return tt(t,function(n){return In(e,f(E.some(n)))})})};return n.fold(function(){return Zn(dt(c,a,o),u)},function(n){return Zn(mt(a,o,n),u)},function(){return Zn(Xn(Dn(a,o)),i)},function(n){return Zn((e=n,r=Dn(t=a,o).map(function(n){return!0===n?e(t):n}),Xn(r)),i);var t,e,r},function(n){var t=n(a),e=tt(mt(a,o,g({})),function(n){return Bn(t,n)});return Zn(e,u)})},function(n,t){var e=t(a);return Xn(In(n,f(e)))})},vt=function(c){return{extract:function(n,t,e){return r=n,o=e,u=t,i=N(c,function(n){return ht(r,o,n,u)}),lt(i,{});var r,o,u,i},toString:function(){return"obj{\n"+N(c,function(n){return n.fold(function(n,t,e,r){return n+" -> "+r.toString()},function(n,t){return"state("+n+")"})}).join("\n")+"}"},toDsl:function(){return rt.objOf(N(c,function(n){return n.fold(function(n,t,e,r){return ot.field(n,e,r)},function(n,t){return ot.state(n)})}))}}},gt=g((Vn=Xn,{extract:function(e,n,t){return nt(Vn(t,n),function(n){return t=n,it(e,function(){return t});var t})},toString:function(){return"val"},toDsl:function(){return rt.itemOf(Vn)}})),yt=v(function(o){return{extract:function(e,r,n){var t=N(n,function(n,t){return o.extract(e.concat(["["+t+"]"]),r,n)});return st(t)},toString:function(){return"array("+o.toString()+")"},toDsl:function(){return rt.arrOf(o)}}},vt),wt=(pt.state,pt.field),kt=function(n,t,e){return Kn((r=n,o=y,u=e,i=t.extract([r],o,u),et(i,function(n){return{input:u,errors:n}})));var r,o,u,i},Tt=function(n,t,e){return kt(n,t,e).fold(function(n){throw new Error(bt(n))},y)},bt=function(n){return"Errors: \n"+(t=n.errors,e=10<t.length?t.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):t,N(e,function(n){return"Failed path: ("+n.path.join(" > ")+")\n"+n.getErrorInfo()}))+"\n\nInput object: "+ut(n.input);var t,e},xt=function(){return(new Date).getTime()};(zn=Hn||(Hn={})).JSON="json",zn.Blob="blob",zn.Text="text",zn.FormData="formdata",zn.MultipartFormData="multipart/form-data";var Ot,_t,Et,jt=function(){return(jt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)},At={},Rt={exports:At};_t=At,Et=Rt,Ot=void 0,function(n){"object"==typeof _t&&void 0!==Et?Et.exports=n():"function"==typeof Ot&&Ot.amd?Ot([],n):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=n()}(function(){return function u(i,c,a){function f(t,n){if(!c[t]){if(!i[t]){var e=!1;if(!n&&e)return e(t,!0);if(l)return l(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[t]={exports:{}};i[t][0].call(o.exports,function(n){return f(i[t][1][n]||n)},o,o.exports,u,i,c,a)}return c[t].exports}for(var l=!1,n=0;n<a.length;n++)f(a[n]);return f}({1:[function(n,t,e){var r,o,u=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(n){try{return r.call(null,t,0)}catch(n){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(n){r=i}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(n){o=c}}();var f,l=[],s=!1,p=-1;function d(){s&&f&&(s=!1,f.length?l=f.concat(l):p=-1,l.length&&m())}function m(){if(!s){var n=a(d);s=!0;for(var t=l.length;t;){for(f=l,l=[];++p<t;)f&&f[p].run();p=-1,t=l.length}f=null,s=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(n){try{return o.call(null,t)}catch(n){return o.call(this,t)}}}(n)}}function h(n,t){this.fun=n,this.array=t}function v(){}u.nextTick=function(n){var t=new Array(arguments.length-1);if(1<arguments.length)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];l.push(new h(n,t)),1!==l.length||s||a(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=v,u.addListener=v,u.once=v,u.off=v,u.removeListener=v,u.removeAllListeners=v,u.emit=v,u.prependListener=v,u.prependOnceListener=v,u.listeners=function(n){return[]},u.binding=function(n){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(n){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],2:[function(n,s,t){(function(e){!function(n){var t=setTimeout;function r(){}function u(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(n,this)}function o(e,r){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,u._immediateFn(function(){var n=1===e._state?r.onFulfilled:r.onRejected;if(null!==n){var t;try{t=n(e._value)}catch(n){return void c(r.promise,n)}i(r.promise,t)}else(1===e._state?i:c)(r.promise,e._value)})):e._deferreds.push(r)}function i(t,n){try{if(n===t)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var e=n.then;if(n instanceof u)return t._state=3,t._value=n,void a(t);if("function"==typeof e)return void l((r=e,o=n,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=n,a(t)}catch(n){c(t,n)}var r,o}function c(n,t){n._state=2,n._value=t,a(n)}function a(n){2===n._state&&0===n._deferreds.length&&u._immediateFn(function(){n._handled||u._unhandledRejectionFn(n._value)});for(var t=0,e=n._deferreds.length;t<e;t++)o(n,n._deferreds[t]);n._deferreds=null}function f(n,t,e){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=e}function l(n,t){var e=!1;try{n(function(n){e||(e=!0,i(t,n))},function(n){e||(e=!0,c(t,n))})}catch(n){if(e)return;e=!0,c(t,n)}}u.prototype.catch=function(n){return this.then(null,n)},u.prototype.then=function(n,t){var e=new this.constructor(r);return o(this,new f(n,t,e)),e},u.all=function(n){var c=Array.prototype.slice.call(n);return new u(function(r,o){if(0===c.length)return r([]);var u=c.length;function i(t,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var e=n.then;if("function"==typeof e)return void e.call(n,function(n){i(t,n)},o)}c[t]=n,0==--u&&r(c)}catch(n){o(n)}}for(var n=0;n<c.length;n++)i(n,c[n])})},u.resolve=function(t){return t&&"object"==typeof t&&t.constructor===u?t:new u(function(n){n(t)})},u.reject=function(e){return new u(function(n,t){t(e)})},u.race=function(o){return new u(function(n,t){for(var e=0,r=o.length;e<r;e++)o[e].then(n,t)})},u._immediateFn="function"==typeof e?function(n){e(n)}:function(n){t(n,0)},u._unhandledRejectionFn=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)},u._setImmediateFn=function(n){u._immediateFn=n},u._setUnhandledRejectionFn=function(n){u._unhandledRejectionFn=n},void 0!==s&&s.exports?s.exports=u:n.Promise||(n.Promise=u)}(this)}).call(this,n("timers").setImmediate)},{timers:3}],3:[function(a,n,f){(function(n,t){var r=a("process/browser.js").nextTick,e=Function.prototype.apply,o=Array.prototype.slice,u={},i=0;function c(n,t){this._id=n,this._clearFn=t}f.setTimeout=function(){return new c(e.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new c(e.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(n){n.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(n,t){clearTimeout(n._idleTimeoutId),n._idleTimeout=t},f.unenroll=function(n){clearTimeout(n._idleTimeoutId),n._idleTimeout=-1},f._unrefActive=f.active=function(n){clearTimeout(n._idleTimeoutId);var t=n._idleTimeout;0<=t&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},t))},f.setImmediate="function"==typeof n?n:function(n){var t=i++,e=!(arguments.length<2)&&o.call(arguments,1);return u[t]=!0,r(function(){u[t]&&(e?n.apply(null,e):n.call(null),f.clearImmediate(t))}),t},f.clearImmediate="function"==typeof t?t:function(n){delete u[n]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(n,t,e){var r=n("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});var St,Ft,Ct,Dt,It,Pt=Rt.exports.boltExport,Nt=function(n){var e=E.none(),t=[],r=function(n){o()?i(n):t.push(n)},o=function(){return e.isSome()},u=function(n){L(n,i)},i=function(t){e.each(function(n){p.setTimeout(function(){t(n)},0)})};return n(function(n){e=E.some(n),u(t),t=[]}),{get:r,map:function(e){return Nt(function(t){r(function(n){t(e(n))})})},isReady:o}},Lt={nu:Nt,pure:function(t){return Nt(function(n){n(t)})}},Mt=function(n){p.setTimeout(function(){throw n},0)},Ut=function(e){var n=function(n){e().then(n,Mt)};return{map:function(n){return Ut(function(){return e().then(n)})},bind:function(t){return Ut(function(){return e().then(function(n){return t(n).toPromise()})})},anonBind:function(n){return Ut(function(){return e().then(function(){return n.toPromise()})})},toLazy:function(){return Lt.nu(n)},toCached:function(){var n=null;return Ut(function(){return null===n&&(n=e()),n})},toPromise:e,get:n}},Bt=function(n){return Ut(function(){return new Pt(n)})},qt=function(n){return Ut(function(){return Pt.resolve(n)})},Jt=function(u){return jt(jt({},u),{toCached:function(){return Jt(u.toCached())},bindFuture:function(t){return Jt(u.bind(function(n){return n.fold(function(n){return qt(Ln.error(n))},function(n){return t(n)})}))},bindResult:function(t){return Jt(u.map(function(n){return n.bind(t)}))},mapResult:function(t){return Jt(u.map(function(n){return n.map(t)}))},mapError:function(t){return Jt(u.map(function(n){return n.mapError(t)}))},foldResult:function(t,e){return u.map(function(n){return n.fold(t,e)})},withTimeout:function(n,o){return Jt(Bt(function(t){var e=!1,r=p.setTimeout(function(){e=!0,t(Ln.error(o()))},n);u.get(function(n){e||(p.clearTimeout(r),t(n))})}))}})},Vt=function(n){return Jt(Bt(n))},Ht=function(n){return Jt(qt(Ln.value(n)))},zt={nu:Vt,wrap:Jt,pure:Ht,value:Ht,error:function(n){return Jt(qt(Ln.error(n)))},fromResult:function(n){return Jt(qt(n))},fromFuture:function(n){return Jt(n.map(Ln.value))},fromPromise:function(n){return Vt(function(t){n.then(function(n){t(Ln.value(n))},function(n){t(Ln.error(n))})})}},Wt=(void 0!==p.window?p.window:Function("return this;")(),function(n){try{var t=JSON.parse(n);return Ln.value(t)}catch(n){return Ln.error("Response was not JSON.")}}),$t=function(t){return Bt(function(e){var n=new p.FileReader;n.onload=function(n){var t=n.target?n.target.result:new p.Blob([]);e(t)},n.readAsText(t)})},Yt=function(n){return qt(n.response)},Kt=function(n,t){switch(n){case Hn.JSON:return Wt(t.response).fold(function(){return Yt(t)},qt);case Hn.Blob:return e=t,E.from(e.response).map($t).getOr(qt("no response content"));case Hn.Text:default:return Yt(t)}var e},Xt=function(n){var t,e=(t=n.body,E.from(t).bind(function(n){switch(n.type){case Hn.JSON:return E.some("application/json");case Hn.FormData:return E.some("application/x-www-form-urlencoded; charset=UTF-8");case Hn.MultipartFormData:return E.none();case Hn.Text:default:return E.some("text/plain")}})),r=!0===n.credentials?E.some(!0):E.none(),o=function(n){switch(n){case Hn.Blob:return"application/octet-stream";case Hn.JSON:return"application/json, text/javascript";case Hn.Text:return"text/plain";default:return""}}(n.responseType)+", */*; q=0.01",u=void 0!==n.headers?n.headers:{};return{contentType:e,responseType:function(n){switch(n){case Hn.JSON:return E.none();case Hn.Blob:return E.some("blob");case Hn.Text:return E.some("text");default:return E.none()}}(n.responseType),credentials:r,accept:o,headers:u,progress:F(n.progress)?E.some(n.progress):E.none()}},Gt=function(n){var e=new p.FormData;return J(n,function(n,t){e.append(t,n)}),e},Qt=function(a){return zt.nu(function(o){var u,i=new p.XMLHttpRequest;i.open(a.method,(u=a.url,E.from(a.query).map(function(n){var t,e=z(n,function(n,t){return encodeURIComponent(t)+"="+encodeURIComponent(n)}),r=(t="?",-1!==u.indexOf(t)?"&":"?");return 0<e.length?u+r+e.join("&"):u}).getOr(u)),!0);var e,n,t=Xt(a);e=i,(n=t).contentType.each(function(n){return e.setRequestHeader("Content-Type",n)}),e.setRequestHeader("Accept",n.accept),n.credentials.each(function(n){return e.withCredentials=n}),n.responseType.each(function(n){return e.responseType=n}),n.progress.each(function(t){return e.upload.addEventListener("progress",function(n){return t(n.loaded,n.total)})}),J(n.headers,function(n,t){return e.setRequestHeader(t,n)});var r,c=function(){var t,n,e;(t=a.url,n=a.responseType,e=i,Kt(n,e).map(function(n){return{message:0===e.status?"Unknown HTTP error (possible cross-domain request)":"Could not load url "+t+": "+e.statusText,status:e.status,responseText:n}})).get(function(n){return o(Ln.error(n))})};i.onerror=c,i.onload=function(){var n,t,e,r;0===i.status&&(n=a.url,t=n,r=0,""!=(e="file:")&&(t.length<e.length||t.substr(r,r+e.length)!==e))?c():i.status<100||400<=i.status?c():function(n,t){var e=function(){return zt.pure(t.response)},r=function(n){return zt.error({message:n,status:t.status,responseText:t.responseText})};switch(n){case Hn.JSON:return Wt(t.response).fold(r,zt.pure);case Hn.Blob:case Hn.Text:return e();default:return r("unknown data type")}}(a.responseType,i).get(o)},(r=a.body,E.from(r).map(function(n){return n.type===Hn.JSON?JSON.stringify(n.data):n.type===Hn.FormData?Gt(n.data):n.type===Hn.MultipartFormData?Gt(n.data):n})).fold(function(){return i.send()},function(n){i.send(n)})})},Zt=function(){return n="",{type:Hn.Text,data:n};var n},ne=function(n,t){var e=-1===n.indexOf("?")?"?":"&";return t?n+e+"apiKey="+encodeURIComponent(t):n},te=function(n){return W(n,"tiny-api-key").orThunk(function(){return W(n,"tinymce-api-key")}).orThunk(function(){return W(n,"textbox-api-key")}).getOrUndefined()},ee=function(n){return n.fold(function(n){var t=n.responseText,e=A(t)?t:n.message;return Ln.error(e)},Ln.value)},re=function(i,c){var a=te(c);return{execute:function(n){var o,t,e=V(n,function(n){return S(n)?String(n):n}),r=ne((o=e,i.replace(/\$\{([^{}]*)\}/g,function(n,t){var e,r=o[t];return"string"==(e=typeof r)||"number"===e?r.toString():n})),a),u=(t={url:r,responseType:Hn.JSON,credentials:!0,headers:c},Qt(jt(jt({},t),{method:"get",body:Zt()}))).map(ee);return zt.wrap(u)}}},oe=function(o,u){var i=te(u);return{execute:function(n){var t,e,r=(t={url:ne(o,i),body:(e=n,{type:Hn.JSON,data:e}),responseType:Hn.JSON,credentials:!0,headers:u},Qt(jt(jt({},t),{method:"post"}))).map(ee);return zt.wrap(r)}}},ue=function(t,o,n,u,e){return!0===e?{known:{},unknown:n}:M(n,function(e,n){var r=u(n);return t(o,r).fold(function(){return{known:e.known,unknown:e.unknown.concat([n])}},function(n){var t=In(r,n);return{known:jt(jt({},e.known),t),unknown:e.unknown}})},{known:{},unknown:[]})},ie=function(n,t,e,r,o,u){var i,c,a,f,l,s=ue(t.get,o,e,r,u);return 0===s.unknown.length?zt.value(s.known):(i=n,c=t,a=s.known,f=s.unknown,l=o,i(f,u).mapResult(function(n){return J(n,function(n,t){c.set(t,n,l)}),jt(jt({},a),n)}))},ce=[(Dt="url",wt(Dt,Dt,at(),gt())),(St="fresh",Ft=!1,wt(St,St,(Ct=Ft,ct.defaultedThunk(g(Ct))),gt()))],ae=vt(ce),fe=vt([wt("urls","urls",at(),(It=ce,yt(It)))]),le=function(n,t,e){var a=function(n,e){void 0===e&&(e=36e5);var t,r,o={},u=function(n,t,e){o[n]={result:t,timestamp:e}},i=function(n,t){return n-t<e};return A(n)&&(t=n,r=xt(),J(t,function(n,t){i(r,n.timestamp)&&u(t,n.result,n.timestamp)})),{set:u,get:function(t,n){return E.from(o[n]).filter(function(n){return i(t,n.timestamp)}).map(function(n){return n.result})},dump:function(){return o}}}(e),f=re(n+"/1/check?url=${url}&fresh=${fresh}",t),r=oe(n+"/1/check",t),l=function(n){return{url:n.url,result:(t=n.url,e=n.result,"VALID"===e?K.valid(t):"INVALID"===e?K.invalid(t):K.unknown(t))};var t,e};return{checkOne:function(o,n){void 0===n&&(n=!1);var t,e,r,u,i,c=xt();return(t=function(n,t){var e={url:encodeURIComponent(o),fresh:t},r=Tt("ephox.link.service.one.ajax.service.get",ae,e);return f.execute(r)},e=a,r=o,u=c,(!0===(i=n)?E.none():e.get(u,r)).fold(function(){return t(r,i).mapResult(function(n){return e.set(r,n,u),n})},function(n){return zt.pure(n)})).mapResult(l)},checkMany:function(n,t){void 0===t&&(t=!1);var e=xt();return ie(function(n,t){var e=Tt("ephox.link.service.many.ajax.service.post",fe,{urls:n});return r.execute(e).mapResult(function(n){return Jn(n.results,"url")})},a,n,function(n){return n.url},e,t).mapResult(function(n){return V(n,l)})},dumpCache:a.dump}},se=function(n,t,e){var u,i=(u=t,M(n,function(n,t){var e,r=jt(jt({},u({url:t})),{origUrl:t}),o=r.url;return jt(jt({},n),((e={})[o]=$(n,o)?n[o].concat([r]):[r],e))},{}));return e(N(z(i,function(n){return n}),function(n){return n[0]})).mapResult(function(n){return r=i,o={},J(n,function(t,n){var e=r[n];L(e,function(n){o[n.origUrl]=t})}),o;var r,o})},pe=function(t){var n,e,r,o,u=(n=T(t),o=(r=t).getParam("api_key"),e=o||r.getParam("linkchecker_api_key"),le(n,e?{"tinymce-api-key":e}:{})),i=function(n){return t.getParam("linkchecker_preprocess",y,"function")(n)};return{checkOne:function(n){var t=i({url:n});return u.checkOne(t.url)},checkMany:function(n){return se(n,i,function(n){return u.checkMany(n)})}}},de=function(){var l,s=function(){void 0!==l&&(l.parentNode.removeChild(l),l=void 0)};return{add:function(n,t){s();var e,r,o=me(n,t);e="This link seems to be invalid.",(r=document.createElement("div")).className="mce-widget mce-tooltip mce-tooltip-s",r.setAttribute("role","presentation"),r.innerHTML='<div class="mce-tooltip-arrow"></div><div style="white-space:pre;" class="mce-tooltip-inner">'+e+"</div>",l=r,document.body.appendChild(l);var u=l.getBoundingClientRect(),i=n.getBody().getBoundingClientRect(),c=o.top-u.height/2,a=o.center-u.width/2;a<=0?(l.className="mce-widget mce-tooltip mce-tooltip-sw",a=o.center):o.center+u.width/2-20>i.width&&(l.className="mce-widget mce-tooltip mce-tooltip-se",a=o.center-u.width);var f="position:absolute;top:"+c+"px;left:"+a+"px;";l.setAttribute("style",f)},remove:s}},me=function(n,t){var e=t.getBoundingClientRect(),r=n.inline?{top:0,left:0}:n.getContentAreaContainer().getBoundingClientRect(),o=n.dom.getViewPort();return{top:e.top+r.top+o.y-e.height,center:e.left+r.left+o.x+e.width/2}},he=function(a){var f=de();a.on("mouseover mouseout",function(n){var t,e,r,o,u,i=n.target,c="mouseover"===n.type;t=f,r=i,o=c,u=(e=a).dom.getParent(r,"a[href]"),an(u)&&!0===o?t.add(e,u):t.remove()}),a.on("remove",function(){f.remove()})},ve=function(r,o){if(m(tinymce,"4.4.3"))return h.error('The "linkchecker" plugin requires at least 4.4.3 version of TinyMCE.'),function(){};var t,u,i,c=!m(tinymce,"5.0.0"),n=d(0),a=pe(r),f=(t={},{add:function(n){t[n]=!0},has:function(n){return n in t}}),l=sn(r),s=(u=r,i=n,{logError:function(n){var t,e,r="string"==typeof(t=n)?{message:t}:t;e=r,u.fire("LinkCheckerError",e),i.set(i.get()+1),i.get()<5&&!u.removed&&p.console.error("Link checker error: "+r.message)}});return r.on("SkinLoaded",function(){var n,t,e;T(r)?(jn(r,f,l,a,s,o,c),t=l,e=a,"filepicker_validator_handler"in(n=r).settings==0&&(n.settings.filepicker_validator_handler=Cn(0,t,e))):s.logError("You need to specify the linkchecker_service_url setting")}),c||he(r),{}};tinymce.PluginManager.add("linkchecker",ve)}(window);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* Tiny link checker plugin
|
|
2
|
-
*
|
|
3
|
-
* Copyright 2010-2020 Tiny Technologies Inc. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Version: 2.1.0-97
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
!function(p){"use strict";var n,t,e,r,o,u,d=function(n){var t=n,e=function(){return t};return{get:e,set:function(n){t=n},clone:function(){return d(e())}}},i=function(n){return parseInt(n,10)},c=function(n,t){var e=n-t;return 0===e?0:0<e?1:-1},a=function(n,t,e){return{major:n,minor:t,patch:e}},f=function(n){var t=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(n);return t?a(i(t[1]),i(t[2]),i(t[3])):a(0,0,0)},m=function(n,t){return!!n&&-1===function(n,t){var e=c(n.major,t.major);if(0!==e)return e;var r=c(n.minor,t.minor);if(0!==r)return r;var o=c(n.patch,t.patch);return 0!==o?o:0}(f([(e=n).majorVersion,e.minorVersion].join(".").split(".").slice(0,3).join(".")),f(t));var e},l=function(r,o){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=r.console;e&&o in e&&e[o].apply(e,arguments)}},h={log:l(window,"log"),error:l(window,"error"),warn:l(window,"warm")},s=function(){},v=function(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e(r.apply(null,n))}},g=function(n){return function(){return n}},y=function(n){return n},w=g(!1),k=g(!0),T=function(n){return n.getParam("linkchecker_service_url",void 0,"string")},b=function(t,e){var r,n;return(n=function(){var n=arguments;clearTimeout(r),r=setTimeout(function(){t.apply(this,n)},e)}).stop=function(){clearTimeout(r)},n},x=function(){return O},O=(n=function(n){return n.isNone()},r={fold:function(n,t){return n()},is:w,isSome:w,isNone:k,getOr:e=function(n){return n},getOrThunk:t=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:e,orThunk:t,map:x,each:s,bind:x,exists:w,forall:k,filter:x,equals:n,equals_:n,toArray:function(){return[]},toString:g("none()")},Object.freeze&&Object.freeze(r),r),_=function(e){var n=g(e),t=function(){return o},r=function(n){return n(e)},o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:k,isNone:w,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return _(n(e))},each:function(n){n(e)},bind:r,exists:r,forall:r,filter:function(n){return n(e)?o:O},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(w,function(n){return t(e,n)})}};return o},E={some:_,none:x,from:function(n){return null==n?O:_(n)}},j=function(t){return function(n){return function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t}(n)===t}},A=j("object"),R=j("array"),S=j("boolean"),F=j("function"),C=Array.prototype.slice,D=Array.prototype.indexOf,I=Array.prototype.push,P=function(n,t){return e=n,r=t,-1<D.call(e,r);var e,r},N=function(n,t){for(var e=n.length,r=new Array(e),o=0;o<e;o++){var u=n[o];r[o]=t(u,o)}return r},L=function(n,t){for(var e=0,r=n.length;e<r;e++){t(n[e],e)}},M=function(n,t,e){return L(n,function(n){e=t(e,n)}),e},U=function(n){for(var t=[],e=0,r=n.length;e<r;++e){if(!R(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);I.apply(t,n[e])}return t},B=(F(Array.from)&&Array.from,Object.keys),q=Object.hasOwnProperty,J=function(n,t){for(var e=B(n),r=0,o=e.length;r<o;r++){var u=e[r];t(n[u],u)}},V=function(n,e){return H(n,function(n,t){return{k:t,v:e(n,t)}})},H=function(n,r){var o={};return J(n,function(n,t){var e=r(n,t);o[e.k]=e.v}),o},z=function(n,e){var r=[];return J(n,function(n,t){r.push(e(n,t))}),r},W=function(n,t){return $(n,t)?E.from(n[t]):E.none()},$=function(n,t){return q.call(n,t)},Y=function(i){if(!R(i))throw new Error("cases must be an array");if(0===i.length)throw new Error("there must be at least one case");var c=[],e={};return L(i,function(n,r){var t=B(n);if(1!==t.length)throw new Error("one and only one name per case");var o=t[0],u=n[o];if(void 0!==e[o])throw new Error("duplicate key detected:"+o);if("cata"===o)throw new Error("cannot have a case named cata (sorry)");if(!R(u))throw new Error("case arguments must be an array");c.push(o),e[o]=function(){var n=arguments.length;if(n!==u.length)throw new Error("Wrong number of arguments to case "+o+". Expected "+u.length+" ("+u+"), got "+n);for(var e=new Array(n),t=0;t<e.length;t++)e[t]=arguments[t];return{fold:function(){if(arguments.length!==i.length)throw new Error("Wrong number of arguments to fold. Expected "+i.length+", got "+arguments.length);return arguments[r].apply(null,e)},match:function(n){var t=B(n);if(c.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+c.join(",")+"\nActual: "+t.join(","));if(!function(n,t){for(var e=0,r=n.length;e<r;++e)if(!0!==t(n[e],e))return!1;return!0}(c,function(n){return P(t,n)}))throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+c.join(", "));return n[o].apply(null,e)},log:function(n){p.console.log(n,{constructors:c,constructor:o,params:e})}}}}),e},K=Y([{invalid:["invalidUrl"]},{unknown:["unknownUrl"]},{valid:["validUrl"]}]),X=function(n,t,e,r){return n.fold(t,e,r)},G=function(n){return n&&/^https?:\/\//.test(n)},Q=function(n){return 0===n.indexOf("mailto:")||"#"===n.charAt(0)},Z=tinymce.DOM,nn=tinymce.util.Tools,tn="data-mce-linkchecker-status",en="data-mce-linkchecker-focus",rn=function(n){var t=Z.select('a[href]:not([href=""])',n);return nn.map(t,function(n){return Z.getAttrib(n,"href")})},on=function(n,t){Z.setAttrib(n,tn,t),an(n)&&Z.setAttrib(n,"aria-invalid",!0)},un=function(t,n){return nn.map(n,function(n){return{url:t(Z.getAttrib(n,"href")),elm:n}})},cn=function(n,t){return nn.grep(n,function(n){return n.url===t})},an=function(n){return"invalid"===Z.getAttrib(n,tn)},fn=function(n,t){return Z.setAttrib(n,en,t?"true":null)},ln=function(t){return function(n){nn.each(n,function(n){return n.attr(t,null)})}},sn=function(c){return function(n){var t,e,r,o=n.trim(),u=!1===G(t=o)&&/^\w+:/.test(t)?o:c.documentBaseURI.toAbsolute(o),i=(0===u.indexOf("//")?location.protocol+u:u).replace(/ /g,"%20");return e=i,(r=document.createElement("a")).href=e,G(e)?r.href:e}},pn=function(n){return function(){n.execCommand("mceLink")}},dn=function(n,t){return function(){!function(n){if(!tinymce.Env.ie||10<tinymce.Env.ie){var t=document.createElement("a");t.target="_blank",t.href=n,t.rel="noreferrer noopener";var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,!0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}else{var r=window.open("","_blank");if(r){r.opener=null;var o=r.document;o.open(),o.write('<meta http-equiv="refresh" content="0; url='+tinymce.DOM.encode(n)+'">'),o.close()}}}(sn(n)(tinymce.DOM.getAttrib(t,"href")))}},mn=function(n,t){return function(){n.undoManager.transact(function(){tinymce.DOM.remove(t,!0)})}},hn=function(n,t){return function(){n.add(t.href),on(t,"ignored")}},vn=tinymce.DOM,gn=function(n,t,e){var r,o,u,i,c,a,f,l=new tinymce.ui.Factory.create("menu",{items:[(r=n,r.plugins.link?{text:"Link",icon:"link",onclick:pn(r)}:null),{text:"Open link",icon:"newtab",onclick:dn(n,t)},{text:"Remove link",icon:"unlink",onclick:mn(n,t)},{text:"-"},{text:"Ignore",onclick:hn(e,t)}],context:"contextmenu",onhide:function(){l.remove(),fn(t,!1)}});l.renderTo(document.body),o=n,u=l,i=t,c=vn.getPos(o.getContentAreaContainer()),a=o.dom.getPos(i),"BODY"===(f=o.dom.getRoot()).nodeName?(a.x-=f.ownerDocument.documentElement.scrollLeft||f.scrollLeft,a.y-=f.ownerDocument.documentElement.scrollTop||f.scrollTop):(a.x-=f.scrollLeft,a.y-=f.scrollTop),c.x+=a.x,c.y+=a.y,u.moveTo(c.x,c.y+i.offsetHeight+1),fn(t,!0)},yn=function(n,t){var e,r;n.on("contextmenu",(e=n,r=t,function(n){var t=e.dom.getParent(n.target,"a[href]");an(t)&&(n.preventDefault(),n.stopImmediatePropagation(),gn(e,t,r))}),!0)},wn=function(n,t,e){return[{text:"Ignore",onAction:hn(e,t)}]},kn=function(n,t,e){var r,o=function(n,t){for(var e=[],r=0,o=n.length;r<o;r++){var u=n[r];t(u,r)&&e.push(u)}return e}(n.getParam("contextmenu","").split(" "),function(n){return""!==n});if(0!==o.length&&-1===o.indexOf("link")){var u=[{text:"Remove link",icon:"unlink",onAction:mn(n,e)},{text:"Open link",icon:"new-tab",onAction:dn(n,e)},{type:"separator"}];return(r=n,r.plugins.link?[{text:"Link...",icon:"link",onAction:pn(r)}]:[]).concat(u).concat(wn(0,e,t))}return wn(0,e,t)},Tn=tinymce.util.Tools,bn=function(n,t){return Tn.grep(n,function(n){return!1===t.has(n)})},xn=function(t){return function(n){return G(n)===t}},On=function(n,t,o,e,u){var r=Tn.grep(Tn.map(rn(u),o),xn(!0));n.checkMany(bn(r,t)).get(function(n){n.fold(e.logError,function(n){return t=u,e=n,r=un(o,Z.select("a[href]",t)),void nn.each(e,function(n,t){nn.each(cn(r,t),function(t){X(n.result,function(n){on(t.elm,"invalid")},function(n){on(t.elm,"unknown")},function(n){on(t.elm,"valid")})})});var t,e,r})})},_n=function(n,t,e,r,o){var u,i,c,a,f=Tn.grep(Tn.map(rn(o),e),xn(!1)),l=bn((u=f,Tn.grep(u,function(n){return!1===Q(n)})),t);i=o,c=l,a=un(e,Z.select("a[href]",i)),nn.each(c,function(n){nn.each(cn(a,n),function(n){on(n.elm,"unknown")})})},En=function(n,t,e,r,o){var u=o.getBody();On(n,t,e,r,u),_n(0,t,e,0,u)},jn=function(n,t,e,r,o,u,i){var c,a,f,l,s=b(En,500);(c=n.serializer).addTempAttr(tn),c.addTempAttr(en),c.addAttributeFilter(tn,ln(tn)),c.addAttributeFilter(en,ln(tn)),n.dom.loadCSS((a=u,n.getParam("linkchecker_content_css")||a+"/content.min.css")),n.on("change setContent undo redo",function(){s(r,t,e,o,n,i)}),En(r,t,e,o,n),i?(l=t,(f=n).ui.registry.addContextMenu("linkchecker",{update:function(n){var t=f.dom.getParent(n,"a[href]");return an(t)?kn(f,l,t):[]}})):yn(n,t)},An=function(n,t){return function(){return{status:n,message:t}}},Rn=An("invalid","URL does not seem to be valid"),Sn=An("none",""),Fn=An("valid","The URL seems to be valid"),Cn=function(n,r,t){var e,o=b((e=t,function(n,t){e.checkOne(n).get(function(n){n.fold(function(){t({status:"none",message:""})},function(n){X(n.result,function(n){t(Rn())},function(n){t(Sn())},function(n){t(Fn())})})})}),500);return function(n,t){var e=r(n.url);0===n.url.length||!G(e)&&Q(e)?t(Fn()):G(e)?o(e,t):t(Sn())}},Dn=function(n,t){return $(e=n,r=t)?E.from(e[r]):E.none();var e,r},In=function(n,t){var e={};return e[n]=t,e},Pn=function(e){return{is:function(n){return e===n},isValue:k,isError:w,getOr:g(e),getOrThunk:g(e),getOrDie:g(e),or:function(n){return Pn(e)},orThunk:function(n){return Pn(e)},fold:function(n,t){return t(e)},map:function(n){return Pn(n(e))},mapError:function(n){return Pn(e)},each:function(n){n(e)},bind:function(n){return n(e)},exists:function(n){return n(e)},forall:function(n){return n(e)},toOption:function(){return E.some(e)}}},Nn=function(e){return{is:w,isValue:w,isError:k,getOr:y,getOrThunk:function(n){return n()},getOrDie:function(){return n=String(e),function(){throw new Error(n)}();var n},or:function(n){return n},orThunk:function(n){return n()},fold:function(n,t){return n(e)},map:function(n){return Nn(e)},mapError:function(n){return Nn(n(e))},each:s,bind:function(n){return Nn(e)},exists:w,forall:k,toOption:E.none}},Ln={value:Pn,error:Nn,fromOption:function(n,t){return n.fold(function(){return Nn(t)},Pn)}},Mn=(Y([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),Object.prototype.hasOwnProperty),Un=function(i){return function(){for(var n=new Array(arguments.length),t=0;t<n.length;t++)n[t]=arguments[t];if(0===n.length)throw new Error("Can't merge zero objects");for(var e={},r=0;r<n.length;r++){var o=n[r];for(var u in o)Mn.call(o,u)&&(e[u]=i(e[u],o[u]))}return e}},Bn=Un(function(n,t){return A(n)&&A(t)?Bn(n,t):t}),qn=Un(function(n,t){return t}),Jn=function(n,t){return e=t,r={},L(n,function(n){var t=n[e];r[t]=n}),r;var e,r};(u=o||(o={}))[u.Error=0]="Error",u[u.Value=1]="Value";var Vn,Hn,zn,Wn=function(n,t,e){return n.stype===o.Error?t(n.serror):e(n.svalue)},$n=function(n){return{stype:o.Value,svalue:n}},Yn=function(n){return{stype:o.Error,serror:n}},Kn=function(n){return Wn(n,Ln.error,Ln.value)},Xn=$n,Gn=function(n){var t=[],e=[];return L(n,function(n){Wn(n,function(n){return e.push(n)},function(n){return t.push(n)})}),{values:t,errors:e}},Qn=Yn,Zn=function(n,t){return n.stype===o.Value?t(n.svalue):n},nt=function(n,t){return n.stype===o.Error?t(n.serror):n},tt=function(n,t){return n.stype===o.Value?{stype:o.Value,svalue:t(n.svalue)}:n},et=function(n,t){return n.stype===o.Error?{stype:o.Error,serror:t(n.serror)}:n},rt=Y([{setOf:["validator","valueType"]},{arrOf:["valueType"]},{objOf:["fields"]},{itemOf:["validator"]},{choiceOf:["key","branches"]},{thunk:["description"]},{func:["args","outputSchema"]}]),ot=Y([{field:["name","presence","type"]},{state:["name"]}]),ut=function(n){return A(n)&&100<B(n).length?" removed due to size":JSON.stringify(n,null,2)},it=function(n,t){return Qn([{path:n,getErrorInfo:t}])},ct=Y([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),at=ct.strict,ft=(ct.asOption,ct.defaultedThunk,ct.asDefaultedOptionThunk,ct.mergeWithThunk,function(n){return v(Qn,U)(n)}),lt=function(n,t){var e,r,o=Gn(n);return 0<o.errors.length?ft(o.errors):(e=o.values,r=t,0<e.length?Xn(Bn(r,qn.apply(void 0,e))):Xn(r))},st=function(n){var t=Gn(n);return 0<t.errors.length?ft(t.errors):Xn(t.values)},pt=Y([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),dt=function(e,r,o){return Dn(r,o).fold(function(){return n=o,t=r,it(e,function(){return'Could not find valid *strict* value for "'+n+'" in '+ut(t)});var n,t},Xn)},mt=function(n,t,e){var r=Dn(n,t).fold(function(){return e(n)},y);return Xn(r)},ht=function(c,a,n,f){return n.fold(function(o,e,n,r){var u=function(n){var t=r.extract(c.concat([o]),f,n);return tt(t,function(n){return In(e,f(n))})},i=function(n){return n.fold(function(){var n=In(e,f(E.none()));return Xn(n)},function(n){var t=r.extract(c.concat([o]),f,n);return tt(t,function(n){return In(e,f(E.some(n)))})})};return n.fold(function(){return Zn(dt(c,a,o),u)},function(n){return Zn(mt(a,o,n),u)},function(){return Zn(Xn(Dn(a,o)),i)},function(n){return Zn((e=n,r=Dn(t=a,o).map(function(n){return!0===n?e(t):n}),Xn(r)),i);var t,e,r},function(n){var t=n(a),e=tt(mt(a,o,g({})),function(n){return Bn(t,n)});return Zn(e,u)})},function(n,t){var e=t(a);return Xn(In(n,f(e)))})},vt=function(c){return{extract:function(n,t,e){return r=n,o=e,u=t,i=N(c,function(n){return ht(r,o,n,u)}),lt(i,{});var r,o,u,i},toString:function(){return"obj{\n"+N(c,function(n){return n.fold(function(n,t,e,r){return n+" -> "+r.toString()},function(n,t){return"state("+n+")"})}).join("\n")+"}"},toDsl:function(){return rt.objOf(N(c,function(n){return n.fold(function(n,t,e,r){return ot.field(n,e,r)},function(n,t){return ot.state(n)})}))}}},gt=g((Vn=Xn,{extract:function(e,n,t){return nt(Vn(t,n),function(n){return t=n,it(e,function(){return t});var t})},toString:function(){return"val"},toDsl:function(){return rt.itemOf(Vn)}})),yt=v(function(o){return{extract:function(e,r,n){var t=N(n,function(n,t){return o.extract(e.concat(["["+t+"]"]),r,n)});return st(t)},toString:function(){return"array("+o.toString()+")"},toDsl:function(){return rt.arrOf(o)}}},vt),wt=(pt.state,pt.field),kt=function(n,t,e){return Kn((r=n,o=y,u=e,i=t.extract([r],o,u),et(i,function(n){return{input:u,errors:n}})));var r,o,u,i},Tt=function(n,t,e){return kt(n,t,e).fold(function(n){throw new Error(bt(n))},y)},bt=function(n){return"Errors: \n"+(t=n.errors,e=10<t.length?t.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):t,N(e,function(n){return"Failed path: ("+n.path.join(" > ")+")\n"+n.getErrorInfo()}))+"\n\nInput object: "+ut(n.input);var t,e},xt=function(){return(new Date).getTime()};(zn=Hn||(Hn={})).JSON="json",zn.Blob="blob",zn.Text="text",zn.FormData="formdata",zn.MultipartFormData="multipart/form-data";var Ot,_t,Et,jt=function(){return(jt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)},At={},Rt={exports:At};_t=At,Et=Rt,Ot=void 0,function(n){"object"==typeof _t&&void 0!==Et?Et.exports=n():"function"==typeof Ot&&Ot.amd?Ot([],n):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=n()}(function(){return function u(i,c,a){function f(t,n){if(!c[t]){if(!i[t]){var e=!1;if(!n&&e)return e(t,!0);if(l)return l(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[t]={exports:{}};i[t][0].call(o.exports,function(n){return f(i[t][1][n]||n)},o,o.exports,u,i,c,a)}return c[t].exports}for(var l=!1,n=0;n<a.length;n++)f(a[n]);return f}({1:[function(n,t,e){var r,o,u=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(n){try{return r.call(null,t,0)}catch(n){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(n){r=i}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(n){o=c}}();var f,l=[],s=!1,p=-1;function d(){s&&f&&(s=!1,f.length?l=f.concat(l):p=-1,l.length&&m())}function m(){if(!s){var n=a(d);s=!0;for(var t=l.length;t;){for(f=l,l=[];++p<t;)f&&f[p].run();p=-1,t=l.length}f=null,s=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(n){try{return o.call(null,t)}catch(n){return o.call(this,t)}}}(n)}}function h(n,t){this.fun=n,this.array=t}function v(){}u.nextTick=function(n){var t=new Array(arguments.length-1);if(1<arguments.length)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];l.push(new h(n,t)),1!==l.length||s||a(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=v,u.addListener=v,u.once=v,u.off=v,u.removeListener=v,u.removeAllListeners=v,u.emit=v,u.prependListener=v,u.prependOnceListener=v,u.listeners=function(n){return[]},u.binding=function(n){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(n){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],2:[function(n,s,t){(function(e){!function(n){var t=setTimeout;function r(){}function u(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(n,this)}function o(e,r){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,u._immediateFn(function(){var n=1===e._state?r.onFulfilled:r.onRejected;if(null!==n){var t;try{t=n(e._value)}catch(n){return void c(r.promise,n)}i(r.promise,t)}else(1===e._state?i:c)(r.promise,e._value)})):e._deferreds.push(r)}function i(t,n){try{if(n===t)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var e=n.then;if(n instanceof u)return t._state=3,t._value=n,void a(t);if("function"==typeof e)return void l((r=e,o=n,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=n,a(t)}catch(n){c(t,n)}var r,o}function c(n,t){n._state=2,n._value=t,a(n)}function a(n){2===n._state&&0===n._deferreds.length&&u._immediateFn(function(){n._handled||u._unhandledRejectionFn(n._value)});for(var t=0,e=n._deferreds.length;t<e;t++)o(n,n._deferreds[t]);n._deferreds=null}function f(n,t,e){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=e}function l(n,t){var e=!1;try{n(function(n){e||(e=!0,i(t,n))},function(n){e||(e=!0,c(t,n))})}catch(n){if(e)return;e=!0,c(t,n)}}u.prototype.catch=function(n){return this.then(null,n)},u.prototype.then=function(n,t){var e=new this.constructor(r);return o(this,new f(n,t,e)),e},u.all=function(n){var c=Array.prototype.slice.call(n);return new u(function(r,o){if(0===c.length)return r([]);var u=c.length;function i(t,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var e=n.then;if("function"==typeof e)return void e.call(n,function(n){i(t,n)},o)}c[t]=n,0==--u&&r(c)}catch(n){o(n)}}for(var n=0;n<c.length;n++)i(n,c[n])})},u.resolve=function(t){return t&&"object"==typeof t&&t.constructor===u?t:new u(function(n){n(t)})},u.reject=function(e){return new u(function(n,t){t(e)})},u.race=function(o){return new u(function(n,t){for(var e=0,r=o.length;e<r;e++)o[e].then(n,t)})},u._immediateFn="function"==typeof e?function(n){e(n)}:function(n){t(n,0)},u._unhandledRejectionFn=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)},u._setImmediateFn=function(n){u._immediateFn=n},u._setUnhandledRejectionFn=function(n){u._unhandledRejectionFn=n},void 0!==s&&s.exports?s.exports=u:n.Promise||(n.Promise=u)}(this)}).call(this,n("timers").setImmediate)},{timers:3}],3:[function(a,n,f){(function(n,t){var r=a("process/browser.js").nextTick,e=Function.prototype.apply,o=Array.prototype.slice,u={},i=0;function c(n,t){this._id=n,this._clearFn=t}f.setTimeout=function(){return new c(e.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new c(e.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(n){n.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(n,t){clearTimeout(n._idleTimeoutId),n._idleTimeout=t},f.unenroll=function(n){clearTimeout(n._idleTimeoutId),n._idleTimeout=-1},f._unrefActive=f.active=function(n){clearTimeout(n._idleTimeoutId);var t=n._idleTimeout;0<=t&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},t))},f.setImmediate="function"==typeof n?n:function(n){var t=i++,e=!(arguments.length<2)&&o.call(arguments,1);return u[t]=!0,r(function(){u[t]&&(e?n.apply(null,e):n.call(null),f.clearImmediate(t))}),t},f.clearImmediate="function"==typeof t?t:function(n){delete u[n]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(n,t,e){var r=n("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});var St,Ft,Ct,Dt,It,Pt=Rt.exports.boltExport,Nt=function(n){var e=E.none(),t=[],r=function(n){o()?i(n):t.push(n)},o=function(){return e.isSome()},u=function(n){L(n,i)},i=function(t){e.each(function(n){p.setTimeout(function(){t(n)},0)})};return n(function(n){e=E.some(n),u(t),t=[]}),{get:r,map:function(e){return Nt(function(t){r(function(n){t(e(n))})})},isReady:o}},Lt={nu:Nt,pure:function(t){return Nt(function(n){n(t)})}},Mt=function(n){p.setTimeout(function(){throw n},0)},Ut=function(e){var n=function(n){e().then(n,Mt)};return{map:function(n){return Ut(function(){return e().then(n)})},bind:function(t){return Ut(function(){return e().then(function(n){return t(n).toPromise()})})},anonBind:function(n){return Ut(function(){return e().then(function(){return n.toPromise()})})},toLazy:function(){return Lt.nu(n)},toCached:function(){var n=null;return Ut(function(){return null===n&&(n=e()),n})},toPromise:e,get:n}},Bt=function(n){return Ut(function(){return new Pt(n)})},qt=function(n){return Ut(function(){return Pt.resolve(n)})},Jt=function(u){return jt(jt({},u),{toCached:function(){return Jt(u.toCached())},bindFuture:function(t){return Jt(u.bind(function(n){return n.fold(function(n){return qt(Ln.error(n))},function(n){return t(n)})}))},bindResult:function(t){return Jt(u.map(function(n){return n.bind(t)}))},mapResult:function(t){return Jt(u.map(function(n){return n.map(t)}))},mapError:function(t){return Jt(u.map(function(n){return n.mapError(t)}))},foldResult:function(t,e){return u.map(function(n){return n.fold(t,e)})},withTimeout:function(n,o){return Jt(Bt(function(t){var e=!1,r=p.setTimeout(function(){e=!0,t(Ln.error(o()))},n);u.get(function(n){e||(p.clearTimeout(r),t(n))})}))}})},Vt=function(n){return Jt(Bt(n))},Ht=function(n){return Jt(qt(Ln.value(n)))},zt={nu:Vt,wrap:Jt,pure:Ht,value:Ht,error:function(n){return Jt(qt(Ln.error(n)))},fromResult:function(n){return Jt(qt(n))},fromFuture:function(n){return Jt(n.map(Ln.value))},fromPromise:function(n){return Vt(function(t){n.then(function(n){t(Ln.value(n))},function(n){t(Ln.error(n))})})}},Wt=(void 0!==p.window?p.window:Function("return this;")(),function(n){try{var t=JSON.parse(n);return Ln.value(t)}catch(n){return Ln.error("Response was not JSON.")}}),$t=function(t){return Bt(function(e){var n=new p.FileReader;n.onload=function(n){var t=n.target?n.target.result:new p.Blob([]);e(t)},n.readAsText(t)})},Yt=function(n){return qt(n.response)},Kt=function(n,t){switch(n){case Hn.JSON:return Wt(t.response).fold(function(){return Yt(t)},qt);case Hn.Blob:return e=t,E.from(e.response).map($t).getOr(qt("no response content"));case Hn.Text:default:return Yt(t)}var e},Xt=function(n){var t,e=(t=n.body,E.from(t).bind(function(n){switch(n.type){case Hn.JSON:return E.some("application/json");case Hn.FormData:return E.some("application/x-www-form-urlencoded; charset=UTF-8");case Hn.MultipartFormData:return E.none();case Hn.Text:default:return E.some("text/plain")}})),r=!0===n.credentials?E.some(!0):E.none(),o=function(n){switch(n){case Hn.Blob:return"application/octet-stream";case Hn.JSON:return"application/json, text/javascript";case Hn.Text:return"text/plain";default:return""}}(n.responseType)+", */*; q=0.01",u=void 0!==n.headers?n.headers:{};return{contentType:e,responseType:function(n){switch(n){case Hn.JSON:return E.none();case Hn.Blob:return E.some("blob");case Hn.Text:return E.some("text");default:return E.none()}}(n.responseType),credentials:r,accept:o,headers:u,progress:F(n.progress)?E.some(n.progress):E.none()}},Gt=function(n){var e=new p.FormData;return J(n,function(n,t){e.append(t,n)}),e},Qt=function(a){return zt.nu(function(o){var u,i=new p.XMLHttpRequest;i.open(a.method,(u=a.url,E.from(a.query).map(function(n){var t,e=z(n,function(n,t){return encodeURIComponent(t)+"="+encodeURIComponent(n)}),r=(t="?",-1!==u.indexOf(t)?"&":"?");return 0<e.length?u+r+e.join("&"):u}).getOr(u)),!0);var e,n,t=Xt(a);e=i,(n=t).contentType.each(function(n){return e.setRequestHeader("Content-Type",n)}),e.setRequestHeader("Accept",n.accept),n.credentials.each(function(n){return e.withCredentials=n}),n.responseType.each(function(n){return e.responseType=n}),n.progress.each(function(t){return e.upload.addEventListener("progress",function(n){return t(n.loaded,n.total)})}),J(n.headers,function(n,t){return e.setRequestHeader(t,n)});var r,c=function(){var t,n,e;(t=a.url,n=a.responseType,e=i,Kt(n,e).map(function(n){return{message:0===e.status?"Unknown HTTP error (possible cross-domain request)":"Could not load url "+t+": "+e.statusText,status:e.status,responseText:n}})).get(function(n){return o(Ln.error(n))})};i.onerror=c,i.onload=function(){var n,t,e,r;0===i.status&&(n=a.url,t=n,r=0,""!=(e="file:")&&(t.length<e.length||t.substr(r,r+e.length)!==e))?c():i.status<100||400<=i.status?c():function(n,t){var e=function(){return zt.pure(t.response)},r=function(n){return zt.error({message:n,status:t.status,responseText:t.responseText})};switch(n){case Hn.JSON:return Wt(t.response).fold(r,zt.pure);case Hn.Blob:case Hn.Text:return e();default:return r("unknown data type")}}(a.responseType,i).get(o)},(r=a.body,E.from(r).map(function(n){return n.type===Hn.JSON?JSON.stringify(n.data):n.type===Hn.FormData?Gt(n.data):n.type===Hn.MultipartFormData?Gt(n.data):n})).fold(function(){return i.send()},function(n){i.send(n)})})},Zt=function(){return n="",{type:Hn.Text,data:n};var n},ne=function(n,t){var e=-1===n.indexOf("?")?"?":"&";return t?n+e+"apiKey="+encodeURIComponent(t):n},te=function(n){return W(n,"tiny-api-key").orThunk(function(){return W(n,"tinymce-api-key")}).orThunk(function(){return W(n,"textbox-api-key")}).getOrUndefined()},ee=function(n){return n.fold(function(n){var t=n.responseText,e=A(t)?t:n.message;return Ln.error(e)},Ln.value)},re=function(i,c){var a=te(c);return{execute:function(n){var o,t,e=V(n,function(n){return S(n)?String(n):n}),r=ne((o=e,i.replace(/\$\{([^{}]*)\}/g,function(n,t){var e,r=o[t];return"string"==(e=typeof r)||"number"===e?r.toString():n})),a),u=(t={url:r,responseType:Hn.JSON,credentials:!0,headers:c},Qt(jt(jt({},t),{method:"get",body:Zt()}))).map(ee);return zt.wrap(u)}}},oe=function(o,u){var i=te(u);return{execute:function(n){var t,e,r=(t={url:ne(o,i),body:(e=n,{type:Hn.JSON,data:e}),responseType:Hn.JSON,credentials:!0,headers:u},Qt(jt(jt({},t),{method:"post"}))).map(ee);return zt.wrap(r)}}},ue=function(t,o,n,u,e){return!0===e?{known:{},unknown:n}:M(n,function(e,n){var r=u(n);return t(o,r).fold(function(){return{known:e.known,unknown:e.unknown.concat([n])}},function(n){var t=In(r,n);return{known:jt(jt({},e.known),t),unknown:e.unknown}})},{known:{},unknown:[]})},ie=function(n,t,e,r,o,u){var i,c,a,f,l,s=ue(t.get,o,e,r,u);return 0===s.unknown.length?zt.value(s.known):(i=n,c=t,a=s.known,f=s.unknown,l=o,i(f,u).mapResult(function(n){return J(n,function(n,t){c.set(t,n,l)}),jt(jt({},a),n)}))},ce=[(Dt="url",wt(Dt,Dt,at(),gt())),(St="fresh",Ft=!1,wt(St,St,(Ct=Ft,ct.defaultedThunk(g(Ct))),gt()))],ae=vt(ce),fe=vt([wt("urls","urls",at(),(It=ce,yt(It)))]),le=function(n,t,e){var a=function(n,e){void 0===e&&(e=36e5);var t,r,o={},u=function(n,t,e){o[n]={result:t,timestamp:e}},i=function(n,t){return n-t<e};return A(n)&&(t=n,r=xt(),J(t,function(n,t){i(r,n.timestamp)&&u(t,n.result,n.timestamp)})),{set:u,get:function(t,n){return E.from(o[n]).filter(function(n){return i(t,n.timestamp)}).map(function(n){return n.result})},dump:function(){return o}}}(e),f=re(n+"/1/check?url=${url}&fresh=${fresh}",t),r=oe(n+"/1/check",t),l=function(n){return{url:n.url,result:(t=n.url,e=n.result,"VALID"===e?K.valid(t):"INVALID"===e?K.invalid(t):K.unknown(t))};var t,e};return{checkOne:function(o,n){void 0===n&&(n=!1);var t,e,r,u,i,c=xt();return(t=function(n,t){var e={url:encodeURIComponent(o),fresh:t},r=Tt("ephox.link.service.one.ajax.service.get",ae,e);return f.execute(r)},e=a,r=o,u=c,(!0===(i=n)?E.none():e.get(u,r)).fold(function(){return t(r,i).mapResult(function(n){return e.set(r,n,u),n})},function(n){return zt.pure(n)})).mapResult(l)},checkMany:function(n,t){void 0===t&&(t=!1);var e=xt();return ie(function(n,t){var e=Tt("ephox.link.service.many.ajax.service.post",fe,{urls:n});return r.execute(e).mapResult(function(n){return Jn(n.results,"url")})},a,n,function(n){return n.url},e,t).mapResult(function(n){return V(n,l)})},dumpCache:a.dump}},se=function(n,t,e){var u,i=(u=t,M(n,function(n,t){var e,r=jt(jt({},u({url:t})),{origUrl:t}),o=r.url;return jt(jt({},n),((e={})[o]=$(n,o)?n[o].concat([r]):[r],e))},{}));return e(N(z(i,function(n){return n}),function(n){return n[0]})).mapResult(function(n){return r=i,o={},J(n,function(t,n){var e=r[n];L(e,function(n){o[n.origUrl]=t})}),o;var r,o})},pe=function(t){var n,e,r,o,u=(n=T(t),o=(r=t).getParam("api_key"),e=o||r.getParam("linkchecker_api_key"),le(n,e?{"tinymce-api-key":e}:{})),i=function(n){return t.getParam("linkchecker_preprocess",y,"function")(n)};return{checkOne:function(n){var t=i({url:n});return u.checkOne(t.url)},checkMany:function(n){return se(n,i,function(n){return u.checkMany(n)})}}},de=function(){var l,s=function(){void 0!==l&&(l.parentNode.removeChild(l),l=void 0)};return{add:function(n,t){s();var e,r,o=me(n,t);e="This link seems to be invalid.",(r=document.createElement("div")).className="mce-widget mce-tooltip mce-tooltip-s",r.setAttribute("role","presentation"),r.innerHTML='<div class="mce-tooltip-arrow"></div><div style="white-space:pre;" class="mce-tooltip-inner">'+e+"</div>",l=r,document.body.appendChild(l);var u=l.getBoundingClientRect(),i=n.getBody().getBoundingClientRect(),c=o.top-u.height/2,a=o.center-u.width/2;a<=0?(l.className="mce-widget mce-tooltip mce-tooltip-sw",a=o.center):o.center+u.width/2-20>i.width&&(l.className="mce-widget mce-tooltip mce-tooltip-se",a=o.center-u.width);var f="position:absolute;top:"+c+"px;left:"+a+"px;";l.setAttribute("style",f)},remove:s}},me=function(n,t){var e=t.getBoundingClientRect(),r=n.inline?{top:0,left:0}:n.getContentAreaContainer().getBoundingClientRect(),o=n.dom.getViewPort();return{top:e.top+r.top+o.y-e.height,center:e.left+r.left+o.x+e.width/2}},he=function(a){var f=de();a.on("mouseover mouseout",function(n){var t,e,r,o,u,i=n.target,c="mouseover"===n.type;t=f,r=i,o=c,u=(e=a).dom.getParent(r,"a[href]"),an(u)&&!0===o?t.add(e,u):t.remove()}),a.on("remove",function(){f.remove()})},ve=function(r,o){if(m(tinymce,"4.4.3"))return h.error('The "linkchecker" plugin requires at least 4.4.3 version of TinyMCE.'),function(){};var t,u,i,c=!m(tinymce,"5.0.0"),n=d(0),a=pe(r),f=(t={},{add:function(n){t[n]=!0},has:function(n){return n in t}}),l=sn(r),s=(u=r,i=n,{logError:function(n){var t,e,r="string"==typeof(t=n)?{message:t}:t;e=r,u.fire("LinkCheckerError",e),i.set(i.get()+1),i.get()<5&&!u.removed&&p.console.error("Link checker error: "+r.message)}});return r.on("SkinLoaded",function(){var n,t,e;T(r)?(jn(r,f,l,a,s,o,c),t=l,e=a,"filepicker_validator_handler"in(n=r).settings==0&&(n.settings.filepicker_validator_handler=Cn(0,t,e))):s.logError("You need to specify the linkchecker_service_url setting")}),c||he(r),{}};tinymce.PluginManager.add("linkchecker",ve)}(window);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
linkchecker - build: 2.1.0-97
|
|
2
|
-
|
|
3
|
-
Documentation
|
|
4
|
-
-----------------
|
|
5
|
-
For detailed documentation, please see the following location:
|
|
6
|
-
https://www.tiny.cloud/docs/plugins/
|
|
7
|
-
|
|
8
|
-
Support
|
|
9
|
-
-----------------
|
|
10
|
-
For further support, please use the Tiny Support website, located here: https://support.tiny.cloud/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0-97
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Version 2.2.5 (2020-01-28)
|
|
2
|
-
Fixed mediaembed_max_width setting not working on IE 11 #EME-45
|
|
3
|
-
Version 2.2.4 (2019-11-05)
|
|
4
|
-
Added touch event listener to embeds for mobile #TINY-4093
|
|
5
|
-
Version 2.2.3 (2019-08-08)
|
|
6
|
-
Fixed urls failing to get converted on Firefox when pressing enter #EME-42
|
|
7
|
-
Version 2.2.2 (2019-06-24)
|
|
8
|
-
Fixed service errors not showing a visible error message when using the media plugin dialog #TINY-3792
|
|
9
|
-
Version 2.2.1 (2019-06-06)
|
|
10
|
-
Fixed multiple links in the same paragraph being converted when only the last link in the paragraph should have been #EME-33
|
|
11
|
-
Version 2.2.0 (2019-05-24)
|
|
12
|
-
Added a new setting `mediaembed_inline_styles` that inlines CSS for the embeded summary cards #EME-32
|
|
13
|
-
Version 2.1.0 (2019-05-17)
|
|
14
|
-
Changed service errors to log in the console, instead of display as notifications. #TINY-3645
|
|
15
|
-
Version 2.0.0 (2019-02-04)
|
|
16
|
-
Support for TinyMCE 5
|
|
17
|
-
Version 1.1.0 (2018-02-01)
|
|
18
|
-
Decreased plugin size by improving build steps.
|
|
19
|
-
Version 1.0.3 (2017-12-08)
|
|
20
|
-
Fixed so more strict CSP rules can be used for this plugin. #TINY-1397
|
|
21
|
-
Version 1.0.2 (2017-06-13)
|
|
22
|
-
Fixed so that the error messages are more human readable. #TINY-1077
|
|
23
|
-
Version 1.0.1 (2017-05-23)
|
|
24
|
-
Fixed bug where the AsYouType functionality did not work with forced_root_block set to false. #TINY-1030
|
|
25
|
-
Version 1.0.0 (2017-01-11)
|
|
26
|
-
Initial release.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ephox-summary-card{border:1px solid #AAA;box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.2),0 1px 5px 0 rgba(0,0,0,0.12);padding:10px;overflow:hidden;margin-bottom:1em}.ephox-summary-card a{text-decoration:none;color:inherit}.ephox-summary-card a:visited{color:inherit}.ephox-summary-card-title{font-size:1.2em;display:block}.ephox-summary-card-author{color:#999;display:block;margin-top:.5em}.ephox-summary-card-website{color:#999;display:block;margin-top:.5em}.ephox-summary-card-thumbnail{max-width:180px;max-height:180px;margin-left:2em;float:right}.ephox-summary-card-description{margin-top:.5em;display:block}div[data-ephox-embed-iri][data-mce-selected="2"] .mce-shim{display:none}div[data-ephox-embed-iri] .mce-shim{position:absolute;top:0;left:0;width:100%;height:100%;background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}div[data-ephox-embed-iri]{position:relative}div[data-ephox-embed-iri] iframe,div[data-ephox-embed-iri] video,div[data-ephox-embed-iri] audio{display:block}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Tiny Technologies, Inc SOFTWARE TERMS & CONDITIONS OF USE
|
|
2
|
-
|
|
3
|
-
Use of this software is covered by the Tiny Technologies, Inc Software Terms & Conditions of Use presented at https://about.tiny.cloud/legal/. By use of this Software you have agreed to the Tiny Technologies, Inc Software Terms & Conditions of Use.
|
|
4
|
-
|
|
5
|
-
14 May 2019
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* Ephox Media Embed
|
|
2
|
-
*
|
|
3
|
-
* Copyright 2010-2017 Ephox Corporation. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Version: 2.2.5-101
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
!function(f){"use strict";var n,e,r,t,o,i,u,c,a,s=function(n){return parseInt(n,10)},l=function(n,e,r){return{major:n,minor:e,patch:r}},d=function(n){var e=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(n);return e?l(s(e[1]),s(e[2]),s(e[3])):l(0,0,0)},m=function(n,e){var r=n-e;return 0===r?0:0<r?1:-1},p=function(n,e){return!!n&&-1===function(n,e){var r=m(n.major,e.major);if(0!==r)return r;var t=m(n.minor,e.minor);if(0!==t)return t;var o=m(n.patch,e.patch);return 0!==o?o:0}(d([(r=n).majorVersion,r.minorVersion].join(".").split(".").slice(0,3).join(".")),d(e));var r},h=function(){},y=function(n){return function(){return n}},v=function(n){return n},g=y(!1),w=y(!0),b=function(){return T},T=(n=function(n){return n.isNone()},t={fold:function(n,e){return n()},is:g,isSome:g,isNone:w,getOr:r=function(n){return n},getOrThunk:e=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:r,orThunk:e,map:b,each:h,bind:b,exists:g,forall:w,filter:b,equals:n,equals_:n,toArray:function(){return[]},toString:y("none()")},Object.freeze&&Object.freeze(t),t),x=function(r){var n=y(r),e=function(){return o},t=function(n){return n(r)},o={fold:function(n,e){return e(r)},is:function(n){return r===n},isSome:w,isNone:g,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:e,orThunk:e,map:function(n){return x(n(r))},each:function(n){n(r)},bind:t,exists:t,forall:t,filter:function(n){return n(r)?o:T},toArray:function(){return[r]},toString:function(){return"some("+r+")"},equals:function(n){return n.is(r)},equals_:function(n,e){return n.fold(g,function(n){return e(r,n)})}};return o},S={some:x,none:b,from:function(n){return null==n?T:x(n)}},E=function(e){return function(n){return function(n){if(null===n)return"null";var e=typeof n;return"object"===e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e}(n)===e}},O=E("string"),_=E("object"),N=E("array"),D=E("boolean"),C=E("function"),A=E("number"),k=Array.prototype.slice,R=Array.prototype.indexOf,I=Array.prototype.push,j=function(n,e){return r=n,t=e,-1<R.call(r,t);var r,t},F=function(n,e){for(var r=n.length,t=new Array(r),o=0;o<r;o++){var i=n[o];t[o]=e(i,o)}return t},P=function(n,e){for(var r=0,t=n.length;r<t;r++){e(n[r],r)}},M=function(n,e){for(var r=[],t=0,o=n.length;t<o;t++){var i=n[t];e(i,t)&&r.push(i)}return r},L=function(n,e){for(var r=0,t=n.length;r<t;r++){var o=n[r];if(e(o,r))return S.some(o)}return S.none()},U=function(n){for(var e=[],r=0,t=n.length;r<t;++r){if(!N(n[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+n);I.apply(e,n[r])}return e},B=function(n,e){var r=F(n,e);return U(r)},V=C(Array.from)?Array.from:function(n){return k.call(n)},q=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(e.length!==r.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+r.length+" arguments");var t={};return P(e,function(n,e){t[n]=y(r[e])}),t}},W=Object.keys,H=Object.hasOwnProperty,J=function(n,e){for(var r=W(n),t=0,o=r.length;t<o;t++){var i=r[t];e(n[i],i)}},K=function(n,t){var o={};return J(n,function(n,e){var r=t(n,e);o[r.k]=r.v}),o},z=function(n,e){return $(n,e)?S.from(n[e]):S.none()},$=function(n,e){return H.call(n,e)},X=function(n,e,r){return 0!=(n.compareDocumentPosition(e)&r)},Y=function(n,e){return X(n,e,f.Node.DOCUMENT_POSITION_CONTAINED_BY)},G=function(){return(G=Object.assign||function(n){for(var e,r=1,t=arguments.length;r<t;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)},Q=function(n){var e=n,r=function(){return e};return{get:r,set:function(n){e=n},clone:function(){return Q(r())}}},Z=function(){return nn(0,0)},nn=function(n,e){return{major:n,minor:e}},en={nu:nn,detect:function(n,e){var r=String(e).toLowerCase();return 0===n.length?Z():function(n,e){var r=function(n,e){for(var r=0;r<n.length;r++){var t=n[r];if(t.test(e))return t}}(n,e);if(!r)return{major:0,minor:0};var t=function(n){return Number(e.replace(r,"$"+n))};return nn(t(1),t(2))}(n,r)},unknown:Z},rn="Firefox",tn=function(n,e){return function(){return e===n}},on=function(n){var e=n.current;return{current:e,version:n.version,isEdge:tn("Edge",e),isChrome:tn("Chrome",e),isIE:tn("IE",e),isOpera:tn("Opera",e),isFirefox:tn(rn,e),isSafari:tn("Safari",e)}},un={unknown:function(){return on({current:void 0,version:en.unknown()})},nu:on,edge:y("Edge"),chrome:y("Chrome"),ie:y("IE"),opera:y("Opera"),firefox:y(rn),safari:y("Safari")},cn="Windows",an="Android",fn="Solaris",sn="FreeBSD",ln=function(n,e){return function(){return e===n}},dn=function(n){var e=n.current;return{current:e,version:n.version,isWindows:ln(cn,e),isiOS:ln("iOS",e),isAndroid:ln(an,e),isOSX:ln("OSX",e),isLinux:ln("Linux",e),isSolaris:ln(fn,e),isFreeBSD:ln(sn,e)}},mn={unknown:function(){return dn({current:void 0,version:en.unknown()})},nu:dn,windows:y(cn),ios:y("iOS"),android:y(an),linux:y("Linux"),osx:y("OSX"),solaris:y(fn),freebsd:y(sn)},pn=function(n,e){var r=String(e).toLowerCase();return L(n,function(n){return n.search(r)})},hn=function(n,r){return pn(n,r).map(function(n){var e=en.detect(n.versionRegexes,r);return{current:n.name,version:e}})},vn=function(n,r){return pn(n,r).map(function(n){var e=en.detect(n.versionRegexes,r);return{current:n.name,version:e}})},gn=function(n,e){return-1!==n.indexOf(e)},yn=function(n,e){return r=n,o=0,""===(t=e)||!(r.length<t.length)&&r.substr(o,o+t.length)===t;var r,t,o},wn=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,bn=function(e){return function(n){return gn(n,e)}},Tn=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(n){return gn(n,"edge/")&&gn(n,"chrome")&&gn(n,"safari")&&gn(n,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,wn],search:function(n){return gn(n,"chrome")&&!gn(n,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(n){return gn(n,"msie")||gn(n,"trident")}},{name:"Opera",versionRegexes:[wn,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:bn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:bn("firefox")},{name:"Safari",versionRegexes:[wn,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(n){return(gn(n,"safari")||gn(n,"mobile/"))&&gn(n,"applewebkit")}}],xn=[{name:"Windows",search:bn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(n){return gn(n,"iphone")||gn(n,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:bn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:bn("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:bn("linux"),versionRegexes:[]},{name:"Solaris",search:bn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:bn("freebsd"),versionRegexes:[]}],Sn={browsers:y(Tn),oses:y(xn)},En=Q(function(n,e){var r,t,o,i,u,c,a,f,s,l,d,m,p=Sn.browsers(),h=Sn.oses(),v=hn(p,n).fold(un.unknown,un.nu),g=vn(h,n).fold(mn.unknown,mn.nu);return{browser:v,os:g,deviceType:(t=v,o=n,i=e,u=(r=g).isiOS()&&!0===/ipad/i.test(o),c=r.isiOS()&&!u,a=r.isiOS()||r.isAndroid(),f=a||i("(pointer:coarse)"),s=u||!c&&a&&i("(min-device-width:768px)"),l=c||a&&!s,d=t.isSafari()&&r.isiOS()&&!1===/safari/i.test(o),m=!l&&!s&&!d,{isiPad:y(u),isiPhone:y(c),isTablet:y(s),isPhone:y(l),isTouch:y(f),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:y(d),isDesktop:y(m)})}}(f.navigator.userAgent,function(n){return f.window.matchMedia(n).matches})),On=function(n){if(null==n)throw new Error("Node cannot be null or undefined");return{dom:y(n)}},_n={fromHtml:function(n,e){var r=(e||f.document).createElement("div");if(r.innerHTML=n,!r.hasChildNodes()||1<r.childNodes.length)throw f.console.error("HTML does not have a single root node",n),new Error("HTML must have a single root node");return On(r.childNodes[0])},fromTag:function(n,e){var r=(e||f.document).createElement(n);return On(r)},fromText:function(n,e){var r=(e||f.document).createTextNode(n);return On(r)},fromDom:On,fromPoint:function(n,e,r){var t=n.dom();return S.from(t.elementFromPoint(e,r)).map(On)}},Nn=(f.Node.ATTRIBUTE_NODE,f.Node.CDATA_SECTION_NODE,f.Node.COMMENT_NODE,f.Node.DOCUMENT_NODE),Dn=(f.Node.DOCUMENT_TYPE_NODE,f.Node.DOCUMENT_FRAGMENT_NODE,f.Node.ELEMENT_NODE),Cn=(f.Node.TEXT_NODE,f.Node.PROCESSING_INSTRUCTION_NODE,f.Node.ENTITY_REFERENCE_NODE,f.Node.ENTITY_NODE,f.Node.NOTATION_NODE,Dn),An=Nn,kn=function(n){return n.nodeType!==Cn&&n.nodeType!==An||0===n.childElementCount},Rn=(En.get().browser.isIE(),void 0!==f.window?f.window:Function("return this;")(),function(n){return n.dom().nodeName.toLowerCase()}),In=function(n,e){for(var r=[],t=function(n){return r.push(n),e(n)},o=e(n);(o=o.bind(t)).isSome(););return r},jn=function(n){return S.from(n.dom().parentNode).map(_n.fromDom)},Fn=function(n){return S.from(n.dom().previousSibling).map(_n.fromDom)},Pn=function(n){return S.from(n.dom().nextSibling).map(_n.fromDom)},Mn=function(n){return e=In(n,Fn),(r=k.call(e,0)).reverse(),r;var e,r},Ln=function(n){return F(n.dom().childNodes,_n.fromDom)},Un=function(n){return e=0,r=n.dom().childNodes,S.from(r[e]).map(_n.fromDom);var e,r},Bn=(q("element","offset"),function(n,e){return r=function(n){return function(n,e){var r=n.dom();if(r.nodeType!==Cn)return!1;var t=r;if(void 0!==t.matches)return t.matches(e);if(void 0!==t.msMatchesSelector)return t.msMatchesSelector(e);if(void 0!==t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(void 0!==t.mozMatchesSelector)return t.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}(n,e)},M(Ln(n),r);var r}),Vn=function(n,e){return r=e,o=void 0===(t=n)?f.document:t.dom(),kn(o)?[]:F(o.querySelectorAll(r),_n.fromDom);var r,t,o},qn=function(n){return n.dom().textContent},Wn={isBlock:(o=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],function(n){return(i=i||function(n,e){for(var r={},t=0,o=n.length;t<o;t++){var i=n[t];r[String(i)]=e(i,t)}return r}(o,y(!0))).hasOwnProperty(Rn(n))})},Hn=function(e,r){return function(n){return e(n)||r(n)}},Jn=q("start","end","caret"),Kn=function(n){return"br"===Rn(n)},zn=function(e){return n=jn(e.start()),r=jn(e.end()),t=function(){var n=f.document.createRange();return n.setStartBefore(e.start().dom()),n.setEndAfter(e.end().dom()),n},n.isSome()&&r.isSome()?S.some(t(n.getOrDie(),r.getOrDie())):S.none();var n,r,t},$n=function(n,e){var r=e[e.length-1];return function(n,e){for(var r=0,t=n.length;r<t;r++)if(e(n[r],r))return S.some(r);return S.none()}(n,function(n){return e=r,n.dom()===e.dom();var e}).getOrDie("how is it possible you can't find a br you just found?")},Xn=function(n){return M(Bn(n,"br"),function(n){return Pn(n).isSome()})},Yn=function(n){return e=function(n,e){return n+qn(e)},r="",P(n,function(n){r=e(r,n)}),r;var e,r},Gn=Xn,Qn=$n,Zn=function(n){if(!1===n.collapsed)return S.none();var e,r,t,o,i,u,c,a=(r=(e=n).startContainer,t=e.startOffset,void 0===r?S.none():3===r.nodeType?0===t?S.some(r).map(_n.fromDom):S.none():S.from(r.childNodes[t]).map(_n.fromDom)),f=a.bind(Fn).filter(Kn),s=f.map(Mn).bind(function(n){return L(n.reverse(),Hn(Kn,Wn.isBlock)).fold(function(){return S.from(n[n.length-1])},Pn)});return i=f,u=a,c=Jn,(o=s).isSome()&&i.isSome()&&u.isSome()?S.some(c(o.getOrDie(),i.getOrDie(),u.getOrDie())):S.none()},ne=zn,ee=function(n){return zn(n).fold(y(""),function(n){return n.toString()})},re=Yn,te=function(n){var e=Xn(n);if(0<e.length){var r=Ln(n),t=$n(r,e),o=r.slice(t+1);return Yn(o)}return qn(n)},oe=function(n){return O(n.mediaembed_service_url)},ie=function(n){return A(n.mediaembed_max_width)?n.mediaembed_max_width:650},ue=function(n){var e=n.api_key;return e||n.mediaembed_api_key},ce=function(n,e){return O(n.mediaembed_content_css)?n.mediaembed_content_css:e},ae=function(n){return n.getParam("mediaembed_inline_styles",!1,"boolean")},fe=function(n,e,r){!function(n,e,r){if(!(O(r)||D(r)||A(r)))throw f.console.error("Invalid call to Attr.set. Key ",e,":: Value ",r,":: Element ",n),new Error("Attribute value was not simple");n.setAttribute(e,r+"")}(n.dom(),e,r)},se=function(n,t){Pn(n).fold(function(){jn(n).each(function(n){le(n,t)})},function(n){var e,r;r=t,jn(e=n).each(function(n){n.dom().insertBefore(r.dom(),e.dom())})})},le=function(n,e){n.dom().appendChild(e.dom())},de=function(n){var e=n.dom();null!==e.parentNode&&e.parentNode.removeChild(e)},me=function(n){return e=n,r=!0,_n.fromDom(e.dom().cloneNode(r));var e,r},pe=function(n){return void 0!==n.style&&C(n.style.getPropertyValue)},he=function(n,e,r){if(!O(r))throw f.console.error("Invalid call to CSS.set. Property ",e,":: Value ",r,":: Element ",n),new Error("CSS value must be a string: "+r);pe(n)&&n.style.setProperty(e,r)},ve=function(n,e,r){var t=n.dom();he(t,e,r)},ge=function(n,e){var r,t,o=n.dom(),i=(t=e,pe(r=o)?r.style.getPropertyValue(t):"");return S.from(i).filter(function(n){return 0<n.length})},ye=function(n){var e=_n.fromTag("div"),r=_n.fromDom(n.dom().cloneNode(!0));return le(e,r),e.dom().innerHTML},we=function(n){var e=n.dom().styleSheets;return Array.prototype.slice.call(e)},be=function(n){var e=n.cssRules;return B(e,function(n){return n.type===f.CSSRule.IMPORT_RULE?be(n.styleSheet):n.type===f.CSSRule.STYLE_RULE?[function(n){var e=n.selectorText,r=n.style.cssText;if(void 0===r)throw new Error("WARNING: Browser does not support cssText property");return{selector:e,style:r,raw:n.style}}(n)]:[]})},Te=function(n){return B(n,be)},xe={},Se={exports:xe};c=xe,a=Se,u=void 0,function(n){"object"==typeof c&&void 0!==a?a.exports=n():"function"==typeof u&&u.amd?u([],n):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=n()}(function(){return function i(u,c,a){function f(e,n){if(!c[e]){if(!u[e]){var r=!1;if(!n&&r)return r(e,!0);if(s)return s(e,!0);var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var o=c[e]={exports:{}};u[e][0].call(o.exports,function(n){return f(u[e][1][n]||n)},o,o.exports,i,u,c,a)}return c[e].exports}for(var s=!1,n=0;n<a.length;n++)f(a[n]);return f}({1:[function(n,e,r){var t,u,o=(t=function(n){var e,r,t,o,i=[];for(t=0,o=(e=n.split(",")).length;t<o;t+=1)0<(r=e[t]).length&&i.push(u(r));return i},u=function(a){var n,e,r,f=a,s={a:0,b:0,c:0},l=[];return n=function(n,e){var r,t,o,i,u,c;if(n.test(f))for(t=0,o=(r=f.match(n)).length;t<o;t+=1)s[e]+=1,i=r[t],u=f.indexOf(i),c=i.length,l.push({selector:a.substr(u,c),type:e,index:u,length:c}),f=f.replace(i,Array(c+1).join(" "))},(e=function(n){var e,r,t,o;if(n.test(f))for(r=0,t=(e=f.match(n)).length;r<t;r+=1)o=e[r],f=f.replace(o,Array(o.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),e(/\\[0-9A-Fa-f]{1,5}\s/g),e(/\\./g),(r=/:not\(([^\)]*)\)/g).test(f)&&(f=f.replace(r," $1 ")),function(){var n,e,r,t,o=/{[^]*/gm;if(o.test(f))for(e=0,r=(n=f.match(o)).length;e<r;e+=1)t=n[e],f=f.replace(t,Array(t.length+1).join(" "))}(),n(/(\[[^\]]+\])/g,"b"),n(/(#[^\#\s\+>~\.\[:]+)/g,"a"),n(/(\.[^\s\+>~\.\[:]+)/g,"b"),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),n(/(:[\w-]+\([^\)]*\))/gi,"b"),n(/(:[^\s\+>~\.\[:]+)/g,"b"),f=(f=f.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),n(/([^\s\+>~\.\[:]+)/g,"c"),l.sort(function(n,e){return n.index-e.index}),{selector:a,specificity:"0,"+s.a.toString()+","+s.b.toString()+","+s.c.toString(),specificityArray:[0,s.a,s.b,s.c],parts:l}},{calculate:t,compare:function(n,e){var r,t,o;if("string"==typeof n){if(-1!==n.indexOf(","))throw"Invalid CSS selector";r=u(n).specificityArray}else{if(!Array.isArray(n))throw"Invalid CSS selector or specificity array";if(4!==n.filter(function(n){return"number"==typeof n}).length)throw"Invalid specificity array";r=n}if("string"==typeof e){if(-1!==e.indexOf(","))throw"Invalid CSS selector";t=u(e).specificityArray}else{if(!Array.isArray(e))throw"Invalid CSS selector or specificity array";if(4!==e.filter(function(n){return"number"==typeof n}).length)throw"Invalid specificity array";t=e}for(o=0;o<4;o+=1){if(r[o]<t[o])return-1;if(r[o]>t[o])return 1}return 0}});void 0!==r&&(r.calculate=o.calculate,r.compare=o.compare)},{}],2:[function(n,e,r){var t=n("specificity");e.exports={boltExport:t}},{specificity:1}]},{},[2])(2)});var Ee,Oe,_e=Se.exports.boltExport,Ne=function(e,n,r){var t=B(n,function(c){var n=Vn(e,c.selector);return P(n,function(n){var r,t,o,e,i,u=(r=c.raw,t=n,o={},P(r,function(n){if(void 0!==r[n]){var e=t.dom().style;j(e,n)||(o[n]=r[n])}}),o);e=u,i=n.dom(),J(e,function(n,e){he(i,e,n)})}),n});r&&P(t,function(n){var e;e="class",n.dom().removeAttribute(e)})},De=function(n,e,r){var t=function(n){return-1!==n.selector.indexOf(",")},o=B(M(n,t),function(e){var n=e.selector.split(",");return F(n,function(n){return{selector:n.trim(),raw:e.raw}})}),i=M(n,function(n){return!t(n)}).concat(o);i.sort(function(n,e){return _e.compare(n.selector,e.selector)}).reverse(),Ne(e,i,r)},Ce=function(n,e,r,t){var o=we(n),i=Te(o).map(function(n){var e=n.selector;return{selector:r.hasOwnProperty(e)?r[e]:e,raw:n.raw}});De(i,e,t)},Ae=function(n,e,r,t){var o=we(n),i=Te(o),u=M(i,function(n){return yn(n.selector,r)});De(u,e,t)},ke=function(n,e,r,t){var o=we(n),i=Te(o),u=M(i,function(n){return j(r,n.selector)});De(u,e,t)},Re={inlineStyles:function(n,e,r){Ce(n,e,r,!0)},inlineStylesKeepClasses:function(n,e,r){Ce(n,e,r,!1)},inlinePrefixedStyles:function(n,e,r){Ae(n,e,r,!0)},inlinePrefixedStylesKeepClasses:function(n,e,r){Ae(n,e,r,!1)},inlineSelectorsStyles:function(n,e,r){ke(n,e,r,!0)},inlineSelectorsStylesKeepClasses:function(n,e,r){ke(n,e,r,!1)}},Ie={inlineStyles:Re.inlineStyles,inlineStylesKeepClasses:Re.inlineStylesKeepClasses,inlinePrefixedStyles:Re.inlinePrefixedStyles,inlinePrefixedStylesKeepClasses:Re.inlinePrefixedStylesKeepClasses,inlineSelectorsStyles:Re.inlineSelectorsStyles,inlineSelectorsStylesKeepClasses:Re.inlineSelectorsStylesKeepClasses},je=function(n){return 1===n.dom().nodeType?n:Pn(n).fold(function(){return n},je)},Fe=function(n,e){var r=n.parser.parse(e,{isRootContent:!0,forced_root_block:!1}),t=new tinymce.html.Serializer({validate:!0},n.schema).serialize(r),o=_n.fromDom(n.dom.createFragment(t));return Le(n,o)},Pe=function(n,e){return Rn(e).toLowerCase()===n.toLowerCase()},Me=function(n,e){var r=n.dom.createFragment(e);return je(_n.fromDom(r.firstChild))},Le=function(n,e){if(ae(n)){var r=_n.fromTag("div");le(r,e);var t=n.getDoc(),o=_n.fromDom(t);Ie.inlinePrefixedStyles(o,r,".ephox-summary-card");var i=Vn(r,"*[style]");return P(i,function(n){var e,r,t=(e="style",null===(r=n.dom().getAttribute(e))?void 0:r);fe(n,"data-mce-style",t)}),u=Ln(r),a=(c||f.document).createDocumentFragment(),P(u,function(n){a.appendChild(n.dom())}),_n.fromDom(a)}return e;var u,c,a},Ue=function(n,e,r){var t=Fe(n,ye(r));n.undoManager.transact(function(){var n;(n=e).dom().textContent="",P(Ln(n),function(n){de(n)}),le(e,t)})},Be=function(n,e,r){var t=me(r);return ge(t,"max-width").isNone()&&ve(t,"max-width",e+"px"),fe(t,"data-ephox-embed-iri",n),fe(t,"contentEditable",!1),t},Ve=function(n,e,r){return Pe("DIV",e)?Be(n,r,e):Be(n,r,((Pe("VIDEO",i=e)||Pe("AUDIO",i))&&ve(i,"width","100%"),t=i,o=_n.fromTag("div"),le(o,me(t)),o));var t,o,i},qe=function(n,e,r){return Pe("A",e)?e:Ve(n,e,r)},We=function(n,e,r,t,o){var i,u,c,a,f,s,l,d,m=Ln(e),p=Qn(m,r),h=m.slice(p),v=m.slice(p+1);if(re(v)===t){var g=qe(t,Me(n,o),ie(n.settings));Pe("DIV",g)?(s=e,l=h,d=Fe(f=n,ye(g)),Un(d).each(function(n){f.undoManager.transact(function(){se(s,n),P(l,de)})})):(u=e,c=v,a=Fe(i=n,ye(g)),i.undoManager.transact(function(){P(c,de),le(u,a)}))}},He=function(n,e,r,t){var o,i,u,c=qe(r,Me(n,t),ie(n.settings));Pe("DIV",c)?(i=e,u=Fe(o=n,ye(c)),Un(u).each(function(n){o.undoManager.transact(function(){se(i,n),de(i)})})):Ue(n,e,c)},Je=function(r,n,t,o){n.filter(function(n){return jn(n).isSome()}).each(function(n){var e=Gn(n);0<e.length?We(r,n,e,t,o):He(r,n,t,o)})},Ke=function(n,e,r){var t=Me(n,r);return ye(qe(e,t,ie(n.settings)))},ze=function(u,n,e,r){n.map(function(i){ne(i).each(function(t){var n=qe(e,Me(u,r),ie(u.settings)),o=Fe(u,ye(n));u.undoManager.transact(function(){var n,e,r;t.deleteContents(),t.insertNode(o.dom()),t.collapse(!1),n=u,e=i.caret().dom(),r=n.dom.createRng(),3===e.nodeType?(r.setStart(e,0),r.setEnd(e,0)):(r.setStartBefore(e),r.setEndAfter(e)),n.selection.setRng(r)})})})},$e=function(n){var e,r,t=(e=n.split(" "),r={},P(e,function(n){r[n.toLowerCase()]=!0}),r);return function(n){return!!n&&n.nodeName.toLowerCase()in t}},Xe=$e("h1 h2 h3 h4 h5 h6 p span"),Ye=$e("strong em b span a br"),Ge=function(n){return L((e=n,e?V(e.querySelectorAll("*")):[]),(r=Ye,function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return!r.apply(null,n)})).isNone();var r,e},Qe=function(n){return Xe(n.dom())&&Ge(n.dom())},Ze=function(n){return/^https?:\/\/\S+$/i.test(n.trim())},nr=function(n){return S.from(n).filter(Qe).map(te).filter(Ze)},er=function(c,a,f){c.on("newBlock",function(n){var e,t,o,i,u;e=n,t=c,o=a,i=f,(u=Fn(_n.fromDom(e.newBlock))).bind(nr).map(function(r){o.getAndHandleResponse(r,function(n){var e=n.recommended().html();Je(t,u,r,e)},i.logError)})}),c.settings.forced_root_block||c.on("keydown",function(n){var t,e,o,r,i;13===n.keyCode&&(e=a,o=f,r=(t=c).selection.getRng(),(i=Zn(r)).map(ee).filter(Ze).map(function(r){e.getAndHandleResponse(r,function(n){var e=n.recommended().html();ze(t,i,r,e)},o.logError)}))})},rr=function(n){P(n,function(n){var e;(e=new tinymce.html.Node("span",1)).attr("class","mce-shim"),e.attr("data-mce-bogus","1"),n.append(e),n.attr("contenteditable","false")})},tr=function(n){P(n,function(n){n.attr("contenteditable",null)})},or=function(e){e.on("click keyup touchend",function(){var n=e.selection.getNode();n&&e.dom.getAttrib(n,"data-ephox-embed-iri")&&e.dom.getAttrib(n,"data-mce-selected")&&n.setAttribute("data-mce-selected","2")}),tinymce.Env.ceFalse&&e.on("PreInit",function(){e.parser.addAttributeFilter("data-ephox-embed-iri",rr),e.serializer.addAttributeFilter("data-ephox-embed-iri",tr)})},ir=function(n,e,r){var o,i,u;"media_url_resolver"in n.settings==0&&(n.settings.media_url_resolver=(o=n,i=e,u=r,function(r,t,e){!1!==Ze(r.url)?i.getAndHandleResponse(r.url,function(n){var e=n.recommended().html();t({html:Ke(o,r.url,e)})},function(n){u.logDialogError(n),e({msg:u.formatMessage(n.msg(),n.code())})}):t({html:""})}))},ur=function(t,o){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=t.console;r&&o in r&&r[o].apply(r,arguments)}},cr={log:ur(window,"log"),error:ur(window,"error"),warn:ur(window,"warm")},ar=[{code:404,message:"The specified url was not found."},{code:600,message:"The specified service did not respond correctly."},{code:601,message:"The specified service did not respond correctly."}],fr=function(n,e){return L(ar,function(n){return n.code===e}).fold(function(){return"Server didn't produce a valid result. ("+e+")"},function(n){return n.message})},sr=function(t){var r,o=function(n){var e,r=function(n){if("string"==typeof n)return{message:n};var e=n.code();return{message:fr(n.msg(),e),code:e}}(n);e=r,t.fire("MediaEmbedError",e),cr.error("Media embed error: "+r.message)};return{formatMessage:fr,logDialogError:function(n){var e=n.msg();e!==r&&o(n),r=e},logError:o}},lr=function(r){return{is:function(n){return r===n},isValue:w,isError:g,getOr:y(r),getOrThunk:y(r),getOrDie:y(r),or:function(n){return lr(r)},orThunk:function(n){return lr(r)},fold:function(n,e){return e(r)},map:function(n){return lr(n(r))},mapError:function(n){return lr(r)},each:function(n){n(r)},bind:function(n){return n(r)},exists:function(n){return n(r)},forall:function(n){return n(r)},toOption:function(){return S.some(r)}}},dr=function(r){return{is:g,isValue:g,isError:w,getOr:v,getOrThunk:function(n){return n()},getOrDie:function(){return n=String(r),function(){throw new Error(n)}();var n},or:function(n){return n},orThunk:function(n){return n()},fold:function(n,e){return n(r)},map:function(n){return dr(r)},mapError:function(n){return dr(n(r))},each:h,bind:function(n){return dr(r)},exists:g,forall:w,toOption:S.none}},mr={value:lr,error:dr,fromOption:function(n,e){return n.fold(function(){return dr(e)},lr)}};(Oe=Ee||(Ee={}))[Oe.Error=0]="Error",Oe[Oe.Value=1]="Value";var pr,hr,vr,gr=function(n,e,r){return n.stype===Ee.Error?e(n.serror):r(n.svalue)},yr=function(n){return{stype:Ee.Value,svalue:n}},wr=function(n){return{stype:Ee.Error,serror:n}},br=function(n){return gr(n,mr.error,mr.value)},Tr=yr,xr=function(n){var e=[],r=[];return P(n,function(n){gr(n,function(n){return r.push(n)},function(n){return e.push(n)})}),{values:e,errors:r}},Sr=wr,Er=function(n,e){return n.stype===Ee.Value?e(n.svalue):n},Or=function(n,e){return n.stype===Ee.Error?e(n.serror):n},_r=function(n,e){return n.stype===Ee.Value?{stype:Ee.Value,svalue:e(n.svalue)}:n},Nr=function(n,e){return n.stype===Ee.Error?{stype:Ee.Error,serror:e(n.serror)}:n},Dr=function(n,e){return $(r=n,t=e)?S.from(r[t]):S.none();var r,t},Cr=function(n,e){var r={};return r[n]=e,r},Ar=function(u){if(!N(u))throw new Error("cases must be an array");if(0===u.length)throw new Error("there must be at least one case");var c=[],r={};return P(u,function(n,t){var e=W(n);if(1!==e.length)throw new Error("one and only one name per case");var o=e[0],i=n[o];if(void 0!==r[o])throw new Error("duplicate key detected:"+o);if("cata"===o)throw new Error("cannot have a case named cata (sorry)");if(!N(i))throw new Error("case arguments must be an array");c.push(o),r[o]=function(){var n=arguments.length;if(n!==i.length)throw new Error("Wrong number of arguments to case "+o+". Expected "+i.length+" ("+i+"), got "+n);for(var r=new Array(n),e=0;e<r.length;e++)r[e]=arguments[e];return{fold:function(){if(arguments.length!==u.length)throw new Error("Wrong number of arguments to fold. Expected "+u.length+", got "+arguments.length);return arguments[t].apply(null,r)},match:function(n){var e=W(n);if(c.length!==e.length)throw new Error("Wrong number of arguments to match. Expected: "+c.join(",")+"\nActual: "+e.join(","));if(!function(n,e){for(var r=0,t=n.length;r<t;++r)if(!0!==e(n[r],r))return!1;return!0}(c,function(n){return j(e,n)}))throw new Error("Not all branches were specified when using match. Specified: "+e.join(", ")+"\nRequired: "+c.join(", "));return n[o].apply(null,r)},log:function(n){f.console.log(n,{constructors:c,constructor:o,params:r})}}}}),r},kr=(Ar([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),Object.prototype.hasOwnProperty),Rr=function(u){return function(){for(var n=new Array(arguments.length),e=0;e<n.length;e++)n[e]=arguments[e];if(0===n.length)throw new Error("Can't merge zero objects");for(var r={},t=0;t<n.length;t++){var o=n[t];for(var i in o)kr.call(o,i)&&(r[i]=u(r[i],o[i]))}return r}},Ir=Rr(function(n,e){return _(n)&&_(e)?Ir(n,e):e}),jr=Rr(function(n,e){return e}),Fr=Ar([{setOf:["validator","valueType"]},{arrOf:["valueType"]},{objOf:["fields"]},{itemOf:["validator"]},{choiceOf:["key","branches"]},{thunk:["description"]},{func:["args","outputSchema"]}]),Pr=Ar([{field:["name","presence","type"]},{state:["name"]}]),Mr=function(n){return _(n)&&100<W(n).length?" removed due to size":JSON.stringify(n,null,2)},Lr=function(n,e){return Sr([{path:n,getErrorInfo:e}])},Ur=Ar([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),Br=Ur.strict,Vr=function(n){return r=Sr,t=U,function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return r(t.apply(null,n))}(n);var r,t},qr=function(n,e){var r,t,o=xr(n);return 0<o.errors.length?Vr(o.errors):(r=o.values,t=e,0<r.length?Tr(Ir(t,jr.apply(void 0,r))):Tr(t))},Wr=Ar([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),Hr=function(r,t,o){return Dr(t,o).fold(function(){return n=o,e=t,Lr(r,function(){return'Could not find valid *strict* value for "'+n+'" in '+Mr(e)});var n,e},Tr)},Jr=function(n,e,r){var t=Dr(n,e).fold(function(){return r(n)},v);return Tr(t)},Kr=function(c,a,n,f){return n.fold(function(o,r,n,t){var i=function(n){var e=t.extract(c.concat([o]),f,n);return _r(e,function(n){return Cr(r,f(n))})},u=function(n){return n.fold(function(){var n=Cr(r,f(S.none()));return Tr(n)},function(n){var e=t.extract(c.concat([o]),f,n);return _r(e,function(n){return Cr(r,f(S.some(n)))})})};return n.fold(function(){return Er(Hr(c,a,o),i)},function(n){return Er(Jr(a,o,n),i)},function(){return Er(Tr(Dr(a,o)),u)},function(n){return Er((r=n,t=Dr(e=a,o).map(function(n){return!0===n?r(e):n}),Tr(t)),u);var e,r,t},function(n){var e=n(a),r=_r(Jr(a,o,y({})),function(n){return Ir(e,n)});return Er(r,i)})},function(n,e){var r=e(a);return Tr(Cr(n,f(r)))})},zr=function(t){return{extract:function(r,n,e){return Or(t(e,n),function(n){return e=n,Lr(r,function(){return e});var e})},toString:function(){return"val"},toDsl:function(){return Fr.itemOf(t)}}},$r=function(c){return{extract:function(n,e,r){return t=n,o=r,i=e,u=F(c,function(n){return Kr(t,o,n,i)}),qr(u,{});var t,o,i,u},toString:function(){return"obj{\n"+F(c,function(n){return n.fold(function(n,e,r,t){return n+" -> "+t.toString()},function(n,e){return"state("+n+")"})}).join("\n")+"}"},toDsl:function(){return Fr.objOf(F(c,function(n){return n.fold(function(n,e,r,t){return Pr.field(n,r,t)},function(n,e){return Pr.state(n)})}))}}},Xr=y(zr(Tr)),Yr=Wr.field,Gr=function(n,e,r,t){var o=e.extract([n],r,t);return Nr(o,function(n){return{input:t,errors:n}})},Qr=function(n,e,r){return br(Gr(n,e,y,r))},Zr=function(n,e,r){return br(Gr(n,e,v,r)).fold(function(n){throw new Error(nt(n))},v)},nt=function(n){return"Errors: \n"+(e=n.errors,r=10<e.length?e.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):e,F(r,function(n){return"Failed path: ("+n.path.join(" > ")+")\n"+n.getErrorInfo()}))+"\n\nInput object: "+Mr(n.input);var e,r},et={},rt={exports:et};hr=et,vr=rt,pr=void 0,function(n){"object"==typeof hr&&void 0!==vr?vr.exports=n():"function"==typeof pr&&pr.amd?pr([],n):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=n()}(function(){return function i(u,c,a){function f(e,n){if(!c[e]){if(!u[e]){var r=!1;if(!n&&r)return r(e,!0);if(s)return s(e,!0);var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var o=c[e]={exports:{}};u[e][0].call(o.exports,function(n){return f(u[e][1][n]||n)},o,o.exports,i,u,c,a)}return c[e].exports}for(var s=!1,n=0;n<a.length;n++)f(a[n]);return f}({1:[function(n,e,r){var t,o,i=e.exports={};function u(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===u||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:u}catch(n){t=u}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(n){o=c}}();var f,s=[],l=!1,d=-1;function m(){l&&f&&(l=!1,f.length?s=f.concat(s):d=-1,s.length&&p())}function p(){if(!l){var n=a(m);l=!0;for(var e=s.length;e;){for(f=s,s=[];++d<e;)f&&f[d].run();d=-1,e=s.length}f=null,l=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===c||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(n){try{return o.call(null,e)}catch(n){return o.call(this,e)}}}(n)}}function h(n,e){this.fun=n,this.array=e}function v(){}i.nextTick=function(n){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new h(n,e)),1!==s.length||l||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(n){return[]},i.binding=function(n){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(n){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(n,l,e){(function(r){!function(n){var e=setTimeout;function t(){}function i(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],s(n,this)}function o(r,t){for(;3===r._state;)r=r._value;0!==r._state?(r._handled=!0,i._immediateFn(function(){var n=1===r._state?t.onFulfilled:t.onRejected;if(null!==n){var e;try{e=n(r._value)}catch(n){return void c(t.promise,n)}u(t.promise,e)}else(1===r._state?u:c)(t.promise,r._value)})):r._deferreds.push(t)}function u(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var r=n.then;if(n instanceof i)return e._state=3,e._value=n,void a(e);if("function"==typeof r)return void s((t=r,o=n,function(){t.apply(o,arguments)}),e)}e._state=1,e._value=n,a(e)}catch(n){c(e,n)}var t,o}function c(n,e){n._state=2,n._value=e,a(n)}function a(n){2===n._state&&0===n._deferreds.length&&i._immediateFn(function(){n._handled||i._unhandledRejectionFn(n._value)});for(var e=0,r=n._deferreds.length;e<r;e++)o(n,n._deferreds[e]);n._deferreds=null}function f(n,e,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof e?e:null,this.promise=r}function s(n,e){var r=!1;try{n(function(n){r||(r=!0,u(e,n))},function(n){r||(r=!0,c(e,n))})}catch(n){if(r)return;r=!0,c(e,n)}}i.prototype.catch=function(n){return this.then(null,n)},i.prototype.then=function(n,e){var r=new this.constructor(t);return o(this,new f(n,e,r)),r},i.all=function(n){var c=Array.prototype.slice.call(n);return new i(function(t,o){if(0===c.length)return t([]);var i=c.length;function u(e,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var r=n.then;if("function"==typeof r)return void r.call(n,function(n){u(e,n)},o)}c[e]=n,0==--i&&t(c)}catch(n){o(n)}}for(var n=0;n<c.length;n++)u(n,c[n])})},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(n){n(e)})},i.reject=function(r){return new i(function(n,e){e(r)})},i.race=function(o){return new i(function(n,e){for(var r=0,t=o.length;r<t;r++)o[r].then(n,e)})},i._immediateFn="function"==typeof r?function(n){r(n)}:function(n){e(n,0)},i._unhandledRejectionFn=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)},i._setImmediateFn=function(n){i._immediateFn=n},i._setUnhandledRejectionFn=function(n){i._unhandledRejectionFn=n},void 0!==l&&l.exports?l.exports=i:n.Promise||(n.Promise=i)}(this)}).call(this,n("timers").setImmediate)},{timers:3}],3:[function(a,n,f){(function(n,e){var t=a("process/browser.js").nextTick,r=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function c(n,e){this._id=n,this._clearFn=e}f.setTimeout=function(){return new c(r.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new c(r.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(n){n.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(n,e){clearTimeout(n._idleTimeoutId),n._idleTimeout=e},f.unenroll=function(n){clearTimeout(n._idleTimeoutId),n._idleTimeout=-1},f._unrefActive=f.active=function(n){clearTimeout(n._idleTimeoutId);var e=n._idleTimeout;0<=e&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},e))},f.setImmediate="function"==typeof n?n:function(n){var e=u++,r=!(arguments.length<2)&&o.call(arguments,1);return i[e]=!0,t(function(){i[e]&&(r?n.apply(null,r):n.call(null),f.clearImmediate(e))}),e},f.clearImmediate="function"==typeof e?e:function(n){delete i[n]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(n,e,r){var t=n("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();e.exports={boltExport:o.Promise||t}},{"promise-polyfill":2}]},{},[4])(4)});var tt,ot,it=rt.exports.boltExport,ut=function(n){var r=S.none(),e=[],t=function(n){o()?u(n):e.push(n)},o=function(){return r.isSome()},i=function(n){P(n,u)},u=function(e){r.each(function(n){f.setTimeout(function(){e(n)},0)})};return n(function(n){r=S.some(n),i(e),e=[]}),{get:t,map:function(r){return ut(function(e){t(function(n){e(r(n))})})},isReady:o}},ct={nu:ut,pure:function(e){return ut(function(n){n(e)})}},at=function(n){f.setTimeout(function(){throw n},0)},ft=function(r){var n=function(n){r().then(n,at)};return{map:function(n){return ft(function(){return r().then(n)})},bind:function(e){return ft(function(){return r().then(function(n){return e(n).toPromise()})})},anonBind:function(n){return ft(function(){return r().then(function(){return n.toPromise()})})},toLazy:function(){return ct.nu(n)},toCached:function(){var n=null;return ft(function(){return null===n&&(n=r()),n})},toPromise:r,get:n}},st=function(n){return ft(function(){return new it(n)})},lt=function(n){return ft(function(){return it.resolve(n)})},dt=function(i){return G(G({},i),{toCached:function(){return dt(i.toCached())},bindFuture:function(e){return dt(i.bind(function(n){return n.fold(function(n){return lt(mr.error(n))},function(n){return e(n)})}))},bindResult:function(e){return dt(i.map(function(n){return n.bind(e)}))},mapResult:function(e){return dt(i.map(function(n){return n.map(e)}))},mapError:function(e){return dt(i.map(function(n){return n.mapError(e)}))},foldResult:function(e,r){return i.map(function(n){return n.fold(e,r)})},withTimeout:function(n,o){return dt(st(function(e){var r=!1,t=f.setTimeout(function(){r=!0,e(mr.error(o()))},n);i.get(function(n){r||(f.clearTimeout(t),e(n))})}))}})},mt=function(n){return dt(st(n))},pt=function(n){return dt(lt(mr.value(n)))},ht={nu:mt,wrap:dt,pure:pt,value:pt,error:function(n){return dt(lt(mr.error(n)))},fromResult:function(n){return dt(lt(n))},fromFuture:function(n){return dt(n.map(mr.value))},fromPromise:function(n){return mt(function(e){n.then(function(n){e(mr.value(n))},function(n){e(mr.error(n))})})}},vt=function(){return(new Date).getTime()};(ot=tt||(tt={})).JSON="json",ot.Blob="blob",ot.Text="text",ot.FormData="formdata",ot.MultipartFormData="multipart/form-data";var gt,yt,wt,bt,Tt,xt,St=function(n){try{var e=JSON.parse(n);return mr.value(e)}catch(n){return mr.error("Response was not JSON.")}},Et=function(e){return st(function(r){var n=new f.FileReader;n.onload=function(n){var e=n.target?n.target.result:new f.Blob([]);r(e)},n.readAsText(e)})},Ot=function(n){return lt(n.response)},_t=function(n,e){switch(n){case tt.JSON:return St(e.response).fold(function(){return Ot(e)},lt);case tt.Blob:return r=e,S.from(r.response).map(Et).getOr(lt("no response content"));case tt.Text:default:return Ot(e)}var r},Nt=function(i,n){return n.map(function(n){var r,t,e=(r=function(n,e){return encodeURIComponent(e)+"="+encodeURIComponent(n)},t=[],J(n,function(n,e){t.push(r(n,e))}),t),o=gn(i,"?")?"&":"?";return 0<e.length?i+o+e.join("&"):i}).getOr(i)},Dt=function(n){var e,r=(e=n.body,S.from(e).bind(function(n){switch(n.type){case tt.JSON:return S.some("application/json");case tt.FormData:return S.some("application/x-www-form-urlencoded; charset=UTF-8");case tt.MultipartFormData:return S.none();case tt.Text:default:return S.some("text/plain")}})),t=!0===n.credentials?S.some(!0):S.none(),o=function(n){switch(n){case tt.Blob:return"application/octet-stream";case tt.JSON:return"application/json, text/javascript";case tt.Text:return"text/plain";default:return""}}(n.responseType)+", */*; q=0.01",i=void 0!==n.headers?n.headers:{};return{contentType:r,responseType:function(n){switch(n){case tt.JSON:return S.none();case tt.Blob:return S.some("blob");case tt.Text:return S.some("text");default:return S.none()}}(n.responseType),credentials:t,accept:o,headers:i,progress:C(n.progress)?S.some(n.progress):S.none()}},Ct=function(n){var r=new f.FormData;return J(n,function(n,e){r.append(e,n)}),r},At=function(c){return ht.nu(function(t){var o=new f.XMLHttpRequest;o.open(c.method,Nt(c.url,S.from(c.query)),!0);var r,n,e=Dt(c);r=o,(n=e).contentType.each(function(n){return r.setRequestHeader("Content-Type",n)}),r.setRequestHeader("Accept",n.accept),n.credentials.each(function(n){return r.withCredentials=n}),n.responseType.each(function(n){return r.responseType=n}),n.progress.each(function(e){return r.upload.addEventListener("progress",function(n){return e(n.loaded,n.total)})}),J(n.headers,function(n,e){return r.setRequestHeader(e,n)});var i,u=function(){var e,n,r;(e=c.url,n=c.responseType,r=o,_t(n,r).map(function(n){return{message:0===r.status?"Unknown HTTP error (possible cross-domain request)":"Could not load url "+e+": "+r.statusText,status:r.status,responseText:n}})).get(function(n){return t(mr.error(n))})};o.onerror=u,o.onload=function(){0!==o.status||yn(c.url,"file:")?o.status<100||400<=o.status?u():function(n,e){var r=function(){return ht.pure(e.response)},t=function(n){return ht.error({message:n,status:e.status,responseText:e.responseText})};switch(n){case tt.JSON:return St(e.response).fold(t,ht.pure);case tt.Blob:case tt.Text:return r();default:return t("unknown data type")}}(c.responseType,o).get(t):u()},(i=c.body,S.from(i).map(function(n){return n.type===tt.JSON?JSON.stringify(n.data):n.type===tt.FormData?Ct(n.data):n.type===tt.MultipartFormData?Ct(n.data):n})).fold(function(){return o.send()},function(n){o.send(n)})})},kt=function(){return n="",{type:tt.Text,data:n};var n},Rt=function(n){return n.fold(function(n){var e=n.responseText,r=_(e)?e:n.message;return mr.error(r)},mr.value)},It=function(s,l){var n,d=z(n=l,"tiny-api-key").orThunk(function(){return z(n,"tinymce-api-key")}).orThunk(function(){return z(n,"textbox-api-key")}).getOrUndefined();return{execute:function(n){var r,e,t,o,i,u,c=(r=function(n){return D(n)?String(n):n},K(n,function(n,e){return{k:e,v:r(n,e)}})),a=(i=c,e=s.replace(/\$\{([^{}]*)\}/g,function(n,e){var r,t=i[e];return"string"==(r=typeof t)||"number"===r?t.toString():n}),t=d,o=-1===e.indexOf("?")?"?":"&",t?e+o+"apiKey="+encodeURIComponent(t):e),f=(u={url:a,responseType:tt.JSON,credentials:!0,headers:l},At(G(G({},u),{method:"get",body:kt()}))).map(Rt);return ht.wrap(f)}}},jt=function(n){return Yr(n,n,Br(),Xr())},Ft="iframely",Pt="oembed",Mt="fallback",Lt="wikipedia",Ut=function(n){return"["+n.join(", ")+"]"},Bt=[Ft,Pt,Mt],Vt=function(e,n,r){return function(n,e){for(var r=0,t=n.length;r<t;r++)if(e(n[r],r))return!0;return!1}(n,function(n){return j(e,n)})?mr.error("Embed response source: "+Ut(e)+" contains more than one of "+Ut(Bt)):mr.value(r)},qt=$r([jt("url"),jt("maxWidth"),(gt="fresh",yt=!1,Yr(gt,gt,(wt=yt,Ur.defaultedThunk(y(wt))),Xr()))]),Wt=$r([jt("status_code"),jt("sub_code"),jt("msg")]),Ht=$r([jt("html"),(bt="rels",Tt=[Yr("source","source",Br(),(xt=function(n){return N(n)?j(e=n,Ft)?Vt(e,[Pt,Mt,Lt],Ft):j(e,Pt)?Vt(e,[Ft,Mt,Lt],Pt):j(e,Mt)?Vt(e,[Ft,Pt,Lt],Mt):j(e,Lt)?Vt(e,[Ft,Pt,Mt],Lt):mr.error("Embed response source: "+Ut(e)+" did not contain any of: "+Ut(Bt)):mr.error("Sources was not an array: "+n);var e},zr(function(n){return xt(n).fold(Sr,Tr)})))],Yr(bt,bt,Br(),$r(Tt)))]),Jt=function(n){return Qr("EmbedResponse.failure",Wt,n).fold(function(n){return mr.error({code:function(){return 600},subcode:function(){return 0},msg:function(){return nt(n)}})},function(n){return mr.error({code:n.status_code,subcode:n.sub_code,msg:n.msg})})},Kt=function(n){return Qr("EmbedResponse.success",Ht,n).fold(function(n){return mr.error({code:function(){return 601},subcode:function(){return 0},msg:function(){return nt(n)}})},function(n){return mr.value({recommended:function(){return{html:n.html,source:n.rels().source}}})})},zt=function(n,e,r){var s=function(n,r){void 0===r&&(r=36e5);var e,t,o={},i=function(n,e,r){o[n]={result:e,timestamp:r}},u=function(n,e){return n-e<r};return _(n)&&(e=n,t=vt(),J(e,function(n,e){u(t,n.timestamp)&&i(e,n.result,n.timestamp)})),{set:i,get:function(e,n){return S.from(o[n]).filter(function(n){return u(e,n.timestamp)}).map(function(n){return n.result})},dump:function(){return o}}}(r),l=It(n+"/1/embed?url=${url}&maxWidth=${maxWidth}",e);return{checkOne:function(o,i,n){void 0===n&&(n=!1);var e,r,t,u,c,a=vt(),f=(e=function(n,e){var r={url:encodeURIComponent(o),maxWidth:i,fresh:e},t=Zr("ephox.media.service.one.ajax.service.get",qt,r);return l.execute(t)},r=s,t=i+"&"+o,u=a,(!0===(c=n)?S.none():r.get(u,t)).fold(function(){return e(t,c).mapResult(function(n){return r.set(t,n,u),n})},function(n){return ht.pure(n)}));return ht.wrap(f.map(function(n){return n.fold(Jt,Kt)}))},dumpCache:s.dump}},$t=function(t){var n,e,o=(n=t.mediaembed_service_url,e=ue(t),zt(n,e?{"tinymce-api-key":e}:{})),i=function(n,e,r){return o.checkOne(n,e,r)},u={};return{getOne:i,dumpCache:function(){o.dumpCache()},getAndHandleResponse:function(r,n,e){void 0!==u[r]?u[r]=u[r].concat(n):(u[r]=[n],i(r.trim(),ie(t)).get(function(n){return n.fold(function(n){e(n),delete u[r]},function(e){P(u[r],function(n){n(e)}),delete u[r]})}))}}},Xt=function(t,o){var n=sr(t),e=$t(t.settings);return or(t),t.on("Init",function(){var n,e,r;e=o+"/content.min.css",r=ce((n=t).settings,e),n.dom.loadCSS(r)}),t.on("SkinLoaded",function(){oe(t.settings)?(er(t,e,n),ir(t,e,n)):n.logError("You need to specify the mediaembed_service_url setting")}),{}},Yt=function(n,e){return tinymce.Env.ceFalse?p(tinymce,"4.5.2")?(cr.error("The mediaembed plugin requires at least 4.5.2 version of TinyMCE."),{}):Xt(n,e):{}};tinymce.PluginManager.add("mediaembed",Yt)}(window);
|