mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Add img.src's to gallery DM output
Bug: T191377 Bug: T191436 Change-Id: Ie6b3593876c92f8e6f08fb005d876304223491ed
This commit is contained in:
parent
7b1d248ec1
commit
8b42a5917c
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue