src/pyams_skin/resources/js/ext/tinymce/dev/plugins/paste/classes/Plugin.min.js
changeset 557 bca7a7e058a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_skin/resources/js/ext/tinymce/dev/plugins/paste/classes/Plugin.min.js	Thu Feb 13 11:43:31 2020 +0100
@@ -0,0 +1,1 @@
+define("tinymce/pasteplugin/Plugin",["tinymce/PluginManager","tinymce/pasteplugin/Clipboard","tinymce/pasteplugin/WordFilter","tinymce/pasteplugin/Quirks"],function(a,e,d,b){var c;a.add("paste",function(i){var g=this,j,h=i.settings;function f(){if(j.pasteFormat=="text"){this.active(false);j.pasteFormat="html"}else{j.pasteFormat="text";this.active(true);if(!c){i.windowManager.alert("Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.");c=true}}}g.clipboard=j=new e(i);g.quirks=new b(i);g.wordFilter=new d(i);if(i.settings.paste_as_text){g.clipboard.pasteFormat="text"}if(h.paste_preprocess){i.on("PastePreProcess",function(k){h.paste_preprocess.call(g,g,k)})}if(h.paste_postprocess){i.on("PastePostProcess",function(k){h.paste_postprocess.call(g,g,k)})}i.addCommand("mceInsertClipboardContent",function(l,k){if(k.content){g.clipboard.pasteHtml(k.content)}if(k.text){g.clipboard.pasteText(k.text)}});if(i.paste_block_drop){i.on("dragend dragover draggesture dragdrop drop drag",function(k){k.preventDefault();k.stopPropagation()})}if(!i.settings.paste_data_images){i.on("drop",function(l){var k=l.dataTransfer;if(k&&k.files&&k.files.length>0){l.preventDefault()}})}i.addButton("pastetext",{icon:"pastetext",tooltip:"Paste as text",onclick:f,active:g.clipboard.pasteFormat=="text"});i.addMenuItem("pastetext",{text:"Paste as text",selectable:true,active:j.pasteFormat,onclick:f})})});
\ No newline at end of file