Dotclear


Ignore:
Timestamp:
02/17/15 10:21:10 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Update CKEditor to last published release
Fixes #2039

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/js/ckeditor/adapters/jquery.js

    r2741 r2962  
    11/** 
    2  * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. 
     2 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. 
    33 * For licensing, see LICENSE.md or http://ckeditor.com/license 
    44 */ 
     
    1919 */ 
    2020 
    21 (function( $ ) { 
     21( function( $ ) { 
    2222     /** 
    2323      * Allows CKEditor to override `jQuery.fn.val()`. When set to `true`, the `val()` function 
     
    7474           * A jQuery function which triggers the creation of CKEditor with `<textarea>` and 
    7575           * {@link CKEDITOR.dtd#$editable editable} elements. 
    76            * Every `<textarea>` element will be converted to a framed editor, while any other 
    77            * 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. 
    7878           * This method binds the callback to the `instanceReady` event of all instances. 
    7979           * If the editor has already been created, the callback is fired straightaway. 
     
    122122                         dfd = new $.Deferred(); 
    123123 
    124                          promises.push( dfd.promise() ); 
     124                    promises.push( dfd.promise() ); 
    125125 
    126126                    if ( editor && !instanceLock ) { 
     
    133133 
    134134                         // 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 ) ) { 
    137136                              config.autoUpdateElementJquery = true; 
    138137                         } 
     
    261260                    } else { 
    262261                         // Editor is already during creation process, bind our code to the event. 
    263                          editor.once( 'instanceReady', function( evt ) { 
     262                         editor.once( 'instanceReady', function() { 
    264263                              setTimeout( function() { 
    265264                                   // Delay bit more if editor is still not ready. 
     
    340339                                        promises.push( dfd.promise() ); 
    341340                                        return true; 
     341                                        // Call default .val function for rest of elements 
     342                                   } else { 
     343                                        return oldValMethod.call( $elem, value ); 
    342344                                   } 
    343                                    // Call default .val function for rest of elements 
    344                                    else 
    345                                         return oldValMethod.call( $elem, value ); 
    346345                              } ); 
    347346 
     
    373372          } ); 
    374373     } 
    375 })( window.jQuery ); 
     374} )( window.jQuery ); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map