Ticket #4844: 4844.patch

File 4844.patch, 1.3 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • _source/themes/default/theme.js

     
    55
    66CKEDITOR.themes.add( 'default', (function()
    77{
     8        var hiddenSkins = {};
     9
    810        function checkSharedSpace( editor, spaceName )
    911        {
    1012                var container,
     
    110112                        sharedTop               && ( sharedTop.setHtml( topHtml )               , topHtml = '' );
    111113                        sharedBottoms   && ( sharedBottoms.setHtml( bottomHtml ), bottomHtml = '' );
    112114
     115                        var hideSkin = '<style>.' + editor.skinClass + '{visibility:hidden;}</style>';
     116                        if (hiddenSkins[editor.skinClass])
     117                                hideSkin = '';
     118                        else
     119                                hiddenSkins[editor.skinClass] = 1;
     120
    113121                        var container = CKEDITOR.dom.element.createFromHtml( [
    114122                                '<span' +
    115123                                        ' id="cke_', name, '"' +
     
    132140                                                                '<tr', bottomHtml       ? '' : ' style="display:none"', ' role="presentation"><td id="cke_bottom_'      , name, '" class="cke_bottom" role="presentation">'     , bottomHtml    , '</td></tr>' +
    133141                                                        '</tbody></table>' +
    134142                                                        //Hide the container when loading skins, later restored by skin css.
    135                                                         '<style>.', editor.skinClass, '{visibility:hidden;}</style>' +
     143                                                        hideSkin +
    136144                                                '</span>' +
    137145                                        '</span>' +
    138146                                '</span>' ].join( '' ) );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy