You guys did a great job with WYSIWYG! It has made my life a lot easier.
It would be nice if WYSIWYG would detect the activation of FCKEditor's Filemanager and adjust the settings to allow this feature to work.
The state of filemanager is pretty easily detected by reading it's config file. I placed the following code at the end of the wysiwyg_fckeditor_settings function in file sites/all/modules/wysiwyg/editors/fckeditor.inc and it works like a charm.
// detect if filemanager is enabled in FCKEditor and activate it in Wysiwyg
$filemanagersettingsfile = dirname($_SERVER[SCRIPT_FILENAME]) . base_path()
. $editor['library path'] . '/editor/filemanager/connectors/php/config.php';
if (file_exists($filemanagersettingsfile)) {
include($filemanagersettingsfile);
$isenabled = $Config['Enabled'];
if ($Config['Enabled']) {
$settings['LinkBrowser'] = true;
$settings['ImageBrowser'] = true;
$settings['FlashBrowser'] = true;
}
}
I have also included a copy of the modified fckeditor.inc file as an attachment.
Forgive the shortcuts but I'm still getting familiar with the inter-workings of the Drupal API.
Hope to see something like this in the next release. ;-)
Take care,
~Gray~
Comments
Comment #1
graytech commentedOops! I guess I couldn't upload an .inc file. You will have to make due with the post. I should have read the instructions :o
~Gray~
Comment #2
sunThe native file browsers/uploaders of editors are purposively not supported by Wysiwyg module.
Comment #3
semiaddict commentedHi,
How are we supposed to let users upload files to the editor area then?
Is there a specific plug-in to install for the Wysiwyg module?
Thank you.
---
Oussama Mubarak // Semiaddict