JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2
[ckeditor.git] / _source / plugins / flash / dialogs / flash.js
index 0e74e01..5634229 100644 (file)
@@ -174,7 +174,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        makeEmbedTag = editor.config.flashAddEmbedTag || editor.config.flashEmbedTagOnly;\r
 \r
                var previewPreloader,\r
-                       previewAreaHtml = '<div>' + CKEDITOR.tools.htmlEncode( editor.lang.image.preview ) +'<br>' +\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
 \r
@@ -300,10 +300,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                        children :\r
                                                        [\r
                                                                {\r
-                                                                       type : 'html',\r
-                                                                       html : '<span>' + CKEDITOR.tools.htmlEncode( editor.lang.image.url ) + '</span>'\r
-                                                               },\r
-                                                               {\r
                                                                        type : 'hbox',\r
                                                                        widths : [ '280px', '110px' ],\r
                                                                        align : 'right',\r
@@ -312,7 +308,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                                {\r
                                                                                        id : 'src',\r
                                                                                        type : 'text',\r
-                                                                                       label : '',\r
+                                                                                       label : editor.lang.common.url,\r
+                                                                                       required : true,\r
                                                                                        validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.flash.validateSrc ),\r
                                                                                        setup : loadValue,\r
                                                                                        commit : commitValue,\r
@@ -347,7 +344,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                                        id : 'browse',\r
                                                                                        filebrowser : 'info:src',\r
                                                                                        hidden : true,\r
-                                                                                       align : 'center',\r
+                                                                                       // v-align with the 'src' field.\r
+                                                                                       // TODO: We need something better than a fixed size here.\r
+                                                                                       style : 'display:inline-block;margin-top:10px;',\r
                                                                                        label : editor.lang.common.browseServer\r
                                                                                }\r
                                                                        ]\r
@@ -582,45 +581,48 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                        ]\r
                                                },\r
                                                {\r
-                                                       type : 'vbox',\r
-                                                       padding : 0,\r
+                                                       type : 'fieldset',\r
+                                                       label : CKEDITOR.tools.htmlEncode( editor.lang.flash.flashvars ),\r
                                                        children :\r
                                                        [\r
                                                                {\r
-                                                                       type : 'html',\r
-                                                                       html : CKEDITOR.tools.htmlEncode( editor.lang.flash.flashvars )\r
-                                                               },\r
-                                                               {\r
-                                                                       type : 'checkbox',\r
-                                                                       id : 'menu',\r
-                                                                       label : editor.lang.flash.chkMenu,\r
-                                                                       'default' : true,\r
-                                                                       setup : loadValue,\r
-                                                                       commit : commitValue\r
-                                                               },\r
-                                                               {\r
-                                                                       type : 'checkbox',\r
-                                                                       id : 'play',\r
-                                                                       label : editor.lang.flash.chkPlay,\r
-                                                                       'default' : true,\r
-                                                                       setup : loadValue,\r
-                                                                       commit : commitValue\r
-                                                               },\r
-                                                               {\r
-                                                                       type : 'checkbox',\r
-                                                                       id : 'loop',\r
-                                                                       label : editor.lang.flash.chkLoop,\r
-                                                                       'default' : true,\r
-                                                                       setup : loadValue,\r
-                                                                       commit : commitValue\r
-                                                               },\r
-                                                               {\r
-                                                                       type : 'checkbox',\r
-                                                                       id : 'allowFullScreen',\r
-                                                                       label : editor.lang.flash.chkFull,\r
-                                                                       'default' : true,\r
-                                                                       setup : loadValue,\r
-                                                                       commit : commitValue\r
+                                                                       type : 'vbox',\r
+                                                                       padding : 0,\r
+                                                                       children :\r
+                                                                       [\r
+                                                                               {\r
+                                                                                       type : 'checkbox',\r
+                                                                                       id : 'menu',\r
+                                                                                       label : editor.lang.flash.chkMenu,\r
+                                                                                       'default' : true,\r
+                                                                                       setup : loadValue,\r
+                                                                                       commit : commitValue\r
+                                                                               },\r
+                                                                               {\r
+                                                                                       type : 'checkbox',\r
+                                                                                       id : 'play',\r
+                                                                                       label : editor.lang.flash.chkPlay,\r
+                                                                                       'default' : true,\r
+                                                                                       setup : loadValue,\r
+                                                                                       commit : commitValue\r
+                                                                               },\r
+                                                                               {\r
+                                                                                       type : 'checkbox',\r
+                                                                                       id : 'loop',\r
+                                                                                       label : editor.lang.flash.chkLoop,\r
+                                                                                       'default' : true,\r
+                                                                                       setup : loadValue,\r
+                                                                                       commit : commitValue\r
+                                                                               },\r
+                                                                               {\r
+                                                                                       type : 'checkbox',\r
+                                                                                       id : 'allowFullScreen',\r
+                                                                                       label : editor.lang.flash.chkFull,\r
+                                                                                       'default' : true,\r
+                                                                                       setup : loadValue,\r
+                                                                                       commit : commitValue\r
+                                                                               }\r
+                                                                       ]\r
                                                                }\r
                                                        ]\r
                                                }\r