diff --git a/modules/ve2/ce/nodes/ve.ce.AlienBlockNode.js b/modules/ve2/ce/nodes/ve.ce.AlienBlockNode.js index 02d6d067ed..e9684141ba 100644 --- a/modules/ve2/ce/nodes/ve.ce.AlienBlockNode.js +++ b/modules/ve2/ce/nodes/ve.ce.AlienBlockNode.js @@ -12,27 +12,12 @@ ve.ce.AlienBlockNode = function( model ) { // DOM Changes this.$.addClass( 've-ce-alienBlockNode' ); + this.$.attr( 'contenteditable', false ); // Events this.model.addListenerMethod( this, 'update', 'onUpdate' ); // Intialization - var _this = this; - - /* We might need some of those at some point */ - /* - this.$.on( { - 'mousedown': function() { - _this.$.css( '-webkit-user-select', 'none' ); - }, - 'mouseup': function() { - _this.$.css( '-webkit-user-select', '' ); - }, - } ); - - this.$.attr( 'contenteditable', false ); - */ - this.onUpdate(); }; diff --git a/modules/ve2/ce/nodes/ve.ce.AlienInlineNode.js b/modules/ve2/ce/nodes/ve.ce.AlienInlineNode.js index bb8c5015a5..318857c515 100644 --- a/modules/ve2/ce/nodes/ve.ce.AlienInlineNode.js +++ b/modules/ve2/ce/nodes/ve.ce.AlienInlineNode.js @@ -12,27 +12,12 @@ ve.ce.AlienInlineNode = function( model ) { // DOM Changes this.$.addClass( 've-ce-alienInlineNode' ); + this.$.attr( 'contenteditable', false ); // Events this.model.addListenerMethod( this, 'update', 'onUpdate' ); // Intialization - var _this = this; - - /* We might need some of those at some point */ - /* - this.$.on( { - 'mousedown': function() { - _this.$.css( '-webkit-user-select', 'none' ); - }, - 'mouseup': function() { - _this.$.css( '-webkit-user-select', '' ); - }, - } ); - - this.$.attr( 'contenteditable', false ); - */ - this.onUpdate(); };