Quite troublesome.
Documents required:
fckeditor-java-demo-2.5.war
FCKeditor_2.6.5.zip
Unzip FCKeditor_2.6.5.zip to the project folder
Put the lib in fckeditor-java-demo-2.5.war into the project's lib and reference all those packages.
web.xml join
<servlet-name>ConnectorServlet</servlet-name>
<url-pattern>/FCKeditor/editor/filemanager/connectors/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ConnectorServlet</servlet-name>
<servlet-class>net.fckeditor.connector.ConnectorServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
Add fckeditor.properties in fckeditor-java-demo-2.5.war to the source package (root directory) (used to reinitialize some settings in the package)
jsp
< %@taglib uri=" http://java.fckeditor.net " prefix="FCK"%>
<FCK:editor instanceName="content" basePath="/FCKeditor" height="1000"> </FCK:editor>
some settings
instanceName: editor instance name
width: width, default value is 100%
height: height, default value is 200
ToolbarSet: tool set name, refer to FCKCONFIG.JS, the default value is Default
value: HTML code to initialize the editor, the default value is empty
BasePath: The base path of the editor, the default is the /Fckeditor/ folder. Note, try not to use relative paths. The most commonly used expression method is relative to the site root path, which should end with /
CheckBrowser: Whether to check browser compatibility before displaying the editor, the default is true
DisplayErrors: Whether to display prompt errors, the default is true;
-