10 Steps to implement FCKEditor in Etomite
1. Download the current stable release of FCK-Editor from http://www.fckeditor.net
2. Extract the package to your local computer. You should now have a folder named "fckeditor".
3. Locate FCKs config file "/fckeditor/fckconfig.js" and open it in your favourite (text)editor
3.a. Locate and change the following lines to enable php support:
Original lines: 182 | var _FileBrowserLanguage = 'asp'; // asp | aspx | cfm | lasso | perl | php | py 183 | var _QuickUploadLanguage = 'php'; // asp | aspx | cfm | lasso | php Modified lines: 182 | var _FileBrowserLanguage = 'php'; // asp | aspx | cfm | lasso | perl | php | py 183 | var _QuickUploadLanguage = 'asp'; // asp | aspx | cfm | lasso | php
3.b. Locate and change the following lines to disable Link- and FlashBrowser (optional, see Appendix)
Original lines: 190 | FCKConfig.LinkBrowser = true; ... 200 | FCKConfig.FlashBrowser = true; Modified lines: 190 | FCKConfig.LinkBrowser = false; ... 200 | FCKConfig.FlashBrowser = false;
3.c. Locate and change the following lines to disable Link-, Image- and FlashUpload (optional, see Appendix)
Original lines: 205 | FCKConfig.LinkUpload = true; ... 210 | FCKConfig.ImageUpload = true; ... 215 | FCKConfig.FlashUpload = true; Modified lines: 205 | FCKConfig.LinkUpload = false; ... 210 | FCKConfig.ImageUpload = false; ... 215 | FCKConfig.FlashUpload = false;
3.d. Locate and change the following line to enable ImageBrowser (by changing "Image" to "images")
Original lines: 196 | FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension; Modified line: 196 | FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=images&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension;
4. Locate the file "/fckeditor/editor/filemanager/browser/default/frmresourcetype.html" and open it in your favourite (text)editor
4.a. Locate and change the following line:
38 | Original line: ['Image','Image'], Modified line: 38 | ['images','Image'],
5. Locate the file "/fckeditor/editor/filemanager/browser/default/connectors/php/config.php" and open it in your favourite (text)editor
5.a. Locate and change the following line to enable FCKs Filemanager:
Original line: 28 | $Config['Enabled'] = false; Modified line: 28 | $Config['Enabled'] = true;
5.b. Locate and change the following line to set path to your user files (e.g. images).
Original line: 33 | $Config['UserFilesPath'] = '/userfiles/'; Modified line: 33 |$Config['UserFilesPath'] = $ETOMITE_PAGE_BASE['relative'].'/[MySite]/assets/';
Note: "[MySite]" is a placeholder for the folder of your etomite installation. If you have installed etomite in the root directory of your webserver, you have to delete "/[MySite]".
5.c. Locate and change the following lines:
Original lines:
48 | $Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png');
49 | $Config['DeniedExtensions']['Image'] = array();
Modified lines:
48 | $Config['AllowedExtensions']['images'] = array('jpg','gif','jpeg','png');
49 | $Config['DeniedExtensions']['images'] = array();6. Locate the file "/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php" and open it in your favourite (text)editor
6.a. Locate and change the following lines:
Original line:
75 | if ( !in_array( $sResourceType, array('File','Image','Flash','Media') ) )
Modified lines:
75 | if ( !in_array( $sResourceType, array('File','images','Flash','Media') ) )7. Upload the folder "fckeditor" to your "/manager/media/" folder
8. Make sure that the permissions of folder "assets/images" are set to 777. In a valid etomite-installation this should already be the case.
9. Login to you etomite manager, open the etomite configuration, choose the Interface & Editor Settings and select FCKeditor as WYSIWYG-Editor.
10. Violá.
Appendix A
If you like to use the flash-browser and/or the link-browser (see Step 3.b.), you should do the following:
1. Create a folder named 'Flash' (for the Flashbrowser) and/or 'File' (for the LinkBrowser) and change their permissions to 777.
2. Switch on these functions again (see Step 3.b.) by setting their properties (back) to "true".
Appendix B
If you like to disable the "create new folder" option of the filemanager you should do the following:
1. Locate the file "/fckeditor/editor/filemanager/browser/default/browser.html" and open it in your favourite (text)editor
2. Locate and change the following lines:
Original line: 144 | <frameset rows="50,*,50" framespacing="0"> Modified line: 144 | <frameset rows="50,*,0" framespacing="0">
Note: This only hides this frame from viewing. If their is a better solution to turn this option off let me know.
Download
A ready-made 10-steps-modified version of FCKEditor 2.4.2 (for eto root installation, see Step 5.b.) can be downloaded here:
Attached File(s)
-
fckeditor_2.4.2_modified.zip (1MB)
Number of downloads: 59
This post has been edited by Jim Browski: 14 June 2007 - 03:20 PM

Sign In
Register
Help

MultiQuote
