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

CommentFileSizeAuthor
fckeditorproblem.jpg121.94 KBjjj0923
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jjj0923’s picture

an image showing the problem can be found here:

http://www.sailnet.com/images/fckeditorproblem.jpg

MySchizoBuddy’s picture

i don't think that is a bug or anything. just a feature that might have been disabled.

ontwerpwerk’s picture

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.

jjj0923’s picture

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.

ontwerpwerk’s picture

At the moment that would be hard, because a large part of the initialization is handled in the fckeditor.module file...

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.php in the same way as the file browser configuration

ontwerpwerk’s picture

Status: Active » Closed (works as designed)

setting this to postponed, later I will make an option to turn it on.

ontwerpwerk’s picture

Status: Closed (works as designed) » Postponed
CopaceticOpus’s picture

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

ontwerpwerk’s picture

Title: drupal interface to fckeditor will not expose the upload tab in the image upload dialogie box » drupal interface to fckeditor will not expose the upload tab in the image upload dialog box
Status: Postponed » Active

I'll think I will include both as an option in the next version, so you can choose it yourself

ontwerpwerk’s picture

Status: Active » Fixed

fixed in current development release

Anonymous’s picture

Status: Fixed » Closed (fixed)