I managed to solve the problem :clap:
I've been looking for a simple way on how to add pdf files and things like that to the product. And filemanager plugin for tinymce was the easiest solution out there.
I found some old version that is an addon to the advlink and img plugin.
So now if u want to upload a file, you just click on the "browse" image ( in the link plugin or img plugin ) and you get redirected to filemanager and then you just insert or link the file ( or image ).
Sry for my bad english by the way :P, i hope u guys understand what i mean.
Anyway all u need to do is copy the plugin in to the "plugins" folder in tiny_mce.
( i used filemanager 1.4 if u need it contact me on [email protected] )
And then edit the code a bit, so it looks like this:
<script language="javascript" type="text/javascript" src="tiny_mce/plugins/filemanager/jscripts/mcfilemanager.js"></script>
<script language="javascript" src="includes/menu.js"></script>
<script language="javascript" src="includes/general.js"></script>
<script language="javascript" type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
width : "100%",
height : "460",
relative_urls : false,
remove_script_host : true,
document_base_url : "document_base_url",
plugins : "ibrowser,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,searchreplace,print,paste,directionality,fullscreen,noneditable,contextmenu",
theme_advanced_buttons1_add : "fontselect,fontsizeselect,forecolor,ibrowser,open",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,backcolor,liststyle",
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,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "center",
theme_advanced_disable : "image",
theme_advanced_statusbar_location : "bottom",
content_css : "generic.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "hr[class|width|size|noshade]",
file_browser_callback : "mcFileManager.filebrowserCallBack",
custom_undo_redo_levels : 10,
paste_use_dialog : false
});
function fileBrowserCallBack(field_name, url, type) {
// This is where you insert your custom filebrowser logic
alert("Filebrowser callback: " + field_name + "," + url + "," + type);
}
</script>
```And don't forget to change "document_base_url".
This was very useful for me and i hope it will be for you aswell! :D
Greets
Jernej