summaryrefslogtreecommitdiff
path: root/static-files/journal/trumbowyg/trumbowyg.pasteimage.min.js
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2017-05-15 20:54:44 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2017-05-15 21:04:41 +0200
commit6a0674dc4ed77245441aaf31e0b102c00b50f8bb (patch)
tree10d257a17b568f653ae3022af8c00821731ca4b7 /static-files/journal/trumbowyg/trumbowyg.pasteimage.min.js
parent2f41dd86c826c3754f49a55a5fd87c5e924417cc (diff)
Use Trumbowyg to edit articles.
This patch also updates jQuery to v3.2.1.
Diffstat (limited to 'static-files/journal/trumbowyg/trumbowyg.pasteimage.min.js')
-rwxr-xr-xstatic-files/journal/trumbowyg/trumbowyg.pasteimage.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static-files/journal/trumbowyg/trumbowyg.pasteimage.min.js b/static-files/journal/trumbowyg/trumbowyg.pasteimage.min.js
new file mode 100755
index 0000000..059b854
--- /dev/null
+++ b/static-files/journal/trumbowyg/trumbowyg.pasteimage.min.js
@@ -0,0 +1 @@
+!function(e){"use strict";e.extend(!0,e.trumbowyg,{plugins:{pasteImage:{init:function(e){e.pasteHandlers.push(function(t){try{for(var a,n=(t.originalEvent||t).clipboardData.items,i=n.length-1;i>=0;i+=1)n[i].type.match(/^image\//)&&(a=new FileReader,a.onloadend=function(t){e.execCmd("insertImage",t.target.result,void 0,!0)},a.readAsDataURL(n[i].getAsFile()))}catch(r){}})}}}})}(jQuery); \ No newline at end of file