mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
prevent dragging and dropping text - can be removed later if operation supported via model
This commit is contained in:
parent
0575db24f7
commit
7053e0517c
Notes:
christian
2012-02-27 21:56:56 +00:00
|
@ -46,6 +46,11 @@ ve.es.Surface = function( $container, model ) {
|
||||||
return _this.onMouseDown( e );
|
return _this.onMouseDown( e );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
// Prevent dragging text
|
||||||
|
this.$.bind('dragover drop', function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
this.model.getDocument().on( 'update', function() {
|
this.model.getDocument().on( 'update', function() {
|
||||||
_this.emitUpdate( 25 );
|
_this.emitUpdate( 25 );
|
||||||
|
|
Loading…
Reference in a new issue