JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.2
[ckeditor.git] / _source / plugins / docprops / dialogs / docprops.js
index bfd404b..1ba7b9a 100644 (file)
@@ -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
+                                                                               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
+                                                                                               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
+                                                                                               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
+                                                                               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