mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +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 );
|
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' } );
|
||||||
|
|
|
@ -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>' )
|
||||||
|
|
Loading…
Reference in a new issue