prevent dragging and dropping text - can be removed later if operation supported via model

This commit is contained in:
christian 2012-02-27 21:56:56 +00:00
parent 0575db24f7
commit 7053e0517c
Notes: christian 2012-02-27 21:56:56 +00:00

View file

@ -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 );