JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / plugins / flash / dialogs / flash.js
index 666d3c8..9f22e00 100644 (file)
@@ -175,8 +175,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
                var previewPreloader,\r
                        previewAreaHtml = '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.common.preview ) +'<br>' +\r
-                       '<div id="FlashPreviewLoader" style="display:none"><div class="loading">&nbsp;</div></div>' +\r
-                       '<div id="FlashPreviewBox"></div></div>';\r
+                       '<div id="FlashPreviewLoader' + CKEDITOR.tools.getNextNumber() + '" style="display:none"><div class="loading">&nbsp;</div></div>' +\r
+                       '<div id="FlashPreviewBox' + CKEDITOR.tools.getNextNumber() + '" class="FlashPreviewBox"></div></div>';\r
 \r
                return {\r
                        title : editor.lang.flash.title,\r
@@ -186,7 +186,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        {\r
                                // Clear previously saved elements.\r
                                this.fakeImage = this.objectNode = this.embedNode = null;\r
-                               previewPreloader = new CKEDITOR.dom.element( 'embeded', editor.document );\r
+                               previewPreloader = new CKEDITOR.dom.element( 'embed', editor.document );\r
 \r
                                // Try to detect any embed or object tag that has Flash parameters.\r
                                var fakeImage = this.getSelectedElement();\r