Ticket #4549: 4549.patch

File 4549.patch, 1.3 KB (added by Garry Yao, 14 years ago)
  • _source/core/config.js

     
    4040         * // Do not load any custom configuration file.
    4141         * CKEDITOR.replace( 'myfiled', { customConfig : '' } );
    4242         */
    43         customConfig : CKEDITOR.getUrl( 'config.js' ),
     43        customConfig : 'config.js',
    4444
    4545        /**
    4646         * Whether the replaced element (usually a textarea) is to be updated
  • _source/core/editor.js

     
    2727        var loadConfigLoaded = {};
    2828        var loadConfig = function( editor )
    2929        {
    30                 var customConfig = editor.config.customConfig;
     30                var customConfig = CKEDITOR.getUrl( editor.config.customConfig );
    3131
    3232                // Check if there is a custom config to load.
    3333                if ( !customConfig )
     
    4444
    4545                        // If there is no other customConfig in the chain, fire the
    4646                        // "configLoaded" event.
    47                         if ( editor.config.customConfig == customConfig || !loadConfig( editor ) )
     47                        if ( CKEDITOR.getUrl( editor.config.customConfig ) == customConfig || !loadConfig( editor ) )
    4848                                editor.fireOnce( 'customConfigLoaded' );
    4949                }
    5050                else
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy