Ticket #5505: 5505.patch

File 5505.patch, 796 bytes (added by Garry Yao, 9 years ago)
  • _source/plugins/image/dialogs/image.js

     
    113113
    114114        var switchLockRatio = function( dialog, value )
    115115        {
    116                 var oImageOriginal = dialog.originalElement,
    117                         ratioButton = CKEDITOR.document.getById( 'btnLockSizes' );
     116                var oImageOriginal = dialog.originalElement;
    118117
     118                // Dialog may already closed. (#5505)
     119                if( !oImageOriginal )
     120                        return;
     121
     122                var ratioButton = CKEDITOR.document.getById( 'btnLockSizes' );
     123
    119124                if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
    120125                {
    121126                        if ( value == 'check' )                 // Check image ratio and original image ratio.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy