mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
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:
parent
8502d3ea05
commit
b9183540ef
|
@ -23,14 +23,10 @@ ve.ce.MWMagicLinkNode = function VeCeMWMagicLinkNode( model, config ) {
|
|||
ve.ce.FocusableNode.call( this );
|
||||
|
||||
// DOM changes
|
||||
this.$element
|
||||
.addClass( 've-ce-mwMagicLinkNode' )
|
||||
// Need CE=false to prevent selection issues
|
||||
.prop( 'contentEditable', 'false' );
|
||||
this.$element.addClass( 've-ce-mwMagicLinkNode' );
|
||||
|
||||
// Add link
|
||||
this.$link = $( '<a>' )
|
||||
.appendTo( this.$element );
|
||||
this.$link = $( '<a>' ).appendTo( this.$element );
|
||||
|
||||
// Events
|
||||
this.model.connect( this, { update: 'onUpdate' } );
|
||||
|
|
|
@ -23,10 +23,7 @@ ve.ce.MWNumberedExternalLinkNode = function VeCeMWNumberedExternalLinkNode( mode
|
|||
ve.ce.FocusableNode.call( this );
|
||||
|
||||
// DOM changes
|
||||
this.$element
|
||||
.addClass( 've-ce-mwNumberedExternalLinkNode' )
|
||||
// Need CE=false to prevent selection issues
|
||||
.prop( 'contentEditable', 'false' );
|
||||
this.$element.addClass( 've-ce-mwNumberedExternalLinkNode' );
|
||||
|
||||
// Add link
|
||||
this.$link = $( '<a>' )
|
||||
|
|
Loading…
Reference in a new issue