Integrate elFinder with TinyMCE 3.x
masterUse the elfinder.tinymce route. In your TinyMCE initialization, set file_browser_callback to the string 'elFinderBrowser' and implement the function using tinyMCE.activeEditor.windowManager.open.
// TinyMCE init
file_browser_callback : 'elFinderBrowser'
// Implementation
function elFinderBrowser (field_name, url, type, win) {
var elfinder_url = '/elfinder/tinymce';
tinyMCE.activeEditor.windowManager.open({
file: elfinder_url,
title: 'elFinder 2.0',
width: 900,
height: 450,
resizable: 'yes',
inline: 'yes',
popup_css: false,
close_previous: 'no'
}, {
window: win,
input: field_name
});
return false;
}