Insert images after selection, not in place of it

Bug: 52460
Change-Id: I69ce4c2473d57fd585df0c602359c1d0f60a58f7
This commit is contained in:
Trevor Parscal 2013-09-03 13:37:43 -07:00
parent e106aef166
commit d377f3e495

View file

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