mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Insert images after selection, not in place of it"
This commit is contained in:
commit
9d67f41ca7
|
@ -68,7 +68,7 @@ ve.ui.MWMediaInsertDialog.prototype.onClose = function ( action ) {
|
|||
|
||||
if ( action === 'insert' ) {
|
||||
info = this.item.imageinfo[0];
|
||||
this.surface.getModel().getFragment().insertContent( [
|
||||
this.surface.getModel().getFragment().collapseRangeToEnd().insertContent( [
|
||||
{
|
||||
'type': 'mwBlockImage',
|
||||
'attributes': {
|
||||
|
|
Loading…
Reference in a new issue