[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_ext/ckeditor/plugins/preview/ -> plugin.js (source)

   1  /*
   2  Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
   3  For licensing, see LICENSE.html or http://ckeditor.com/license
   4  */
   5  
   6  (function(){var a={modes:{wysiwyg:1,source:1},canUndo:false,exec:function(c){var d,e=CKEDITOR.env.isCustomDomain();if(c.config.fullPage)d=c.getData();else{var f='<body ',g=CKEDITOR.document.getBody(),h=c.config.baseHref.length>0?'<base href="'+c.config.baseHref+'" _cktemp="true"></base>':'';if(g.getAttribute('id'))f+='id="'+g.getAttribute('id')+'" ';if(g.getAttribute('class'))f+='class="'+g.getAttribute('class')+'" ';f+='>';d=c.config.docType+'<html dir="'+c.config.contentsLangDirection+'">'+'<head>'+h+'<title>'+c.lang.preview+'</title>'+'<link type="text/css" rel="stylesheet" href="'+[].concat(c.config.contentsCss).join('"><link type="text/css" rel="stylesheet" href="')+'">'+'</head>'+f+c.getData()+'</body></html>';}var i=640,j=420,k=80;try{var l=window.screen;i=Math.round(l.width*0.8);j=Math.round(l.height*0.7);k=Math.round(l.width*0.1);}catch(o){}var m='';if(e){window._cke_htmlToLoad=d;m='javascript:void( (function(){document.open();document.domain="'+document.domain+'";'+'document.write( window.opener._cke_htmlToLoad );'+'document.close();'+'window.opener._cke_htmlToLoad = null;'+'})() )';}var n=window.open(m,null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+i+',height='+j+',left='+k);if(!e){n.document.write(d);n.document.close();}}},b='preview';CKEDITOR.plugins.add(b,{init:function(c){c.addCommand(b,a);c.ui.addButton('Preview',{label:c.lang.preview,command:b});}});})();


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7