X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fthemes%2Fdefault%2Ftheme.js;h=97dd0ef2ab934eb5c35a246df3be798bff6ece68;hb=refs%2Ftags%2Fv3.0.2;hp=6e6a8731254643b0874eb86c34c2378f9554ef21;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d;p=ckeditor.git
diff --git a/_source/themes/default/theme.js b/_source/themes/default/theme.js
index 6e6a873..97dd0ef 100644
--- a/_source/themes/default/theme.js
+++ b/_source/themes/default/theme.js
@@ -102,16 +102,18 @@ CKEDITOR.themes.add( 'default', (function()
'" dir="', editor.lang.dir, '"' +
' lang="', editor.langCode, '"' +
'>' +
-
- '
' +
+ '
' +
'' +
' ' +
' ' +
'X' +
' ' +
' ' +
- ' ' +
+ ' ' +
'' +
' ' +
'' +
@@ -122,7 +124,8 @@ CKEDITOR.themes.add( 'default', (function()
'' +
'' +
'' +
- '',
+ ' |
' +
+ '',
//Hide the container when loading skins, later restored by skin css.
( CKEDITOR.env.ie ? '' : '' ),
@@ -132,11 +135,13 @@ CKEDITOR.themes.add( 'default', (function()
.replace( /#/g, '_' + baseIdNumber )
.replace( /%/g, 'cke_dialog_' ) );
- var body = element.getChild( [ 0, 0 ] );
+ var body = element.getChild( [ 0, 0, 0, 0, 0 ] ),
+ title = body.getChild( 0 ),
+ close = body.getChild( 1 );
// Make the Title and Close Button unselectable.
- body.getChild( 0 ).unselectable();
- body.getChild( 1 ).unselectable();
+ title.unselectable();
+ close.unselectable();
return {
@@ -144,10 +149,10 @@ CKEDITOR.themes.add( 'default', (function()
parts :
{
dialog : element.getChild( 0 ),
- title : body.getChild( 0 ),
- close : body.getChild( 1 ),
+ title : title,
+ close : close,
tabs : body.getChild( 2 ),
- contents : body.getChild( 3 ),
+ contents : body.getChild( [ 3, 0, 0, 0 ] ),
footer : body.getChild( 4 )
}
};
@@ -155,8 +160,7 @@ CKEDITOR.themes.add( 'default', (function()
destroy : function( editor )
{
- var container = editor.container,
- panels = editor.panels;
+ var container = editor.container;
/*
* IE BUG: Removing the editor DOM elements while the selection is inside
@@ -183,9 +187,6 @@ CKEDITOR.themes.add( 'default', (function()
if ( container )
container.remove();
- for( var i = 0 ; panels && i < panels.length ; i++ )
- panels[ i ].remove();
-
if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_REPLACE )
{
editor.element.show();