码迷,mamicode.com
首页 > 其他好文 > 详细

CKeditor的简单使用

时间:2015-04-15 00:41:17      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

由于项目中要使用ckeditor 做个推荐功能,由于值设定到文本内容,就选择最基本的使用。

使用的版本为当前最新版本4.4.7,你需要下载两部分,一个是前台使用,一个是后台使用,

你可以到我的网盘中下载,下载地址为:ckeditor_4.4.7_basicckeditor-java-core-3.5.3

你也可以选择到官网下载最新版本,地址为:http://ckeditor.com/download

 

1.把ckeditor的basic解压后文件放到工程中,在你的jsp页面中引入ckeditor.js文件,

在body中写入<textarea cols="80" id="editor1" name="editor1" rows="20"></textarea>

最后在</body>紧挨上一行写入如下代码:

<ckeditor:replace replace="editor1" basePath="/ckeditor/" />

常用取值和赋值有:

CKEDITOR.instances.editor1.getData()

CKEDITOR.instances.editor1.setData()

两种方法。

 

详细的请下载我整理的文件,ckeditor笔记

CKeditor的简单使用

标签:

原文地址:http://www.cnblogs.com/haoke/p/4427241.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!