Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19834
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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++) {