mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +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 );
|
||||
|
||||
img.setAttribute( 'resource', model.attributes.resource );
|
||||
img.setAttribute( 'src', model.attributes.src );
|
||||
if ( alt ) {
|
||||
img.setAttribute( 'alt', alt );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue