Add img.src's to gallery DM output

Bug: T191377
Bug: T191436
Change-Id: Ie6b3593876c92f8e6f08fb005d876304223491ed
This commit is contained in:
Ed Sanders 2018-04-05 12:57:18 +01:00
parent 7b1d248ec1
commit 8b42a5917c

View file

@ -107,6 +107,7 @@ ve.dm.MWGalleryImageNode.static.toDomElements = function ( data, doc ) {
// a.setAttribute( 'href', model.attributes.src ); // a.setAttribute( 'href', model.attributes.src );
img.setAttribute( 'resource', model.attributes.resource ); img.setAttribute( 'resource', model.attributes.resource );
img.setAttribute( 'src', model.attributes.src );
if ( alt ) { if ( alt ) {
img.setAttribute( 'alt', alt ); img.setAttribute( 'alt', alt );
} }