Cscott has uploaded a new change for review.
https://gerrit.wikimedia.org/r/230979
Change subject: Allow drag and drop of links (and subsequent autolinking)
......................................................................
Allow drag and drop of links (and subsequent autolinking)
This extends the set of "string" text types we accept during drag and
drop to include the standard text/uri-list, the mozilla-specific
text/x-moz-url, and the GNOME-specific text/x-url types. Prefer
these all to text/plain, or they'll never be used.
(Autolinking of pasted URLs is done in
I82281a11f63bb6a358b41c1348d7ead5d92c3f65.)
Change-Id: Ie8c24b7391e9c2ab03cf20f1ceb86aa2b1e01b06
---
M src/ce/ve.ce.Surface.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/79/230979/1
diff --git a/src/ce/ve.ce.Surface.js b/src/ce/ve.ce.Surface.js
index 9514a1d..7cf42a1 100644
--- a/src/ce/ve.ce.Surface.js
+++ b/src/ce/ve.ce.Surface.js
@@ -2175,7 +2175,7 @@
ve.ce.Surface.prototype.handleDataTransfer = function ( dataTransfer, isPaste,
targetFragment ) {
var i, l, stringData,
items = [],
- stringTypes = [ 'text/html', 'text/plain' ];
+ stringTypes = [ 'text/x-moz-url', 'text/uri-list',
'text/x-uri', 'text/html', 'text/plain' ];
if ( dataTransfer.items ) {
for ( i = 0, l = dataTransfer.items.length; i < l; i++ ) {
--
To view, visit https://gerrit.wikimedia.org/r/230979
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie8c24b7391e9c2ab03cf20f1ceb86aa2b1e01b06
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits