diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/attachments.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index b856ff415..4a33daf55 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -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++) { |