1. 官网下载CKeditor ,解压后粘贴到项目中
2.查看ck自带的案例, 导入相应的js 和css
<script src="<%=basePath%>/ckeditor/ckeditor.js"></script>
<link rel="stylesheet" href="css/samples.css">
3. 替换文本域即可
<textarea class="ckeditor" cols="50" id="editor1" rows="100" name="goodsdesc"></textarea>
4.显示的时候注意加 escape="0"
<div class="buydlList"><s:property escape="0" value="#request.goods.goodsdesc" /></div>
5.注意,数据库字段得改成text或者更大的类型,其他不用变