sogo/UI/WebServerResources/ckeditor/skins/v2/skin.js
Francis Lachapelle 5c8e5a1fe2 Updated CKEditor to version 3.6.3.
Monotone-Parent: 2c3f8544a30679096de28ae80a840c371b12d94b
Monotone-Revision: bd8544b99b099a3544a5acdb3bdcc8c219709ff1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-04-18T13:14:02
2012-04-18 13:14:02 +00:00

7 lines
953 B
JavaScript

/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.skins.add('v2',(function(){return{editor:{css:['editor.css']},dialog:{css:['dialog.css']},separator:{canGroup:false},templates:{css:['templates.css']},margins:[0,14,18,14]};})());(function(){CKEDITOR.dialog?a():CKEDITOR.on('dialogPluginReady',a);function a(){CKEDITOR.dialog.on('resize',function(b){var c=b.data,d=c.width,e=c.height,f=c.dialog,g=f.parts.contents;if(c.skin!='v2')return;g.setStyles({width:d+'px',height:e+'px'});if(!CKEDITOR.env.ie||CKEDITOR.env.ie9Compat)return;setTimeout(function(){var h=f.parts.dialog.getChild([0,0,0]),i=h.getChild(0),j=i.getSize('width');e+=i.getChild(0).getSize('height')+1;var k=h.getChild(2);k.setSize('width',j);k=h.getChild(7);k.setSize('width',j-28);k=h.getChild(4);k.setSize('height',e);k=h.getChild(5);k.setSize('height',e);},100);});};})();