r112527 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112526‎ | r112527 | r112528 >
Date:21:56, 27 February 2012
Author:christian
Status:deferred
Tags:
Comment:
prevent dragging and dropping text - can be removed later if operation supported via model
Modified paths:
  • /trunk/extensions/VisualEditor/modules/ve/ce/ve.es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.es.Surface.js
@@ -46,6 +46,11 @@
4747 return _this.onMouseDown( e );
4848 } );
4949
 50+ // Prevent dragging text
 51+ this.$.bind('dragover drop', function(e) {
 52+ e.preventDefault();
 53+ });
 54+
5055 /*
5156 this.model.getDocument().on( 'update', function() {
5257 _this.emitUpdate( 25 );

Status & tagging log