X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fadapters%2Fjquery.js;h=e633758cc84e20c8895a43698476426648b50517;hb=c6e377a02b54abc07129d72b632763c727476a15;hp=314c8edf85ad625a319f604fb689dc5db6a69ffa;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/adapters/jquery.js b/_source/adapters/jquery.js index 314c8ed..e633758 100644 --- a/_source/adapters/jquery.js +++ b/_source/adapters/jquery.js @@ -183,10 +183,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Bind to submit event. $element.parents( 'form' ).submit( onSubmit ); + // Bind to form-pre-serialize from jQuery Forms plugin. + $element.parents( 'form' ).bind( 'form-pre-serialize', onSubmit ); + // Unbind when editor destroyed. $element.bind( 'destroy.ckeditor', function() { $element.parents( 'form' ).unbind( 'submit', onSubmit ); + $element.parents( 'form' ).unbind( 'form-pre-serialize', onSubmit ); }); }