bf3ec96c0d16003db3b3c5a2b31739dcd216a02a.svn-base
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>jsp</title>
<script src="utilJS/jquery-1.8.2.min.js" type="text/javascript"></script>
<!-- 编辑器 -->
<link rel="stylesheet" href="kindeditor-4.1.10/themes/default/default.css" />
<link rel="stylesheet" href="kindeditor-4.1.10/themes/simple/simple.css" />
<script charset="utf-8" src="kindeditor-4.1.10/kindeditor-min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var editor = KindEditor.create('textarea[name="ceshicontent"]', {
themeType : 'simple',
items : [
'source', '|', 'undo', 'redo', '|', 'template', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'clearhtml', 'quickformat', '|', 'fullscreen',
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'table', 'hr', 'baidumap', 'link', 'unlink'
],
uploadJson : 'kindeditor-4.1.10/jsp/upload_json.jsp',
fileManagerJson : 'kindeditor-4.1.10/jsp/file_manager_json.jsp',
allowFileManager : true,
filterMode : false,
allowImageUpload : true,
autoHeightMode : false,
afterCreate : function() {this.loadPlugin('autoheight');},
afterBlur : function(){ this.sync(); } //Kindeditor下获取文本框信息
});
});
</script>
</head>
<body>
<!-- 显示编辑器-->
<form>
<div class="bedt">
<textarea id="snedmailcon" name="ceshicontent" style="width:98%;height:320px;"></textarea>
</div>
</form>
</body>
</html>