当前位置: 代码迷 >> Web前端 >> CKEditor3.x 施用
  详细解决方案

CKEditor3.x 施用

热度:284   发布时间:2012-09-06 10:37:01.0
CKEditor3.x 使用


<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
	String path = request.getContextPath();
%>
<script src="<%=path%>/statics/js/common/common.js"
	type="text/javascript"></script>
<script src="<%=path%>/editor/ckeditor/ckeditor.js"
	type="text/javascript"></script>
<script src="<%=path%>/editor/ckeditor/adapters/jquery.js"
	type="text/javascript"></script>
<script src="js/paper.js"
	type="text/javascript"></script>
<script type="text/javascript">
var app_path="<%=path%>";
	var mainpage = false;
</script>
<script type="text/javascript">
	$(function() {

		
		$('#content').ckeditor();

	});

</script>

<body>
<table><tr><td>
	<textarea name="studentAnswer" id="content" style="width: 80%; height: 60px;" class="enable">
	</textarea></td></tr>
</table>
</body>