config->item('image_library'); } ?>config->item('image_library')."/".$prefix.$image; } ?> tinyMCE.init({ mode : "textareas", theme : "advanced", editor_deselector : "mceNoEditor", plugins : "safari,advlink,style,preview,advhr,advimage,advlink,preview,searchreplace,paste,separator,preview,zoom", theme_advanced_buttons1 : "bold,italic,bullist,underline,|,undo,redo,link,unlink,image,|,cut,copy,pastetext,pasteword,code,|,replace,|,charmap", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", cleanup : true, apply_source_formatting : true, inline_styles : false, paste_create_paragraphs : true, paste_create_linebreaks : false, paste_use_dialog : true, paste_auto_cleanup_on_paste : true, paste_convert_middot_lists : false, paste_unindented_list_class : "unindentedList", paste_convert_headers_to_strong : true, theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", content_css : "/css/admin/tiny.css", external_image_list_url : "http://admin.rickmather.com/includes/imageList", external_link_list_url : "http://admin.rickmather.com/includes/locationList", //document_base_url : "http://admin.rickmather.com/", relative_urls : false, remove_script_host : false, //force_br_newlines : false, //forced_root_block : '',// Needed for 3.x auto_cleanup_word : true, valid_elements : "" +"a[href|target]," +"b/strong," +"br," +"font[color|face|size]," +"img[src|id|width|height|align|hspace|vspace]," +"ul," +"i/em," +"li," +"p[align|class]," +"h1," +"h2," +"h3," +"h4," +"h5," +"h6," +"u," +"span[class]," +"textformat[blockindent|indent|leading|leftmargin|rightmargin|tabstops]" }); 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"; }