X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fdocprops%2Fdialogs%2Fdocprops.js;h=1ba7b9a510220c00288f6c5a0433df73eab812ef;hp=bfd404ba80f9d17f255e3c52f68632f188d19a90;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hpb=f0610347140239143439a511ee2bd48cb784f470 diff --git a/_source/plugins/docprops/dialogs/docprops.js b/_source/plugins/docprops/dialogs/docprops.js index bfd404b..1ba7b9a 100644 --- a/_source/plugins/docprops/dialogs/docprops.js +++ b/_source/plugins/docprops/dialogs/docprops.js @@ -545,17 +545,14 @@ CKEDITOR.dialog.add( 'docProps', function( editor ) type : 'text', id : 'marginTop', label : lang.marginTop, - style : 'width: 80px; text-align: center; margin: 0px auto', + style : 'width: 80px; text-align: center', + align : 'center', inputStyle : 'text-align: center', setup : function( doc, html, head, body ) { this.setValue( body.getStyle( 'margin-top' ) || body.getAttribute( 'margintop' ) || '' ); }, - commit : commitMargin( 'top' ), - onLoad : function() - { - this.getElement().getParent().setStyle( 'text-align', 'center' ); - } + commit : commitMargin( 'top' ) }, { type : 'hbox', @@ -564,33 +561,27 @@ CKEDITOR.dialog.add( 'docProps', function( editor ) type : 'text', id : 'marginLeft', label : lang.marginLeft, - style : 'width: 80px; text-align: center; margin: 0px auto', + style : 'width: 80px; text-align: center', + align : 'center', inputStyle : 'text-align: center', setup : function( doc, html, head, body ) { this.setValue( body.getStyle( 'margin-left' ) || body.getAttribute( 'marginleft' ) || '' ); }, - commit : commitMargin( 'left' ), - onLoad : function() - { - this.getElement().getParent().setStyle( 'text-align', 'center' ); - } + commit : commitMargin( 'left' ) }, { type : 'text', id : 'marginRight', label : lang.marginRight, - style : 'width: 80px; text-align: center; margin: 0px auto', + style : 'width: 80px; text-align: center', + align : 'center', inputStyle : 'text-align: center', setup : function( doc, html, head, body ) { this.setValue( body.getStyle( 'margin-right' ) || body.getAttribute( 'marginright' ) || '' ); }, - commit : commitMargin( 'right' ), - onLoad : function() - { - this.getElement().getParent().setStyle( 'text-align', 'center' ); - } + commit : commitMargin( 'right' ) } ] }, @@ -598,17 +589,14 @@ CKEDITOR.dialog.add( 'docProps', function( editor ) type : 'text', id : 'marginBottom', label : lang.marginBottom, - style : 'width: 80px; text-align: center; margin: 0px auto', + style : 'width: 80px; text-align: center', + align : 'center', inputStyle : 'text-align: center', setup : function( doc, html, head, body ) { this.setValue( body.getStyle( 'margin-bottom' ) || body.getAttribute( 'marginbottom' ) || '' ); }, - commit : commitMargin( 'bottom' ), - onLoad : function() - { - this.getElement().getParent().setStyle( 'text-align', 'center' ); - } + commit : commitMargin( 'bottom' ) } ] }