Changeset 2962:10af9b4f1ce0 for plugins/dcCKEditor/js/ckeditor/adapters
- Timestamp:
- 02/17/15 10:21:10 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/js/ckeditor/adapters/jquery.js
r2741 r2962 1 1 /** 2 * @license Copyright (c) 2003-201 3, CKSource - Frederico Knabben. All rights reserved.2 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. 3 3 * For licensing, see LICENSE.md or http://ckeditor.com/license 4 4 */ … … 19 19 */ 20 20 21 ( function( $ ) {21 ( function( $ ) { 22 22 /** 23 23 * Allows CKEditor to override `jQuery.fn.val()`. When set to `true`, the `val()` function … … 74 74 * A jQuery function which triggers the creation of CKEditor with `<textarea>` and 75 75 * {@link CKEDITOR.dtd#$editable editable} elements. 76 * Every `<textarea>` element will be converted to a framed editor, while any other77 * supported element will be converted to an inline editor.76 * Every `<textarea>` element will be converted to a classic (`iframe`-based) editor, 77 * while any other supported element will be converted to an inline editor. 78 78 * This method binds the callback to the `instanceReady` event of all instances. 79 79 * If the editor has already been created, the callback is fired straightaway. … … 122 122 dfd = new $.Deferred(); 123 123 124 124 promises.push( dfd.promise() ); 125 125 126 126 if ( editor && !instanceLock ) { … … 133 133 134 134 // Handle config.autoUpdateElement inside this plugin if desired. 135 if ( config.autoUpdateElement 136 || ( typeof config.autoUpdateElement == 'undefined' && CKEDITOR.config.autoUpdateElement ) ) { 135 if ( config.autoUpdateElement || ( typeof config.autoUpdateElement == 'undefined' && CKEDITOR.config.autoUpdateElement ) ) { 137 136 config.autoUpdateElementJquery = true; 138 137 } … … 261 260 } else { 262 261 // Editor is already during creation process, bind our code to the event. 263 editor.once( 'instanceReady', function( evt) {262 editor.once( 'instanceReady', function() { 264 263 setTimeout( function() { 265 264 // Delay bit more if editor is still not ready. … … 340 339 promises.push( dfd.promise() ); 341 340 return true; 341 // Call default .val function for rest of elements 342 } else { 343 return oldValMethod.call( $elem, value ); 342 344 } 343 // Call default .val function for rest of elements344 else345 return oldValMethod.call( $elem, value );346 345 } ); 347 346 … … 373 372 } ); 374 373 } 375 } )( window.jQuery );374 } )( window.jQuery );
Note: See TracChangeset
for help on using the changeset viewer.