在web项目中添加文本编辑器 ckeditor
1 .下载文本编辑压缩包,解压到web项目中
2.在jsp页面
1)
<link rel="stylesheet" href="ckeditor/samples/sample.css">
<script src="ckeditor/ckeditor.js"></script>
2)
<textarea id="newsEditor" name="newsEditor" style="width: 300px;height: 200px">
</textarea>
3)
<script type="text/javascript">
//改变文本编辑框在页面的显示背景
CKEDITOR.replace( 'newsEditor', {
uiColor: '#14B8C4'
});
</script>
想要ckeditor源码的可以联系我