Ticket #2965: 2965.patch

File 2965.patch, 1.1 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/image/dialogs/image.js

     
    822822                                                                                                                [ editor.lang.image.alignTextTop , 'textTop'],
    823823                                                                                                                [ editor.lang.image.alignTop , 'top']
    824824                                                                                                        ],
    825                                                                                                         onKeyUp : function()
     825                                                                                                        onChange : function()
    826826                                                                                                        {
    827827                                                                                                                updatePreview( this.getDialog() );
    828828                                                                                                        },
     
    841841                                                                                                                else if ( type == PREVIEW )
    842842                                                                                                                {
    843843                                                                                                                        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' );
    844850                                                                                                                }
    845851                                                                                                                else if ( type == CLEANUP )
    846852                                                                                                                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy