mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-23 00:41:14 +00: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:
parent
986d487fcd
commit
c1be4e3ec4
@ -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…
x
Reference in New Issue
Block a user