All pastes #926001 Raw Edit

plugin de template : yui editor

public php v1 · immutable
·published 2008-03-03 14:05 UTC
rendered paste body
<?php /** * cfunction plugin :  init a yui editor environnement *     * @param jTplCompiler $compiler  */function jtpl_cfunction_html_yuieditor($compiler, $params=array()) {     // on génère du code php qui sera intégré dans le template compilé     $codesource = '$rep = $GLOBALS[\'gJCoord\']->response;                   if($rep!=null) {					   $rep->addCSSLink(\'http://yui.yahooapis.com/2.5.0/build/assets/skins/sam/skin.css\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/yahoo-dom-event/yahoo-dom-event.js\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/element/element-beta-min.js\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/container/container_core-min.js\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/menu/menu-min.js\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/button/button-min.js\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/editor/editor-beta-min.js\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/dragdrop/dragdrop-min.js\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/container/container-min.js\');                       $rep->addJSLink(\'http://yui.yahooapis.com/2.5.0/build/tabview/tabview-min.js\');                       $rep->addJSLink(\'js/yuieditor.js\');                    } ';     $compiler->addMetaContent($codesource);} ?>