26d8f097a58c995c7137c7f707dd4b3f109e64c1
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 separator
: { canGroup
: false },
12 templates
: { css
: [ 'templates.css' ] },
13 margins
: [ 0, 14, 18, 14 ]
19 CKEDITOR
.dialog
? dialogSetup() : CKEDITOR
.on( 'dialogPluginReady', dialogSetup
);
21 function dialogSetup()
23 CKEDITOR
.dialog
.on( 'resize', function( evt
)
29 contents
= dialog
.parts
.contents
;
31 if ( data
.skin
!= 'v2' )
37 height
: height
+ 'px'
40 if ( !CKEDITOR
.env
.ie
|| CKEDITOR
.env
.ie9Compat
)
43 // Fix the size of the elements which have flexible lengths.
44 setTimeout( function()
46 var innerDialog
= dialog
.parts
.dialog
.getChild( [ 0, 0, 0 ] ),
47 body
= innerDialog
.getChild( 0 ),
48 bodyWidth
= body
.getSize( 'width' );
49 height
+= body
.getChild( 0 ).getSize( 'height' ) + 1;
52 var el
= innerDialog
.getChild( 2 );
53 el
.setSize( 'width', bodyWidth
);
56 el
= innerDialog
.getChild( 7 );
57 el
.setSize( 'width', bodyWidth
- 28 );
60 el
= innerDialog
.getChild( 4 );
61 el
.setSize( 'height', height
);
64 el
= innerDialog
.getChild( 5 );
65 el
.setSize( 'height', height
);