@sapui5/sap.ui.richtexteditor 1.96.24 → 1.96.26
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 +15 -6
- package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
- package/src/sap/ui/richtexteditor/RichTextEditor.js +365 -229
- package/src/sap/ui/richtexteditor/RichTextEditorRenderer.js +14 -5
- package/src/sap/ui/richtexteditor/ToolbarWrapper.js +563 -316
- package/src/sap/ui/richtexteditor/ToolbarWrapperRenderer.js +3 -4
- 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/sq.js +219 -0
- 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 +15720 -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/js/tiny_mce6/icons/default/icons.js +197 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/icons.min.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/icons/default/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ar.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/bg_BG.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ca.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/cs.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/cy.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/da.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/de.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/dv.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/el.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/en_GB.js +261 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/es.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/es_MX.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/et.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/eu.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fa.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/fr_FR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/he_IL.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hr.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/hu_HU.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/id.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/it.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ja.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/kk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ko_KR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lt.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/lv.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ms.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/nb_NO.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/nl.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pl.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pt_BR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/pt_PT.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ro.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/ru.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sl_SI.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sr.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/sv_SE.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/th_TH.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/tr.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/uk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/vi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/zh_CN.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/langs/zh_TW.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/model.js +8045 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/models/dom/model.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/plugin.js +1038 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/accordion/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/CHANGELOG.md +110 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/codemirror.min.css +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/codemirror.min.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/customeditor.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/customeditor.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ar.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/bg_BG.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ca.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/cs.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/da.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/de.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/el.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/es.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/eu.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fa.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fi.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/fr_FR.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/he_IL.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hi.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hr.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/hu_HU.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/id.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/it.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ja.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/kk.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ko_KR.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ms.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/nb_NO.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/nl.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pl.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pt_BR.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/pt_PT.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ro.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/ru.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sk.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sl_SI.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/sv_SE.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/th_TH.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/tr.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/uk.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/vi.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/zh_CN.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/langs/zh_TW.js +15 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/plugin.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/plugin.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/readme.txt +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advcode/version.txt +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/plugin.js +264 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/advlist/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/plugin.js +219 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/anchor/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/plugin.js +233 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autolink/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/plugin.js +197 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autoresize/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/plugin.js +238 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/autosave/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/plugin.js +1663 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/charmap/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/plugin.js +90 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/code/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/plugin.js +2468 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/codesample/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/plugin.js +400 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/directionality/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojiimages.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojiimages.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojis.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/js/emojis.min.js +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/plugin.js +600 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/emoticons/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/plugin.js +1201 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/fullscreen/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ar.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/bg_BG.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ca.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/cs.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/da.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/de.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/el.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/en.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/es.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/eu.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fa.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fi.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/fr_FR.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/he_IL.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hi.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hr.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/hu_HU.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/id.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/it.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ja.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/kk.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ko_KR.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ms.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/nb_NO.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/nl.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pl.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pt_BR.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/pt_PT.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ro.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/ru.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sk.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sl_SI.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/sv_SE.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/th_TH.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/tr.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/uk.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/vi.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/zh_CN.js +90 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/js/i18n/keynav/zh_TW.js +96 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/plugin.js +898 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/help/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/plugin.js +1509 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/image/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/plugin.js +349 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/importcss/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/plugin.js +192 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/insertdatetime/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/plugin.js +1246 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/link/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/plugin.js +1953 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/lists/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/plugin.js +1240 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/media/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/plugin.js +128 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/nonbreaking/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/plugin.js +122 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/pagebreak/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/CHANGELOG.md +402 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/js/wordimport.js +3498 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ar.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/bg_BG.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ca.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/cs.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/da.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/de.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/el.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/es.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/eu.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fa.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fi.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/fr_FR.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/he_IL.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hi.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hr.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/hu_HU.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/id.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/it.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ja.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/kk.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ko_KR.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ms.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/nb_NO.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/nl.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pl.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pt_BR.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/pt_PT.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ro.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/ru.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sk.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sl_SI.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/sv_SE.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/th_TH.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/tr.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/uk.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/vi.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/zh_CN.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/langs/zh_TW.js +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/plugin.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/plugin.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/readme.txt +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/powerpaste/version.txt +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/plugin.js +102 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/preview/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/plugin.js +443 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/quickbars/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/plugin.js +123 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/save/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/plugin.js +1098 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/searchreplace/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/plugin.js +3467 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/table/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/plugin.js +572 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/template/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/plugin.js +103 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualblocks/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/plugin.js +565 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/visualchars/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/plugin.js +410 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/plugins/wordcount/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/readme.txt +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/dark/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.css +67 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/default/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/document/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/document/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5/content.css +67 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5-dark/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/tinymce-5-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/writer/content.css +68 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/content/writer/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.css +791 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.css +785 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.css +3694 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.css +772 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.css +785 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.css +3697 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.css +791 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.css +785 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.css +3788 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.css +772 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.css +785 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.css +3788 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/theme.js +30172 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/themes/silver/theme.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.d.ts +3206 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.js +31303 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/tinymce.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce6/version.txt +1 -0
- package/src/sap/ui/richtexteditor/library.js +64 -27
- package/src/sap/ui/richtexteditor/messagebundle_ar.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_bg.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ca.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_cnr.properties +105 -0
- package/src/sap/ui/richtexteditor/messagebundle_cs.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_cy.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_da.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_de.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_el.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_en.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_en_GB.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_en_US_saprigi.properties +106 -52
- package/src/sap/ui/richtexteditor/messagebundle_es.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_es_MX.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_et.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_fi.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_fr.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_fr_CA.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_hi.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_hr.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_hu.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_id.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_it.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_iw.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ja.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_kk.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ko.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_lt.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_lv.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ms.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_nl.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_no.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_pl.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_pt.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_pt_PT.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ro.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_ru.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sh.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sk.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sl.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sr.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_sv.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_th.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_tr.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_uk.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_vi.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_zh_CN.properties +54 -0
- package/src/sap/ui/richtexteditor/messagebundle_zh_TW.properties +54 -0
- package/src/sap/ui/richtexteditor/themes/base/RichTextEditor.less +25 -84
- package/src/sap/ui/richtexteditor/themes/sap_belize/RichTextEditor.less +33 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize/library.source.less +3 -1
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/RichTextEditor.less +29 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcb/library.source.less +2 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/RichTextEditor.less +30 -0
- package/src/sap/ui/richtexteditor/themes/sap_belize_hcw/library.source.less +2 -0
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_dark/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcb/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_fiori_3_hcw/RichTextEditor.less +4 -5
- package/src/sap/ui/richtexteditor/themes/sap_horizon/RichTextEditor.less +15 -30
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
3
|
+
*/
|
|
2
4
|
(function () {
|
|
3
5
|
'use strict';
|
|
4
6
|
|
|
@@ -16,9 +18,40 @@
|
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
|
|
19
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
21
|
+
var global$5 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
20
22
|
|
|
21
|
-
var global$
|
|
23
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
24
|
+
|
|
25
|
+
var typeOf = function (x) {
|
|
26
|
+
var t = typeof x;
|
|
27
|
+
if (x === null) {
|
|
28
|
+
return 'null';
|
|
29
|
+
} else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
|
30
|
+
return 'array';
|
|
31
|
+
} else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
|
32
|
+
return 'string';
|
|
33
|
+
} else {
|
|
34
|
+
return t;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var isType = function (type) {
|
|
38
|
+
return function (value) {
|
|
39
|
+
return typeOf(value) === type;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
var isSimpleType = function (type) {
|
|
43
|
+
return function (value) {
|
|
44
|
+
return typeof value === type;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
var isArray = isType('array');
|
|
48
|
+
var isNullable = function (a) {
|
|
49
|
+
return a === null || a === undefined;
|
|
50
|
+
};
|
|
51
|
+
var isNonNullable = function (a) {
|
|
52
|
+
return !isNullable(a);
|
|
53
|
+
};
|
|
54
|
+
var isFunction = isSimpleType('function');
|
|
22
55
|
|
|
23
56
|
var noop = function () {
|
|
24
57
|
};
|
|
@@ -27,6 +60,9 @@
|
|
|
27
60
|
return value;
|
|
28
61
|
};
|
|
29
62
|
};
|
|
63
|
+
var identity = function (x) {
|
|
64
|
+
return x;
|
|
65
|
+
};
|
|
30
66
|
var never = constant(false);
|
|
31
67
|
var always = constant(true);
|
|
32
68
|
|
|
@@ -34,20 +70,14 @@
|
|
|
34
70
|
return NONE;
|
|
35
71
|
};
|
|
36
72
|
var NONE = function () {
|
|
37
|
-
var eq = function (o) {
|
|
38
|
-
return o.isNone();
|
|
39
|
-
};
|
|
40
73
|
var call = function (thunk) {
|
|
41
74
|
return thunk();
|
|
42
75
|
};
|
|
43
|
-
var id =
|
|
44
|
-
return n;
|
|
45
|
-
};
|
|
76
|
+
var id = identity;
|
|
46
77
|
var me = {
|
|
47
78
|
fold: function (n, _s) {
|
|
48
79
|
return n();
|
|
49
80
|
},
|
|
50
|
-
is: never,
|
|
51
81
|
isSome: never,
|
|
52
82
|
isNone: always,
|
|
53
83
|
getOr: id,
|
|
@@ -64,9 +94,9 @@
|
|
|
64
94
|
bind: none,
|
|
65
95
|
exists: never,
|
|
66
96
|
forall: always,
|
|
67
|
-
filter:
|
|
68
|
-
|
|
69
|
-
|
|
97
|
+
filter: function () {
|
|
98
|
+
return none();
|
|
99
|
+
},
|
|
70
100
|
toArray: function () {
|
|
71
101
|
return [];
|
|
72
102
|
},
|
|
@@ -86,9 +116,6 @@
|
|
|
86
116
|
fold: function (n, s) {
|
|
87
117
|
return s(a);
|
|
88
118
|
},
|
|
89
|
-
is: function (v) {
|
|
90
|
-
return a === v;
|
|
91
|
-
},
|
|
92
119
|
isSome: always,
|
|
93
120
|
isNone: never,
|
|
94
121
|
getOr: constant_a,
|
|
@@ -115,14 +142,6 @@
|
|
|
115
142
|
},
|
|
116
143
|
toString: function () {
|
|
117
144
|
return 'some(' + a + ')';
|
|
118
|
-
},
|
|
119
|
-
equals: function (o) {
|
|
120
|
-
return o.is(a);
|
|
121
|
-
},
|
|
122
|
-
equals_: function (o, elementEq) {
|
|
123
|
-
return o.fold(never, function (b) {
|
|
124
|
-
return elementEq(a, b);
|
|
125
|
-
});
|
|
126
145
|
}
|
|
127
146
|
};
|
|
128
147
|
return me;
|
|
@@ -136,254 +155,279 @@
|
|
|
136
155
|
from: from
|
|
137
156
|
};
|
|
138
157
|
|
|
139
|
-
var
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
158
|
+
var exports$1 = {}, module = { exports: exports$1 };
|
|
159
|
+
(function (define, exports, module, require) {
|
|
160
|
+
(function (global, factory) {
|
|
161
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EphoxContactWrapper = factory());
|
|
162
|
+
}(this, function () {
|
|
163
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
164
|
+
var promise = { exports: {} };
|
|
165
|
+
(function (module) {
|
|
166
|
+
(function (root) {
|
|
167
|
+
var setTimeoutFunc = setTimeout;
|
|
168
|
+
function noop() {
|
|
169
|
+
}
|
|
170
|
+
function bind(fn, thisArg) {
|
|
171
|
+
return function () {
|
|
172
|
+
fn.apply(thisArg, arguments);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
function Promise(fn) {
|
|
176
|
+
if (typeof this !== 'object')
|
|
177
|
+
throw new TypeError('Promises must be constructed via new');
|
|
178
|
+
if (typeof fn !== 'function')
|
|
179
|
+
throw new TypeError('not a function');
|
|
180
|
+
this._state = 0;
|
|
181
|
+
this._handled = false;
|
|
182
|
+
this._value = undefined;
|
|
183
|
+
this._deferreds = [];
|
|
184
|
+
doResolve(fn, this);
|
|
185
|
+
}
|
|
186
|
+
function handle(self, deferred) {
|
|
187
|
+
while (self._state === 3) {
|
|
188
|
+
self = self._value;
|
|
189
|
+
}
|
|
190
|
+
if (self._state === 0) {
|
|
191
|
+
self._deferreds.push(deferred);
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
self._handled = true;
|
|
195
|
+
Promise._immediateFn(function () {
|
|
196
|
+
var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
|
|
197
|
+
if (cb === null) {
|
|
198
|
+
(self._state === 1 ? resolve : reject)(deferred.promise, self._value);
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
var ret;
|
|
202
|
+
try {
|
|
203
|
+
ret = cb(self._value);
|
|
204
|
+
} catch (e) {
|
|
205
|
+
reject(deferred.promise, e);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
resolve(deferred.promise, ret);
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
function resolve(self, newValue) {
|
|
212
|
+
try {
|
|
213
|
+
if (newValue === self)
|
|
214
|
+
throw new TypeError('A promise cannot be resolved with itself.');
|
|
215
|
+
if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {
|
|
216
|
+
var then = newValue.then;
|
|
217
|
+
if (newValue instanceof Promise) {
|
|
218
|
+
self._state = 3;
|
|
219
|
+
self._value = newValue;
|
|
220
|
+
finale(self);
|
|
221
|
+
return;
|
|
222
|
+
} else if (typeof then === 'function') {
|
|
223
|
+
doResolve(bind(then, newValue), self);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
self._state = 1;
|
|
228
|
+
self._value = newValue;
|
|
229
|
+
finale(self);
|
|
230
|
+
} catch (e) {
|
|
231
|
+
reject(self, e);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
function reject(self, newValue) {
|
|
235
|
+
self._state = 2;
|
|
236
|
+
self._value = newValue;
|
|
237
|
+
finale(self);
|
|
238
|
+
}
|
|
239
|
+
function finale(self) {
|
|
240
|
+
if (self._state === 2 && self._deferreds.length === 0) {
|
|
241
|
+
Promise._immediateFn(function () {
|
|
242
|
+
if (!self._handled) {
|
|
243
|
+
Promise._unhandledRejectionFn(self._value);
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
for (var i = 0, len = self._deferreds.length; i < len; i++) {
|
|
248
|
+
handle(self, self._deferreds[i]);
|
|
249
|
+
}
|
|
250
|
+
self._deferreds = null;
|
|
251
|
+
}
|
|
252
|
+
function Handler(onFulfilled, onRejected, promise) {
|
|
253
|
+
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
|
254
|
+
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
|
255
|
+
this.promise = promise;
|
|
256
|
+
}
|
|
257
|
+
function doResolve(fn, self) {
|
|
258
|
+
var done = false;
|
|
259
|
+
try {
|
|
260
|
+
fn(function (value) {
|
|
261
|
+
if (done)
|
|
262
|
+
return;
|
|
263
|
+
done = true;
|
|
264
|
+
resolve(self, value);
|
|
265
|
+
}, function (reason) {
|
|
266
|
+
if (done)
|
|
267
|
+
return;
|
|
268
|
+
done = true;
|
|
269
|
+
reject(self, reason);
|
|
270
|
+
});
|
|
271
|
+
} catch (ex) {
|
|
272
|
+
if (done)
|
|
273
|
+
return;
|
|
274
|
+
done = true;
|
|
275
|
+
reject(self, ex);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
Promise.prototype['catch'] = function (onRejected) {
|
|
279
|
+
return this.then(null, onRejected);
|
|
280
|
+
};
|
|
281
|
+
Promise.prototype.then = function (onFulfilled, onRejected) {
|
|
282
|
+
var prom = new this.constructor(noop);
|
|
283
|
+
handle(this, new Handler(onFulfilled, onRejected, prom));
|
|
284
|
+
return prom;
|
|
285
|
+
};
|
|
286
|
+
Promise.all = function (arr) {
|
|
287
|
+
var args = Array.prototype.slice.call(arr);
|
|
288
|
+
return new Promise(function (resolve, reject) {
|
|
289
|
+
if (args.length === 0)
|
|
290
|
+
return resolve([]);
|
|
291
|
+
var remaining = args.length;
|
|
292
|
+
function res(i, val) {
|
|
293
|
+
try {
|
|
294
|
+
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
295
|
+
var then = val.then;
|
|
296
|
+
if (typeof then === 'function') {
|
|
297
|
+
then.call(val, function (val) {
|
|
298
|
+
res(i, val);
|
|
299
|
+
}, reject);
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
args[i] = val;
|
|
304
|
+
if (--remaining === 0) {
|
|
305
|
+
resolve(args);
|
|
306
|
+
}
|
|
307
|
+
} catch (ex) {
|
|
308
|
+
reject(ex);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
for (var i = 0; i < args.length; i++) {
|
|
312
|
+
res(i, args[i]);
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
Promise.resolve = function (value) {
|
|
317
|
+
if (value && typeof value === 'object' && value.constructor === Promise) {
|
|
318
|
+
return value;
|
|
319
|
+
}
|
|
320
|
+
return new Promise(function (resolve) {
|
|
321
|
+
resolve(value);
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
Promise.reject = function (value) {
|
|
325
|
+
return new Promise(function (resolve, reject) {
|
|
326
|
+
reject(value);
|
|
327
|
+
});
|
|
328
|
+
};
|
|
329
|
+
Promise.race = function (values) {
|
|
330
|
+
return new Promise(function (resolve, reject) {
|
|
331
|
+
for (var i = 0, len = values.length; i < len; i++) {
|
|
332
|
+
values[i].then(resolve, reject);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
Promise._immediateFn = typeof setImmediate === 'function' ? function (fn) {
|
|
337
|
+
setImmediate(fn);
|
|
338
|
+
} : function (fn) {
|
|
339
|
+
setTimeoutFunc(fn, 0);
|
|
340
|
+
};
|
|
341
|
+
Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {
|
|
342
|
+
if (typeof console !== 'undefined' && console) {
|
|
343
|
+
console.warn('Possible Unhandled Promise Rejection:', err);
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
Promise._setImmediateFn = function _setImmediateFn(fn) {
|
|
347
|
+
Promise._immediateFn = fn;
|
|
348
|
+
};
|
|
349
|
+
Promise._setUnhandledRejectionFn = function _setUnhandledRejectionFn(fn) {
|
|
350
|
+
Promise._unhandledRejectionFn = fn;
|
|
351
|
+
};
|
|
352
|
+
if (module.exports) {
|
|
353
|
+
module.exports = Promise;
|
|
354
|
+
} else if (!root.Promise) {
|
|
355
|
+
root.Promise = Promise;
|
|
356
|
+
}
|
|
357
|
+
}(commonjsGlobal));
|
|
358
|
+
}(promise));
|
|
359
|
+
var promisePolyfill = promise.exports;
|
|
360
|
+
var Global = function () {
|
|
361
|
+
if (typeof window !== 'undefined') {
|
|
362
|
+
return window;
|
|
363
|
+
} else {
|
|
364
|
+
return Function('return this;')();
|
|
365
|
+
}
|
|
366
|
+
}();
|
|
367
|
+
var promisePolyfill_1 = { boltExport: Global.Promise || promisePolyfill };
|
|
368
|
+
return promisePolyfill_1;
|
|
369
|
+
}));
|
|
370
|
+
}(undefined, exports$1, module));
|
|
371
|
+
var Promise$1 = module.exports.boltExport;
|
|
151
372
|
|
|
152
|
-
function
|
|
373
|
+
var create$1 = function (width, height) {
|
|
153
374
|
return resize(document.createElement('canvas'), width, height);
|
|
154
|
-
}
|
|
155
|
-
function
|
|
156
|
-
var tCanvas = create(canvas.width, canvas.height);
|
|
375
|
+
};
|
|
376
|
+
var clone = function (canvas) {
|
|
377
|
+
var tCanvas = create$1(canvas.width, canvas.height);
|
|
157
378
|
var ctx = get2dContext(tCanvas);
|
|
158
379
|
ctx.drawImage(canvas, 0, 0);
|
|
159
380
|
return tCanvas;
|
|
160
|
-
}
|
|
161
|
-
function
|
|
381
|
+
};
|
|
382
|
+
var get2dContext = function (canvas) {
|
|
162
383
|
return canvas.getContext('2d');
|
|
163
|
-
}
|
|
164
|
-
function
|
|
384
|
+
};
|
|
385
|
+
var resize = function (canvas, width, height) {
|
|
165
386
|
canvas.width = width;
|
|
166
387
|
canvas.height = height;
|
|
167
388
|
return canvas;
|
|
168
|
-
}
|
|
389
|
+
};
|
|
169
390
|
|
|
170
|
-
function
|
|
391
|
+
var getWidth = function (image) {
|
|
171
392
|
return image.naturalWidth || image.width;
|
|
172
|
-
}
|
|
173
|
-
function
|
|
393
|
+
};
|
|
394
|
+
var getHeight = function (image) {
|
|
174
395
|
return image.naturalHeight || image.height;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
var promise = function () {
|
|
178
|
-
var Promise = function (fn) {
|
|
179
|
-
if (typeof this !== 'object') {
|
|
180
|
-
throw new TypeError('Promises must be constructed via new');
|
|
181
|
-
}
|
|
182
|
-
if (typeof fn !== 'function') {
|
|
183
|
-
throw new TypeError('not a function');
|
|
184
|
-
}
|
|
185
|
-
this._state = null;
|
|
186
|
-
this._value = null;
|
|
187
|
-
this._deferreds = [];
|
|
188
|
-
doResolve(fn, bind(resolve, this), bind(reject, this));
|
|
189
|
-
};
|
|
190
|
-
var anyWindow = window;
|
|
191
|
-
var asap = Promise.immediateFn || typeof anyWindow.setImmediate === 'function' && anyWindow.setImmediate || function (fn) {
|
|
192
|
-
setTimeout(fn, 1);
|
|
193
|
-
};
|
|
194
|
-
function bind(fn, thisArg) {
|
|
195
|
-
return function () {
|
|
196
|
-
return fn.apply(thisArg, arguments);
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
var isArray = Array.isArray || function (value) {
|
|
200
|
-
return Object.prototype.toString.call(value) === '[object Array]';
|
|
201
|
-
};
|
|
202
|
-
function handle(deferred) {
|
|
203
|
-
var me = this;
|
|
204
|
-
if (this._state === null) {
|
|
205
|
-
this._deferreds.push(deferred);
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
asap(function () {
|
|
209
|
-
var cb = me._state ? deferred.onFulfilled : deferred.onRejected;
|
|
210
|
-
if (cb === null) {
|
|
211
|
-
(me._state ? deferred.resolve : deferred.reject)(me._value);
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
var ret;
|
|
215
|
-
try {
|
|
216
|
-
ret = cb(me._value);
|
|
217
|
-
} catch (e) {
|
|
218
|
-
deferred.reject(e);
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
deferred.resolve(ret);
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
function resolve(newValue) {
|
|
225
|
-
try {
|
|
226
|
-
if (newValue === this) {
|
|
227
|
-
throw new TypeError('A promise cannot be resolved with itself.');
|
|
228
|
-
}
|
|
229
|
-
if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {
|
|
230
|
-
var then = newValue.then;
|
|
231
|
-
if (typeof then === 'function') {
|
|
232
|
-
doResolve(bind(then, newValue), bind(resolve, this), bind(reject, this));
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
this._state = true;
|
|
237
|
-
this._value = newValue;
|
|
238
|
-
finale.call(this);
|
|
239
|
-
} catch (e) {
|
|
240
|
-
reject.call(this, e);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
function reject(newValue) {
|
|
244
|
-
this._state = false;
|
|
245
|
-
this._value = newValue;
|
|
246
|
-
finale.call(this);
|
|
247
|
-
}
|
|
248
|
-
function finale() {
|
|
249
|
-
for (var _i = 0, _a = this._deferreds; _i < _a.length; _i++) {
|
|
250
|
-
var deferred = _a[_i];
|
|
251
|
-
handle.call(this, deferred);
|
|
252
|
-
}
|
|
253
|
-
this._deferreds = [];
|
|
254
|
-
}
|
|
255
|
-
function Handler(onFulfilled, onRejected, resolve, reject) {
|
|
256
|
-
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
|
257
|
-
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
|
258
|
-
this.resolve = resolve;
|
|
259
|
-
this.reject = reject;
|
|
260
|
-
}
|
|
261
|
-
function doResolve(fn, onFulfilled, onRejected) {
|
|
262
|
-
var done = false;
|
|
263
|
-
try {
|
|
264
|
-
fn(function (value) {
|
|
265
|
-
if (done) {
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
done = true;
|
|
269
|
-
onFulfilled(value);
|
|
270
|
-
}, function (reason) {
|
|
271
|
-
if (done) {
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
done = true;
|
|
275
|
-
onRejected(reason);
|
|
276
|
-
});
|
|
277
|
-
} catch (ex) {
|
|
278
|
-
if (done) {
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
done = true;
|
|
282
|
-
onRejected(ex);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
Promise.prototype.catch = function (onRejected) {
|
|
286
|
-
return this.then(null, onRejected);
|
|
287
|
-
};
|
|
288
|
-
Promise.prototype.then = function (onFulfilled, onRejected) {
|
|
289
|
-
var me = this;
|
|
290
|
-
return new Promise(function (resolve, reject) {
|
|
291
|
-
handle.call(me, new Handler(onFulfilled, onRejected, resolve, reject));
|
|
292
|
-
});
|
|
293
|
-
};
|
|
294
|
-
Promise.all = function () {
|
|
295
|
-
var values = [];
|
|
296
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
297
|
-
values[_i] = arguments[_i];
|
|
298
|
-
}
|
|
299
|
-
var args = Array.prototype.slice.call(values.length === 1 && isArray(values[0]) ? values[0] : values);
|
|
300
|
-
return new Promise(function (resolve, reject) {
|
|
301
|
-
if (args.length === 0) {
|
|
302
|
-
return resolve([]);
|
|
303
|
-
}
|
|
304
|
-
var remaining = args.length;
|
|
305
|
-
function res(i, val) {
|
|
306
|
-
try {
|
|
307
|
-
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
308
|
-
var then = val.then;
|
|
309
|
-
if (typeof then === 'function') {
|
|
310
|
-
then.call(val, function (val) {
|
|
311
|
-
res(i, val);
|
|
312
|
-
}, reject);
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
args[i] = val;
|
|
317
|
-
if (--remaining === 0) {
|
|
318
|
-
resolve(args);
|
|
319
|
-
}
|
|
320
|
-
} catch (ex) {
|
|
321
|
-
reject(ex);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
for (var i = 0; i < args.length; i++) {
|
|
325
|
-
res(i, args[i]);
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
};
|
|
329
|
-
Promise.resolve = function (value) {
|
|
330
|
-
if (value && typeof value === 'object' && value.constructor === Promise) {
|
|
331
|
-
return value;
|
|
332
|
-
}
|
|
333
|
-
return new Promise(function (resolve) {
|
|
334
|
-
resolve(value);
|
|
335
|
-
});
|
|
336
|
-
};
|
|
337
|
-
Promise.reject = function (reason) {
|
|
338
|
-
return new Promise(function (resolve, reject) {
|
|
339
|
-
reject(reason);
|
|
340
|
-
});
|
|
341
|
-
};
|
|
342
|
-
Promise.race = function (values) {
|
|
343
|
-
return new Promise(function (resolve, reject) {
|
|
344
|
-
for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
|
|
345
|
-
var value = values_1[_i];
|
|
346
|
-
value.then(resolve, reject);
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
};
|
|
350
|
-
return Promise;
|
|
351
396
|
};
|
|
352
|
-
var Promise = window.Promise ? window.Promise : promise();
|
|
353
397
|
|
|
354
|
-
function
|
|
398
|
+
var imageToBlob$2 = function (image) {
|
|
355
399
|
var src = image.src;
|
|
356
400
|
if (src.indexOf('data:') === 0) {
|
|
357
401
|
return dataUriToBlob(src);
|
|
358
402
|
}
|
|
359
403
|
return anyUriToBlob(src);
|
|
360
|
-
}
|
|
361
|
-
function
|
|
362
|
-
return new Promise(function (resolve, reject) {
|
|
404
|
+
};
|
|
405
|
+
var blobToImage$1 = function (blob) {
|
|
406
|
+
return new Promise$1(function (resolve, reject) {
|
|
363
407
|
var blobUrl = URL.createObjectURL(blob);
|
|
364
408
|
var image = new Image();
|
|
365
409
|
var removeListeners = function () {
|
|
366
410
|
image.removeEventListener('load', loaded);
|
|
367
411
|
image.removeEventListener('error', error);
|
|
368
412
|
};
|
|
369
|
-
function
|
|
413
|
+
var loaded = function () {
|
|
370
414
|
removeListeners();
|
|
371
415
|
resolve(image);
|
|
372
|
-
}
|
|
373
|
-
function
|
|
416
|
+
};
|
|
417
|
+
var error = function () {
|
|
374
418
|
removeListeners();
|
|
375
419
|
reject('Unable to load data of type ' + blob.type + ': ' + blobUrl);
|
|
376
|
-
}
|
|
420
|
+
};
|
|
377
421
|
image.addEventListener('load', loaded);
|
|
378
422
|
image.addEventListener('error', error);
|
|
379
423
|
image.src = blobUrl;
|
|
380
424
|
if (image.complete) {
|
|
381
|
-
loaded
|
|
425
|
+
setTimeout(loaded, 0);
|
|
382
426
|
}
|
|
383
427
|
});
|
|
384
|
-
}
|
|
385
|
-
function
|
|
386
|
-
return new Promise(function (resolve, reject) {
|
|
428
|
+
};
|
|
429
|
+
var anyUriToBlob = function (url) {
|
|
430
|
+
return new Promise$1(function (resolve, reject) {
|
|
387
431
|
var xhr = new XMLHttpRequest();
|
|
388
432
|
xhr.open('GET', url, true);
|
|
389
433
|
xhr.responseType = 'blob';
|
|
@@ -407,8 +451,8 @@
|
|
|
407
451
|
};
|
|
408
452
|
xhr.send();
|
|
409
453
|
});
|
|
410
|
-
}
|
|
411
|
-
function
|
|
454
|
+
};
|
|
455
|
+
var dataUriToBlobSync = function (uri) {
|
|
412
456
|
var data = uri.split(',');
|
|
413
457
|
var matches = /data:([^;]+)/.exec(data[0]);
|
|
414
458
|
if (!matches) {
|
|
@@ -431,18 +475,18 @@
|
|
|
431
475
|
byteArrays[sliceIndex] = new Uint8Array(bytes);
|
|
432
476
|
}
|
|
433
477
|
return Optional.some(new Blob(byteArrays, { type: mimetype }));
|
|
434
|
-
}
|
|
435
|
-
function
|
|
436
|
-
return new Promise(function (resolve, reject) {
|
|
478
|
+
};
|
|
479
|
+
var dataUriToBlob = function (uri) {
|
|
480
|
+
return new Promise$1(function (resolve, reject) {
|
|
437
481
|
dataUriToBlobSync(uri).fold(function () {
|
|
438
482
|
reject('uri is not base64: ' + uri);
|
|
439
483
|
}, resolve);
|
|
440
484
|
});
|
|
441
|
-
}
|
|
442
|
-
function
|
|
485
|
+
};
|
|
486
|
+
var canvasToBlob = function (canvas, type, quality) {
|
|
443
487
|
type = type || 'image/png';
|
|
444
488
|
if (isFunction(HTMLCanvasElement.prototype.toBlob)) {
|
|
445
|
-
return new Promise(function (resolve, reject) {
|
|
489
|
+
return new Promise$1(function (resolve, reject) {
|
|
446
490
|
canvas.toBlob(function (blob) {
|
|
447
491
|
if (blob) {
|
|
448
492
|
resolve(blob);
|
|
@@ -454,49 +498,66 @@
|
|
|
454
498
|
} else {
|
|
455
499
|
return dataUriToBlob(canvas.toDataURL(type, quality));
|
|
456
500
|
}
|
|
457
|
-
}
|
|
458
|
-
function
|
|
501
|
+
};
|
|
502
|
+
var canvasToDataURL = function (canvas, type, quality) {
|
|
459
503
|
type = type || 'image/png';
|
|
460
504
|
return canvas.toDataURL(type, quality);
|
|
461
|
-
}
|
|
462
|
-
function
|
|
463
|
-
return blobToImage(blob).then(function (image) {
|
|
505
|
+
};
|
|
506
|
+
var blobToCanvas = function (blob) {
|
|
507
|
+
return blobToImage$1(blob).then(function (image) {
|
|
464
508
|
revokeImageUrl(image);
|
|
465
|
-
var canvas = create(getWidth(image), getHeight(image));
|
|
509
|
+
var canvas = create$1(getWidth(image), getHeight(image));
|
|
466
510
|
var context = get2dContext(canvas);
|
|
467
511
|
context.drawImage(image, 0, 0);
|
|
468
512
|
return canvas;
|
|
469
513
|
});
|
|
470
|
-
}
|
|
471
|
-
function
|
|
472
|
-
return new Promise(function (resolve) {
|
|
514
|
+
};
|
|
515
|
+
var blobToDataUri = function (blob) {
|
|
516
|
+
return new Promise$1(function (resolve) {
|
|
473
517
|
var reader = new FileReader();
|
|
474
518
|
reader.onloadend = function () {
|
|
475
519
|
resolve(reader.result);
|
|
476
520
|
};
|
|
477
521
|
reader.readAsDataURL(blob);
|
|
478
522
|
});
|
|
479
|
-
}
|
|
480
|
-
function
|
|
523
|
+
};
|
|
524
|
+
var revokeImageUrl = function (image) {
|
|
481
525
|
URL.revokeObjectURL(image.src);
|
|
482
|
-
}
|
|
526
|
+
};
|
|
483
527
|
|
|
484
|
-
var blobToImage
|
|
485
|
-
return blobToImage(blob);
|
|
528
|
+
var blobToImage = function (blob) {
|
|
529
|
+
return blobToImage$1(blob);
|
|
486
530
|
};
|
|
487
531
|
var imageToBlob$1 = function (image) {
|
|
488
|
-
return imageToBlob(image);
|
|
532
|
+
return imageToBlob$2(image);
|
|
489
533
|
};
|
|
490
534
|
|
|
491
|
-
var
|
|
535
|
+
var nativeIndexOf = Array.prototype.indexOf;
|
|
536
|
+
var rawIndexOf = function (ts, t) {
|
|
537
|
+
return nativeIndexOf.call(ts, t);
|
|
538
|
+
};
|
|
539
|
+
var contains = function (xs, x) {
|
|
540
|
+
return rawIndexOf(xs, x) > -1;
|
|
541
|
+
};
|
|
542
|
+
var each$1 = function (xs, f) {
|
|
492
543
|
for (var i = 0, len = xs.length; i < len; i++) {
|
|
493
544
|
var x = xs[i];
|
|
494
545
|
f(x, i);
|
|
495
546
|
}
|
|
496
547
|
};
|
|
548
|
+
var filter = function (xs, pred) {
|
|
549
|
+
var r = [];
|
|
550
|
+
for (var i = 0, len = xs.length; i < len; i++) {
|
|
551
|
+
var x = xs[i];
|
|
552
|
+
if (pred(x, i)) {
|
|
553
|
+
r.push(x);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
return r;
|
|
557
|
+
};
|
|
497
558
|
var foldl = function (xs, f, acc) {
|
|
498
|
-
each(xs, function (x) {
|
|
499
|
-
acc = f(acc, x);
|
|
559
|
+
each$1(xs, function (x, i) {
|
|
560
|
+
acc = f(acc, x, i);
|
|
500
561
|
});
|
|
501
562
|
return acc;
|
|
502
563
|
};
|
|
@@ -514,35 +575,154 @@
|
|
|
514
575
|
var find = function (xs, pred) {
|
|
515
576
|
return findUntil(xs, pred, never);
|
|
516
577
|
};
|
|
578
|
+
var forall = function (xs, pred) {
|
|
579
|
+
for (var i = 0, len = xs.length; i < len; ++i) {
|
|
580
|
+
var x = xs[i];
|
|
581
|
+
if (pred(x, i) !== true) {
|
|
582
|
+
return false;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
return true;
|
|
586
|
+
};
|
|
517
587
|
|
|
518
|
-
|
|
588
|
+
var keys = Object.keys;
|
|
589
|
+
var each = function (obj, f) {
|
|
590
|
+
var props = keys(obj);
|
|
591
|
+
for (var k = 0, len = props.length; k < len; k++) {
|
|
592
|
+
var i = props[k];
|
|
593
|
+
var x = obj[i];
|
|
594
|
+
f(x, i);
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
var generate = function (cases) {
|
|
599
|
+
if (!isArray(cases)) {
|
|
600
|
+
throw new Error('cases must be an array');
|
|
601
|
+
}
|
|
602
|
+
if (cases.length === 0) {
|
|
603
|
+
throw new Error('there must be at least one case');
|
|
604
|
+
}
|
|
605
|
+
var constructors = [];
|
|
606
|
+
var adt = {};
|
|
607
|
+
each$1(cases, function (acase, count) {
|
|
608
|
+
var keys$1 = keys(acase);
|
|
609
|
+
if (keys$1.length !== 1) {
|
|
610
|
+
throw new Error('one and only one name per case');
|
|
611
|
+
}
|
|
612
|
+
var key = keys$1[0];
|
|
613
|
+
var value = acase[key];
|
|
614
|
+
if (adt[key] !== undefined) {
|
|
615
|
+
throw new Error('duplicate key detected:' + key);
|
|
616
|
+
} else if (key === 'cata') {
|
|
617
|
+
throw new Error('cannot have a case named cata (sorry)');
|
|
618
|
+
} else if (!isArray(value)) {
|
|
619
|
+
throw new Error('case arguments must be an array');
|
|
620
|
+
}
|
|
621
|
+
constructors.push(key);
|
|
622
|
+
adt[key] = function () {
|
|
623
|
+
var args = [];
|
|
624
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
625
|
+
args[_i] = arguments[_i];
|
|
626
|
+
}
|
|
627
|
+
var argLength = args.length;
|
|
628
|
+
if (argLength !== value.length) {
|
|
629
|
+
throw new Error('Wrong number of arguments to case ' + key + '. Expected ' + value.length + ' (' + value + '), got ' + argLength);
|
|
630
|
+
}
|
|
631
|
+
var match = function (branches) {
|
|
632
|
+
var branchKeys = keys(branches);
|
|
633
|
+
if (constructors.length !== branchKeys.length) {
|
|
634
|
+
throw new Error('Wrong number of arguments to match. Expected: ' + constructors.join(',') + '\nActual: ' + branchKeys.join(','));
|
|
635
|
+
}
|
|
636
|
+
var allReqd = forall(constructors, function (reqKey) {
|
|
637
|
+
return contains(branchKeys, reqKey);
|
|
638
|
+
});
|
|
639
|
+
if (!allReqd) {
|
|
640
|
+
throw new Error('Not all branches were specified when using match. Specified: ' + branchKeys.join(', ') + '\nRequired: ' + constructors.join(', '));
|
|
641
|
+
}
|
|
642
|
+
return branches[key].apply(null, args);
|
|
643
|
+
};
|
|
644
|
+
return {
|
|
645
|
+
fold: function () {
|
|
646
|
+
var foldArgs = [];
|
|
647
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
648
|
+
foldArgs[_i] = arguments[_i];
|
|
649
|
+
}
|
|
650
|
+
if (foldArgs.length !== cases.length) {
|
|
651
|
+
throw new Error('Wrong number of arguments to fold. Expected ' + cases.length + ', got ' + foldArgs.length);
|
|
652
|
+
}
|
|
653
|
+
var target = foldArgs[count];
|
|
654
|
+
return target.apply(null, args);
|
|
655
|
+
},
|
|
656
|
+
match: match,
|
|
657
|
+
log: function (label) {
|
|
658
|
+
console.log(label, {
|
|
659
|
+
constructors: constructors,
|
|
660
|
+
constructor: key,
|
|
661
|
+
params: args
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
});
|
|
667
|
+
return adt;
|
|
668
|
+
};
|
|
669
|
+
var Adt = { generate: generate };
|
|
670
|
+
|
|
671
|
+
Adt.generate([
|
|
672
|
+
{
|
|
673
|
+
bothErrors: [
|
|
674
|
+
'error1',
|
|
675
|
+
'error2'
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
firstError: [
|
|
680
|
+
'error1',
|
|
681
|
+
'value2'
|
|
682
|
+
]
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
secondError: [
|
|
686
|
+
'value1',
|
|
687
|
+
'error2'
|
|
688
|
+
]
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
bothValues: [
|
|
692
|
+
'value1',
|
|
693
|
+
'value2'
|
|
694
|
+
]
|
|
695
|
+
}
|
|
696
|
+
]);
|
|
697
|
+
|
|
698
|
+
var create = function (getCanvas, blob, uri) {
|
|
519
699
|
var initialType = blob.type;
|
|
520
700
|
var getType = constant(initialType);
|
|
521
|
-
function
|
|
522
|
-
return Promise.resolve(blob);
|
|
523
|
-
}
|
|
701
|
+
var toBlob = function () {
|
|
702
|
+
return Promise$1.resolve(blob);
|
|
703
|
+
};
|
|
524
704
|
var toDataURL = constant(uri);
|
|
525
|
-
function
|
|
705
|
+
var toBase64 = function () {
|
|
526
706
|
return uri.split(',')[1];
|
|
527
|
-
}
|
|
528
|
-
function
|
|
707
|
+
};
|
|
708
|
+
var toAdjustedBlob = function (type, quality) {
|
|
529
709
|
return getCanvas.then(function (canvas) {
|
|
530
710
|
return canvasToBlob(canvas, type, quality);
|
|
531
711
|
});
|
|
532
|
-
}
|
|
533
|
-
function
|
|
712
|
+
};
|
|
713
|
+
var toAdjustedDataURL = function (type, quality) {
|
|
534
714
|
return getCanvas.then(function (canvas) {
|
|
535
715
|
return canvasToDataURL(canvas, type, quality);
|
|
536
716
|
});
|
|
537
|
-
}
|
|
538
|
-
function
|
|
717
|
+
};
|
|
718
|
+
var toAdjustedBase64 = function (type, quality) {
|
|
539
719
|
return toAdjustedDataURL(type, quality).then(function (dataurl) {
|
|
540
720
|
return dataurl.split(',')[1];
|
|
541
721
|
});
|
|
542
|
-
}
|
|
543
|
-
function
|
|
722
|
+
};
|
|
723
|
+
var toCanvas = function () {
|
|
544
724
|
return getCanvas.then(clone);
|
|
545
|
-
}
|
|
725
|
+
};
|
|
546
726
|
return {
|
|
547
727
|
getType: getType,
|
|
548
728
|
toBlob: toBlob,
|
|
@@ -553,50 +733,54 @@
|
|
|
553
733
|
toAdjustedBase64: toAdjustedBase64,
|
|
554
734
|
toCanvas: toCanvas
|
|
555
735
|
};
|
|
556
|
-
}
|
|
557
|
-
function
|
|
736
|
+
};
|
|
737
|
+
var fromBlob = function (blob) {
|
|
558
738
|
return blobToDataUri(blob).then(function (uri) {
|
|
559
|
-
return create
|
|
739
|
+
return create(blobToCanvas(blob), blob, uri);
|
|
560
740
|
});
|
|
561
|
-
}
|
|
562
|
-
function
|
|
741
|
+
};
|
|
742
|
+
var fromCanvas = function (canvas, type) {
|
|
563
743
|
return canvasToBlob(canvas, type).then(function (blob) {
|
|
564
|
-
return create$1
|
|
744
|
+
return create(Promise$1.resolve(canvas), blob, canvas.toDataURL());
|
|
565
745
|
});
|
|
566
|
-
}
|
|
746
|
+
};
|
|
567
747
|
|
|
568
|
-
function
|
|
748
|
+
var ceilWithPrecision = function (num, precision) {
|
|
749
|
+
if (precision === void 0) {
|
|
750
|
+
precision = 2;
|
|
751
|
+
}
|
|
752
|
+
var mul = Math.pow(10, precision);
|
|
753
|
+
var upper = Math.round(num * mul);
|
|
754
|
+
return Math.ceil(upper / mul);
|
|
755
|
+
};
|
|
756
|
+
var rotate$2 = function (ir, angle) {
|
|
569
757
|
return ir.toCanvas().then(function (canvas) {
|
|
570
758
|
return applyRotate(canvas, ir.getType(), angle);
|
|
571
759
|
});
|
|
572
|
-
}
|
|
573
|
-
function
|
|
574
|
-
var
|
|
760
|
+
};
|
|
761
|
+
var applyRotate = function (image, type, angle) {
|
|
762
|
+
var degrees = angle < 0 ? 360 + angle : angle;
|
|
763
|
+
var rad = degrees * Math.PI / 180;
|
|
764
|
+
var width = image.width;
|
|
765
|
+
var height = image.height;
|
|
766
|
+
var sin = Math.sin(rad);
|
|
767
|
+
var cos = Math.cos(rad);
|
|
768
|
+
var newWidth = ceilWithPrecision(Math.abs(width * cos) + Math.abs(height * sin));
|
|
769
|
+
var newHeight = ceilWithPrecision(Math.abs(width * sin) + Math.abs(height * cos));
|
|
770
|
+
var canvas = create$1(newWidth, newHeight);
|
|
575
771
|
var context = get2dContext(canvas);
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
if (angle === 90 || angle === 270) {
|
|
580
|
-
resize(canvas, canvas.height, canvas.width);
|
|
581
|
-
}
|
|
582
|
-
if (angle === 90 || angle === 180) {
|
|
583
|
-
translateX = canvas.width;
|
|
584
|
-
}
|
|
585
|
-
if (angle === 270 || angle === 180) {
|
|
586
|
-
translateY = canvas.height;
|
|
587
|
-
}
|
|
588
|
-
context.translate(translateX, translateY);
|
|
589
|
-
context.rotate(angle * Math.PI / 180);
|
|
590
|
-
context.drawImage(image, 0, 0);
|
|
772
|
+
context.translate(newWidth / 2, newHeight / 2);
|
|
773
|
+
context.rotate(rad);
|
|
774
|
+
context.drawImage(image, -width / 2, -height / 2);
|
|
591
775
|
return fromCanvas(canvas, type);
|
|
592
|
-
}
|
|
593
|
-
function
|
|
776
|
+
};
|
|
777
|
+
var flip$2 = function (ir, axis) {
|
|
594
778
|
return ir.toCanvas().then(function (canvas) {
|
|
595
779
|
return applyFlip(canvas, ir.getType(), axis);
|
|
596
780
|
});
|
|
597
|
-
}
|
|
598
|
-
function
|
|
599
|
-
var canvas = create(image.width, image.height);
|
|
781
|
+
};
|
|
782
|
+
var applyFlip = function (image, type, axis) {
|
|
783
|
+
var canvas = create$1(image.width, image.height);
|
|
600
784
|
var context = get2dContext(canvas);
|
|
601
785
|
if (axis === 'v') {
|
|
602
786
|
context.scale(1, -1);
|
|
@@ -606,30 +790,20 @@
|
|
|
606
790
|
context.drawImage(image, -canvas.width, 0);
|
|
607
791
|
}
|
|
608
792
|
return fromCanvas(canvas, type);
|
|
609
|
-
}
|
|
793
|
+
};
|
|
610
794
|
|
|
611
795
|
var flip$1 = function (ir, axis) {
|
|
612
|
-
return flip(ir, axis);
|
|
796
|
+
return flip$2(ir, axis);
|
|
613
797
|
};
|
|
614
798
|
var rotate$1 = function (ir, angle) {
|
|
615
|
-
return rotate(ir, angle);
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
var keys = Object.keys;
|
|
619
|
-
var each$1 = function (obj, f) {
|
|
620
|
-
var props = keys(obj);
|
|
621
|
-
for (var k = 0, len = props.length; k < len; k++) {
|
|
622
|
-
var i = props[k];
|
|
623
|
-
var x = obj[i];
|
|
624
|
-
f(x, i);
|
|
625
|
-
}
|
|
799
|
+
return rotate$2(ir, angle);
|
|
626
800
|
};
|
|
627
801
|
|
|
628
802
|
var sendRequest = function (url, headers, withCredentials) {
|
|
629
803
|
if (withCredentials === void 0) {
|
|
630
804
|
withCredentials = false;
|
|
631
805
|
}
|
|
632
|
-
return new Promise(function (resolve) {
|
|
806
|
+
return new Promise$1(function (resolve) {
|
|
633
807
|
var xhr = new XMLHttpRequest();
|
|
634
808
|
xhr.onreadystatechange = function () {
|
|
635
809
|
if (xhr.readyState === 4) {
|
|
@@ -641,7 +815,7 @@
|
|
|
641
815
|
};
|
|
642
816
|
xhr.open('GET', url, true);
|
|
643
817
|
xhr.withCredentials = withCredentials;
|
|
644
|
-
each
|
|
818
|
+
each(headers, function (value, key) {
|
|
645
819
|
xhr.setRequestHeader(key, value);
|
|
646
820
|
});
|
|
647
821
|
xhr.responseType = 'blob';
|
|
@@ -649,7 +823,7 @@
|
|
|
649
823
|
});
|
|
650
824
|
};
|
|
651
825
|
var readBlobText = function (blob) {
|
|
652
|
-
return new Promise(function (resolve, reject) {
|
|
826
|
+
return new Promise$1(function (resolve, reject) {
|
|
653
827
|
var reader = new FileReader();
|
|
654
828
|
reader.onload = function () {
|
|
655
829
|
resolve(reader.result);
|
|
@@ -719,7 +893,7 @@
|
|
|
719
893
|
};
|
|
720
894
|
var handleHttpError = function (status) {
|
|
721
895
|
var message = getHttpErrorMsg(status);
|
|
722
|
-
return Promise.reject(message);
|
|
896
|
+
return Promise$1.reject(message);
|
|
723
897
|
};
|
|
724
898
|
var getServiceErrorMsg = function (type) {
|
|
725
899
|
return find(friendlyServiceErrors, function (error) {
|
|
@@ -741,7 +915,7 @@
|
|
|
741
915
|
var handleServiceError = function (blob) {
|
|
742
916
|
return readBlobText(blob).then(function (text) {
|
|
743
917
|
var serviceError = getServiceError(text);
|
|
744
|
-
return Promise.reject(serviceError);
|
|
918
|
+
return Promise$1.reject(serviceError);
|
|
745
919
|
});
|
|
746
920
|
};
|
|
747
921
|
var handleServiceErrorResponse = function (status, blob) {
|
|
@@ -765,12 +939,12 @@
|
|
|
765
939
|
'tiny-api-key': apiKey
|
|
766
940
|
};
|
|
767
941
|
return sendRequest(appendApiKey(url, apiKey), headers).then(function (result) {
|
|
768
|
-
return isError(result.status) ? handleServiceErrorResponse(result.status, result.blob) : Promise.resolve(result.blob);
|
|
942
|
+
return isError(result.status) ? handleServiceErrorResponse(result.status, result.blob) : Promise$1.resolve(result.blob);
|
|
769
943
|
});
|
|
770
944
|
};
|
|
771
945
|
var requestBlob = function (url, withCredentials) {
|
|
772
946
|
return sendRequest(url, {}, withCredentials).then(function (result) {
|
|
773
|
-
return isError(result.status) ? handleHttpError(result.status) : Promise.resolve(result.blob);
|
|
947
|
+
return isError(result.status) ? handleHttpError(result.status) : Promise$1.resolve(result.blob);
|
|
774
948
|
});
|
|
775
949
|
};
|
|
776
950
|
var getUrl = function (url, apiKey, withCredentials) {
|
|
@@ -843,9 +1017,9 @@
|
|
|
843
1017
|
}
|
|
844
1018
|
};
|
|
845
1019
|
|
|
846
|
-
|
|
1020
|
+
typeof window !== 'undefined' ? window : Function('return this;')();
|
|
847
1021
|
|
|
848
|
-
var child = function (scope, predicate) {
|
|
1022
|
+
var child$1 = function (scope, predicate) {
|
|
849
1023
|
var pred = function (node) {
|
|
850
1024
|
return predicate(SugarElement.fromDom(node));
|
|
851
1025
|
};
|
|
@@ -853,17 +1027,17 @@
|
|
|
853
1027
|
return result.map(SugarElement.fromDom);
|
|
854
1028
|
};
|
|
855
1029
|
|
|
856
|
-
var child
|
|
857
|
-
return child(scope, function (e) {
|
|
1030
|
+
var child = function (scope, selector) {
|
|
1031
|
+
return child$1(scope, function (e) {
|
|
858
1032
|
return is(e, selector);
|
|
859
1033
|
});
|
|
860
1034
|
};
|
|
861
1035
|
|
|
862
|
-
var global$
|
|
1036
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
|
863
1037
|
|
|
864
|
-
var global$
|
|
1038
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
|
865
1039
|
|
|
866
|
-
var global$
|
|
1040
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.URI');
|
|
867
1041
|
|
|
868
1042
|
var getToolbarItems = function (editor) {
|
|
869
1043
|
return editor.getParam('imagetools_toolbar', 'rotateleft rotateright flipv fliph editimage imageoptions');
|
|
@@ -890,11 +1064,11 @@
|
|
|
890
1064
|
return editor.getParam('images_reuse_filename', false, 'boolean');
|
|
891
1065
|
};
|
|
892
1066
|
|
|
893
|
-
function
|
|
1067
|
+
var getImageSize = function (img) {
|
|
894
1068
|
var width, height;
|
|
895
|
-
function
|
|
1069
|
+
var isPxValue = function (value) {
|
|
896
1070
|
return /^[0-9\.]+px$/.test(value);
|
|
897
|
-
}
|
|
1071
|
+
};
|
|
898
1072
|
width = img.style.width;
|
|
899
1073
|
height = img.style.height;
|
|
900
1074
|
if (width || height) {
|
|
@@ -915,8 +1089,8 @@
|
|
|
915
1089
|
};
|
|
916
1090
|
}
|
|
917
1091
|
return null;
|
|
918
|
-
}
|
|
919
|
-
function
|
|
1092
|
+
};
|
|
1093
|
+
var setImageSize = function (img, size) {
|
|
920
1094
|
var width, height;
|
|
921
1095
|
if (size) {
|
|
922
1096
|
width = img.style.width;
|
|
@@ -929,39 +1103,39 @@
|
|
|
929
1103
|
width = img.width;
|
|
930
1104
|
height = img.height;
|
|
931
1105
|
if (width || height) {
|
|
932
|
-
img.setAttribute('width', size.w);
|
|
933
|
-
img.setAttribute('height', size.h);
|
|
1106
|
+
img.setAttribute('width', String(size.w));
|
|
1107
|
+
img.setAttribute('height', String(size.h));
|
|
934
1108
|
}
|
|
935
1109
|
}
|
|
936
|
-
}
|
|
937
|
-
function
|
|
1110
|
+
};
|
|
1111
|
+
var getNaturalImageSize = function (img) {
|
|
938
1112
|
return {
|
|
939
1113
|
w: img.naturalWidth,
|
|
940
1114
|
h: img.naturalHeight
|
|
941
1115
|
};
|
|
942
|
-
}
|
|
1116
|
+
};
|
|
943
1117
|
|
|
944
1118
|
var count = 0;
|
|
945
1119
|
var getFigureImg = function (elem) {
|
|
946
|
-
return child
|
|
1120
|
+
return child(SugarElement.fromDom(elem), 'img');
|
|
947
1121
|
};
|
|
948
1122
|
var isFigure = function (editor, elem) {
|
|
949
1123
|
return editor.dom.is(elem, 'figure');
|
|
950
1124
|
};
|
|
951
|
-
var
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1125
|
+
var isImage = function (editor, imgNode) {
|
|
1126
|
+
return editor.dom.is(imgNode, 'img:not([data-mce-object],[data-mce-placeholder])');
|
|
1127
|
+
};
|
|
1128
|
+
var getEditableImage = function (editor, node) {
|
|
955
1129
|
var isEditable = function (imgNode) {
|
|
956
|
-
return isImage(imgNode) && (isLocalImage(editor, imgNode) || isCorsImage(editor, imgNode) || getProxyUrl(editor));
|
|
1130
|
+
return isImage(editor, imgNode) && (isLocalImage(editor, imgNode) || isCorsImage(editor, imgNode) || isNonNullable(getProxyUrl(editor)));
|
|
957
1131
|
};
|
|
958
|
-
if (isFigure(editor,
|
|
959
|
-
|
|
960
|
-
return imgOpt.map(function (img) {
|
|
1132
|
+
if (isFigure(editor, node)) {
|
|
1133
|
+
return getFigureImg(node).bind(function (img) {
|
|
961
1134
|
return isEditable(img.dom) ? Optional.some(img.dom) : Optional.none();
|
|
962
1135
|
});
|
|
1136
|
+
} else {
|
|
1137
|
+
return isEditable(node) ? Optional.some(node) : Optional.none();
|
|
963
1138
|
}
|
|
964
|
-
return isEditable(elem) ? Optional.some(elem) : Optional.none();
|
|
965
1139
|
};
|
|
966
1140
|
var displayError = function (editor, error) {
|
|
967
1141
|
editor.notificationManager.open({
|
|
@@ -971,31 +1145,31 @@
|
|
|
971
1145
|
};
|
|
972
1146
|
var getSelectedImage = function (editor) {
|
|
973
1147
|
var elem = editor.selection.getNode();
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1148
|
+
var figureElm = editor.dom.getParent(elem, 'figure.image');
|
|
1149
|
+
if (figureElm !== null && isFigure(editor, figureElm)) {
|
|
1150
|
+
return getFigureImg(figureElm);
|
|
1151
|
+
} else if (isImage(editor, elem)) {
|
|
977
1152
|
return Optional.some(SugarElement.fromDom(elem));
|
|
1153
|
+
} else {
|
|
1154
|
+
return Optional.none();
|
|
978
1155
|
}
|
|
979
1156
|
};
|
|
980
|
-
var extractFilename = function (editor, url) {
|
|
981
|
-
var m = url.match(
|
|
982
|
-
|
|
983
|
-
return editor.dom.encode(m[1]);
|
|
984
|
-
}
|
|
985
|
-
return null;
|
|
1157
|
+
var extractFilename = function (editor, url, group) {
|
|
1158
|
+
var m = url.match(/(?:\/|^)(([^\/\?]+)\.(?:[a-z0-9.]+))(?:\?|$)/i);
|
|
1159
|
+
return isNonNullable(m) ? editor.dom.encode(m[group]) : null;
|
|
986
1160
|
};
|
|
987
1161
|
var createId = function () {
|
|
988
1162
|
return 'imagetools' + count++;
|
|
989
1163
|
};
|
|
990
1164
|
var isLocalImage = function (editor, img) {
|
|
991
1165
|
var url = img.src;
|
|
992
|
-
return url.indexOf('data:') === 0 || url.indexOf('blob:') === 0 || new global$
|
|
1166
|
+
return url.indexOf('data:') === 0 || url.indexOf('blob:') === 0 || new global$1(url).host === editor.documentBaseURI.host;
|
|
993
1167
|
};
|
|
994
1168
|
var isCorsImage = function (editor, img) {
|
|
995
|
-
return global$
|
|
1169
|
+
return global$4.inArray(getCorsHosts(editor), new global$1(img.src).host) !== -1;
|
|
996
1170
|
};
|
|
997
1171
|
var isCorsWithCredentialsImage = function (editor, img) {
|
|
998
|
-
return global$
|
|
1172
|
+
return global$4.inArray(getCredentialsHosts(editor), new global$1(img.src).host) !== -1;
|
|
999
1173
|
};
|
|
1000
1174
|
var defaultFetchImage = function (editor, img) {
|
|
1001
1175
|
if (isCorsImage(editor, img)) {
|
|
@@ -1009,7 +1183,7 @@
|
|
|
1009
1183
|
}
|
|
1010
1184
|
return imageToBlob$1(img);
|
|
1011
1185
|
};
|
|
1012
|
-
var imageToBlob
|
|
1186
|
+
var imageToBlob = function (editor, img) {
|
|
1013
1187
|
return getFetchImage(editor).fold(function () {
|
|
1014
1188
|
return defaultFetchImage(editor, img);
|
|
1015
1189
|
}, function (customFetchImage) {
|
|
@@ -1019,31 +1193,34 @@
|
|
|
1019
1193
|
var findBlob = function (editor, img) {
|
|
1020
1194
|
var blobInfo = editor.editorUpload.blobCache.getByUri(img.src);
|
|
1021
1195
|
if (blobInfo) {
|
|
1022
|
-
return global$
|
|
1196
|
+
return global$2.resolve(blobInfo.blob());
|
|
1023
1197
|
}
|
|
1024
|
-
return imageToBlob
|
|
1198
|
+
return imageToBlob(editor, img);
|
|
1025
1199
|
};
|
|
1026
1200
|
var startTimedUpload = function (editor, imageUploadTimerState) {
|
|
1027
|
-
var imageUploadTimer = global$
|
|
1201
|
+
var imageUploadTimer = global$3.setEditorTimeout(editor, function () {
|
|
1028
1202
|
editor.editorUpload.uploadImagesAuto();
|
|
1029
1203
|
}, getUploadTimeout(editor));
|
|
1030
1204
|
imageUploadTimerState.set(imageUploadTimer);
|
|
1031
1205
|
};
|
|
1032
1206
|
var cancelTimedUpload = function (imageUploadTimerState) {
|
|
1033
|
-
global$
|
|
1207
|
+
global$3.clearTimeout(imageUploadTimerState.get());
|
|
1034
1208
|
};
|
|
1035
|
-
var updateSelectedImage = function (editor, ir, uploadImmediately, imageUploadTimerState, selectedImage, size) {
|
|
1209
|
+
var updateSelectedImage = function (editor, origBlob, ir, uploadImmediately, imageUploadTimerState, selectedImage, size) {
|
|
1036
1210
|
return ir.toBlob().then(function (blob) {
|
|
1037
|
-
var uri, name, blobInfo;
|
|
1211
|
+
var uri, name, filename, blobInfo;
|
|
1038
1212
|
var blobCache = editor.editorUpload.blobCache;
|
|
1039
1213
|
uri = selectedImage.src;
|
|
1214
|
+
var useFilename = origBlob.type === blob.type;
|
|
1040
1215
|
if (shouldReuseFilename(editor)) {
|
|
1041
1216
|
blobInfo = blobCache.getByUri(uri);
|
|
1042
|
-
if (blobInfo) {
|
|
1217
|
+
if (isNonNullable(blobInfo)) {
|
|
1043
1218
|
uri = blobInfo.uri();
|
|
1044
1219
|
name = blobInfo.name();
|
|
1220
|
+
filename = blobInfo.filename();
|
|
1045
1221
|
} else {
|
|
1046
|
-
name = extractFilename(editor, uri);
|
|
1222
|
+
name = extractFilename(editor, uri, 2);
|
|
1223
|
+
filename = extractFilename(editor, uri, 1);
|
|
1047
1224
|
}
|
|
1048
1225
|
}
|
|
1049
1226
|
blobInfo = blobCache.create({
|
|
@@ -1051,11 +1228,12 @@
|
|
|
1051
1228
|
blob: blob,
|
|
1052
1229
|
base64: ir.toBase64(),
|
|
1053
1230
|
uri: uri,
|
|
1054
|
-
name: name
|
|
1231
|
+
name: name,
|
|
1232
|
+
filename: useFilename ? filename : undefined
|
|
1055
1233
|
});
|
|
1056
1234
|
blobCache.add(blobInfo);
|
|
1057
1235
|
editor.undoManager.transact(function () {
|
|
1058
|
-
function
|
|
1236
|
+
var imageLoadedHandler = function () {
|
|
1059
1237
|
editor.$(selectedImage).off('load', imageLoadedHandler);
|
|
1060
1238
|
editor.nodeChanged();
|
|
1061
1239
|
if (uploadImmediately) {
|
|
@@ -1064,7 +1242,7 @@
|
|
|
1064
1242
|
cancelTimedUpload(imageUploadTimerState);
|
|
1065
1243
|
startTimedUpload(editor, imageUploadTimerState);
|
|
1066
1244
|
}
|
|
1067
|
-
}
|
|
1245
|
+
};
|
|
1068
1246
|
editor.$(selectedImage).on('load', imageLoadedHandler);
|
|
1069
1247
|
if (size) {
|
|
1070
1248
|
editor.$(selectedImage).attr({
|
|
@@ -1085,32 +1263,32 @@
|
|
|
1085
1263
|
}, function (img) {
|
|
1086
1264
|
return editor._scanForImages().then(function () {
|
|
1087
1265
|
return findBlob(editor, img.dom);
|
|
1088
|
-
}).then(
|
|
1089
|
-
return
|
|
1090
|
-
|
|
1266
|
+
}).then(function (blob) {
|
|
1267
|
+
return blobToImageResult(blob).then(fn).then(function (imageResult) {
|
|
1268
|
+
return updateSelectedImage(editor, blob, imageResult, false, imageUploadTimerState, img.dom, size);
|
|
1269
|
+
});
|
|
1270
|
+
}).catch(function (error) {
|
|
1091
1271
|
displayError(editor, error);
|
|
1092
1272
|
});
|
|
1093
1273
|
});
|
|
1094
1274
|
};
|
|
1095
1275
|
};
|
|
1096
|
-
var rotate
|
|
1276
|
+
var rotate = function (editor, imageUploadTimerState, angle) {
|
|
1097
1277
|
return function () {
|
|
1098
1278
|
var imgOpt = getSelectedImage(editor);
|
|
1099
|
-
var flippedSize = imgOpt.
|
|
1100
|
-
return null;
|
|
1101
|
-
}, function (img) {
|
|
1279
|
+
var flippedSize = imgOpt.map(function (img) {
|
|
1102
1280
|
var size = getImageSize(img.dom);
|
|
1103
1281
|
return size ? {
|
|
1104
1282
|
w: size.h,
|
|
1105
1283
|
h: size.w
|
|
1106
1284
|
} : null;
|
|
1107
|
-
});
|
|
1285
|
+
}).getOrNull();
|
|
1108
1286
|
return selectedImageOperation(editor, imageUploadTimerState, function (imageResult) {
|
|
1109
1287
|
return rotate$1(imageResult, angle);
|
|
1110
1288
|
}, flippedSize)();
|
|
1111
1289
|
};
|
|
1112
1290
|
};
|
|
1113
|
-
var flip
|
|
1291
|
+
var flip = function (editor, imageUploadTimerState, axis) {
|
|
1114
1292
|
return function () {
|
|
1115
1293
|
return selectedImageOperation(editor, imageUploadTimerState, function (imageResult) {
|
|
1116
1294
|
return flip$1(imageResult, axis);
|
|
@@ -1118,7 +1296,7 @@
|
|
|
1118
1296
|
};
|
|
1119
1297
|
};
|
|
1120
1298
|
var handleDialogBlob = function (editor, imageUploadTimerState, img, originalSize, blob) {
|
|
1121
|
-
return blobToImage
|
|
1299
|
+
return blobToImage(blob).then(function (newImage) {
|
|
1122
1300
|
var newSize = getNaturalImageSize(newImage);
|
|
1123
1301
|
if (originalSize.w !== newSize.w || originalSize.h !== newSize.h) {
|
|
1124
1302
|
if (getImageSize(img)) {
|
|
@@ -1128,8 +1306,7 @@
|
|
|
1128
1306
|
URL.revokeObjectURL(newImage.src);
|
|
1129
1307
|
return blob;
|
|
1130
1308
|
}).then(blobToImageResult).then(function (imageResult) {
|
|
1131
|
-
return updateSelectedImage(editor, imageResult, true, imageUploadTimerState, img);
|
|
1132
|
-
}, function () {
|
|
1309
|
+
return updateSelectedImage(editor, blob, imageResult, true, imageUploadTimerState, img);
|
|
1133
1310
|
});
|
|
1134
1311
|
};
|
|
1135
1312
|
|
|
@@ -1181,8 +1358,7 @@
|
|
|
1181
1358
|
});
|
|
1182
1359
|
api.close();
|
|
1183
1360
|
},
|
|
1184
|
-
onCancel:
|
|
1185
|
-
},
|
|
1361
|
+
onCancel: noop,
|
|
1186
1362
|
onAction: function (api, details) {
|
|
1187
1363
|
switch (details.name) {
|
|
1188
1364
|
case saveState:
|
|
@@ -1207,8 +1383,7 @@
|
|
|
1207
1383
|
var originalSizeOpt = originalImgOpt.map(function (origImg) {
|
|
1208
1384
|
return getNaturalImageSize(origImg.dom);
|
|
1209
1385
|
});
|
|
1210
|
-
|
|
1211
|
-
imgOpt.each(function (img) {
|
|
1386
|
+
originalImgOpt.each(function (img) {
|
|
1212
1387
|
getEditableImage(editor, img.dom).each(function (_) {
|
|
1213
1388
|
findBlob(editor, img.dom).then(function (blob) {
|
|
1214
1389
|
var state = createState(blob);
|
|
@@ -1219,12 +1394,12 @@
|
|
|
1219
1394
|
};
|
|
1220
1395
|
};
|
|
1221
1396
|
|
|
1222
|
-
var register = function (editor, imageUploadTimerState) {
|
|
1223
|
-
global$
|
|
1224
|
-
mceImageRotateLeft: rotate
|
|
1225
|
-
mceImageRotateRight: rotate
|
|
1226
|
-
mceImageFlipVertical: flip
|
|
1227
|
-
mceImageFlipHorizontal: flip
|
|
1397
|
+
var register$2 = function (editor, imageUploadTimerState) {
|
|
1398
|
+
global$4.each({
|
|
1399
|
+
mceImageRotateLeft: rotate(editor, imageUploadTimerState, -90),
|
|
1400
|
+
mceImageRotateRight: rotate(editor, imageUploadTimerState, 90),
|
|
1401
|
+
mceImageFlipVertical: flip(editor, imageUploadTimerState, 'v'),
|
|
1402
|
+
mceImageFlipHorizontal: flip(editor, imageUploadTimerState, 'h'),
|
|
1228
1403
|
mceEditImage: makeOpen(editor, imageUploadTimerState)
|
|
1229
1404
|
}, function (fn, cmd) {
|
|
1230
1405
|
editor.addCommand(cmd, fn);
|
|
@@ -1234,58 +1409,77 @@
|
|
|
1234
1409
|
var setup = function (editor, imageUploadTimerState, lastSelectedImageState) {
|
|
1235
1410
|
editor.on('NodeChange', function (e) {
|
|
1236
1411
|
var lastSelectedImage = lastSelectedImageState.get();
|
|
1237
|
-
|
|
1412
|
+
var selectedImage = getEditableImage(editor, e.element);
|
|
1413
|
+
if (lastSelectedImage && !selectedImage.exists(function (img) {
|
|
1414
|
+
return lastSelectedImage.src === img.src;
|
|
1415
|
+
})) {
|
|
1238
1416
|
cancelTimedUpload(imageUploadTimerState);
|
|
1239
1417
|
editor.editorUpload.uploadImagesAuto();
|
|
1240
1418
|
lastSelectedImageState.set(null);
|
|
1241
1419
|
}
|
|
1242
|
-
|
|
1420
|
+
selectedImage.each(lastSelectedImageState.set);
|
|
1243
1421
|
});
|
|
1244
1422
|
};
|
|
1245
1423
|
|
|
1246
1424
|
var register$1 = function (editor) {
|
|
1425
|
+
var changeHandlers = [];
|
|
1247
1426
|
var cmd = function (command) {
|
|
1248
1427
|
return function () {
|
|
1249
1428
|
return editor.execCommand(command);
|
|
1250
1429
|
};
|
|
1251
1430
|
};
|
|
1431
|
+
var isEditableImage = function () {
|
|
1432
|
+
return getSelectedImage(editor).exists(function (element) {
|
|
1433
|
+
return getEditableImage(editor, element.dom).isSome();
|
|
1434
|
+
});
|
|
1435
|
+
};
|
|
1436
|
+
var onSetup = function (api) {
|
|
1437
|
+
var handler = function (isEditableImage) {
|
|
1438
|
+
return api.setDisabled(!isEditableImage);
|
|
1439
|
+
};
|
|
1440
|
+
handler(isEditableImage());
|
|
1441
|
+
changeHandlers = changeHandlers.concat([handler]);
|
|
1442
|
+
return function () {
|
|
1443
|
+
changeHandlers = filter(changeHandlers, function (h) {
|
|
1444
|
+
return h !== handler;
|
|
1445
|
+
});
|
|
1446
|
+
};
|
|
1447
|
+
};
|
|
1448
|
+
editor.on('NodeChange', function () {
|
|
1449
|
+
var isEditable = isEditableImage();
|
|
1450
|
+
each$1(changeHandlers, function (handler) {
|
|
1451
|
+
return handler(isEditable);
|
|
1452
|
+
});
|
|
1453
|
+
});
|
|
1252
1454
|
editor.ui.registry.addButton('rotateleft', {
|
|
1253
1455
|
tooltip: 'Rotate counterclockwise',
|
|
1254
1456
|
icon: 'rotate-left',
|
|
1255
|
-
onAction: cmd('mceImageRotateLeft')
|
|
1457
|
+
onAction: cmd('mceImageRotateLeft'),
|
|
1458
|
+
onSetup: onSetup
|
|
1256
1459
|
});
|
|
1257
1460
|
editor.ui.registry.addButton('rotateright', {
|
|
1258
1461
|
tooltip: 'Rotate clockwise',
|
|
1259
1462
|
icon: 'rotate-right',
|
|
1260
|
-
onAction: cmd('mceImageRotateRight')
|
|
1463
|
+
onAction: cmd('mceImageRotateRight'),
|
|
1464
|
+
onSetup: onSetup
|
|
1261
1465
|
});
|
|
1262
1466
|
editor.ui.registry.addButton('flipv', {
|
|
1263
1467
|
tooltip: 'Flip vertically',
|
|
1264
1468
|
icon: 'flip-vertically',
|
|
1265
|
-
onAction: cmd('mceImageFlipVertical')
|
|
1469
|
+
onAction: cmd('mceImageFlipVertical'),
|
|
1470
|
+
onSetup: onSetup
|
|
1266
1471
|
});
|
|
1267
1472
|
editor.ui.registry.addButton('fliph', {
|
|
1268
1473
|
tooltip: 'Flip horizontally',
|
|
1269
1474
|
icon: 'flip-horizontally',
|
|
1270
|
-
onAction: cmd('mceImageFlipHorizontal')
|
|
1475
|
+
onAction: cmd('mceImageFlipHorizontal'),
|
|
1476
|
+
onSetup: onSetup
|
|
1271
1477
|
});
|
|
1272
1478
|
editor.ui.registry.addButton('editimage', {
|
|
1273
1479
|
tooltip: 'Edit image',
|
|
1274
1480
|
icon: 'edit-image',
|
|
1275
1481
|
onAction: cmd('mceEditImage'),
|
|
1276
|
-
onSetup:
|
|
1277
|
-
var setDisabled = function () {
|
|
1278
|
-
var elementOpt = getSelectedImage(editor);
|
|
1279
|
-
elementOpt.each(function (element) {
|
|
1280
|
-
var disabled = getEditableImage(editor, element.dom).isNone();
|
|
1281
|
-
buttonApi.setDisabled(disabled);
|
|
1282
|
-
});
|
|
1283
|
-
};
|
|
1284
|
-
editor.on('NodeChange', setDisabled);
|
|
1285
|
-
return function () {
|
|
1286
|
-
editor.off('NodeChange', setDisabled);
|
|
1287
|
-
};
|
|
1288
|
-
}
|
|
1482
|
+
onSetup: onSetup
|
|
1289
1483
|
});
|
|
1290
1484
|
editor.ui.registry.addButton('imageoptions', {
|
|
1291
1485
|
tooltip: 'Image options',
|
|
@@ -1294,20 +1488,18 @@
|
|
|
1294
1488
|
});
|
|
1295
1489
|
editor.ui.registry.addContextMenu('imagetools', {
|
|
1296
1490
|
update: function (element) {
|
|
1297
|
-
return getEditableImage(editor, element).
|
|
1298
|
-
return
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
}];
|
|
1305
|
-
});
|
|
1491
|
+
return getEditableImage(editor, element).map(function (_) {
|
|
1492
|
+
return {
|
|
1493
|
+
text: 'Edit image',
|
|
1494
|
+
icon: 'edit-image',
|
|
1495
|
+
onAction: cmd('mceEditImage')
|
|
1496
|
+
};
|
|
1497
|
+
}).toArray();
|
|
1306
1498
|
}
|
|
1307
1499
|
});
|
|
1308
1500
|
};
|
|
1309
1501
|
|
|
1310
|
-
var register
|
|
1502
|
+
var register = function (editor) {
|
|
1311
1503
|
editor.ui.registry.addContextToolbar('imagetools', {
|
|
1312
1504
|
items: getToolbarItems(editor),
|
|
1313
1505
|
predicate: function (elem) {
|
|
@@ -1319,12 +1511,12 @@
|
|
|
1319
1511
|
};
|
|
1320
1512
|
|
|
1321
1513
|
function Plugin () {
|
|
1322
|
-
global.add('imagetools', function (editor) {
|
|
1514
|
+
global$5.add('imagetools', function (editor) {
|
|
1323
1515
|
var imageUploadTimerState = Cell(0);
|
|
1324
1516
|
var lastSelectedImageState = Cell(null);
|
|
1325
|
-
register(editor, imageUploadTimerState);
|
|
1517
|
+
register$2(editor, imageUploadTimerState);
|
|
1326
1518
|
register$1(editor);
|
|
1327
|
-
register
|
|
1519
|
+
register(editor);
|
|
1328
1520
|
setup(editor, imageUploadTimerState, lastSelectedImageState);
|
|
1329
1521
|
});
|
|
1330
1522
|
}
|