Esanders has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/339400 )

Change subject: Allow uploading of dropped Blobs
......................................................................

Allow uploading of dropped Blobs

Previous the media upload panel didn't support this. This
makes Chrome behave he same as Firefox when pasting images
into a document.

Change-Id: I12f190a48ae9b62d4ad2f33b2a4ee546fdf7b354
---
M modules/ve-mw/ui/datatransferhandlers/ve.ui.MWMediaTransferHandler.js
1 file changed, 0 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/00/339400/1

diff --git 
a/modules/ve-mw/ui/datatransferhandlers/ve.ui.MWMediaTransferHandler.js 
b/modules/ve-mw/ui/datatransferhandlers/ve.ui.MWMediaTransferHandler.js
index ea46f3f..556b117 100644
--- a/modules/ve-mw/ui/datatransferhandlers/ve.ui.MWMediaTransferHandler.js
+++ b/modules/ve-mw/ui/datatransferhandlers/ve.ui.MWMediaTransferHandler.js
@@ -36,13 +36,6 @@
 
 ve.ui.MWMediaTransferHandler.static.extensions = [ 'jpg', 'jpeg', 'png', 
'gif', 'svg' ];
 
-ve.ui.MWMediaTransferHandler.static.matchFunction = function ( item ) {
-       var file = item.getAsFile();
-       // If file is null, return true as the data is not available yet from 
the browser.
-       // If file is a non-File (pasted Blob), return false as this is not yet 
supported.
-       return !file || file instanceof File;
-};
-
 /* Methods */
 
 /**

-- 
To view, visit https://gerrit.wikimedia.org/r/339400
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I12f190a48ae9b62d4ad2f33b2a4ee546fdf7b354
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to