Ticket #3702: 3702.patch

File 3702.patch, 832 bytes (added by Tobiasz Cudnik, 14 years ago)
  • _source/core/skins.js

     
    156156                                skinPath = editor.skinPath;
    157157
    158158                        if ( loaded[ skinName ] )
     159                        {
    159160                                loadedPart( skinName, skinPart, callback );
     161
     162                                // Get the skin definition.
     163                                var skinDefinition = loaded[ skinName ];
     164
     165                                // Trigger init function if any.
     166                                if ( skinDefinition.init )
     167                                        skinDefinition.init( editor );
     168                        }
    160169                        else
    161170                        {
    162171                                paths[ skinName ] = skinPath;
    163172                                CKEDITOR.scriptLoader.load( skinPath + 'skin.js', function()
    164173                                                {
    165174                                                        loadedPart( skinName, skinPart, callback );
    166                                                        
     175
    167176                                                        // Get the skin definition.
    168177                                                        var skinDefinition = loaded[ skinName ];
    169178
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy