Etomite Community Forums: 10 Steps to implement FCKEditor in Etomite - Etomite Community Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

10 Steps to implement FCKEditor in Etomite Cleaned up and updated version of Pelleke's famous How to

#1 User is offline   Jim Browski 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 163
  • Joined: 07-September 05
  • Location:Germany

Post icon  Posted 14 June 2007 - 03:15 PM

This is an updated version of Pelleke's famous How-To. It deals with Etomite 0.6.1.4 and the newest FCK Editor (current stabel release is 2.4.2, but these instructions may also work with newer versions). Thanks to Pelleke who has done the whole work. In this version i removed the steps that are not necessary anymore due to the changes in the new eto version. Here it goes ...

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)


This post has been edited by Jim Browski: 14 June 2007 - 03:20 PM


#2 User is offline   Pelleke 

  • Etomite Forum Fan
  • Pip
  • Group: Member
  • Posts: 58
  • Joined: 10-October 05
  • Location:Voorburg - Netherlands
  • Interests:Classical- and jazz-Music (Conservatory student speaking), recording, Software development, webdevelopment.

Posted 06 September 2007 - 05:00 PM

Thanks for giving me the credits, and continuing! It's good to visit this place again after a long time, and seeing how people in a community 'recycle' each others knowledge :)

#3 User is offline   Stevio 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 26
  • Joined: 26-January 05

Posted 05 December 2007 - 12:46 PM

Thanks for making this guide. I can confirm this works for the latest version 2.5 of Fckeditor.

The only difference was that i had to put manually the connector folder in (it wasn't in the package from fckeditor:

fckeditor/editor/filemanager/browser/default/

I included my version, maybe some of you can use it.

Attached File(s)



#4 User is offline   Connie 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 8
  • Joined: 19-November 07

Posted 15 December 2007 - 06:35 PM

View PostStevio, on Dec 5 2007, 01:46 PM, said:

Thanks for making this guide. I can confirm this works for the latest version 2.5 of Fckeditor.

The only difference was that i had to put manually the connector folder in (it wasn't in the package from fckeditor:

fckeditor/editor/filemanager/browser/default/

I included my version, maybe some of you can use it.


Stevio,
some things are not clear.

why you did not delete the connector-folders for asp, py and pl, I think that is not necessary ...

in fckconfig.js:
var _QuickUploadLanguage = 'asp'; // asp | aspx | cfm | lasso | php

why this? In our case we are dealing with php, so it should be php here also, I bet my christmas tree ;=)
var _QuickUploadLanguage = 'php'; // asp | aspx | cfm | lasso | php

1)
in the moment everything works only if your etomite-installation is in the root of the server, I am struggeling to get the assets/images below my etomite-folder, not above it ;=)

2)
there are 2 ways of uploading, integrating images:
- upload
- filebrowser

these point to different folders in the moments, one to "assets" and one to "assets/images"

I still do not understand why it seems so difficult to have a working distribution for etomite :(

I will continue...

This post has been edited by Connie: 15 December 2007 - 06:35 PM


#5 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 15 December 2007 - 07:25 PM

View PostConnie, on Dec 15 2007, 01:35 PM, said:

<<< SNIP >>>

I still do not understand why it seems so difficult to have a working distribution for etomite :(

If it's so easy then just do it and contribute back to the community - and I don't mean this to come across with any negative inflection... Community contributions are always welcomed and are the main reason why we have multiple editors now, to whatever extent each integration has been perfected... I have done both entire integrations and tweaked existing integrations over the years but have never had the time nor the desire to attain total perfection on any of them... There will always be room for additional improvements - many of which come to fruition due to individual necessity...

One item to note is that for some third party integrations there is licensing which requires that the entire package be distributed as opposed to a trimmed down code base... Make sure that the removal of components doesn't violate any such implied agreements before taking such actions...

#6 User is offline   Connie 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 8
  • Joined: 19-November 07

Posted 15 December 2007 - 07:50 PM

<<< SNIP >>>

This post edited by Ralph to remove non-constructive content... Any comments regarding forum moderation should be presented to either Dean or Ralph via PM as we make all final decisions regarding acceptable content and conduct... When in doubt, read the forum guidelines...

#7 User is offline   Connie 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 8
  • Joined: 19-November 07

Posted 15 December 2007 - 09:08 PM

I managed the following tasks now:

1) install FCKEditor in an etomite-installation which does not sit in the root of the server
2) activate the Quick-Upload-Feature for uploading files, images, flash or media files
3) get the filebrowser pointing to the same directory
4) getting rid of files for other languages than php in the zip (asp, perl or python) to get a slimmer zip...

I prepared a zip with the configuration which you can use if your etomite-installation is installed in the root of your server
this is the attached file "eto_fckeditor_2_5.zip"

I prepared another zip, "eto_fckeditor_25_in_subdirectory.zip", which contains the 2 configurationfiles where you must change the path to the subdirectory of your Etomite Installation if your etomite-installation is not sitting in the root of the server

I described everything in the file "howto_integrate_fckeditor_in_etomite.txt" which I added to both zips and which I attached separately as well

Now it is far more convenient to upload files or to browse files using the
- "include link" icon
- or "include images" icon (not the image-button!)
- or "include flash" icon

to do:

- find the way how to better define the size of the popup-windows which pop up when uploading files, they are far too small in FireFox
- describe how to enable and disable editor icons

maybe some more tricks

have a good and satisfying evening,

Connie

Attached File(s)



#8 User is offline   Connie 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 8
  • Joined: 19-November 07

Posted 06 January 2008 - 09:41 PM

EDIT: Content deleted by Ralph due to member reports as the content was not constructive in nature...

#9 User is offline   Pelleke 

  • Etomite Forum Fan
  • Pip
  • Group: Member
  • Posts: 58
  • Joined: 10-October 05
  • Location:Voorburg - Netherlands
  • Interests:Classical- and jazz-Music (Conservatory student speaking), recording, Software development, webdevelopment.

Posted 24 January 2008 - 09:07 PM

My dearest community memebers,

As the original writer of this idea, I would like to make a short point of the things that have been going on with this issue lately. I have already stated my happiness with this thread, and with this community. I (and with me the most of us, I guess) am not a professional IT guy, so writing stuff like the original implementation of FCKeditor is for me always struggling with code, looking at the results, and generate major traffic to the php.net servers ;-) etc. The main reason I am doing this is because I need it to work for my own instances of this fabulous CMS. To get it working for myself is enough 'payment' for my efforts, and the reason that I am sharing my experiences with the rest of you, is primarely just not wanting the need for others to re-invent the wheel (rather than feeling I must do something in return for using this, but that is of course a personal thing.)

The way people deal with each other in the community really gets my sunny side up, and motivates me to help solving their problems, if there's time. If people are having issues, of course there may be a chance that nobody ever got their hands wet on it before, so in that case you need to start thinking about it yourself. And if you manage to solve the issue, you might think it's worth it to post it on the forum, as that might take you less additional time than it will take others to solve the issue on their own.

As we all know, Etomite is completely free, according to its license. That means: we are all doing this in our spare time. And even the people who are making money using Etomite, should be aware of the fact that all the developers are not financially interested in their work.

If you need help, you should be able to feel free to ask your question here, not eventually suspecting that your issue will be solved by some geeks in a very little time. If you are contributing to the community in the way of sharing your knowledge, you should also not expect everybody to put their hands together and post useless things like

Quote

THANKS MAN B) B) B) B) B) :lol: :lol: :lol: :lol: :lol: :D :D :D :D :D You saved my ass

However, in my opinion: if you find something useful on the forum, leave a note. That helps people keeping the good work up, and gives an impression of the amount of people who like what you did. And if you really feel you need to get angry (and I don't believe one ever has to) send a private message, or even better: just keep it for yourself and realize that we're all human beings, but don't spoil the forum with it, as it really doesn't stimulate the people who are trying to help you in their spare time.

The real value of the ongoing development and the contributions by others is the pleasant environment at this place. Let's keep it that way and have a little respect.

-Pelleke

(P.S. Ralph or Dean, if you think this shouldn't be in this thread for what reason so ever, feel free to move or delete it.)

This post has been edited by Pelleke: 15 April 2008 - 10:03 PM


#10 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 25 January 2008 - 02:48 PM

View PostPelleke, on Jan 24 2008, 04:07 PM, said:

My dearest community memebers,

<<< SNIPPED for brevity >>>

-Pelleke

(P.S. Ralph or Dean, if you think this shouldn't be in this thread for what reason so ever, feel free to move or delete it.)


No, Pelleke, your comments fit well within this particular thread... Thanks for your continued efforts... B)

#11 User is offline   MbyteZ 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 4
  • Joined: 14-March 08
  • Location:Russia,Stalingrad

Posted 15 December 2008 - 07:42 PM

Connie, bad file (eto_fckeditor_2_5.zip)

#12 User is offline   fishnchips 

  • Etomite Forum Fan
  • Pip
  • Group: Member
  • Posts: 65
  • Joined: 21-August 08

Post icon  Posted 17 December 2008 - 10:52 PM

<<< SNIP >>>

This post has been edited by Ralph: 18 December 2008 - 01:26 AM
Reason for edit: Derogatory comment removed...


#13 User is offline   ddemers 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 2
  • Joined: 25-September 08

Posted 21 January 2009 - 06:50 PM

Does anyone have a working version that they can post, The zips are saying invalid when I try to open them.

Thanks,

#14 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 21 January 2009 - 09:40 PM

View Postddemers, on Jan 21 2009, 01:50 PM, said:

Does anyone have a working version that they can post, The zips are saying invalid when I try to open them.

Thanks,



I just discovered yesterday that there is an issue with the FCKeditor downloads... I will be attempting to intergate the newest release of FCKeditor as soon as I can get it completed and tested... There may be some issues with the managers configuration section for the editor as well, but any fixes to that will have to wait until the v1.2 release...

#15 User is offline   vw53a 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 396
  • Joined: 16-January 05
  • Gender:Male
  • Location:Coevorden, NL
  • Interests:Cars, Computers and everything else technical and/or well designed.

Posted 30 January 2009 - 11:34 PM

Referring to post #1 in this topic I followed the 10 steps with the following remarks:
1 As indicated, but used version 2.6.4 Beta. I also allways use .tar.gz files instead of .zip files. .zip files are fine when everything stays inside Windows, but when I have to upload to a unix/linux server I stay away from them. Have had trouble in the past. Use open source 7-zip to retrieve the .tar file from the .gz file and than once again to extract the files and folders from the .tar file.
2 As indicated
3 Ok
3.a both were already 'php' and I left it like that
3.b I didn't touch these
3.c I didn't touch these
3.d Changed as indicated
4 Ok
4.a Changed as indicated
5 Ok, but remove '/browser/default' from given pathname to find the file
5.a Changed as indicated
5.b Changed as indicated
5.c Changed as indicated (note to self: may need to change other instances of 'Image' to 'images' as well? not done this time)
6 Ok, but remove '/browser/default' from given pathname to find the file
6.a Given line isn't in this file anymore. Found $sResourceType only in a perl connector file. So actually step 6 can be considered skipped.
7 Ok
8 was already Ok
9 Done that
10 FCKEditor seems to be working! Haven't tested it thoroughly though, but at a first glance it looks okay.

This post has been edited by vw53a: 30 January 2009 - 11:44 PM


Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users