Code: Select all
//TinyMCE
case 5: if(!isset($wysiwyg_loaded_TinyMCE) || !$wysiwyg_loaded_TinyMCE) {
echo "\n\n<script language="Javascript" type="text/javascript" src="http://www.instrukser.dk/betatest/include/inc_ext/tiny_mce/tiny_mce.js"></script>\n";
echo "<script language="Javascript" type="text/javascript">\n";
echo "tinyMCE.init({\n";
echo "mode : "textareas",\n";
echo "theme : "simpel",\n";
echo "plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen",\n";
echo "theme_advanced_buttons1_add_before : "save,newdocument,separator",\n";
echo "theme_advanced_buttons1_add : "fontselect,fontsizeselect",\n";
echo "theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",\n";
echo "theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",\n";
echo "theme_advanced_buttons3_add_before : "tablecontrols,separator",\n";
echo "theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",\n";
echo "theme_advanced_toolbar_location : "top",\n";
echo "theme_advanced_toolbar_align : "left",\n";
echo "theme_advanced_path_location : "bottom",\n";
echo "content_css : "example_full.css",\n"; //chech op på den
echo "plugin_insertdate_dateFormat : "%Y-%m-%d",\n";
echo "plugin_insertdate_timeFormat : "%H:%M:%S",\n";
echo "extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",\n";
echo "external_link_list_url : "example_link_list.js",\n";
echo "external_image_list_url : "example_image_list.js",\n";
echo "flash_external_list_url : "example_flash_list.js",\n";
echo "file_browser_callback : "fileBrowserCallBack"\n";
echo "});\n\n";
echo "function fileBrowserCallBack(field_name, url, type) {\n";
echo "alert("Filebrowser callback: " + field_name + "," + url + "," + type);\n";
echo "}\n";
echo "</script>\n";
}
$wysiwyg_loaded_TinyMCE = 1;
break;