Location: PHPKode > scripts > Multi Language module for Esvon Classifieds > multi-language-module-for-esvon-classifieds/html_editor/tiny_mce/render.phps
<?php

function HTML_Editor_tiny_mce_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/tiny_mce/jscripts/tiny_mce/';

      $s.='<script language="javascript" src="'.$base_path.'tiny_mce.js"></script>';
    }

    return $s.'<script>	tinyMCE.init({
		theme : "advanced", // simple
		mode : "exact",
		elements : "'.$textarea_name.'",
 		plugins : "preview,searchreplace,print,paste,directionality,fullscreen",
		extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]", // a[href|target|name]
//    language : "en",
//    invalid_elements : "a,img",
//		debug : true,
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect",
	  theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,cleanup,code,preview,|,forecolor,backcolor,formatselect",
	  theme_advanced_buttons3 : "paste,pastetext,pasteword,|,search,replace,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		paste_use_dialog : false,
		theme_advanced_resizing : true,
  	theme_advanced_resize_horizontal : true,
    apply_source_formatting : true,
		paste_auto_cleanup_on_paste : true,
		paste_convert_headers_to_strong : false,
		paste_strip_class_attributes : "all",
		paste_remove_spans : false,
		paste_remove_styles : false
	});
</script>';


}

?>
Return current item: Multi Language module for Esvon Classifieds