I have put Kcfinder ( Version 2.5 ) library in sites/all/libraries/.
By default "disabled" is true in kcfinder/config.php ( ie $_CONFIG['disabled'] = true )
while using kcfinder with ckeditor for image upload, when I click on 'Browse Server' button it gives me js waring "You don't have permissions to browse server."

I gone through the module code, looks like url missing 'cms=drupal' ( may be I am missing something ?)
but following fix works for me

< 	  $settings['filebrowserImageBrowseUrl'] = $kcfinderFilesPath . '/browse.php?type=images';
<       $settings['filebrowserBrowseUrl'] = $kcfinderFilesPath . '/browse.php?type=files';
<       $settings['filebrowserFlashBrowseUrl'] = $kcfinderFilesPath . '/browse.php?type=flash';
<       $settings['filebrowserUploadUrl'] = $kcfinderFilesPath . '/upload.php?type=files';
<       $settings['filebrowserImageUploadUrl'] = $kcfinderFilesPath . '/upload.php?type=images';
<       $settings['filebrowserFlashUploadUrl'] = $kcfinderFilesPath . '/upload.php?type=flash';
---
> 	  $settings['filebrowserImageBrowseUrl'] = $kcfinderFilesPath . '/browse.php?type=images&cms=drupal';
>       $settings['filebrowserBrowseUrl'] = $kcfinderFilesPath . '/browse.php?type=files&cms=drupal';
>       $settings['filebrowserFlashBrowseUrl'] = $kcfinderFilesPath . '/browse.php?type=flash&cms=drupal';
>       $settings['filebrowserUploadUrl'] = $kcfinderFilesPath . '/upload.php?type=files&cms=drupal';
>       $settings['filebrowserImageUploadUrl'] = $kcfinderFilesPath . '/upload.php?type=images&cms=drupal';
>       $settings['filebrowserFlashUploadUrl'] = $kcfinderFilesPath . '/upload.php?type=flash&cms=drupal';

Comments

sjcctan’s picture

Hello,

I am not sure about Drupal 7. But in Drupal 6, you need to change some setting in ckfinder config.php and your site setting.php in folder sites/default.

Read the readme file in ckeditor module, there are instructions how to configure the ckfinder.

I hope this helps.

danyalejandro’s picture

Assigned: Unassigned » danyalejandro
danyalejandro’s picture

Status: Active » Needs review

Does it work now? it seems version 1.84 wasn't published with the same files as the dev version (sorry, I'm still learning GIT). I released a new version 1.85 with the required changes.

Rajan M’s picture

New version1.85, working fine with WYSIWYG :)

danyalejandro’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.