diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/attachments.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 39315d8f8..f5d2f727b 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -257,7 +257,7 @@ function copyImageFromClipboard(e) { if (!$(e.target).hasClass('wiki-edit')) { return; } var clipboardData = e.clipboardData || e.originalEvent.clipboardData if (!clipboardData) { return; } - if (clipboardData.types.some(function(t){ return /^text/.test(t); })) { return; } + if (clipboardData.types.some(function(t){ return /^text\/plain$/.test(t); })) { return; } var items = clipboardData.items for (var i = 0 ; i < items.length ; i++) { |