Location: PHPKode > projects > Esvon Personals > esvon-personals/html_editor/ckeditor/render.phps
<?php

function HTML_Editor_ckeditor_getCode($textarea_name, $textarea_code){

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

    static $js_ok;
    
    if(!isset($js_ok)){
      $js_ok = 1;

      $base_path = @parse_url(SITE_URL);
      $base_path = $base_path['path'] ? $base_path['path'] : '/';

      $class_id = class_exists('esAdmPage') ? 'esAdmPage' : 'esPage';
      $o_pg = &Factory::singleton($class_id);
      $o_pg->setHeader( preg_replace('/<\/head>/i',
        '<script src="'.$base_path.'html_editor/ckeditor/ckeditor.js"></script></head>', 
        $o_pg->getHeader()) );
    }
    
    return $s.'<script>CKEDITOR.replace( "'.$textarea_name.'",
 {
   skin: "v2", // kama,v2,office2003
   // language: "en",
   removePlugins : "about,elementspath,filebrowser,flash,forms,image,link,newpage,pagebreak,resize,save,scayt,smiley,stylescombo,table,tabletools,templates",
   toolbar :
    [
    ["Source","-",/*"Save","NewPage",*/"Preview","-"/*,"Templates"*/],
    ["Cut","Copy","Paste","PasteText","PasteFromWord","-","Print" /*,"SpellChecker", "Scayt"*/],
    ["Undo","Redo","-","Find","Replace","-","SelectAll","RemoveFormat"],
    ["Bold","Italic","Underline","Strike","-","Subscript","Superscript"],
    ["NumberedList","BulletedList","-","Outdent","Indent","Blockquote"/*,"CreateDiv"*/],
    ["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"],
    "/",
    ["TextColor","BGColor"],
    ["Maximize", "ShowBlocks","-"/*,"About"*/],
    [/*"Image","Flash","Table",*/"HorizontalRule",/*"Smiley",*/"SpecialChar"/*,"PageBreak"*/],
    "/",
    [/*"Styles",*/"Format","Font","FontSize"]
    ]
   });
</script>';

}

?>
Return current item: Esvon Personals