1 /* Import theme specific language pack */
2 tinyMCE.importPluginLanguagePack('filemanager', 'en');
4 function TinyMCE_filemanager_getControlHTML(control_name) {
5 switch (control_name) {
7 return '<img id="{$editor_id}_filemanager" src="{$pluginurl}/images/filemanager.gif" title="{$lang_insert_filemanager}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceFilemanager\');" />';
13 * Executes the mceFilemanager command.
15 function TinyMCE_filemanager_execCommand(editor_id, element, command, user_interface, value) {
18 case "mceFilemanager":
19 var template = new Array();
20 template['file'] = '../../plugins/filemanager/InsertFile/insert_file.php'; // Relative to theme
21 template['width'] = 660;
22 template['height'] = 500;
24 tinyMCE.openWindow(template, {editor_id : editor_id});
27 // Pass to next handler in chain