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:
Ed Sanders 2014-08-16 16:27:30 +01:00
parent 80e30a8c08
commit a22aeafc06

View file

@ -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