Ticket #2965: 2965_2.patch
File 2965_2.patch, 1.4 KB (added by , 16 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 845 if ( this.getValue() == 'absMiddle' || this.getValue() == 'middle' ) 846 element.setStyle( 'vertical-align', 'middle' ); 847 else if ( this.getValue() == 'top' || this.getValue() == 'textTop' ) 848 element.setStyle( 'vertical-align', 'top' ); 849 else 850 element.removeStyle( 'vertical-align' ); 851 852 if ( this.getValue() == 'right' || this.getValue() == 'left' ) 853 element.setStyle( 'styleFloat', this.getValue() ); 854 else 855 element.removeStyle( 'styleFloat' ); 856 844 857 } 845 858 else if ( type == CLEANUP ) 846 859 {