@sapui5/sap.ui.richtexteditor 1.96.25 → 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_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,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
(function () {
|
|
3
5
|
'use strict';
|
|
4
6
|
|
|
5
7
|
var Cell = function (initial) {
|
|
@@ -16,12 +18,12 @@
|
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
|
|
19
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
21
|
+
var global$b = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
20
22
|
|
|
21
23
|
var hasProPlugin = function (editor) {
|
|
22
|
-
if (
|
|
23
|
-
if (typeof
|
|
24
|
-
|
|
24
|
+
if (editor.hasPlugin('powerpaste', true)) {
|
|
25
|
+
if (typeof window.console !== 'undefined' && window.console.log) {
|
|
26
|
+
window.console.log('PowerPaste is incompatible with Paste plugin! Remove \'paste\' from the \'plugins\' option.');
|
|
25
27
|
}
|
|
26
28
|
return true;
|
|
27
29
|
} else {
|
|
@@ -29,58 +31,40 @@
|
|
|
29
31
|
}
|
|
30
32
|
};
|
|
31
33
|
|
|
32
|
-
var get = function (clipboard
|
|
33
|
-
return {
|
|
34
|
-
clipboard: clipboard,
|
|
35
|
-
quirks: quirks
|
|
36
|
-
};
|
|
34
|
+
var get = function (clipboard) {
|
|
35
|
+
return { clipboard: clipboard };
|
|
37
36
|
};
|
|
38
37
|
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
var typeOf = function (x) {
|
|
39
|
+
var t = typeof x;
|
|
40
|
+
if (x === null) {
|
|
41
|
+
return 'null';
|
|
42
|
+
} else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
|
43
|
+
return 'array';
|
|
44
|
+
} else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
|
45
|
+
return 'string';
|
|
46
|
+
} else {
|
|
47
|
+
return t;
|
|
48
|
+
}
|
|
45
49
|
};
|
|
46
|
-
var
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
wordContent: isWordHtml
|
|
51
|
-
});
|
|
50
|
+
var isType = function (type) {
|
|
51
|
+
return function (value) {
|
|
52
|
+
return typeOf(value) === type;
|
|
53
|
+
};
|
|
52
54
|
};
|
|
53
|
-
var
|
|
54
|
-
return
|
|
55
|
+
var isSimpleType = function (type) {
|
|
56
|
+
return function (value) {
|
|
57
|
+
return typeof value === type;
|
|
58
|
+
};
|
|
55
59
|
};
|
|
56
|
-
var
|
|
57
|
-
|
|
60
|
+
var isArray = isType('array');
|
|
61
|
+
var isNullable = function (a) {
|
|
62
|
+
return a === null || a === undefined;
|
|
58
63
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
if (clipboard.pasteFormat.get() === 'text') {
|
|
62
|
-
clipboard.pasteFormat.set('html');
|
|
63
|
-
firePastePlainTextToggle(editor, false);
|
|
64
|
-
} else {
|
|
65
|
-
clipboard.pasteFormat.set('text');
|
|
66
|
-
firePastePlainTextToggle(editor, true);
|
|
67
|
-
}
|
|
68
|
-
editor.focus();
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
var register = function (editor, clipboard) {
|
|
72
|
-
editor.addCommand('mceTogglePlainTextPaste', function () {
|
|
73
|
-
togglePlainTextPaste(editor, clipboard);
|
|
74
|
-
});
|
|
75
|
-
editor.addCommand('mceInsertClipboardContent', function (ui, value) {
|
|
76
|
-
if (value.content) {
|
|
77
|
-
clipboard.pasteHtml(value.content, value.internal);
|
|
78
|
-
}
|
|
79
|
-
if (value.text) {
|
|
80
|
-
clipboard.pasteText(value.text);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
64
|
+
var isNonNullable = function (a) {
|
|
65
|
+
return !isNullable(a);
|
|
83
66
|
};
|
|
67
|
+
var isFunction = isSimpleType('function');
|
|
84
68
|
|
|
85
69
|
var noop = function () {
|
|
86
70
|
};
|
|
@@ -89,6 +73,9 @@
|
|
|
89
73
|
return value;
|
|
90
74
|
};
|
|
91
75
|
};
|
|
76
|
+
var identity = function (x) {
|
|
77
|
+
return x;
|
|
78
|
+
};
|
|
92
79
|
var never = constant(false);
|
|
93
80
|
var always = constant(true);
|
|
94
81
|
|
|
@@ -96,20 +83,14 @@
|
|
|
96
83
|
return NONE;
|
|
97
84
|
};
|
|
98
85
|
var NONE = function () {
|
|
99
|
-
var eq = function (o) {
|
|
100
|
-
return o.isNone();
|
|
101
|
-
};
|
|
102
86
|
var call = function (thunk) {
|
|
103
87
|
return thunk();
|
|
104
88
|
};
|
|
105
|
-
var id =
|
|
106
|
-
return n;
|
|
107
|
-
};
|
|
89
|
+
var id = identity;
|
|
108
90
|
var me = {
|
|
109
91
|
fold: function (n, _s) {
|
|
110
92
|
return n();
|
|
111
93
|
},
|
|
112
|
-
is: never,
|
|
113
94
|
isSome: never,
|
|
114
95
|
isNone: always,
|
|
115
96
|
getOr: id,
|
|
@@ -126,9 +107,9 @@
|
|
|
126
107
|
bind: none,
|
|
127
108
|
exists: never,
|
|
128
109
|
forall: always,
|
|
129
|
-
filter:
|
|
130
|
-
|
|
131
|
-
|
|
110
|
+
filter: function () {
|
|
111
|
+
return none();
|
|
112
|
+
},
|
|
132
113
|
toArray: function () {
|
|
133
114
|
return [];
|
|
134
115
|
},
|
|
@@ -148,9 +129,6 @@
|
|
|
148
129
|
fold: function (n, s) {
|
|
149
130
|
return s(a);
|
|
150
131
|
},
|
|
151
|
-
is: function (v) {
|
|
152
|
-
return a === v;
|
|
153
|
-
},
|
|
154
132
|
isSome: always,
|
|
155
133
|
isNone: never,
|
|
156
134
|
getOr: constant_a,
|
|
@@ -177,35 +155,30 @@
|
|
|
177
155
|
},
|
|
178
156
|
toString: function () {
|
|
179
157
|
return 'some(' + a + ')';
|
|
180
|
-
},
|
|
181
|
-
equals: function (o) {
|
|
182
|
-
return o.is(a);
|
|
183
|
-
},
|
|
184
|
-
equals_: function (o, elementEq) {
|
|
185
|
-
return o.fold(never, function (b) {
|
|
186
|
-
return elementEq(a, b);
|
|
187
|
-
});
|
|
188
158
|
}
|
|
189
159
|
};
|
|
190
160
|
return me;
|
|
191
161
|
};
|
|
192
|
-
var from = function (value) {
|
|
162
|
+
var from$1 = function (value) {
|
|
193
163
|
return value === null || value === undefined ? NONE : some(value);
|
|
194
164
|
};
|
|
195
|
-
var
|
|
165
|
+
var Optional = {
|
|
196
166
|
some: some,
|
|
197
167
|
none: none,
|
|
198
|
-
from: from
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
var isSimpleType = function (type) {
|
|
202
|
-
return function (value) {
|
|
203
|
-
return typeof value === type;
|
|
204
|
-
};
|
|
168
|
+
from: from$1
|
|
205
169
|
};
|
|
206
|
-
var isFunction = isSimpleType('function');
|
|
207
170
|
|
|
208
171
|
var nativeSlice = Array.prototype.slice;
|
|
172
|
+
var nativePush = Array.prototype.push;
|
|
173
|
+
var exists = function (xs, pred) {
|
|
174
|
+
for (var i = 0, len = xs.length; i < len; i++) {
|
|
175
|
+
var x = xs[i];
|
|
176
|
+
if (pred(x, i)) {
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return false;
|
|
181
|
+
};
|
|
209
182
|
var map = function (xs, f) {
|
|
210
183
|
var len = xs.length;
|
|
211
184
|
var r = new Array(len);
|
|
@@ -221,7 +194,7 @@
|
|
|
221
194
|
f(x, i);
|
|
222
195
|
}
|
|
223
196
|
};
|
|
224
|
-
var filter = function (xs, pred) {
|
|
197
|
+
var filter$1 = function (xs, pred) {
|
|
225
198
|
var r = [];
|
|
226
199
|
for (var i = 0, len = xs.length; i < len; i++) {
|
|
227
200
|
var x = xs[i];
|
|
@@ -232,44 +205,118 @@
|
|
|
232
205
|
return r;
|
|
233
206
|
};
|
|
234
207
|
var foldl = function (xs, f, acc) {
|
|
235
|
-
each(xs, function (x) {
|
|
236
|
-
acc = f(acc, x);
|
|
208
|
+
each(xs, function (x, i) {
|
|
209
|
+
acc = f(acc, x, i);
|
|
237
210
|
});
|
|
238
211
|
return acc;
|
|
239
212
|
};
|
|
240
|
-
var
|
|
213
|
+
var flatten = function (xs) {
|
|
214
|
+
var r = [];
|
|
215
|
+
for (var i = 0, len = xs.length; i < len; ++i) {
|
|
216
|
+
if (!isArray(xs[i])) {
|
|
217
|
+
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
|
218
|
+
}
|
|
219
|
+
nativePush.apply(r, xs[i]);
|
|
220
|
+
}
|
|
221
|
+
return r;
|
|
222
|
+
};
|
|
223
|
+
var bind = function (xs, f) {
|
|
224
|
+
return flatten(map(xs, f));
|
|
225
|
+
};
|
|
226
|
+
var from = isFunction(Array.from) ? Array.from : function (x) {
|
|
241
227
|
return nativeSlice.call(x);
|
|
242
228
|
};
|
|
243
229
|
|
|
244
|
-
var
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
230
|
+
var __assign = function () {
|
|
231
|
+
__assign = Object.assign || function __assign(t) {
|
|
232
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
233
|
+
s = arguments[i];
|
|
234
|
+
for (var p in s)
|
|
235
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
236
|
+
t[p] = s[p];
|
|
237
|
+
}
|
|
238
|
+
return t;
|
|
248
239
|
};
|
|
249
|
-
|
|
250
|
-
|
|
240
|
+
return __assign.apply(this, arguments);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
var singleton = function (doRevoke) {
|
|
244
|
+
var subject = Cell(Optional.none());
|
|
245
|
+
var revoke = function () {
|
|
246
|
+
return subject.get().each(doRevoke);
|
|
251
247
|
};
|
|
252
|
-
var
|
|
253
|
-
|
|
248
|
+
var clear = function () {
|
|
249
|
+
revoke();
|
|
250
|
+
subject.set(Optional.none());
|
|
254
251
|
};
|
|
255
252
|
var isSet = function () {
|
|
256
253
|
return subject.get().isSome();
|
|
257
254
|
};
|
|
255
|
+
var get = function () {
|
|
256
|
+
return subject.get();
|
|
257
|
+
};
|
|
258
|
+
var set = function (s) {
|
|
259
|
+
revoke();
|
|
260
|
+
subject.set(Optional.some(s));
|
|
261
|
+
};
|
|
258
262
|
return {
|
|
259
263
|
clear: clear,
|
|
260
|
-
set: set,
|
|
261
264
|
isSet: isSet,
|
|
262
|
-
|
|
265
|
+
get: get,
|
|
266
|
+
set: set
|
|
263
267
|
};
|
|
264
268
|
};
|
|
269
|
+
var value = function () {
|
|
270
|
+
var subject = singleton(noop);
|
|
271
|
+
var on = function (f) {
|
|
272
|
+
return subject.get().each(f);
|
|
273
|
+
};
|
|
274
|
+
return __assign(__assign({}, subject), { on: on });
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
var checkRange = function (str, substr, start) {
|
|
278
|
+
return substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
|
|
279
|
+
};
|
|
280
|
+
var startsWith = function (str, prefix) {
|
|
281
|
+
return checkRange(str, prefix, 0);
|
|
282
|
+
};
|
|
283
|
+
var endsWith = function (str, suffix) {
|
|
284
|
+
return checkRange(str, suffix, str.length - suffix.length);
|
|
285
|
+
};
|
|
286
|
+
var repeat = function (s, count) {
|
|
287
|
+
return count <= 0 ? '' : new Array(count + 1).join(s);
|
|
288
|
+
};
|
|
265
289
|
|
|
266
|
-
var global$
|
|
290
|
+
var global$a = tinymce.util.Tools.resolve('tinymce.Env');
|
|
267
291
|
|
|
268
|
-
var global$
|
|
292
|
+
var global$9 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
|
269
293
|
|
|
270
|
-
var global$
|
|
294
|
+
var global$8 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
|
271
295
|
|
|
272
|
-
var global$
|
|
296
|
+
var global$7 = tinymce.util.Tools.resolve('tinymce.util.VK');
|
|
297
|
+
|
|
298
|
+
var firePastePreProcess = function (editor, html, internal, isWordHtml) {
|
|
299
|
+
return editor.fire('PastePreProcess', {
|
|
300
|
+
content: html,
|
|
301
|
+
internal: internal,
|
|
302
|
+
wordContent: isWordHtml
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
var firePastePostProcess = function (editor, node, internal, isWordHtml) {
|
|
306
|
+
return editor.fire('PastePostProcess', {
|
|
307
|
+
node: node,
|
|
308
|
+
internal: internal,
|
|
309
|
+
wordContent: isWordHtml
|
|
310
|
+
});
|
|
311
|
+
};
|
|
312
|
+
var firePastePlainTextToggle = function (editor, state) {
|
|
313
|
+
return editor.fire('PastePlainTextToggle', { state: state });
|
|
314
|
+
};
|
|
315
|
+
var firePaste = function (editor, ieFake) {
|
|
316
|
+
return editor.fire('paste', { ieFake: ieFake });
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
var global$6 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
273
320
|
|
|
274
321
|
var shouldBlockDrop = function (editor) {
|
|
275
322
|
return editor.getParam('paste_block_drop', false);
|
|
@@ -338,6 +385,10 @@
|
|
|
338
385
|
var getTabSpaces = function (editor) {
|
|
339
386
|
return editor.getParam('paste_tab_spaces', 4, 'number');
|
|
340
387
|
};
|
|
388
|
+
var getAllowedImageFileTypes = function (editor) {
|
|
389
|
+
var defaultImageFileTypes = 'jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp';
|
|
390
|
+
return global$6.explode(editor.getParam('images_file_types', defaultImageFileTypes, 'string'));
|
|
391
|
+
};
|
|
341
392
|
|
|
342
393
|
var internalMimeType = 'x-tinymce/html';
|
|
343
394
|
var internalMark = '<!-- ' + internalMimeType + ' -->';
|
|
@@ -350,13 +401,14 @@
|
|
|
350
401
|
var isMarked = function (html) {
|
|
351
402
|
return html.indexOf(internalMark) !== -1;
|
|
352
403
|
};
|
|
353
|
-
var internalHtmlMime =
|
|
354
|
-
return internalMimeType;
|
|
355
|
-
};
|
|
404
|
+
var internalHtmlMime = constant(internalMimeType);
|
|
356
405
|
|
|
357
|
-
var
|
|
406
|
+
var hasOwnProperty = Object.hasOwnProperty;
|
|
407
|
+
var has = function (obj, key) {
|
|
408
|
+
return hasOwnProperty.call(obj, key);
|
|
409
|
+
};
|
|
358
410
|
|
|
359
|
-
var global$
|
|
411
|
+
var global$5 = tinymce.util.Tools.resolve('tinymce.html.Entities');
|
|
360
412
|
|
|
361
413
|
var isPlainText = function (text) {
|
|
362
414
|
return !/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(text);
|
|
@@ -365,13 +417,12 @@
|
|
|
365
417
|
return text.replace(/\r?\n/g, '<br>');
|
|
366
418
|
};
|
|
367
419
|
var openContainer = function (rootTag, rootAttrs) {
|
|
368
|
-
var key;
|
|
369
420
|
var attrs = [];
|
|
370
421
|
var tag = '<' + rootTag;
|
|
371
422
|
if (typeof rootAttrs === 'object') {
|
|
372
|
-
for (key in rootAttrs) {
|
|
373
|
-
if (rootAttrs
|
|
374
|
-
attrs.push(key + '="' + global$
|
|
423
|
+
for (var key in rootAttrs) {
|
|
424
|
+
if (has(rootAttrs, key)) {
|
|
425
|
+
attrs.push(key + '="' + global$5.encodeAllRaw(rootAttrs[key]) + '"');
|
|
375
426
|
}
|
|
376
427
|
}
|
|
377
428
|
if (attrs.length) {
|
|
@@ -384,46 +435,49 @@
|
|
|
384
435
|
var blocks = text.split(/\n\n/);
|
|
385
436
|
var tagOpen = openContainer(rootTag, rootAttrs);
|
|
386
437
|
var tagClose = '</' + rootTag + '>';
|
|
387
|
-
var paragraphs = global$
|
|
438
|
+
var paragraphs = global$6.map(blocks, function (p) {
|
|
388
439
|
return p.split(/\n/).join('<br />');
|
|
389
440
|
});
|
|
390
441
|
var stitch = function (p) {
|
|
391
442
|
return tagOpen + p + tagClose;
|
|
392
443
|
};
|
|
393
|
-
return paragraphs.length === 1 ? paragraphs[0] : global$
|
|
444
|
+
return paragraphs.length === 1 ? paragraphs[0] : global$6.map(paragraphs, stitch).join('');
|
|
394
445
|
};
|
|
395
446
|
var convert = function (text, rootTag, rootAttrs) {
|
|
396
447
|
return rootTag ? toBlockElements(text, rootTag === true ? 'p' : rootTag, rootAttrs) : toBRs(text);
|
|
397
448
|
};
|
|
398
449
|
|
|
399
|
-
var global$
|
|
450
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.html.DomParser');
|
|
400
451
|
|
|
401
|
-
var global$
|
|
452
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.html.Serializer');
|
|
402
453
|
|
|
403
454
|
var nbsp = '\xA0';
|
|
404
455
|
|
|
405
|
-
var global$
|
|
456
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.html.Node');
|
|
406
457
|
|
|
407
|
-
var global$
|
|
458
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.html.Schema');
|
|
408
459
|
|
|
409
|
-
function
|
|
410
|
-
|
|
411
|
-
|
|
460
|
+
var isRegExp = function (val) {
|
|
461
|
+
return val.constructor === RegExp;
|
|
462
|
+
};
|
|
463
|
+
var filter = function (content, items) {
|
|
464
|
+
global$6.each(items, function (v) {
|
|
465
|
+
if (isRegExp(v)) {
|
|
412
466
|
content = content.replace(v, '');
|
|
413
467
|
} else {
|
|
414
468
|
content = content.replace(v[0], v[1]);
|
|
415
469
|
}
|
|
416
470
|
});
|
|
417
471
|
return content;
|
|
418
|
-
}
|
|
419
|
-
function
|
|
420
|
-
var schema = global$
|
|
421
|
-
var domParser = global$
|
|
472
|
+
};
|
|
473
|
+
var innerText = function (html) {
|
|
474
|
+
var schema = global$1();
|
|
475
|
+
var domParser = global$4({}, schema);
|
|
422
476
|
var text = '';
|
|
423
477
|
var shortEndedElements = schema.getShortEndedElements();
|
|
424
|
-
var ignoreElements = global$
|
|
478
|
+
var ignoreElements = global$6.makeMap('script noscript style textarea video audio iframe object', ' ');
|
|
425
479
|
var blockElements = schema.getBlockElements();
|
|
426
|
-
function
|
|
480
|
+
var walk = function (node) {
|
|
427
481
|
var name = node.name, currentNode = node;
|
|
428
482
|
if (name === 'br') {
|
|
429
483
|
text += '\n';
|
|
@@ -455,19 +509,19 @@
|
|
|
455
509
|
text += '\n';
|
|
456
510
|
}
|
|
457
511
|
}
|
|
458
|
-
}
|
|
459
|
-
html = filter
|
|
512
|
+
};
|
|
513
|
+
html = filter(html, [/<!\[[^\]]+\]>/g]);
|
|
460
514
|
walk(domParser.parse(html));
|
|
461
515
|
return text;
|
|
462
|
-
}
|
|
463
|
-
function
|
|
464
|
-
function
|
|
516
|
+
};
|
|
517
|
+
var trimHtml = function (html) {
|
|
518
|
+
var trimSpaces = function (all, s1, s2) {
|
|
465
519
|
if (!s1 && !s2) {
|
|
466
520
|
return ' ';
|
|
467
521
|
}
|
|
468
522
|
return nbsp;
|
|
469
|
-
}
|
|
470
|
-
html = filter
|
|
523
|
+
};
|
|
524
|
+
html = filter(html, [
|
|
471
525
|
/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,
|
|
472
526
|
/<!--StartFragment-->|<!--EndFragment-->/g,
|
|
473
527
|
[
|
|
@@ -478,22 +532,36 @@
|
|
|
478
532
|
/<br>$/i
|
|
479
533
|
]);
|
|
480
534
|
return html;
|
|
481
|
-
}
|
|
482
|
-
function
|
|
535
|
+
};
|
|
536
|
+
var createIdGenerator = function (prefix) {
|
|
483
537
|
var count = 0;
|
|
484
538
|
return function () {
|
|
485
539
|
return prefix + count++;
|
|
486
540
|
};
|
|
487
|
-
}
|
|
541
|
+
};
|
|
542
|
+
var getImageMimeType = function (ext) {
|
|
543
|
+
var lowerExt = ext.toLowerCase();
|
|
544
|
+
var mimeOverrides = {
|
|
545
|
+
jpg: 'jpeg',
|
|
546
|
+
jpe: 'jpeg',
|
|
547
|
+
jfi: 'jpeg',
|
|
548
|
+
jif: 'jpeg',
|
|
549
|
+
jfif: 'jpeg',
|
|
550
|
+
pjpeg: 'jpeg',
|
|
551
|
+
pjp: 'jpeg',
|
|
552
|
+
svg: 'svg+xml'
|
|
553
|
+
};
|
|
554
|
+
return global$6.hasOwn(mimeOverrides, lowerExt) ? 'image/' + mimeOverrides[lowerExt] : 'image/' + lowerExt;
|
|
555
|
+
};
|
|
488
556
|
|
|
489
|
-
function
|
|
490
|
-
return /<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^'
|
|
491
|
-
}
|
|
492
|
-
function
|
|
493
|
-
var found;
|
|
557
|
+
var isWordContent = function (content) {
|
|
558
|
+
return /<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(content) || /class="OutlineElement/.test(content) || /id="?docs\-internal\-guid\-/.test(content);
|
|
559
|
+
};
|
|
560
|
+
var isNumericList = function (text) {
|
|
561
|
+
var found = false;
|
|
494
562
|
var patterns = [
|
|
495
|
-
/^[IVXLMCD]
|
|
496
|
-
/^[ivxlmcd]
|
|
563
|
+
/^[IVXLMCD]+\.[ \u00a0]/,
|
|
564
|
+
/^[ivxlmcd]+\.[ \u00a0]/,
|
|
497
565
|
/^[a-z]{1,2}[\.\)][ \u00a0]/,
|
|
498
566
|
/^[A-Z]{1,2}[\.\)][ \u00a0]/,
|
|
499
567
|
/^[0-9]+\.[ \u00a0]/,
|
|
@@ -501,20 +569,20 @@
|
|
|
501
569
|
/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/
|
|
502
570
|
];
|
|
503
571
|
text = text.replace(/^[\u00a0 ]+/, '');
|
|
504
|
-
global$
|
|
572
|
+
global$6.each(patterns, function (pattern) {
|
|
505
573
|
if (pattern.test(text)) {
|
|
506
574
|
found = true;
|
|
507
575
|
return false;
|
|
508
576
|
}
|
|
509
577
|
});
|
|
510
578
|
return found;
|
|
511
|
-
}
|
|
512
|
-
function
|
|
579
|
+
};
|
|
580
|
+
var isBulletList = function (text) {
|
|
513
581
|
return /^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(text);
|
|
514
|
-
}
|
|
515
|
-
function
|
|
582
|
+
};
|
|
583
|
+
var convertFakeListsToProperLists = function (node) {
|
|
516
584
|
var currentListNode, prevListNode, lastLevel = 1;
|
|
517
|
-
function
|
|
585
|
+
var getText = function (node) {
|
|
518
586
|
var txt = '';
|
|
519
587
|
if (node.type === 3) {
|
|
520
588
|
return node.value;
|
|
@@ -525,8 +593,8 @@
|
|
|
525
593
|
} while (node = node.next);
|
|
526
594
|
}
|
|
527
595
|
return txt;
|
|
528
|
-
}
|
|
529
|
-
function
|
|
596
|
+
};
|
|
597
|
+
var trimListStart = function (node, regExp) {
|
|
530
598
|
if (node.type === 3) {
|
|
531
599
|
if (regExp.test(node.value)) {
|
|
532
600
|
node.value = node.value.replace(regExp, '');
|
|
@@ -541,8 +609,8 @@
|
|
|
541
609
|
} while (node = node.next);
|
|
542
610
|
}
|
|
543
611
|
return true;
|
|
544
|
-
}
|
|
545
|
-
function
|
|
612
|
+
};
|
|
613
|
+
var removeIgnoredNodes = function (node) {
|
|
546
614
|
if (node._listIgnore) {
|
|
547
615
|
node.remove();
|
|
548
616
|
return;
|
|
@@ -552,8 +620,8 @@
|
|
|
552
620
|
removeIgnoredNodes(node);
|
|
553
621
|
} while (node = node.next);
|
|
554
622
|
}
|
|
555
|
-
}
|
|
556
|
-
function
|
|
623
|
+
};
|
|
624
|
+
var convertParagraphToLi = function (paragraphNode, listName, start) {
|
|
557
625
|
var level = paragraphNode._listLevel || lastLevel;
|
|
558
626
|
if (level !== lastLevel) {
|
|
559
627
|
if (level < lastLevel) {
|
|
@@ -567,7 +635,7 @@
|
|
|
567
635
|
}
|
|
568
636
|
if (!currentListNode || currentListNode.name !== listName) {
|
|
569
637
|
prevListNode = prevListNode || currentListNode;
|
|
570
|
-
currentListNode = new global$
|
|
638
|
+
currentListNode = new global$2(listName, 1);
|
|
571
639
|
if (start > 1) {
|
|
572
640
|
currentListNode.attr('start', '' + start);
|
|
573
641
|
}
|
|
@@ -584,7 +652,7 @@
|
|
|
584
652
|
trimListStart(paragraphNode, /^\u00a0+/);
|
|
585
653
|
trimListStart(paragraphNode, /^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/);
|
|
586
654
|
trimListStart(paragraphNode, /^\u00a0+/);
|
|
587
|
-
}
|
|
655
|
+
};
|
|
588
656
|
var elements = [];
|
|
589
657
|
var child = node.firstChild;
|
|
590
658
|
while (typeof child !== 'undefined' && child !== null) {
|
|
@@ -623,14 +691,14 @@
|
|
|
623
691
|
currentListNode = null;
|
|
624
692
|
}
|
|
625
693
|
}
|
|
626
|
-
}
|
|
627
|
-
function
|
|
628
|
-
var outputStyles = {}
|
|
694
|
+
};
|
|
695
|
+
var filterStyles = function (editor, validStyles, node, styleValue) {
|
|
696
|
+
var outputStyles = {};
|
|
629
697
|
var styles = editor.dom.parseStyle(styleValue);
|
|
630
|
-
global$
|
|
698
|
+
global$6.each(styles, function (value, name) {
|
|
631
699
|
switch (name) {
|
|
632
700
|
case 'mso-list':
|
|
633
|
-
matches = /\w+ \w+([0-9]+)/i.exec(styleValue);
|
|
701
|
+
var matches = /\w+ \w+([0-9]+)/i.exec(styleValue);
|
|
634
702
|
if (matches) {
|
|
635
703
|
node._listLevel = parseInt(matches[1], 10);
|
|
636
704
|
}
|
|
@@ -679,25 +747,25 @@
|
|
|
679
747
|
});
|
|
680
748
|
if (/(bold)/i.test(outputStyles['font-weight'])) {
|
|
681
749
|
delete outputStyles['font-weight'];
|
|
682
|
-
node.wrap(new global$
|
|
750
|
+
node.wrap(new global$2('b', 1));
|
|
683
751
|
}
|
|
684
752
|
if (/(italic)/i.test(outputStyles['font-style'])) {
|
|
685
753
|
delete outputStyles['font-style'];
|
|
686
|
-
node.wrap(new global$
|
|
754
|
+
node.wrap(new global$2('i', 1));
|
|
687
755
|
}
|
|
688
|
-
|
|
689
|
-
if (
|
|
690
|
-
return
|
|
756
|
+
var outputStyle = editor.dom.serializeStyle(outputStyles, node.name);
|
|
757
|
+
if (outputStyle) {
|
|
758
|
+
return outputStyle;
|
|
691
759
|
}
|
|
692
760
|
return null;
|
|
693
|
-
}
|
|
761
|
+
};
|
|
694
762
|
var filterWordContent = function (editor, content) {
|
|
695
763
|
var validStyles;
|
|
696
764
|
var retainStyleProperties = getRetainStyleProps(editor);
|
|
697
765
|
if (retainStyleProperties) {
|
|
698
|
-
validStyles = global$
|
|
766
|
+
validStyles = global$6.makeMap(retainStyleProperties.split(/[, ]/));
|
|
699
767
|
}
|
|
700
|
-
content = filter
|
|
768
|
+
content = filter(content, [
|
|
701
769
|
/<br class="?Apple-interchange-newline"?>/gi,
|
|
702
770
|
/<b[^>]+id="?docs-internal-[^>]*>/gi,
|
|
703
771
|
/<!--[\s\S]+?-->/gi,
|
|
@@ -718,11 +786,11 @@
|
|
|
718
786
|
]
|
|
719
787
|
]);
|
|
720
788
|
var validElements = getWordValidElements(editor);
|
|
721
|
-
var schema = global$
|
|
789
|
+
var schema = global$1({
|
|
722
790
|
valid_elements: validElements,
|
|
723
791
|
valid_children: '-li[p]'
|
|
724
792
|
});
|
|
725
|
-
global$
|
|
793
|
+
global$6.each(schema.elements, function (rule) {
|
|
726
794
|
if (!rule.attributes.class) {
|
|
727
795
|
rule.attributes.class = {};
|
|
728
796
|
rule.attributesOrder.push('class');
|
|
@@ -732,7 +800,7 @@
|
|
|
732
800
|
rule.attributesOrder.push('style');
|
|
733
801
|
}
|
|
734
802
|
});
|
|
735
|
-
var domParser = global$
|
|
803
|
+
var domParser = global$4({}, schema);
|
|
736
804
|
domParser.addAttributeFilter('style', function (nodes) {
|
|
737
805
|
var i = nodes.length, node;
|
|
738
806
|
while (i--) {
|
|
@@ -794,25 +862,25 @@
|
|
|
794
862
|
if (shouldConvertWordFakeLists(editor)) {
|
|
795
863
|
convertFakeListsToProperLists(rootNode);
|
|
796
864
|
}
|
|
797
|
-
content = global$
|
|
865
|
+
content = global$3({ validate: getValidate(editor) }, schema).serialize(rootNode);
|
|
798
866
|
return content;
|
|
799
867
|
};
|
|
800
|
-
var preProcess = function (editor, content) {
|
|
868
|
+
var preProcess$1 = function (editor, content) {
|
|
801
869
|
return shouldUseDefaultFilters(editor) ? filterWordContent(editor, content) : content;
|
|
802
870
|
};
|
|
803
871
|
|
|
804
|
-
var preProcess
|
|
805
|
-
var parser = global$
|
|
872
|
+
var preProcess = function (editor, html) {
|
|
873
|
+
var parser = global$4({}, editor.schema);
|
|
806
874
|
parser.addNodeFilter('meta', function (nodes) {
|
|
807
|
-
global$
|
|
808
|
-
|
|
875
|
+
global$6.each(nodes, function (node) {
|
|
876
|
+
node.remove();
|
|
809
877
|
});
|
|
810
878
|
});
|
|
811
879
|
var fragment = parser.parse(html, {
|
|
812
880
|
forced_root_block: false,
|
|
813
881
|
isRootContent: true
|
|
814
882
|
});
|
|
815
|
-
return global$
|
|
883
|
+
return global$3({ validate: getValidate(editor) }, editor.schema).serialize(fragment);
|
|
816
884
|
};
|
|
817
885
|
var processResult = function (content, cancelled) {
|
|
818
886
|
return {
|
|
@@ -827,7 +895,7 @@
|
|
|
827
895
|
};
|
|
828
896
|
var filterContent = function (editor, content, internal, isWordHtml) {
|
|
829
897
|
var preProcessArgs = firePastePreProcess(editor, content, internal, isWordHtml);
|
|
830
|
-
var filteredContent = preProcess
|
|
898
|
+
var filteredContent = preProcess(editor, preProcessArgs.content);
|
|
831
899
|
if (editor.hasEventListeners('PastePostProcess') && !preProcessArgs.isDefaultPrevented()) {
|
|
832
900
|
return postProcessFilter(editor, filteredContent, internal, isWordHtml);
|
|
833
901
|
} else {
|
|
@@ -836,11 +904,11 @@
|
|
|
836
904
|
};
|
|
837
905
|
var process = function (editor, html, internal) {
|
|
838
906
|
var isWordHtml = isWordContent(html);
|
|
839
|
-
var content = isWordHtml ? preProcess(editor, html) : html;
|
|
907
|
+
var content = isWordHtml ? preProcess$1(editor, html) : html;
|
|
840
908
|
return filterContent(editor, content, internal, isWordHtml);
|
|
841
909
|
};
|
|
842
910
|
|
|
843
|
-
var pasteHtml = function (editor, html) {
|
|
911
|
+
var pasteHtml$1 = function (editor, html) {
|
|
844
912
|
editor.insertContent(html, {
|
|
845
913
|
merge: shouldMergeFormats(editor),
|
|
846
914
|
paste: true
|
|
@@ -850,8 +918,10 @@
|
|
|
850
918
|
var isAbsoluteUrl = function (url) {
|
|
851
919
|
return /^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(url);
|
|
852
920
|
};
|
|
853
|
-
var isImageUrl = function (url) {
|
|
854
|
-
return isAbsoluteUrl(url) &&
|
|
921
|
+
var isImageUrl = function (editor, url) {
|
|
922
|
+
return isAbsoluteUrl(url) && exists(getAllowedImageFileTypes(editor), function (type) {
|
|
923
|
+
return endsWith(url.toLowerCase(), '.' + type.toLowerCase());
|
|
924
|
+
});
|
|
855
925
|
};
|
|
856
926
|
var createImage = function (editor, url, pasteHtmlFn) {
|
|
857
927
|
editor.undoManager.extra(function () {
|
|
@@ -873,29 +943,25 @@
|
|
|
873
943
|
return editor.selection.isCollapsed() === false && isAbsoluteUrl(html) ? createLink(editor, html, pasteHtmlFn) : false;
|
|
874
944
|
};
|
|
875
945
|
var insertImage = function (editor, html, pasteHtmlFn) {
|
|
876
|
-
return isImageUrl(html) ? createImage(editor, html, pasteHtmlFn) : false;
|
|
946
|
+
return isImageUrl(editor, html) ? createImage(editor, html, pasteHtmlFn) : false;
|
|
877
947
|
};
|
|
878
948
|
var smartInsertContent = function (editor, html) {
|
|
879
|
-
global$
|
|
949
|
+
global$6.each([
|
|
880
950
|
linkSelection,
|
|
881
951
|
insertImage,
|
|
882
|
-
pasteHtml
|
|
952
|
+
pasteHtml$1
|
|
883
953
|
], function (action) {
|
|
884
|
-
return action(editor, html, pasteHtml) !== true;
|
|
954
|
+
return action(editor, html, pasteHtml$1) !== true;
|
|
885
955
|
});
|
|
886
956
|
};
|
|
887
957
|
var insertContent = function (editor, html, pasteAsText) {
|
|
888
958
|
if (pasteAsText || isSmartPasteEnabled(editor) === false) {
|
|
889
|
-
pasteHtml(editor, html);
|
|
959
|
+
pasteHtml$1(editor, html);
|
|
890
960
|
} else {
|
|
891
961
|
smartInsertContent(editor, html);
|
|
892
962
|
}
|
|
893
963
|
};
|
|
894
964
|
|
|
895
|
-
var repeat = function (s, count) {
|
|
896
|
-
return count <= 0 ? '' : new Array(count + 1).join(s);
|
|
897
|
-
};
|
|
898
|
-
|
|
899
965
|
var isCollapsibleWhitespace = function (c) {
|
|
900
966
|
return ' \f\t\x0B'.indexOf(c) !== -1;
|
|
901
967
|
};
|
|
@@ -940,7 +1006,7 @@
|
|
|
940
1006
|
insertContent(editor, args.content, pasteAsText);
|
|
941
1007
|
}
|
|
942
1008
|
};
|
|
943
|
-
var pasteHtml
|
|
1009
|
+
var pasteHtml = function (editor, html, internalFlag) {
|
|
944
1010
|
var internal = internalFlag ? internalFlag : isMarked(html);
|
|
945
1011
|
doPaste(editor, unmark(html), internal, false);
|
|
946
1012
|
};
|
|
@@ -1003,38 +1069,44 @@
|
|
|
1003
1069
|
return filter ? filter(imgElm) : true;
|
|
1004
1070
|
};
|
|
1005
1071
|
var extractFilename = function (editor, str) {
|
|
1006
|
-
var m = str.match(/([\s\S]+?)
|
|
1007
|
-
return m ? editor.dom.encode(m[1]) : null;
|
|
1072
|
+
var m = str.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);
|
|
1073
|
+
return isNonNullable(m) ? editor.dom.encode(m[1]) : null;
|
|
1008
1074
|
};
|
|
1009
1075
|
var uniqueId = createIdGenerator('mceclip');
|
|
1010
1076
|
var pasteImage = function (editor, imageItem) {
|
|
1011
1077
|
var _a = parseDataUri(imageItem.uri), base64 = _a.data, type = _a.type;
|
|
1012
1078
|
var id = uniqueId();
|
|
1013
|
-
var
|
|
1014
|
-
var img = new
|
|
1079
|
+
var file = imageItem.blob;
|
|
1080
|
+
var img = new Image();
|
|
1015
1081
|
img.src = imageItem.uri;
|
|
1016
1082
|
if (isValidDataUriImage(editor, img)) {
|
|
1017
1083
|
var blobCache = editor.editorUpload.blobCache;
|
|
1018
1084
|
var blobInfo = void 0;
|
|
1019
1085
|
var existingBlobInfo = blobCache.getByData(base64, type);
|
|
1020
1086
|
if (!existingBlobInfo) {
|
|
1021
|
-
|
|
1087
|
+
var useFileName = getImagesReuseFilename(editor) && isNonNullable(file.name);
|
|
1088
|
+
var name_1 = useFileName ? extractFilename(editor, file.name) : id;
|
|
1089
|
+
var filename = useFileName ? file.name : undefined;
|
|
1090
|
+
blobInfo = blobCache.create(id, file, base64, name_1, filename);
|
|
1022
1091
|
blobCache.add(blobInfo);
|
|
1023
1092
|
} else {
|
|
1024
1093
|
blobInfo = existingBlobInfo;
|
|
1025
1094
|
}
|
|
1026
|
-
pasteHtml
|
|
1095
|
+
pasteHtml(editor, '<img src="' + blobInfo.blobUri() + '">', false);
|
|
1027
1096
|
} else {
|
|
1028
|
-
pasteHtml
|
|
1097
|
+
pasteHtml(editor, '<img src="' + imageItem.uri + '">', false);
|
|
1029
1098
|
}
|
|
1030
1099
|
};
|
|
1031
1100
|
var isClipboardEvent = function (event) {
|
|
1032
1101
|
return event.type === 'paste';
|
|
1033
1102
|
};
|
|
1034
|
-
var
|
|
1035
|
-
return
|
|
1036
|
-
|
|
1037
|
-
|
|
1103
|
+
var isDataTransferItem = function (item) {
|
|
1104
|
+
return isNonNullable(item.getAsFile);
|
|
1105
|
+
};
|
|
1106
|
+
var readFilesAsDataUris = function (items) {
|
|
1107
|
+
return global$8.all(map(items, function (item) {
|
|
1108
|
+
return new global$8(function (resolve) {
|
|
1109
|
+
var blob = isDataTransferItem(item) ? item.getAsFile() : item;
|
|
1038
1110
|
var reader = new window.FileReader();
|
|
1039
1111
|
reader.onload = function () {
|
|
1040
1112
|
resolve({
|
|
@@ -1046,27 +1118,32 @@
|
|
|
1046
1118
|
});
|
|
1047
1119
|
}));
|
|
1048
1120
|
};
|
|
1049
|
-
var
|
|
1050
|
-
var
|
|
1051
|
-
|
|
1121
|
+
var isImage = function (editor) {
|
|
1122
|
+
var allowedExtensions = getAllowedImageFileTypes(editor);
|
|
1123
|
+
return function (file) {
|
|
1124
|
+
return startsWith(file.type, 'image/') && exists(allowedExtensions, function (extension) {
|
|
1125
|
+
return getImageMimeType(extension) === file.type;
|
|
1126
|
+
});
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
var getImagesFromDataTransfer = function (editor, dataTransfer) {
|
|
1130
|
+
var items = dataTransfer.items ? bind(from(dataTransfer.items), function (item) {
|
|
1131
|
+
return item.kind === 'file' ? [item.getAsFile()] : [];
|
|
1052
1132
|
}) : [];
|
|
1053
|
-
var files = dataTransfer.files ? from
|
|
1054
|
-
|
|
1055
|
-
return /^image\/(jpeg|png|gif|bmp)$/.test(file.type);
|
|
1056
|
-
});
|
|
1057
|
-
return images;
|
|
1133
|
+
var files = dataTransfer.files ? from(dataTransfer.files) : [];
|
|
1134
|
+
return filter$1(items.length > 0 ? items : files, isImage(editor));
|
|
1058
1135
|
};
|
|
1059
1136
|
var pasteImageData = function (editor, e, rng) {
|
|
1060
1137
|
var dataTransfer = isClipboardEvent(e) ? e.clipboardData : e.dataTransfer;
|
|
1061
1138
|
if (getPasteDataImages(editor) && dataTransfer) {
|
|
1062
|
-
var images = getImagesFromDataTransfer(dataTransfer);
|
|
1139
|
+
var images = getImagesFromDataTransfer(editor, dataTransfer);
|
|
1063
1140
|
if (images.length > 0) {
|
|
1064
1141
|
e.preventDefault();
|
|
1065
|
-
|
|
1142
|
+
readFilesAsDataUris(images).then(function (fileResults) {
|
|
1066
1143
|
if (rng) {
|
|
1067
1144
|
editor.selection.setRng(rng);
|
|
1068
1145
|
}
|
|
1069
|
-
each(
|
|
1146
|
+
each(fileResults, function (result) {
|
|
1070
1147
|
pasteImage(editor, result);
|
|
1071
1148
|
});
|
|
1072
1149
|
});
|
|
@@ -1077,31 +1154,31 @@
|
|
|
1077
1154
|
};
|
|
1078
1155
|
var isBrokenAndroidClipboardEvent = function (e) {
|
|
1079
1156
|
var clipboardData = e.clipboardData;
|
|
1080
|
-
return
|
|
1157
|
+
return navigator.userAgent.indexOf('Android') !== -1 && clipboardData && clipboardData.items && clipboardData.items.length === 0;
|
|
1081
1158
|
};
|
|
1082
1159
|
var isKeyboardPasteEvent = function (e) {
|
|
1083
|
-
return global$
|
|
1160
|
+
return global$7.metaKeyPressed(e) && e.keyCode === 86 || e.shiftKey && e.keyCode === 45;
|
|
1084
1161
|
};
|
|
1085
1162
|
var registerEventHandlers = function (editor, pasteBin, pasteFormat) {
|
|
1086
1163
|
var keyboardPasteEvent = value();
|
|
1164
|
+
var keyboardPastePressed = value();
|
|
1087
1165
|
var keyboardPastePlainTextState;
|
|
1166
|
+
editor.on('keyup', keyboardPastePressed.clear);
|
|
1088
1167
|
editor.on('keydown', function (e) {
|
|
1089
|
-
function
|
|
1168
|
+
var removePasteBinOnKeyUp = function (e) {
|
|
1090
1169
|
if (isKeyboardPasteEvent(e) && !e.isDefaultPrevented()) {
|
|
1091
1170
|
pasteBin.remove();
|
|
1092
1171
|
}
|
|
1093
|
-
}
|
|
1172
|
+
};
|
|
1094
1173
|
if (isKeyboardPasteEvent(e) && !e.isDefaultPrevented()) {
|
|
1095
1174
|
keyboardPastePlainTextState = e.shiftKey && e.keyCode === 86;
|
|
1096
|
-
if (keyboardPastePlainTextState && global$
|
|
1175
|
+
if (keyboardPastePlainTextState && global$a.webkit && navigator.userAgent.indexOf('Version/') !== -1) {
|
|
1097
1176
|
return;
|
|
1098
1177
|
}
|
|
1099
1178
|
e.stopImmediatePropagation();
|
|
1100
1179
|
keyboardPasteEvent.set(e);
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}, 100);
|
|
1104
|
-
if (global$1.ie && keyboardPastePlainTextState) {
|
|
1180
|
+
keyboardPastePressed.set(true);
|
|
1181
|
+
if (global$a.ie && keyboardPastePlainTextState) {
|
|
1105
1182
|
e.preventDefault();
|
|
1106
1183
|
firePaste(editor, true);
|
|
1107
1184
|
return;
|
|
@@ -1114,7 +1191,7 @@
|
|
|
1114
1191
|
});
|
|
1115
1192
|
}
|
|
1116
1193
|
});
|
|
1117
|
-
function
|
|
1194
|
+
var insertClipboardContent = function (editor, clipboardContent, isKeyBoardPaste, plainTextMode, internal) {
|
|
1118
1195
|
var content;
|
|
1119
1196
|
if (hasContentType(clipboardContent, 'text/html')) {
|
|
1120
1197
|
content = clipboardContent['text/html'];
|
|
@@ -1128,11 +1205,11 @@
|
|
|
1128
1205
|
content = trimHtml(content);
|
|
1129
1206
|
pasteBin.remove();
|
|
1130
1207
|
var isPlainTextHtml = internal === false && isPlainText(content);
|
|
1131
|
-
var
|
|
1132
|
-
if (!content.length || isPlainTextHtml && !
|
|
1208
|
+
var isAbsoluteUrl$1 = isAbsoluteUrl(content);
|
|
1209
|
+
if (!content.length || isPlainTextHtml && !isAbsoluteUrl$1) {
|
|
1133
1210
|
plainTextMode = true;
|
|
1134
1211
|
}
|
|
1135
|
-
if (plainTextMode ||
|
|
1212
|
+
if (plainTextMode || isAbsoluteUrl$1) {
|
|
1136
1213
|
if (hasContentType(clipboardContent, 'text/plain') && isPlainTextHtml) {
|
|
1137
1214
|
content = clipboardContent['text/plain'];
|
|
1138
1215
|
} else {
|
|
@@ -1148,14 +1225,17 @@
|
|
|
1148
1225
|
if (plainTextMode) {
|
|
1149
1226
|
pasteText(editor, content);
|
|
1150
1227
|
} else {
|
|
1151
|
-
pasteHtml
|
|
1228
|
+
pasteHtml(editor, content, internal);
|
|
1152
1229
|
}
|
|
1153
|
-
}
|
|
1230
|
+
};
|
|
1154
1231
|
var getLastRng = function () {
|
|
1155
1232
|
return pasteBin.getLastRng() || editor.selection.getRng();
|
|
1156
1233
|
};
|
|
1157
1234
|
editor.on('paste', function (e) {
|
|
1158
|
-
var
|
|
1235
|
+
var isKeyboardPaste = keyboardPasteEvent.isSet() || keyboardPastePressed.isSet();
|
|
1236
|
+
if (isKeyboardPaste) {
|
|
1237
|
+
keyboardPasteEvent.clear();
|
|
1238
|
+
}
|
|
1159
1239
|
var clipboardContent = getClipboardContent(editor, e);
|
|
1160
1240
|
var plainTextMode = pasteFormat.get() === 'text' || keyboardPastePlainTextState;
|
|
1161
1241
|
var internal = hasContentType(clipboardContent, internalHtmlMime());
|
|
@@ -1168,10 +1248,10 @@
|
|
|
1168
1248
|
pasteBin.remove();
|
|
1169
1249
|
return;
|
|
1170
1250
|
}
|
|
1171
|
-
if (!
|
|
1251
|
+
if (!isKeyboardPaste) {
|
|
1172
1252
|
e.preventDefault();
|
|
1173
1253
|
}
|
|
1174
|
-
if (global$
|
|
1254
|
+
if (global$a.ie && (!isKeyboardPaste || e.ieFake) && !hasContentType(clipboardContent, 'text/html')) {
|
|
1175
1255
|
pasteBin.create();
|
|
1176
1256
|
editor.dom.bind(pasteBin.getEl(), 'paste', function (e) {
|
|
1177
1257
|
e.stopPropagation();
|
|
@@ -1184,10 +1264,10 @@
|
|
|
1184
1264
|
if (!internal) {
|
|
1185
1265
|
internal = isMarked(clipboardContent['text/html']);
|
|
1186
1266
|
}
|
|
1187
|
-
insertClipboardContent(clipboardContent,
|
|
1267
|
+
insertClipboardContent(editor, clipboardContent, isKeyboardPaste, plainTextMode, internal);
|
|
1188
1268
|
} else {
|
|
1189
|
-
global$
|
|
1190
|
-
insertClipboardContent(clipboardContent,
|
|
1269
|
+
global$9.setEditorTimeout(editor, function () {
|
|
1270
|
+
insertClipboardContent(editor, clipboardContent, isKeyboardPaste, plainTextMode, internal);
|
|
1191
1271
|
}, 0);
|
|
1192
1272
|
}
|
|
1193
1273
|
});
|
|
@@ -1200,7 +1280,7 @@
|
|
|
1200
1280
|
return args.data && args.data.paste === true;
|
|
1201
1281
|
};
|
|
1202
1282
|
var remove = function (node) {
|
|
1203
|
-
if (!node.attr('data-mce-object') && src !== global$
|
|
1283
|
+
if (!node.attr('data-mce-object') && src !== global$a.transparentSrc) {
|
|
1204
1284
|
node.remove();
|
|
1205
1285
|
}
|
|
1206
1286
|
};
|
|
@@ -1228,7 +1308,7 @@
|
|
|
1228
1308
|
};
|
|
1229
1309
|
|
|
1230
1310
|
var getPasteBinParent = function (editor) {
|
|
1231
|
-
return global$
|
|
1311
|
+
return global$a.ie && editor.inline ? document.body : editor.getBody();
|
|
1232
1312
|
};
|
|
1233
1313
|
var isExternalPasteBin = function (editor) {
|
|
1234
1314
|
return getPasteBinParent(editor) !== editor.getBody();
|
|
@@ -1252,7 +1332,7 @@
|
|
|
1252
1332
|
'data-mce-bogus': 'all',
|
|
1253
1333
|
'style': 'position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0'
|
|
1254
1334
|
}, pasteBinDefaultContent);
|
|
1255
|
-
if (global$
|
|
1335
|
+
if (global$a.ie || global$a.gecko) {
|
|
1256
1336
|
dom.setStyle(pasteBinElm, 'left', dom.getStyle(body, 'direction', true) === 'rtl' ? 65535 : -65535);
|
|
1257
1337
|
}
|
|
1258
1338
|
dom.bind(pasteBinElm, 'beforedeactivate focusin focusout', function (e) {
|
|
@@ -1284,11 +1364,11 @@
|
|
|
1284
1364
|
toElm.appendChild(fromElm);
|
|
1285
1365
|
editor.dom.remove(fromElm, true);
|
|
1286
1366
|
};
|
|
1287
|
-
var pasteBinClones = global$
|
|
1367
|
+
var pasteBinClones = global$6.grep(getPasteBinParent(editor).childNodes, function (elm) {
|
|
1288
1368
|
return elm.id === 'mcepastebin';
|
|
1289
1369
|
});
|
|
1290
1370
|
var pasteBinElm = pasteBinClones.shift();
|
|
1291
|
-
global$
|
|
1371
|
+
global$6.each(pasteBinClones, function (pasteBinClone) {
|
|
1292
1372
|
copyAndRemove(pasteBinElm, pasteBinClone);
|
|
1293
1373
|
});
|
|
1294
1374
|
var dirtyWrappers = editor.dom.select('div[id=mcepastebin]', pasteBinElm);
|
|
@@ -1299,9 +1379,6 @@
|
|
|
1299
1379
|
}
|
|
1300
1380
|
return pasteBinElm ? pasteBinElm.innerHTML : '';
|
|
1301
1381
|
};
|
|
1302
|
-
var getLastRng = function (lastRng) {
|
|
1303
|
-
return lastRng.get();
|
|
1304
|
-
};
|
|
1305
1382
|
var isDefaultContent = function (pasteBinDefaultContent, content) {
|
|
1306
1383
|
return content === pasteBinDefaultContent;
|
|
1307
1384
|
};
|
|
@@ -1328,9 +1405,7 @@
|
|
|
1328
1405
|
getHtml: function () {
|
|
1329
1406
|
return getHtml(editor);
|
|
1330
1407
|
},
|
|
1331
|
-
getLastRng:
|
|
1332
|
-
return getLastRng(lastRng);
|
|
1333
|
-
},
|
|
1408
|
+
getLastRng: lastRng.get,
|
|
1334
1409
|
isDefault: function () {
|
|
1335
1410
|
return isDefault(editor, pasteBinDefaultContent);
|
|
1336
1411
|
},
|
|
@@ -1348,7 +1423,7 @@
|
|
|
1348
1423
|
return {
|
|
1349
1424
|
pasteFormat: pasteFormat,
|
|
1350
1425
|
pasteHtml: function (html, internalFlag) {
|
|
1351
|
-
return pasteHtml
|
|
1426
|
+
return pasteHtml(editor, html, internalFlag);
|
|
1352
1427
|
},
|
|
1353
1428
|
pasteText: function (text) {
|
|
1354
1429
|
return pasteText(editor, text);
|
|
@@ -1362,8 +1437,33 @@
|
|
|
1362
1437
|
};
|
|
1363
1438
|
};
|
|
1364
1439
|
|
|
1440
|
+
var togglePlainTextPaste = function (editor, clipboard) {
|
|
1441
|
+
if (clipboard.pasteFormat.get() === 'text') {
|
|
1442
|
+
clipboard.pasteFormat.set('html');
|
|
1443
|
+
firePastePlainTextToggle(editor, false);
|
|
1444
|
+
} else {
|
|
1445
|
+
clipboard.pasteFormat.set('text');
|
|
1446
|
+
firePastePlainTextToggle(editor, true);
|
|
1447
|
+
}
|
|
1448
|
+
editor.focus();
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
var register$2 = function (editor, clipboard) {
|
|
1452
|
+
editor.addCommand('mceTogglePlainTextPaste', function () {
|
|
1453
|
+
togglePlainTextPaste(editor, clipboard);
|
|
1454
|
+
});
|
|
1455
|
+
editor.addCommand('mceInsertClipboardContent', function (ui, value) {
|
|
1456
|
+
if (value.content) {
|
|
1457
|
+
clipboard.pasteHtml(value.content, value.internal);
|
|
1458
|
+
}
|
|
1459
|
+
if (value.text) {
|
|
1460
|
+
clipboard.pasteText(value.text);
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1365
1465
|
var hasWorkingClipboardApi = function (clipboardData) {
|
|
1366
|
-
return global$
|
|
1466
|
+
return global$a.iOS === false && typeof (clipboardData === null || clipboardData === void 0 ? void 0 : clipboardData.setData) === 'function';
|
|
1367
1467
|
};
|
|
1368
1468
|
var setHtml5Clipboard = function (clipboardData, html, text) {
|
|
1369
1469
|
if (hasWorkingClipboardApi(clipboardData)) {
|
|
@@ -1410,7 +1510,7 @@
|
|
|
1410
1510
|
var offscreenRange = editor.dom.createRng();
|
|
1411
1511
|
offscreenRange.selectNodeContents(inner);
|
|
1412
1512
|
editor.selection.setRng(offscreenRange);
|
|
1413
|
-
global$
|
|
1513
|
+
global$9.setTimeout(function () {
|
|
1414
1514
|
editor.selection.setRng(range);
|
|
1415
1515
|
outer.parentNode.removeChild(outer);
|
|
1416
1516
|
done();
|
|
@@ -1433,9 +1533,9 @@
|
|
|
1433
1533
|
return function (evt) {
|
|
1434
1534
|
if (hasSelectedContent(editor)) {
|
|
1435
1535
|
setClipboardData(evt, getData(editor), fallback(editor), function () {
|
|
1436
|
-
if (global$
|
|
1536
|
+
if (global$a.browser.isChrome() || global$a.browser.isFirefox()) {
|
|
1437
1537
|
var rng_1 = editor.selection.getRng();
|
|
1438
|
-
global$
|
|
1538
|
+
global$9.setEditorTimeout(editor, function () {
|
|
1439
1539
|
editor.selection.setRng(rng_1);
|
|
1440
1540
|
editor.execCommand('Delete');
|
|
1441
1541
|
}, 0);
|
|
@@ -1449,8 +1549,7 @@
|
|
|
1449
1549
|
var copy = function (editor) {
|
|
1450
1550
|
return function (evt) {
|
|
1451
1551
|
if (hasSelectedContent(editor)) {
|
|
1452
|
-
setClipboardData(evt, getData(editor), fallback(editor),
|
|
1453
|
-
});
|
|
1552
|
+
setClipboardData(evt, getData(editor), fallback(editor), noop);
|
|
1454
1553
|
}
|
|
1455
1554
|
};
|
|
1456
1555
|
};
|
|
@@ -1459,10 +1558,10 @@
|
|
|
1459
1558
|
editor.on('copy', copy(editor));
|
|
1460
1559
|
};
|
|
1461
1560
|
|
|
1462
|
-
var global
|
|
1561
|
+
var global = tinymce.util.Tools.resolve('tinymce.dom.RangeUtils');
|
|
1463
1562
|
|
|
1464
1563
|
var getCaretRangeFromEvent = function (editor, e) {
|
|
1465
|
-
return global
|
|
1564
|
+
return global.getCaretRangeFromPoint(e.clientX, e.clientY, editor.getDoc());
|
|
1466
1565
|
};
|
|
1467
1566
|
var isPlainTextFileUrl = function (content) {
|
|
1468
1567
|
var plainTextContent = content['text/plain'];
|
|
@@ -1472,7 +1571,7 @@
|
|
|
1472
1571
|
editor.focus();
|
|
1473
1572
|
editor.selection.setRng(rng);
|
|
1474
1573
|
};
|
|
1475
|
-
var setup = function (editor, clipboard, draggingInternallyState) {
|
|
1574
|
+
var setup$2 = function (editor, clipboard, draggingInternallyState) {
|
|
1476
1575
|
if (shouldBlockDrop(editor)) {
|
|
1477
1576
|
editor.on('dragend dragover draggesture dragdrop drop drag', function (e) {
|
|
1478
1577
|
e.preventDefault();
|
|
@@ -1501,7 +1600,7 @@
|
|
|
1501
1600
|
var content_1 = dropContent['mce-internal'] || dropContent['text/html'] || dropContent['text/plain'];
|
|
1502
1601
|
if (content_1) {
|
|
1503
1602
|
e.preventDefault();
|
|
1504
|
-
global$
|
|
1603
|
+
global$9.setEditorTimeout(editor, function () {
|
|
1505
1604
|
editor.undoManager.transact(function () {
|
|
1506
1605
|
if (dropContent['mce-internal']) {
|
|
1507
1606
|
editor.execCommand('Delete');
|
|
@@ -1548,30 +1647,30 @@
|
|
|
1548
1647
|
}
|
|
1549
1648
|
};
|
|
1550
1649
|
|
|
1551
|
-
function
|
|
1650
|
+
var addPreProcessFilter = function (editor, filterFunc) {
|
|
1552
1651
|
editor.on('PastePreProcess', function (e) {
|
|
1553
1652
|
e.content = filterFunc(editor, e.content, e.internal, e.wordContent);
|
|
1554
1653
|
});
|
|
1555
|
-
}
|
|
1556
|
-
function
|
|
1654
|
+
};
|
|
1655
|
+
var addPostProcessFilter = function (editor, filterFunc) {
|
|
1557
1656
|
editor.on('PastePostProcess', function (e) {
|
|
1558
1657
|
filterFunc(editor, e.node);
|
|
1559
1658
|
});
|
|
1560
|
-
}
|
|
1561
|
-
function
|
|
1659
|
+
};
|
|
1660
|
+
var removeExplorerBrElementsAfterBlocks = function (editor, html) {
|
|
1562
1661
|
if (!isWordContent(html)) {
|
|
1563
1662
|
return html;
|
|
1564
1663
|
}
|
|
1565
1664
|
var blockElements = [];
|
|
1566
|
-
global$
|
|
1665
|
+
global$6.each(editor.schema.getBlockElements(), function (block, blockName) {
|
|
1567
1666
|
blockElements.push(blockName);
|
|
1568
1667
|
});
|
|
1569
1668
|
var explorerBlocksRegExp = new RegExp('(?:<br> [\\s\\r\\n]+|<br>)*(<\\/?(' + blockElements.join('|') + ')[^>]*>)(?:<br> [\\s\\r\\n]+|<br>)*', 'g');
|
|
1570
|
-
html = filter
|
|
1669
|
+
html = filter(html, [[
|
|
1571
1670
|
explorerBlocksRegExp,
|
|
1572
1671
|
'$1'
|
|
1573
1672
|
]]);
|
|
1574
|
-
html = filter
|
|
1673
|
+
html = filter(html, [
|
|
1575
1674
|
[
|
|
1576
1675
|
/<br><br>/g,
|
|
1577
1676
|
'<BR><BR>'
|
|
@@ -1586,8 +1685,8 @@
|
|
|
1586
1685
|
]
|
|
1587
1686
|
]);
|
|
1588
1687
|
return html;
|
|
1589
|
-
}
|
|
1590
|
-
function
|
|
1688
|
+
};
|
|
1689
|
+
var removeWebKitStyles = function (editor, content, internal, isWordHtml) {
|
|
1591
1690
|
if (isWordHtml || internal) {
|
|
1592
1691
|
return content;
|
|
1593
1692
|
}
|
|
@@ -1617,9 +1716,9 @@
|
|
|
1617
1716
|
outputStyles[webKitStyles[i]] = inputValue;
|
|
1618
1717
|
}
|
|
1619
1718
|
}
|
|
1620
|
-
|
|
1621
|
-
if (
|
|
1622
|
-
return before + ' style="' +
|
|
1719
|
+
var outputStyle = dom_1.serializeStyle(outputStyles, 'span');
|
|
1720
|
+
if (outputStyle) {
|
|
1721
|
+
return before + ' style="' + outputStyle + '"' + after;
|
|
1623
1722
|
}
|
|
1624
1723
|
return before + after;
|
|
1625
1724
|
});
|
|
@@ -1630,17 +1729,17 @@
|
|
|
1630
1729
|
return before + ' style="' + value + '"' + after;
|
|
1631
1730
|
});
|
|
1632
1731
|
return content;
|
|
1633
|
-
}
|
|
1634
|
-
function
|
|
1732
|
+
};
|
|
1733
|
+
var removeUnderlineAndFontInAnchor = function (editor, root) {
|
|
1635
1734
|
editor.$('a', root).find('font,u').each(function (i, node) {
|
|
1636
1735
|
editor.dom.remove(node, true);
|
|
1637
1736
|
});
|
|
1638
|
-
}
|
|
1639
|
-
var setup
|
|
1640
|
-
if (global$
|
|
1737
|
+
};
|
|
1738
|
+
var setup = function (editor) {
|
|
1739
|
+
if (global$a.webkit) {
|
|
1641
1740
|
addPreProcessFilter(editor, removeWebKitStyles);
|
|
1642
1741
|
}
|
|
1643
|
-
if (global$
|
|
1742
|
+
if (global$a.ie) {
|
|
1644
1743
|
addPreProcessFilter(editor, removeExplorerBrElementsAfterBlocks);
|
|
1645
1744
|
addPostProcessFilter(editor, removeUnderlineAndFontInAnchor);
|
|
1646
1745
|
}
|
|
@@ -1658,43 +1757,42 @@
|
|
|
1658
1757
|
};
|
|
1659
1758
|
};
|
|
1660
1759
|
};
|
|
1661
|
-
var register
|
|
1760
|
+
var register = function (editor, clipboard) {
|
|
1761
|
+
var onAction = function () {
|
|
1762
|
+
return editor.execCommand('mceTogglePlainTextPaste');
|
|
1763
|
+
};
|
|
1662
1764
|
editor.ui.registry.addToggleButton('pastetext', {
|
|
1663
1765
|
active: false,
|
|
1664
1766
|
icon: 'paste-text',
|
|
1665
1767
|
tooltip: 'Paste as text',
|
|
1666
|
-
onAction:
|
|
1667
|
-
return editor.execCommand('mceTogglePlainTextPaste');
|
|
1668
|
-
},
|
|
1768
|
+
onAction: onAction,
|
|
1669
1769
|
onSetup: makeSetupHandler(editor, clipboard)
|
|
1670
1770
|
});
|
|
1671
1771
|
editor.ui.registry.addToggleMenuItem('pastetext', {
|
|
1672
1772
|
text: 'Paste as text',
|
|
1673
1773
|
icon: 'paste-text',
|
|
1674
|
-
onAction:
|
|
1675
|
-
return editor.execCommand('mceTogglePlainTextPaste');
|
|
1676
|
-
},
|
|
1774
|
+
onAction: onAction,
|
|
1677
1775
|
onSetup: makeSetupHandler(editor, clipboard)
|
|
1678
1776
|
});
|
|
1679
1777
|
};
|
|
1680
1778
|
|
|
1681
1779
|
function Plugin () {
|
|
1682
|
-
global.add('paste', function (editor) {
|
|
1780
|
+
global$b.add('paste', function (editor) {
|
|
1683
1781
|
if (hasProPlugin(editor) === false) {
|
|
1684
1782
|
var draggingInternallyState = Cell(false);
|
|
1685
1783
|
var pasteFormat = Cell(isPasteAsTextEnabled(editor) ? 'text' : 'html');
|
|
1686
1784
|
var clipboard = Clipboard(editor, pasteFormat);
|
|
1687
|
-
|
|
1688
|
-
register$2(editor, clipboard);
|
|
1785
|
+
setup(editor);
|
|
1689
1786
|
register(editor, clipboard);
|
|
1787
|
+
register$2(editor, clipboard);
|
|
1690
1788
|
setup$1(editor);
|
|
1691
1789
|
register$1(editor);
|
|
1692
|
-
setup(editor, clipboard, draggingInternallyState);
|
|
1693
|
-
return get(clipboard
|
|
1790
|
+
setup$2(editor, clipboard, draggingInternallyState);
|
|
1791
|
+
return get(clipboard);
|
|
1694
1792
|
}
|
|
1695
1793
|
});
|
|
1696
1794
|
}
|
|
1697
1795
|
|
|
1698
1796
|
Plugin();
|
|
1699
1797
|
|
|
1700
|
-
}(
|
|
1798
|
+
}());
|