ckeditor.jsp 1.1 KB

123456789101112131415161718192021222324252627
  1. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  2. <%@taglib prefix="f" uri="http://www.jee-soft.cn/functions" %>
  3. <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  5. <c:set var="ctx" value="${pageContext.request.contextPath}" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <script type="text/javascript" src="${ctx}/js/dynamic.jsp"></script>
  8. <script type="text/javascript" src="${ctx}/js/jquery/jquery.js"></script>
  9. <script type="text/javascript" src="${ctx}/js/lg/ligerui.min.js"></script>
  10. <script type="text/javascript" src="${ctx}/js/ckeditor/ckeditor.js"></script>
  11. <script type="text/javascript" src="${ctx}/js/ckeditor/ckeditor_msg.js"></script>
  12. <html>
  13. <head>
  14. <script type="text/javascript">
  15. var editor = [];
  16. $(function() {
  17. $("textarea[name^='m:'].myeditor").each(function(num) {
  18. var ck=ckeditor(this);
  19. editor.push(ck);
  20. });
  21. });
  22. function getEditorData(obj){
  23. return obj.getData();
  24. }
  25. </script>
  26. </head>
  27. </html>