mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Insert images after selection, not in place of it
Bug: 52460 Change-Id: I69ce4c2473d57fd585df0c602359c1d0f60a58f7
This commit is contained in:
parent
e106aef166
commit
d377f3e495
|
@ -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': {
|
||||
|
|
Loading…
Reference in a new issue