X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fadapters%2Fjquery.js;h=1b0a994ea4e1338dfbac572f79bc9add4fa3488d;hp=ec9850451b2c4d9505b3c29e3902cb2633cb185f;hb=4e90e78dc97789709ee7404359a5517540c27553;hpb=8f6c203fdaa543c3bca40baea6ae4ddcdf1a77f5 diff --git a/_source/adapters/jquery.js b/_source/adapters/jquery.js index ec98504..1b0a994 100644 --- a/_source/adapters/jquery.js +++ b/_source/adapters/jquery.js @@ -32,15 +32,21 @@ For licensing, see LICENSE.html or http://ckeditor.com/license (function() { /** - * Allow CKEditor to override jQuery.fn.val(). This results in ability to use val() - * function on textareas as usual and having those calls synchronized with CKEditor - * Rich Text Editor component. - * - * This config option is global and executed during plugin load. - * Can't be customized across editor instances. - * + * Allows CKEditor to override jQuery.fn.val(), making it possible to use the val() + * function on textareas, as usual, having it synchronized with CKEditor.
+ *
+ * This configuration option is global and executed during the jQuery Adapter loading. + * It can't be customized across editor instances. * @type Boolean * @example + * <script> + * CKEDITOR.config.jqueryOverrideVal = true; + * </script> + * <!-- Important: The JQuery adapter is loaded *after* setting jqueryOverrideVal --> + * <script src="/ckeditor/adapters/jquery.js"></script> + * @example + * // ... then later in the code ... + * * $( 'textarea' ).ckeditor(); * // ... * $( 'textarea' ).val( 'New content' );