在web的 HTML页面中 加入CKeditor 编辑器
1. 在CKeditor官网中下载jar包 解压
复制到项目下
将ckeditor.js 导入HTML页面中 .
<script src="ckeditor/ckeditor.js"></script>根据自己的目录导入
2. 在HTML页面的 body中 ,必须在textarea下使用CKeditor
<body>
<script src="ckeditor/ckeditor.js"></script>
<form name="myform" action="doMessage.jsp" method="post">
<!-- 加入CKeditor第三步 -->
<textarea name="message" id="message " rows="5" cols="80"></textarea>
<script>
CKEDITOR.replace("message");
</script> <br />
<input type="button" value="发送"/><br>
</form>
</body>