I wrote about this already but no one responded. Thought I would try a different approach and see if anyone can help.
was using FCKeditor 2.4.2, now using 2.6.4 and the same problem exists.
I have a site where I need to change the location to upload images to in the editor for different pages. I don't want to have to install the editor many times, just once. So I include the FCKeditor, instantiate it, and change the config uploads for the UserFiles directory. But when I click the image icon in the toolbar to upload an image, it goes the the orginal configuration directory set in the connector config.php instead of what I have. So I'm missing something.
Here's my code:
if I echo the config value, I get the new location, but any image uploading goes to the original directory set in connector config.php. Yes, the new directory exists and has the correct permissions on it. Help! I really need this to work properly.
Maybe there's another/better way to do it?
was using FCKeditor 2.4.2, now using 2.6.4 and the same problem exists.
I have a site where I need to change the location to upload images to in the editor for different pages. I don't want to have to install the editor many times, just once. So I include the FCKeditor, instantiate it, and change the config uploads for the UserFiles directory. But when I click the image icon in the toolbar to upload an image, it goes the the orginal configuration directory set in the connector config.php instead of what I have. So I'm missing something.
Here's my code:
<? require_once($_Server['DOCUMENT_ROOT'] . 'lib/FCKeditor/fckeditor.php'); $fck = new FCKeditor('FCKeditor1'); $fck->BasePath = '/lib/FCKeditor/'; $fck->Config['UserFilesPath'] = '/path/to/new/dir/userfiles/'; $fck->Create(); ?>
if I echo the config value, I get the new location, but any image uploading goes to the original directory set in connector config.php. Yes, the new directory exists and has the correct permissions on it. Help! I really need this to work properly.
Maybe there's another/better way to do it?