X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fthemes%2Fdefault%2Ftheme.js;h=412c250d922dcf0c256eb82489ad9ad8cc771aa7;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=b1e94ba8b1bbc55da452839319c4c174ed213320;hpb=4e90e78dc97789709ee7404359a5517540c27553;p=ckeditor.git diff --git a/_source/themes/default/theme.js b/_source/themes/default/theme.js index b1e94ba..412c250 100644 --- a/_source/themes/default/theme.js +++ b/_source/themes/default/theme.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -10,6 +10,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license CKEDITOR.themes.add( 'default', (function() { + var hiddenSkins = {}; + function checkSharedSpace( editor, spaceName ) { var container, @@ -121,6 +123,12 @@ CKEDITOR.themes.add( 'default', (function() sharedTop && ( sharedTop.setHtml( topHtml ) , topHtml = '' ); sharedBottoms && ( sharedBottoms.setHtml( bottomHtml ), bottomHtml = '' ); + var hideSkin = ''; + if ( hiddenSkins[ editor.skinClass ] ) + hideSkin = ''; + else + hiddenSkins[ editor.skinClass ] = 1; + var container = CKEDITOR.dom.element.createFromHtml( [ '