mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Add resource attribute to newly created images
Bug: 49596 Change-Id: Ifbde0f5a4c8eb01df7b429abbb8ab0d4431c1c6f
This commit is contained in:
parent
0ee7f9a5ca
commit
8d2ba6effe
|
@ -59,7 +59,8 @@ ve.ui.MWMediaInsertDialog.prototype.onClose = function ( action ) {
|
||||||
'href': info.descriptionurl,
|
'href': info.descriptionurl,
|
||||||
'src': info.thumburl,
|
'src': info.thumburl,
|
||||||
'width': info.thumbwidth,
|
'width': info.thumbwidth,
|
||||||
'height': info.thumbheight
|
'height': info.thumbheight,
|
||||||
|
'resource': './' + this.item.title
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ 'type': '/mwBlockImage' }
|
{ 'type': '/mwBlockImage' }
|
||||||
|
|
Loading…
Reference in a new issue