I recently installed FCKeditor 2.4.2. After spending some very frutrating days with the upload and file browser capabilities, I have managed to get it to work using PHP - except for one little thing:
File upload and browsing work, BUT whenever I upload an image, I get the broken link icon in the preview pane and the editor area. I set up the upload paths in fckeditor/editor/filemanager/upload/php/config.php and fckeditor/editor/filemanager/browser/default/connectors/php/config.php as follows:
$Config['UserFilesPath'] = 'userfiles/' ;
$Config['UserFilesAbsolutePath'] = '/path/to/my/site/userfiles/' ;
The problem seems to be that the src of the <img> tags are set to the relative path - ie. "userfiles/Image/". It works on the front end part of my site which is placed one directory above "userfiles/". But the fckeditor.html which is used for displaying the editor resides in /fckeditor/editor/. If I change the src og the image to "../../userfiles/Image/<filename>", the images show in the editor, but obviously not on the front end.
I tried to comment the line containing $Config['UserFilesPath']. That resulted in the relative path being set to "/userfiles/Image/". If I change the line to $Config['UserFilesPath'] = '' the path is just set to "Image/".
This is driving me insane! This question has been asked before, but I can't find the solution anywhere... any help will be greatly appreciated.
I am using PHP version 5.2.1 and Firefox 2.0.0.3.
File upload and browsing work, BUT whenever I upload an image, I get the broken link icon in the preview pane and the editor area. I set up the upload paths in fckeditor/editor/filemanager/upload/php/config.php and fckeditor/editor/filemanager/browser/default/connectors/php/config.php as follows:
$Config['UserFilesPath'] = 'userfiles/' ;
$Config['UserFilesAbsolutePath'] = '/path/to/my/site/userfiles/' ;
The problem seems to be that the src of the <img> tags are set to the relative path - ie. "userfiles/Image/". It works on the front end part of my site which is placed one directory above "userfiles/". But the fckeditor.html which is used for displaying the editor resides in /fckeditor/editor/. If I change the src og the image to "../../userfiles/Image/<filename>", the images show in the editor, but obviously not on the front end.
I tried to comment the line containing $Config['UserFilesPath']. That resulted in the relative path being set to "/userfiles/Image/". If I change the line to $Config['UserFilesPath'] = '' the path is just set to "Image/".
This is driving me insane! This question has been asked before, but I can't find the solution anywhere... any help will be greatly appreciated.
I am using PHP version 5.2.1 and Firefox 2.0.0.3.