src/cm/media/js/ckeditor/skins/v2/skin.js
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:35:26 +0200
changeset 656 a84519031134
parent 256 adccf7c023ef
permissions -rw-r--r--
add link to "privacy policy" in the header test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
256
adccf7c023ef add fck editor for html texts
raph
parents:
diff changeset
     1
/*
adccf7c023ef add fck editor for html texts
raph
parents:
diff changeset
     2
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
adccf7c023ef add fck editor for html texts
raph
parents:
diff changeset
     3
For licensing, see LICENSE.html or http://ckeditor.com/license
adccf7c023ef add fck editor for html texts
raph
parents:
diff changeset
     4
*/
adccf7c023ef add fck editor for html texts
raph
parents:
diff changeset
     5
adccf7c023ef add fck editor for html texts
raph
parents:
diff changeset
     6
CKEDITOR.skins.add('v2',(function(){var a=[];if(CKEDITOR.env.ie&&CKEDITOR.env.version<7)a.push('icons.png','images/sprites_ie6.png','images/dialog_sides.gif');return{preload:a,editor:{css:['editor.css']},dialog:{css:['dialog.css']},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)return;setTimeout(function(){var h=f.parts.dialog.getChild([0,0,0]),i=h.getChild(0),j=h.getChild(2);j.setStyle('width',i.$.offsetWidth+'px');j=h.getChild(7);j.setStyle('width',i.$.offsetWidth-28+'px');j=h.getChild(4);j.setStyle('height',i.$.offsetHeight-31-14+'px');j=h.getChild(5);j.setStyle('height',i.$.offsetHeight-31-14+'px');},100);});};})();