Integrating FCKEditor into Roller


For those of you who have worked with FCKeditor, you may wonder how to include this growing product in JRoller.  Well, it is actually pretty easy.  I'll maintain this site from release to release, if these instructions do not work for you, please email me, and I will gladly update them.

Downloading FCKEditor:

  1. Download the tar archive from http://xtian.stonescape.net/downloads/Fck4Roller.tar
  2. Unpack the tar archive, which includes the FCKEditor 2.0 RC2 source (FCKeditor), a README, and the JSP file for use.

Installing:

  1. Copy FCKeditor directory to {roller dir}/editor.
  2. Copy editor-fckeditor.jsp file to {roller dir}/weblog
  3. Go to the admin panel within JRoller, and add the new editor to your list.

Configuring:

  • In editor-fckeditor.jsp, you can easily change the default height of the editor by changing the following line from the default height of 400px: 
    • oFCKeditor.Height=400;
  • In addition, you can alter the components of the editor by changing the toolbar set.  The default set is set to "Roller" in the file editor-fckeditor.jsp.  Make the following modifications:
    1. If you like, alter the name of the toolbar you want to use in file editor-fckeditor.jsp:  oFCKeditor.ToolbarSet="Roller";
    2. Alter the definition of "Roller in the fckconfig.js file located in the  FCKeditor folder.  I have defined the following:
 FCKConfig.ToolbarSets["Roller"] = [
    ['Source','-','Cut','Copy','Paste','PasteText','PasteWord'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    ['Link','Unlink'],
    ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
    ['Table','Rule','SpecialChar','Smiley'],
    ['OrderedList','UnorderedList','-','Outdent','Indent'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
    ['FontFormat','FontName','FontSize','TextColor']
] ;
I have removed the Preview, NewPage, Print, Image, Style, BGColor command as they didn't have a lot of meaning for Roller.  The one command that is questionable is the Image command, because I do not know what the policies for upoading and linking  on a site are.

Other possible items:  the smilies are defaulted in the fckconfig.js file to use the ones with FCKeditor.  You can change the path to load another set of smilies.  The other features, "image browsing", "link upload", etc. are pretty neat, but depend a lot on the specific site.

If you have any questions, please look at the FCKeditor message boards, or email me.
 
 
 
 
Comments:

Post a Comment:
  • HTML Syntax: Allowed
 
 

« July 2008
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today
Theme by Christian Stone.