mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Gallery: Use 'poster' attribute for video thumnails
Bug: T191098 Change-Id: I0f4e456ec7a52ee71dcfca581c73415fc8ee6178
This commit is contained in:
parent
8b42a5917c
commit
43a8004abb
|
@ -72,7 +72,8 @@ ve.dm.MWGalleryImageNode.static.toDataElement = function ( domElements, converte
|
|||
attributes: {
|
||||
resource: ve.normalizeParsoidResourceName( img.getAttribute( 'resource' ) ),
|
||||
altText: img.getAttribute( 'alt' ),
|
||||
src: img.getAttribute( 'src' ),
|
||||
// 'src' for images, 'poster' for video/audio
|
||||
src: img.getAttribute( 'src' ) || img.getAttribute( 'poster' ),
|
||||
height: img.getAttribute( 'height' ),
|
||||
width: img.getAttribute( 'width' )
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue