Ticket #6336: 6336.patch

File 6336.patch, 873 bytes (added by Alfonso Martínez de Lizarrondo, 13 years ago)

Proposed patch

  • _source/plugins/wysiwygarea/plugin.js

     
    542542                                                        data.dialog && editor.openDialog( data.dialog );
    543543                                                });
    544544
     545                                                // Prevent automatic submission in IE #6336
     546                                                CKEDITOR.env.ie && domDocument.on( 'click', function( evt )
     547                                                {
     548                                                        var element = evt.data.getTarget();
     549                                                        if ( element.is( 'input' ) )
     550                                                        {
     551                                                                var type = element.getAttribute( 'type' );
     552                                                                if ( type == 'submit' || type == 'reset' )
     553                                                                        evt.data.preventDefault()
     554                                                        }
     555                                                });
     556
    545557                                                // Gecko/Webkit need some help when selecting control type elements. (#3448)
    546558                                                if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera ) )
    547559                                                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy