drupal interface to fckeditor will not expose the upload tab in the image upload dialog box
jjj0923 - October 24, 2006 - 23:15
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | HEAD |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
drupal interface to fckeditor will not expose the upload tab in the image upload dialogie box
if downloading fckeditor and using their sample php copde to test it...once the config files are setup to allow image uploading the fckeditor will allow images to be uploaded by exposing an 'upload' tab in the image upload dialogue box.
However when drupal 4.7 invokes the fckeditor the 'upload' tab is not displayed in the image upload dialgue box even thought "allow fckeditor file uploads" are enabled in the access panel of the admin menu in drupal 4.7
| Attachment | Size |
|---|---|
| fckeditorproblem.jpg | 121.94 KB |

#1
an image showing the problem can be found here:
http://www.sailnet.com/images/fckeditorproblem.jpg
#2
i don't think that is a bug or anything. just a feature that might have been disabled.
#3
That feature is indeed disabled in the current version for drupal. You can turn it on yourself of jou dive even more into the configuration.
File uploads are still possible with the browse server button.
#4
how do I turn it on myself?
We do not like the current browse server button because we do not want people browsing our server and we prefer the simple upload method offered in this tab.
thanks in advance.
#5
At the moment that would be hard, because a large part of the initialization is handled in the
fckeditor.modulefile...you would have to replace the following occurences at line 257
".$js_id.".Config['LinkUpload'] = false;".$js_id.".Config['ImageUpload'] = false;
".$js_id.".Config['FlashUpload'] = false;\n";
with this code
".$js_id.".Config['LinkUpload'] = true;".$js_id.".Config['LinkUploadURL'] = '".$module_full_path."/fckeditor/editor/filemanager/upload/php/upload.php?ServerPath=/".$files_path."' ;
".$js_id.".Config['ImageUpload'] = true;
".$js_id.".Config['ImageUploadURL'] = '".$module_full_path."/fckeditor/editor/filemanager/upload/php/upload.php?ServerPath=/".$files_path."&Type=Image' ;
".$js_id.".Config['FlashUpload'] = true;
".$js_id.".Config['FlashUploadURL'] = '".$module_full_path."/fckeditor/editor/filemanager/upload/php/upload.php?ServerPath=/".$files_path."&Type=Flash';\n";
and after that you would have to edit the
\modules\fckeditor\fckeditor\editor\filemanager\upload\php\config.phpin the same way as the file browser configuration#6
setting this to postponed, later I will make an option to turn it on.
#7
#8
Could you add a description about this to the README file? I just spent a couple hours trying to figure out why uploads weren't working, because I've always used the upload tab and I expected it to be there. Just a simple explanation like this would be enough:
The FCKeditor module does not display the "Upload" tab of the Image Properties window. All image uploading is done using the File Browser, which is accessed using the "Browse Server" button from the Image Properties window.
Thanks!
Bryan
#9
I'll think I will include both as an option in the next version, so you can choose it yourself
#10
fixed in current development release
#11