mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Remove span-wrapping of link='' images
This hack is no longer neccessary now that we no longer use shields. Change-Id: I2194b16273b1ebe6e8d9360957cc7eab856dae13
This commit is contained in:
parent
80e30a8c08
commit
a22aeafc06
|
@ -25,11 +25,7 @@ ve.ce.MWInlineImageNode = function VeCeMWInlineImageNode( model, config ) {
|
|||
this.$element = this.$( '<a>' ).addClass( 'image' );
|
||||
this.$image = this.$( '<img>' ).appendTo( this.$element );
|
||||
} else {
|
||||
// For inline images that are not linked (empty linkto=) we intentionally don't match output
|
||||
// of MW Parser, instead we wrap those images in span so selection and hover (based on
|
||||
// shields) can work well. It might change in the future when we improve our selection.
|
||||
this.$element = this.$( '<span>' );
|
||||
this.$image = this.$( '<img>' ).appendTo( this.$element );
|
||||
this.$element = this.$image = this.$( '<img>' ).appendTo( this.$element );
|
||||
}
|
||||
|
||||
// Mixin constructors
|
||||
|
|
Loading…
Reference in a new issue