Ticket #4618: 4618.patch

File 4618.patch, 1.7 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • _source/plugins/image/dialogs/image.js

     
    716716                                                                                                                        ratioButton = CKEDITOR.document.getById( 'btnLockSizes' );
    717717                                                                                                                if ( resetButton )
    718718                                                                                                                {
    719                                                                                                                         resetButton.on( 'click', function()
     719                                                                                                                        resetButton.on( 'click', function(evt)
    720720                                                                                                                                {
    721721                                                                                                                                        resetSize( this );
     722                                                                                                                                        evt.data.preventDefault();
    722723                                                                                                                                }, this.getDialog() );
    723724                                                                                                                        resetButton.on( 'mouseover', function()
    724725                                                                                                                                {
     
    732733                                                                                                                // Activate (Un)LockRatio button
    733734                                                                                                                if ( ratioButton )
    734735                                                                                                                {
    735                                                                                                                         ratioButton.on( 'click', function()
     736                                                                                                                        ratioButton.on( 'click', function(evt)
    736737                                                                                                                                {
    737738                                                                                                                                        var locked = switchLockRatio( this ),
    738739                                                                                                                                                oImageOriginal = this.originalElement,
     
    747748                                                                                                                                                        updatePreview( this );
    748749                                                                                                                                                }
    749750                                                                                                                                        }
     751                                                                                                                                        evt.data.preventDefault();
    750752                                                                                                                                }, this.getDialog() );
    751753                                                                                                                        ratioButton.on( 'mouseover', function()
    752754                                                                                                                                {
  • _source/plugins/smiley/dialogs/smiley.js

     
    4444                editor.insertElement( img );
    4545
    4646                dialog.hide();
     47                evt.data.preventDefault();
    4748        };
    4849
    4950        var onKeydown = CKEDITOR.tools.addFunction( function( ev, element )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy