mirror of
https://github.com/redmine/redmine.git
synced 2026-01-26 17:30:00 +01:00
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
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user