Closed (fixed)
Project:
KCFinder integration
Version:
7.x-1.84
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
24 Aug 2011 at 09:16 UTC
Updated:
22 Sep 2011 at 11:11 UTC
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
Comment #1
sjcctan commentedHello,
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.
Comment #2
danyalejandro commentedComment #3
danyalejandro commentedDoes 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.
Comment #4
Rajan M commentedNew version1.85, working fine with WYSIWYG :)
Comment #5
danyalejandro commented