Configure FCKEditor In Drupal Environment

My personal blog site, 5idrupal.com, is online today, which is powered by Drupal CMS.

Drupal is hard for beginners, but has more power than other cms systems in documents for developers.

This blog will show how to configure WYSIWYG editor, FCKEditor, for Drupal.

My environment is  as follow:
  1. Drupal 6.14
  2. FCKEditor Module 1.4
  3. FCKEditor 2.6.5
Put the two fckeditor tar files in $HOME directory for later usage.

I assume that the environment variable $DRUPALROOT is pointed to the root directory of the drupal installation.

First, unpack fckeditor files into drupal installation directory:
# cd $DRUPALROOT/sites/all/modules
# tar -xf ~/fckeditor-6.x-1.4.tar.gz
# cd $DRUPALROOT/sites/all/modules/fckeditor
# tar -xf ~/FCKeditor_2.6.5.tar.gz


Second, edit the configure file for file manager:

# vi $DRUPALROOT/sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php


Add the following line just after the line $Config['UserFilesAbsolutePath'] = '' :

require_once "../../../../../filemanager.config.php";


Now, comes the most important thing, modify the drupal settings file to enable filemanager.

# vi $DRUPALROOT/sites/default/settings.php


uncomment the following line:

# $cookie_domain = 'example.com';

and change the example.com to your domain name, for example,  mine is:

$cookie_domain = '5idrupal.com';

 

It is not documented in the README.txt file in the fckeditor module, but it will give you a warning when you browse your server using the filemanager, and uploading files will be failed.

This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file. 


Ok, the final step is to give some roles the permission to access the fckeditor and change the fckeditor profiles for each role. It's just like the other module's configuration.

Enjoy!