WYSIWYG/CKEditor/CKFinder Bridge Module for Drupal 6

The WYSIWYG module for Drupal is great for consistently managing WYSIWYG editors. At OPC we primarily use it with CKEditor. Now, the makers of CKEditor, CKSource, provide a very nice file browser called CKFinder (and although it’s not free, it’s probably worth the license fee). Unfortunately, until very recently you could not use the WYSYIWYG version of CKEditor with CKFinder, without following a rather complicated installation process.

As suggested by sun, we’ve created a WYSIWYG/CKEditor/CKFinder bridge module for Drupal 61. It should make the process of installing CKFinder slightly easier (although, unfortunately not completely automated). You can download (or fork) the source from Github:

It’s very rough, and needs lots more testing, so please try it out and let us know how it goes; but please, read the installation instuctions carefully.

Installation Instructions

  1. Make sure that the WYSIWYG and Libraries modules are correctly installed and configured to use CKEditor on at least one content type. Further instructions can be found on the WYSIWYG module installation instructions page.

  2. Download the CKFinder library from http://ckfinder.com/download and extract it to the appropriate libaries directory.

  3. Make sure that the web server has write permissions for the ckfinder directory, and the file config.php and that you have set the $cookie_domain variable set correctly in your settings.php file.

  4. Enable the ‘WYSIWYG CKEditor CKFinder bridge’ module. This will copy the default CKFinder config.php file to config.php.orig, and put a new config.php file in its place. You will need to edit this file to set your licence key and desired base URL. For example:

       $config['LicenseName'] = 'my-license-name';
       $config['LicenseKey']  = 'my-license-key';
    
       $baseUrl = '/sites/default/files/';
    
  5. You should now have an additional permission checkbox on the permisions page titled ‘allow CKFinder file uploads’, and an additional plugin checkbox in the Buttons and Plugins fieldset for your CKEditor WYSIWYG profiles.

Enjoy.


  1. If you’re using Drupal 7, I recommend checking out the Media module developed by people from Acquia. 

Add new comment