xheditor在线编辑器的使用
2015-09-02 13:13
591 查看
在你所需要在线编辑器的工程目录下,导入xheditor_emot、xheditor_plugins和xheditor_skin、jquery四个文件夹,然后在textarea标签中加入: class="xheditor"
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<script type="text/javascript" src="xheditor/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="xheditor/xheditor-1.1.13-zh-cn.min.js"></script>
</head>
<body>
<center>
<textarea name="content" class="xheditor" rows="20" cols="100">test</textarea>
</center>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<script type="text/javascript" src="xheditor/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="xheditor/xheditor-1.1.13-zh-cn.min.js"></script>
</head>
<body>
<center>
<textarea name="content" class="xheditor" rows="20" cols="100">test</textarea>
</center>
</body>
</html>
相关文章推荐
- exchange 2013 证书修改或者二次更换如何分配服务
- 搭建自己的ngrok服务
- bzoj-1031 字符加密Cipher
- windows hash工具
- 使用 HTML 和 JavaScript 开发 Universal Windows Apps笔记一
- Android Fragment全面深入解析一
- nested pop animation can result in corrupted navigation bar
- 软件工程
- 正则表达式 基本概念
- WebDriver 自动化演变之路
- 安卓权限大全
- Unity3d碰撞器与触发器的区别详解(rigidbody移动和charactercontroller移动区别)
- PHP 第一阶段html_form(6)
- 设计模式学习笔记二十:解释器模式
- 剑指offer——链表中倒数第k个结点
- LOJ 1341 Aladdin and the Flying Carpet(质因子分解)
- 艺术家的黑色寓言:把“美好”的东西撕碎给你看,并非悲剧那么简单
- ubuntu-11.04-alternate-i386 source.list 更新失效后替代的source.list,基本是可以更新的
- jquery webservice
- HDU 3874 Necklace(线段树啊 单点更新 区间求和)