CKEditor3.x 施用
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>