Topic: FileManager, Drupal 6.11, and WYSIWYG
Hello!
I've been looking all over for documentation to match the current Drupal wysiwyg methods. I don't know if you're familiar with it or not yet, but I believe you'll find many people are adopting it.
The wysiwyg api module can be found here: http://drupal.org/project/wysiwyg
All that does is enable support for loading different editors, and plugins for each.
The major change that might affect you is that it discourages adding or editing any file from the tinymce install. Everything gets loaded into it externally through calls. They look a bit like this:
<?php
/**
* Implementation of hook_wysiwyg_plugin().
*/
function tinymce_filemanager_wysiwyg_plugin($editor, $version) {
switch ($editor) {
case 'tinymce':
return array(
'tinymce_filemanager' => array(
'path' => drupal_get_path('module', 'tinymce_filemanager') .'/filemanager/editor_plugin.js',
'buttons' => array('tinymce_filemanager' => t('File Manager')),
'url' => 'http://wiki.moxiecode.com/index.php/MCFileManager:Index',
),
);
break;
}
}
?>
I'm trying to write one for your filemanager, but I'm running into issues.
I've configured the filemanager on the machine and the sample page works exactly as it needs to, so the gap is the loading.
I can confirm that the above code does load the javascript for your filemanager, but the scripts aren't adding the browse button to the link popup. But the wysiwyg api can over write any setting from the settings files.
Getting a drupal module people could just install and plug your code into would likely boost sales. Care to lend a hand and I'll help out?