bf3ec96c0d16003db3b3c5a2b31739dcd216a02a.svn-base 1.9 KB
<%@ 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>