Location: PHPKode > scripts > Esvon Auto Listings Manager > esvon-auto-listings-manager/html_editor/fckeditor/render.phps
<?php

function HTML_Editor_fckeditor_getCode($textarea_name, $textarea_code){

    $s = '<table border=0 cellspacing=0 width="100%"><tr><td>'.$textarea_code.'</td></tr></table>';

    static $js_loaded;
    if(!isset($js_loaded)){

      $js_loaded = 1;
      $base_path = @parse_url(SITE_URL);
      $base_path = $base_path['path'] ? $base_path['path'] : '/';
      $base_path = $base_path.'html_editor/fckeditor/';

      $s.='<script src="'.$base_path.'fckeditor.js"></script>'.
  '<script>var aFCKeditors = new Array();
  function esFCKeditor_onload() {
	var oFCK;
	for(var i=0;i<aFCKeditors.length;i++){
  	oFCK = new FCKeditor( aFCKeditors[i] ) ;
 	  oFCK.BasePath	= "'.$base_path.'";
    oFCK.Config["CustomConfigurationsPath"] = "'.$base_path.'myconfig.js";
    oFCK.ToolbarSet = "MyToolbar";
	  oFCK.ReplaceTextarea() ;
  }
} 
window.onload = esFCKeditor_onload;
</script>';
    }

    return $s.'<script>aFCKeditors.push("'.$textarea_name.'");</script>';


}

?>
Return current item: Esvon Auto Listings Manager