Getting Started with FCKeditor controls in JSP pages __jsp
Source: Internet
Author: User
FCKeditor control please go to the official website to download http://www.fckeditor.net, this example is mainly used to Fckeditor_2.6.3.zip, Fckeditor-java-demo-2.4.1.zip, Some of the content inside the fckeditor-java-2.4.1-bin.zip, readers can download themselves.
1, untie the compressed package fckeditor_2.6.3.zip, copy the FCKeditor folder to Web-inf below, can be used directly after.
2, there are two ways to use FCKeditor in the page.
Mode one: the way of JavaScript
(1) Direct use, see
method1.html <! doctype html public "-//w3c//dtd html 4.01 transitional//en" >
Textarea, see method2.html
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
Mytextarea') ; Ofckeditor.basepath = "fckeditor/"; Ofckeditor.basepath = "/fckedittest/fckeditor/"; Ofckeditor.replacetextarea (); } </script>
Mytextarea">this is a value</textarea> </body> Before you use labels, you need to build your environment. The Fckeditor-java-core-2.4.1.jar, Commons-fileupload-1.2.1.jar, and Fckeditor-java-2.4.1-bin.zip in the package Commons-io-1.3.2.jar, Slf4j-api-1.5.2.jar and Slf4j-simple-1.5.2.jar in package fckeditor-java-demo-2.4.1.zip are copied to the Lib directory and build the environment.
Once built, it can be used in JSP pages. Xiang See page method_jsp.jsp
<%@ page language= "java" import= "java.util.*" pageencoding= "Utf-8"%> <%@ taglib "uri=" http:// Java.fckeditor.net "prefix=" FCK "%> <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
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.