JavaWeb 第三方组件 使用 CKEditor组件

第三方组件  使用  CKEditor  包括以下几个步骤:

首先下载CKEditor

http://ckeditor.com/download

解压并复制CKEditor到项目WebRoot中

在页面中引入CKEditor:

(1)

<script type="text/javascript" src=
<%=request.getContextPath()%>
/cheditor/cheditor.js>
</script>

(2)
在"内容"textarea 标签中加入 class="cheditor"\
引入后就可以使用CKEditor编辑新闻的内容了

编辑好新闻内容后,就可以提交到doAdd.jsp;
把新闻存入数据库中。

猜你喜欢

转载自blog.csdn.net/weixin_44129498/article/details/92760037