JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1.1
[ckeditor.git] / _source / adapters / jquery.js
index 314c8ed..e633758 100644 (file)
@@ -183,10 +183,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                // Bind to submit event.\r
                                                                $element.parents( 'form' ).submit( onSubmit );\r
 \r
+                                                               // Bind to form-pre-serialize from jQuery Forms plugin.\r
+                                                               $element.parents( 'form' ).bind( 'form-pre-serialize', onSubmit );\r
+\r
                                                                // Unbind when editor destroyed.\r
                                                                $element.bind( 'destroy.ckeditor', function()\r
                                                                {\r
                                                                        $element.parents( 'form' ).unbind( 'submit', onSubmit );\r
+                                                                       $element.parents( 'form' ).unbind( 'form-pre-serialize', onSubmit );\r
                                                                });\r
                                                        }\r
 \r