mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Match data inserted from MWMediaInsertDialog with MWBlockImageNode
Change-Id: I145beba19a8f69f6fd8c29302350c399b4c51c55
This commit is contained in:
parent
4d73aaa737
commit
50ec8c507a
|
@ -55,6 +55,7 @@ ve.ui.MWMediaInsertDialog.prototype.onClose = function ( action ) {
|
|||
{
|
||||
'type': 'mwBlockImage',
|
||||
'attributes': {
|
||||
'type': 'thumb',
|
||||
'align': 'right',
|
||||
'href': info.descriptionurl,
|
||||
'src': info.thumburl,
|
||||
|
@ -63,6 +64,8 @@ ve.ui.MWMediaInsertDialog.prototype.onClose = function ( action ) {
|
|||
'resource': './' + this.item.title
|
||||
}
|
||||
},
|
||||
{ 'type': 'mwImageCaption' },
|
||||
{ 'type': '/mwImageCaption' },
|
||||
{ 'type': '/mwBlockImage' }
|
||||
] );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue