FCKeditor Integration With Tool

Skip to end of metadata
Go to start of metadata

About

The FCKeditor is a "HTML text editor (that) brings to the web many of the powerful functionalities of desktop editors like MS Word. It's lightweight and doesn't require any kind of installation on the client computer." If you want further information about the FCKeditor, please go to http://www.fckeditor.net

DHTML Layer Handling
If your page uses DHTML layering and anything is above z-index=0 (the lowest level) then the drop down menus in the FCKeditor will stop working. This is a known Geko bug and the workaround that is mentioned in the FCKEditor wikki does not work for 2.0. So if you are using the FCKEditor, you need to ensure that all div layers use z-index=0.

Installation

  • If you haven't already done so, check out lams_build and the LAMS core modules. Deploy the lams.ear into the JBoss directory. All the files you need to get FCKeditor working are already there.

If you want to see the source code for the FCKeditor:

  • The core FCKeditor source code is located in lams_central->web->fckeditor and,
  • The JSP Integration Pack (FCKeditor-2.3.jar) is included in LAMS shared library and is located in lams_build->lib->fckeditor.

Configuration Settings

To reference the FCKeditor tag library, add the following to your tool's web.xml:

<taglib>
    <taglib-uri>tags-fck-editor</taglib-uri>
    <taglib-location>/WEB-INF/fckeditor/tlds/FCKeditor.tld</taglib-location>
</taglib>

The configuration settings for the Connector and Upload servlet (to upload/insert images to/from the server) is now located in lams_central->web->WEB-INF->web.xml

A copy of FCKeditor.tld is located in FCKeditor-2.3.jar

Usage

Here is a simple example of how to use the FCKeditor in the JSP web pages.

Firstly, add the following taglib definition at the top of the JSP file:

<%@ taglib uri="tags-fck-editor" prefix="FCK" %>

and to have an instance of the FCKeditor:

<FCK:editor id="theVariableYouWantToStoreTheTextIn" 
    basePath="/lams/fckeditor/"
    height="150"    
    width="85%">					
</FCK:editor>

Troubleshooting

See the Troubleshooting page.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.