JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.2
[ckeditor.git] / _source / plugins / flash / dialogs / flash.js
index 2359b1b..4af379f 100644 (file)
@@ -24,7 +24,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
        var attributesMap =\r
        {\r
-               id : [ { type : ATTRTYPE_OBJECT, name : CKEDITOR.env.ie ? '_cke_saved_id' : 'id' } ],\r
+               id : [ { type : ATTRTYPE_OBJECT, name :  'id' } ],\r
                classid : [ { type : ATTRTYPE_OBJECT, name : 'classid' } ],\r
                codebase : [ { type : ATTRTYPE_OBJECT, name : 'codebase'} ],\r
                pluginspage : [ { type : ATTRTYPE_EMBED, name : 'pluginspage' } ],\r
@@ -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