Add FCKeditor on the JSP page

Source: Internet
Author: User

It took me one afternoon to make a try. I first searched the website. I don't know what to do, but I searched a lot, I clicked all the links on the first three or four pages and read them again. The above is not a general mess and I cannot understand it. This is a configuration like this, and that is a configuration like that, the header is too big. In addition, most of the above are reproduced, and they are not self-written, messy, and have everything. Most of the articles are on the fckeditor2.3 configuration method. Now the new version FCKeditor 2.6.8 has been released for a long time. It was configured once last year, but today it took a lot of effort to complete it. The configuration process is as follows:

1. Go to the official website to download FCKeditor 2.6.8: http://sourceforge.net/projects/fckeditor/files/FCKeditor.Java/

 

2. After opening the above page, you need to download two files. The first one is to click the first line to see the blue font. Then, download the file and decompress the file and copy it to the FCKeditor in the webcontent directory.

In addition, click 2.6 to enter the download package or source code download page, I think the download fckeditor-java-demo-2.6.war is better, such:

3. put the downloaded fckeditor-java-demo-2.6.war In the Tomcat webapps directory, start the Tomcat service, this package automatically decompress the release, then copy the jar package under the WEB-INF/lib directory to your project,

4. After doing this, I did a test and added the code to a newly created JSP file in the project.

The Code is as follows:

<% @ Page contenttype = "text/html; charset = UTF-8 "pageencoding =" UTF-8 "%> <% @ taglib uri =" http://java.fckeditor.net "prefix =" fck "%> <HTML> 

Note: you must add the <% @ taglib uri = "http://java.fckeditor.net" prefix = "fck" %> label library as an introduction to the page where you want to add the editor

Add the following code to the part where you want to add a clip:

<Fck: Editor InstanceName = "test" Height = "400pt"> </fck: Editor>
The test results are as follows:

 

 

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.