Jan
12
2016
By abernal
In order to install Ckeditor and Ckfinder, follow this process [A copy from : brightwebsitedesign]
1. Download the Modules
- Install CKEDITOR module
- Download the CKEDITOR files
- Download the CKFINDER files
- Set CKEDITOR files within
- sites/all/modules/ckeditor/ckeditor
- Set CKFINDER files within
- sites/all/modules/ckeditor/ckfinder
2. CKFinder Configuration
- Comment all the function CheckAuthentication
- Path : CKEditor/CKFinder/config.php
/** function CheckAuthentication() { // WARNING : DO NOT simply return "true". By doing so, you are allowing // "anyone" to upload and list the files in your server. You must implement // some kind of session validation here. Even something very simple as... // return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized']; // ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the // user logs in your system. // To be able to use session variables don't forget to add session_start(). return false; } */
- In the same config.php file confirm that the $baseUrl is :
$baseUrl = '/ckfinder/userfiles/';
define the path to CKFinder userfiles.
- Add this code
require_once '../../../../includes/filemanager.config.php';
below the line that contains
$baseDir = resolveUrl($baseUrl);
3. Settings.php Configuration
- Open the file setting.php located in this folder
sites/all/default
- Uncomment and modify this line
$cookie_domain = 'yourdomainname.com';
- Uncomment and modify this line
$base_url = 'http://www.yourdomainname.com';
4. Permissions
- Next go to /admin/user/permissions and set CKEditor access permission to authenticated user and CKFinder file upload permission.
5. CKeditor configurations
- Now go to /admin/settings/ckeditor and edit the advanced profile and set the file browser as type as CKFinder and save the configurations.
- If necesary modify the Path to CKEditor