mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
Fix that text copied from some applications such as MS Office and LibreOffice is pasted as an image in addition to plain text (#32469, #3816).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@19089 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -255,6 +255,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(t => /^text/.test(t))) { return; }
|
||||
|
||||
var items = clipboardData.items
|
||||
for (var i = 0 ; i < items.length ; i++) {
|
||||
|
||||
Reference in New Issue
Block a user