JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / docprops / dialogs / docprops.js
index f797547..d2012ab 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -475,7 +475,7 @@ CKEDITOR.dialog.add( 'docProps', function( editor )
                                                                        {\r
                                                                                type : 'hbox',\r
                                                                                widths : [ '60%', '40%' ],\r
-                                                                               padding : 0,\r
+                                                                               padding : 1,\r
                                                                                children : [\r
                                                                                        {\r
                                                                                                type : 'text',\r
@@ -511,7 +511,7 @@ CKEDITOR.dialog.add( 'docProps', function( editor )
                                                                                                label : langCommon.browseServer,\r
                                                                                                style : 'display:inline-block;margin-top:10px;',\r
                                                                                                hidden : true,\r
-                                                                                               filebrowser : 'bg:bgImage'\r
+                                                                                               filebrowser : 'design:bgImage'\r
                                                                                        }\r
                                                                                ]\r
                                                                        },\r
@@ -545,17 +545,14 @@ CKEDITOR.dialog.add( 'docProps', function( editor )
                                                                                type : 'text',\r
                                                                                id : 'marginTop',\r
                                                                                label : lang.marginTop,\r
-                                                                               style : 'width: 80px; text-align: center; margin: 0px auto',\r
-                                                                               controlStyle : 'text-align: center',\r
+                                                                               style : 'width: 80px; text-align: center',\r
+                                                                               align : 'center',\r
+                                                                               inputStyle : 'text-align: center',\r
                                                                                setup : function( doc, html, head, body )\r
                                                                                {\r
                                                                                        this.setValue( body.getStyle( 'margin-top' ) || body.getAttribute( 'margintop' ) || '' );\r
                                                                                },\r
-                                                                               commit : commitMargin( 'top' ),\r
-                                                                               onLoad : function()\r
-                                                                               {\r
-                                                                                       this.getElement().getParent().setStyle( 'text-align', 'center' );\r
-                                                                               }\r
+                                                                               commit : commitMargin( 'top' )\r
                                                                        },\r
                                                                        {\r
                                                                                type : 'hbox',\r
@@ -564,33 +561,27 @@ CKEDITOR.dialog.add( 'docProps', function( editor )
                                                                                                type : 'text',\r
                                                                                                id : 'marginLeft',\r
                                                                                                label : lang.marginLeft,\r
-                                                                                               style : 'width: 80px; text-align: center; margin: 0px auto',\r
-                                                                                               controlStyle : 'text-align: center',\r
+                                                                                               style : 'width: 80px; text-align: center',\r
+                                                                                               align : 'center',\r
+                                                                                               inputStyle : 'text-align: center',\r
                                                                                                setup : function( doc, html, head, body )\r
                                                                                                {\r
                                                                                                        this.setValue( body.getStyle( 'margin-left' ) || body.getAttribute( 'marginleft' ) || '' );\r
                                                                                                },\r
-                                                                                               commit : commitMargin( 'left' ),\r
-                                                                                               onLoad : function()\r
-                                                                                               {\r
-                                                                                                       this.getElement().getParent().setStyle( 'text-align', 'center' );\r
-                                                                                               }\r
+                                                                                               commit : commitMargin( 'left' )\r
                                                                                        },\r
                                                                                        {\r
                                                                                                type : 'text',\r
                                                                                                id : 'marginRight',\r
                                                                                                label : lang.marginRight,\r
-                                                                                               style : 'width: 80px; text-align: center; margin: 0px auto',\r
-                                                                                               controlStyle : 'text-align: center',\r
+                                                                                               style : 'width: 80px; text-align: center',\r
+                                                                                               align : 'center',\r
+                                                                                               inputStyle : 'text-align: center',\r
                                                                                                setup : function( doc, html, head, body )\r
                                                                                                {\r
                                                                                                        this.setValue( body.getStyle( 'margin-right' ) || body.getAttribute( 'marginright' ) || '' );\r
                                                                                                },\r
-                                                                                               commit : commitMargin( 'right' ),\r
-                                                                                               onLoad : function()\r
-                                                                                               {\r
-                                                                                                       this.getElement().getParent().setStyle( 'text-align', 'center' );\r
-                                                                                               }\r
+                                                                                               commit : commitMargin( 'right' )\r
                                                                                        }\r
                                                                                ]\r
                                                                        },\r
@@ -598,17 +589,14 @@ CKEDITOR.dialog.add( 'docProps', function( editor )
                                                                                type : 'text',\r
                                                                                id : 'marginBottom',\r
                                                                                label : lang.marginBottom,\r
-                                                                               style : 'width: 80px; text-align: center; margin: 0px auto',\r
-                                                                               controlStyle : 'text-align: center',\r
+                                                                               style : 'width: 80px; text-align: center',\r
+                                                                               align : 'center',\r
+                                                                               inputStyle : 'text-align: center',\r
                                                                                setup : function( doc, html, head, body )\r
                                                                                {\r
                                                                                        this.setValue( body.getStyle( 'margin-bottom' ) || body.getAttribute( 'marginbottom' ) || '' );\r
                                                                                },\r
-                                                                               commit : commitMargin( 'bottom' ),\r
-                                                                               onLoad : function()\r
-                                                                               {\r
-                                                                                       this.getElement().getParent().setStyle( 'text-align', 'center' );\r
-                                                                               }\r
+                                                                               commit : commitMargin( 'bottom' )\r
                                                                        }\r
                                                                ]\r
                                                        }\r