Introducing CKEditor to JSP pages

Source: Internet
Author: User

FCKeditor is a WYSIWYG text editor that is specifically designed to be in the open source code on a Web page. It is focused on lightweight and does not require too complex installation steps to be used. It can be combined with different programming languages such as PHP, JavaScript, ASP, ASP.net, ColdFusion, Java, and ABAP. The "FCK" in the "FCKeditor" name is the initials of the author of this editor Frederico Caldeira Knabben. It has now been renamed as CKEditor.

To use CKEditor, first download the development package, the official website http://ckeditor.com/to provide the latest version of the download, download after the source code and examples, of course, the official operation does not need these things.
Steps:
1. Need a CKEditor for Java jar Package, I am using the current version of the Ckeditor-java-core-3.5.3.jar.
2. Introduce jar packages to your Web project.
3. After extracting the downloaded installation package, copy it to the Webroot directory of the project.

The directory structure in MyEclipse is:

(due to a problem with the file code being downloaded, my myelipse shows an error that does not affect deployment and startup of Tomcat because it does not need to be compiled and run)

The following is the code in TEST.JSP:

<% @page pageencoding= "GB18030"%> <% @taglib prefix= "ck" uri= "http://ckeditor.com"%>  
    <% String Path = Request.getcontextpath ();  
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/"; %> <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > 

Can buy to send a friend Oh.

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.