FCKeditor usage (FCKeditor_2.6.3) page 1/2

Source: Internet
Author: User

1. Download
Official download homepage: http://www.fckeditor.net/download/. fckeditor_2.6.3.zip is used.
And FCKeditor-2.3 version
2. Deployment
In this example, WebRoot is used as the application root path. The directory structure after deployment is shown in:

1. Decompress fckeditor_2.5.1.zip and copy the fckeditor folder to/WebRoot /.
2、FCKeditor-2.3.zip unzip, copy commons-fileupload.jar and FCKeditor-2.3.jar to/WebRoot/WEB-INF/lib/
3. Modify the/WebRoot/WEB-INF/web. xml file and add the following content:
Copy codeThe Code is as follows:
<Servlet>
<Servlet-name> Connector </servlet-name>
<Servlet-class> com. fredck. FCKeditor. connector orservlet </servlet-class>
<Init-param>
<Param-name> baseDir </param-name>
<Param-value>/UserFiles/</param-value>
</Init-param>
<Init-param>
<Param-name> debug </param-name>
<Param-value> true </param-value>
</Init-param>
<Load-on-startup> 1 </load-on-startup>
</Servlet>

<Servlet>
<Servlet-name> SimpleUploader </servlet-name>
<Servlet-class> com. fredck. FCKeditor. uploader. SimpleUploaderServlet </servlet-class>
<Init-param>
<Param-name> baseDir </param-name>
<Param-value>/UserFiles/</param-value>
</Init-param>
<Init-param>
<Param-name> debug </param-name>
<Param-value> true </param-value>
</Init-param>
<Init-param>
<Param-name> enabled </param-name>
<Param-value> true </param-value>
</Init-param>
<Init-param>
<Param-name> AllowedExtensionsFile </param-name>
<Param-value> </param-value>
</Init-param>
<Init-param>
<Param-name> DeniedExtensionsFile </param-name>
<Param-value> php | php3 | php5 | phtml | asp | aspx | ascx | jsp | cfm | cfc | pl | bat | exe | dll | reg | cgi </param- value>
</Init-param>
<Init-param>
<Param-name> AllowedExtensionsImage </param-name>
<Param-value> jpg | gif | jpeg | png | bmp </param-value>
</Init-param>
<Init-param>
<Param-name> DeniedExtensionsImage </param-name>
<Param-value> </param-value>
</Init-param>
<Init-param>
<Param-name> AllowedExtensionsFlash </param-name>
<Param-value> swf | fla </param-value>
</Init-param>
<Init-param>
<Param-name> DeniedExtensionsFlash </param-name>
<Param-value> </param-value>
</Init-param>
<Load-on-startup> 1 </load-on-startup>
</Servlet>

<Servlet-mapping>
<Servlet-name> Connector </servlet-name>
<Url-pattern>/fckeditor/connector </url-pattern>
</Servlet-mapping>

<Servlet-mapping>
<Servlet-name> SimpleUploader </servlet-name>
<Url-pattern>/fckeditor/simpleuploader </url-pattern>
</Servlet-mapping>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.