Merge "Insert images after selection, not in place of it"

This commit is contained in:
jenkins-bot 2013-09-04 23:00:03 +00:00 committed by Gerrit Code Review
commit 9d67f41ca7

View file

@ -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': {