Remove explicit setting of ce=false on FocusableNodes

FocusableNode already sets ce=false so this is redundant.

Change-Id: I4432dd0a5e5dff3f8e909f2d7c1912f3d69e1b70
This commit is contained in:
Ed Sanders 2015-08-31 17:26:49 +01:00 committed by Jforrester
parent 8502d3ea05
commit b9183540ef
2 changed files with 3 additions and 10 deletions

View file

@ -23,14 +23,10 @@ ve.ce.MWMagicLinkNode = function VeCeMWMagicLinkNode( model, config ) {
ve.ce.FocusableNode.call( this ); ve.ce.FocusableNode.call( this );
// DOM changes // DOM changes
this.$element this.$element.addClass( 've-ce-mwMagicLinkNode' );
.addClass( 've-ce-mwMagicLinkNode' )
// Need CE=false to prevent selection issues
.prop( 'contentEditable', 'false' );
// Add link // Add link
this.$link = $( '<a>' ) this.$link = $( '<a>' ).appendTo( this.$element );
.appendTo( this.$element );
// Events // Events
this.model.connect( this, { update: 'onUpdate' } ); this.model.connect( this, { update: 'onUpdate' } );

View file

@ -23,10 +23,7 @@ ve.ce.MWNumberedExternalLinkNode = function VeCeMWNumberedExternalLinkNode( mode
ve.ce.FocusableNode.call( this ); ve.ce.FocusableNode.call( this );
// DOM changes // DOM changes
this.$element this.$element.addClass( 've-ce-mwNumberedExternalLinkNode' );
.addClass( 've-ce-mwNumberedExternalLinkNode' )
// Need CE=false to prevent selection issues
.prop( 'contentEditable', 'false' );
// Add link // Add link
this.$link = $( '<a>' ) this.$link = $( '<a>' )