我用的myeclipse2014,按照这个步骤做的:
ckeditor_4.3.3文件夹下的ckeditor整个复制到工程WebRoot下;然后把ckeditor-java-core-3.5.3文件夹下的三个jar包复制到WebRoot——>WEB-INF——>lib文件夹下。
index.jsp不知道该怎么写:
<%@ 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>
<script type="text/javascript" src="<%=request.getContextPath()%>/ckeditor/ckeditor.js" CHARSET="UTF-8"></script>
</head>
<body>
<textarea id="TextArea1" cols="20" rows="2" class="ckeditor"></textarea>
<script type="text/javascript">
ckeditor.replace('TextArea1');
</body>
</html>
导致的结果就是没法调用ckeditor,网页上只有一个空的文本域。
------解决方案--------------------
不是少了个</script>吗
------解决方案--------------------
的确少了一个</script>