From 7053e0517c24fcb4b6b0fc43684fb33f5bcc3ffe Mon Sep 17 00:00:00 2001 From: christian Date: Mon, 27 Feb 2012 21:56:56 +0000 Subject: [PATCH] prevent dragging and dropping text - can be removed later if operation supported via model --- modules/ve/ce/ve.es.Surface.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ve/ce/ve.es.Surface.js b/modules/ve/ce/ve.es.Surface.js index b4b0e39c10..55b27efc1f 100644 --- a/modules/ve/ce/ve.es.Surface.js +++ b/modules/ve/ce/ve.es.Surface.js @@ -46,6 +46,11 @@ ve.es.Surface = function( $container, model ) { return _this.onMouseDown( e ); } ); + // Prevent dragging text + this.$.bind('dragover drop', function(e) { + e.preventDefault(); + }); + /* this.model.getDocument().on( 'update', function() { _this.emitUpdate( 25 );