Match data inserted from MWMediaInsertDialog with MWBlockImageNode

Change-Id: I145beba19a8f69f6fd8c29302350c399b4c51c55
This commit is contained in:
Inez Korczyński 2013-06-21 12:36:14 -07:00
parent 4d73aaa737
commit 50ec8c507a

View file

@ -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' }
] );
}