tinyMCE.init({ mode : "specific_textareas", editor_selector : "mceEditor", theme : "advanced", //plugins : "table,save,advhr,advimage,advlink,emotions,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen", plugins : "table,insertdatetime,preview,contextmenu,paste,fullscreen,flash", //theme_advanced_buttons` : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator", //theme_advanced_buttons2 : "outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,code", //theme_advanced_buttons3 : "hr,removeformat,visualaid,separator,sub,sup,separator,charmap", //theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", /*theme_advanced_buttons1_add_before : "save,newdocument,separator",*/ theme_advanced_buttons1 : "newdocument,styleselect_REMOVED,fontselect_REMOVED,fontsizeselect_REMOVED,separator_REMOVED,forecolor_REMOVED,backcolor_REMOVED,separator_REMOVED,insertdate_REMOVED,inserttime_REMOVED",//,formatselect", theme_advanced_buttons2 : "bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull", theme_advanced_buttons2_add : "separator,hr,separator,bullist,numlist,separator,outdent,indent,separator,sub,sup,separator,link,unlink,image_REMOVED", theme_advanced_buttons3 : "tablecontrols,separator,removeformat,visualaid,charmap,separator,fullscreen,code_REMOVED,preview", //theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor", //theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator", //theme_advanced_buttons3_add_before : "tablecontrols,separator", //theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "none",//"bottom", content_css : "", plugi2n_insertdate_dateFormat : "%Y-%m-%d", plugi2n_insertdate_timeFormat : "%H:%M:%S", external_link_list_url : "example_link_list.js", external_image_list_url : "example_image_list.js", media_external_list_url : "example_media_list.js", file_browser_callback : "fileBrowserCallBack", paste_use_dialog : false, theme_advanced_resizing : true, theme_advanced_resize_horizontal : false, theme_advanced_link_targets : "", 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, plugin_preview_pageurl : "../../../../module/rte/preview.php" }); function fileBrowserCallBack(field_name, url, type, win) { // This is where you insert your custom filebrowser logic alert("Filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type); // Insert new URL, this would normaly be done in a popup win.document.forms[0].elements[field_name].value = "someurl.htm"; }