Set contenteditable=false for Alien wrappers (both inline and block)

Change-Id: I5fd8fcfd0b6d98b525a75b3818cc77e3aca833c9
This commit is contained in:
Inez Korczynski 2012-05-25 23:36:18 -07:00
parent 1e5e14c2c1
commit e9230968fe
2 changed files with 2 additions and 32 deletions

View file

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

View file

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