CI中完美嵌入新浪博客编辑器
Friday, November 7th, 2008 | codeigniter
新浪博客的html编辑器对于中文用户来说是一款非常不错的编辑器,对中文的特性有很好的支持,适合中文用户使用。
下面,Nickyhu就来介绍一下,如何在CI(codeigniter)中,方便地嵌入和使用新浪博客编辑器。
第一步:下载某牛人制作的完全版新浪博客编辑器(php版)
下载地址:http://www.zendstudio.net/post/82/2/1/
第二步:借鉴FCKeditor的嵌入
wiki地址:http://codeigniter.com/wiki/FCKeditor/
第三步:实例
看这里:http://ddurl.cn/index.php/html
相关日志
4 Comments to CI中完美嵌入新浪博客编辑器
哥们,能给个详细的说明吗,wangluoyuer@163.com,谢谢,急!
参考我的步骤,已经说得很详细了。
还要如何详细?
January 20, 2009
我把editor文件夹和sinaEditor.class.php放到system\application\libraries下使用,并成功显示出来了,可javascirpt报错,’oForm’为空或不是对象,搞了一天也弄不好,能否给以帮助啊,不胜感激!
在view视图页面的form里需要加入编辑器的地方加入这段代码:
< ?php
$this->edit->sinaEditor(html_post);
$this->edit->BasePath =base_url().'system/application/libraries';
echo $this->edit->Create() ;
?>
这样就行了。你的ci是1.7版本的,是吧,这么用应该就ok了。

January 20, 2009