X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fflash%2Fdialogs%2Fflash.js;h=4af379f8dda3dcaffb43b7547481365e80af6b49;hb=refs%2Ftags%2Fv3.0.2;hp=46d19f825c5b1e52a96e551b7c08ce223f14fd2d;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d;p=ckeditor.git diff --git a/_source/plugins/flash/dialogs/flash.js b/_source/plugins/flash/dialogs/flash.js index 46d19f8..4af379f 100644 --- a/_source/plugins/flash/dialogs/flash.js +++ b/_source/plugins/flash/dialogs/flash.js @@ -271,7 +271,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var newFakeImage = editor.createFakeElement( objectNode || embedNode, 'cke_flash', 'flash', true ); newFakeImage.setStyles( extraStyles ); if ( this.fakeImage ) + { newFakeImage.replace( this.fakeImage ); + editor.getSelection().selectElement( newFakeImage ); + } else editor.insertElement( newFakeImage ); },