Ticket #5046: 5046.patch

File 5046.patch, 759 bytes (added by tobiasz.cudnik, 2 years ago)
  • _source/adapters/jquery.js

     
    183183                                                                // Bind to submit event. 
    184184                                                                $element.parents( 'form' ).submit( onSubmit ); 
    185185 
     186                                                                // Bind to form-pre-serialize from jQuery Forms plugin. 
     187                                                                $element.parents( 'form' ).bind( 'form-pre-serialize', onSubmit ); 
     188 
    186189                                                                // Unbind when editor destroyed. 
    187190                                                                $element.bind( 'destroy.ckeditor', function() 
    188191                                                                { 
    189192                                                                        $element.parents( 'form' ).unbind( 'submit', onSubmit ); 
     193                                                                        $element.parents( 'form' ).unbind( 'form-pre-serialize', onSubmit ); 
    190194                                                                }); 
    191195                                                        } 
    192196 
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy