JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.2
[ckeditor.git] / _source / plugins / flash / dialogs / flash.js
index 46d19f8..4af379f 100644 (file)
@@ -271,7 +271,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                var newFakeImage = editor.createFakeElement( objectNode || embedNode, 'cke_flash', 'flash', true );\r
                                newFakeImage.setStyles( extraStyles );\r
                                if ( this.fakeImage )\r
+                               {\r
                                        newFakeImage.replace( this.fakeImage );\r
+                                       editor.getSelection().selectElement( newFakeImage );\r
+                               }\r
                                else\r
                                        editor.insertElement( newFakeImage );\r
                        },\r