在jsp页面中嵌入fckeditor
来源:互联网 发布:苹果怎么打开php文件 编辑:程序博客网 时间:2024/05/16 17:13
想要在jsp中使用文本编辑器,需要先在jsp中插入fckeditor下面就说说怎么吧fckeditor插入到jsp中1.首先得去官网上面下载最新的fckeditor:http://sourceforge.net/projects/fckeditor/files/FCKeditor.Java/
2.打开上面的页面后,需要下载的有两个文件,第一个就是点击第一行字上面看蓝色字体,就下载后解压复制放在WebContent目录下的fckeditor,另外点击2.6进入下载封装包或者是源码下载页面,个人认为下载fckeditor-java-demo-2.6.war较好,如下图:
3.把下载好的fckeditor-java-demo-2.6.war放在tomcat的webapps目录下,启动tomcat服务,这个包就自动解压发布了,然后把其目录WEB-INF/lib目录下的jar包复制到自己的项目中,
4.做好这些之后我做了一个测试,在项目中随便新建了一个jsp文件加入了一下代码
代码如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<
html
>
<
head
>
<
meta
http-equiv="Content-Type" content="text/html; charset=UTF-8">
<
title
>FckEditor测试</
title
>
</
head
>
<
body
>
<
h2
align="center">FckEditor测试</
h2
>
<
hr
>
<
form
>
<
FCK:editor
instanceName="test" height="400pt"></
FCK:editor
>
</
form
>
</
body
>
</
html
>
注意:在你要加入编辑器的页面必须加入<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>标签库作为引入
在你要加入剪辑器的地方加入如下代码:
0 0
- 在jsp页面中嵌入fckeditor
- jsp中嵌入fckeditor编译器
- 在jsp页面中使用FCKeditor
- 怎样将FCKeditor嵌入到jsp中
- 在jsp页面中嵌入文档【已验证】
- JSP页面中嵌入flash
- 在JSP中使用FCKeditor
- FCKeditor在JSP页面中的使用
- JSP页面中使用fckeditor控件入门
- jsp页面中嵌入百度搜索引擎
- jsp页面中嵌入flash代码
- jsp页面中嵌入java代码
- JSP页面中嵌入UEditor编辑器方法
- JSP页面中嵌入UEditor编辑器方法
- 在JSP中使用FCKeditor编辑器
- 在jsp环境中配置使用FCKEditor
- 在jsp环境中配置使用FCKEditor
- FCKeditor在JSP环境中配置使用
- hdu 2871 线段树(各种操作)
- 用netbeans和xdebug调试php的配置
- 学习
- openGL资源 搜集
- JS的变量
- 在jsp页面中嵌入fckeditor
- 面试系列之二:C艹翻转双向链表
- HOOK Engine (nthookengine.mhook)
- PHP调试跟踪之XDebug使用总结
- JS截取字符串substr和substring方法的区别
- Atitit .h5文件上传
- 将链表链接并且对链表排序(通过插入和删除函数实现
- 一个很好的仿微博消息浏览功能的Demo
- 求Sn=a+aa+aaa+aaaa+...+aaaaaa...a的值