Browse Source

Cannot paste image from clipboard when copying the image from web browsers or some apps (#33639).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19834 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Go MAEDA 4 years ago
parent
commit
c1be4e3ec4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      public/javascripts/attachments.js

+ 1
- 1
public/javascripts/attachments.js View File

@@ -258,7 +258,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++) {

Loading…
Cancel
Save