/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
(function()\r
{\r
/**\r
- * Allow CKEditor to override jQuery.fn.val(). This results in ability to use val()\r
- * function on textareas as usual and having those calls synchronized with CKEditor\r
- * Rich Text Editor component.\r
- *\r
- * This config option is global and executed during plugin load.\r
- * Can't be customized across editor instances.\r
- *\r
+ * Allows CKEditor to override jQuery.fn.val(), making it possible to use the val()\r
+ * function on textareas, as usual, having it synchronized with CKEditor.<br>\r
+ * <br>\r
+ * This configuration option is global and executed during the jQuery Adapter loading.\r
+ * It can't be customized across editor instances.\r
* @type Boolean\r
* @example\r
+ * <script>\r
+ * CKEDITOR.config.jqueryOverrideVal = true;\r
+ * </script>\r
+ * <!-- Important: The JQuery adapter is loaded *after* setting jqueryOverrideVal -->\r
+ * <script src="/ckeditor/adapters/jquery.js"></script>\r
+ * @example\r
+ * // ... then later in the code ...\r
+ *\r
* $( 'textarea' ).ckeditor();\r
* // ...\r
* $( 'textarea' ).val( 'New content' );\r
*/\r
ckeditor: function( callback, config )\r
{\r
+ if ( !CKEDITOR.env.isCompatible )\r
+ return this;\r
+\r
if ( !jQuery.isFunction( callback ))\r
{\r
var tmp = config;\r