1.解压 kindeditor-v4.0.3.zip
2.将加压后的文件夹中的多余的 asp / .net / php文件夹删除
3.将jsp/lib中的jar添加到类路径 这个几包是用于文件的上传和json结果的返回
4.在 index.jsp中添加以下代码
另外 kindeditor-min.js依赖于 plugins 和 themes lang文件夹,所以这四个文件要在同一个目录下。
注意第一个script中的charset="utf-8"不能少 ,然后就是textarea[name="editor"],用的是name来匹配,不是id
5.在一个form表单中添加 textarea ,textarea的属性name="editor"
<form>
名字:<input name="name" type="text" /><br />
<textarea name="editor"></textarea>
<input type="submit" name="提交" />
</form>
6.乱码问题出现在 form表单的提交的时候,要用reques.setcharaterEncode("utf8")来设置