FCKeditor在线文本编辑器初级应用
首先从FCKeditor的官网( http://www.fckeditor.net/ )下载该编辑器,我下载的版本是FCKeditor_2.6.6,然后新建一JavaWeb项目,命名为5.3。然后把解压后的fckeditor文件夹复制到项目的WebContent目录下。至此,完成对FCKeditor在线文本编辑器环境的配置。 1.用JavaScript语言直接调用FCKeditor.新建一名为test1的jsp文件,代码如下: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript" src="fckeditor/fckeditor.js"> </script> </head>