
这是有声音的视频,请检查播放器或者声音输出设备。
这次的学习内容: 简单的Blog博客系统 04 ckeditor_3.3.1(在线编辑器)替换文本框textarea
//=========================================
传统的输入文本框textarea功能十分有限,只能做文字的一些输入。
而在线编辑器 可以对文字进行各种的编辑(大小,颜色,类型等等),还有可以拷贝已存在的样式。
这里介绍一个出名的在线编辑器 ckeditor(以前叫做 fckeditor) ,功能十分强大,使用简单。
先去 官方下载 http://ckeditor.com/download
CKEditor 3.3.1, released on 10 June 2010
我下载了 zip压缩的: ckeditor_3.3.1.zip
//==========================================
下面修改一下,替换以前的 textarea 文本框
修改一下 insert.html
在<head></head> 中间加入
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
下面就在 textarea 后面加入就可以
内容:<textarea name="content" cols=40 rows=10></textarea><br/>
<script type="text/javascript">
CKEDITOR.replace('content');
</script>
就这么一点代码, 就可以把原来 textarea 替换成 ckeditor
//==================================
ckeditor 提供了一些例子的介绍
http://127.0.0.1/ckeditor/_samples/
视频到这里结束了,谢谢观看 88
03月 15th, 2011 at 23:30:34 #匿名
php 函数太多了
[回复]