2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
6 CKEDITOR.skins.add( 'v2', (function()
9 editor : { css : [ 'editor.css' ] },
10 dialog : { css : [ 'dialog.css' ] },
11 templates : { css : [ 'templates.css' ] },
12 margins : [ 0, 14, 18, 14 ]
18 CKEDITOR.dialog ? dialogSetup() : CKEDITOR.on( 'dialogPluginReady', dialogSetup );
20 function dialogSetup()
22 CKEDITOR.dialog.on( 'resize', function( evt )
28 contents = dialog.parts.contents;
30 if ( data.skin != 'v2' )
36 height : height + 'px'
39 if ( !CKEDITOR.env.ie )
42 // Fix the size of the elements which have flexible lengths.
43 setTimeout( function()
45 var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),
46 body = innerDialog.getChild( 0 ),
47 bodyWidth = body.getSize( 'width' );
48 height += body.getChild( 0 ).getSize( 'height' ) + 1;
51 var el = innerDialog.getChild( 2 );
52 el.setSize( 'width', bodyWidth );
55 el = innerDialog.getChild( 7 );
56 el.setSize( 'width', bodyWidth - 28 );
59 el = innerDialog.getChild( 4 );
60 el.setSize( 'height', height );
63 el = innerDialog.getChild( 5 );
64 el.setSize( 'height', height );