X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fadapters%2Fjquery.js;h=fb768ca70dfd5ddc478326f0c8ae37e7f0b9eca8;hb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;hp=3cb8bb6090c46fd003f59c6a6b42b7276aaf5ea3;hpb=614511639979907ceb0da3614122a4d8eb963ad4;p=ckeditor.git diff --git a/_source/adapters/jquery.js b/_source/adapters/jquery.js index 3cb8bb6..fb768ca 100644 --- a/_source/adapters/jquery.js +++ b/_source/adapters/jquery.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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' );