Display a text editing page in a JSP based on CKEditor

Source: Internet
Author: User

I've been tested for a while. embedded in the JSP page based on CKEditor edit page, the first to ckeditor the official online download ckeditor, you can download here http://download.csdn.net/detail/ kezhongke/4867921 mine is ckeditor3.x, now the latest should be ckeditor4. After you download it, unzip it and get CKEditor, and then copy it to the Webroot directory of the Web project,



Then run the server, enter the URL: http://localhost:8080/Ckeditor/ckeditor/_samples/index.html. If the information appears to indicate that the installation was successful.

Then in the JSP page you need to add the following sections:

1, the introduction of the label:

<%@ taglib uri= "http://ckeditor.com" prefix= "CKEditor"%>
2, add the following content, remember CKEditor must be placed at the end of the body tag, that is, the last tag in the body

<body>
	  <center> <textarea cols= "id=" "Editor1" Name= "Editor1"
	    rows= "ten" ></textarea >
	  </center>                                                                                                            <ckeditor:replace replace= "Editor1" basepath= "/ckeditor/ckeditor/"  />                         </body>

Then enter the appropriate address, in the browser to see the effect bar!

This is only the most basic step, a lot of effort.

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.