Ticket #2965: 2965.patch
File 2965.patch, 1.1 KB (added by , 15 years ago) |
---|
-
_source/plugins/image/dialogs/image.js
822 822 [ editor.lang.image.alignTextTop , 'textTop'], 823 823 [ editor.lang.image.alignTop , 'top'] 824 824 ], 825 on KeyUp: function()825 onChange : function() 826 826 { 827 827 updatePreview( this.getDialog() ); 828 828 }, … … 841 841 else if ( type == PREVIEW ) 842 842 { 843 843 element.setAttribute( 'align', this.getValue() ); 844 if ( this.getValue() == 'absMiddle' || this.getValue() == 'middle' ) 845 element.setStyle( 'vertical-align', 'middle' ); 846 else if ( this.getValue() == 'top' || this.getValue() == 'textTop' ) 847 element.setStyle( 'vertical-align', 'top' ); 848 else 849 element.removeStyle( 'vertical-align' ); 844 850 } 845 851 else if ( type == CLEANUP ) 846 852 {