FCKeidtor可视化编辑器 For Bo-Blog

[不指定 2007/11/19 23:44 | by Totti ]
| |
整理自:http://qmmv.cn/post/437/
下载文件 (已下载 755 次)


下载这个编辑器,解压,把fckeditor里面的文件放到bo-blog程序editor目录下的FCKeditor目录,然后修改editordef.php文件:
如果你的BLOG放在blog目录,那么查找oFCKeditor.BasePath,这样设置
oFCKeditor.BasePath = '/blog/editor/fckeditor/' ;

如果你的BLOG是装在根目录则保持默认不变即可
oFCKeditor.BasePath = '/editor/fckeditor/' ;


<?PHP
if (!defined('VALIDADMIN')) die ('Access Denied.');
$editorjs=<<<eot
<script language="javascript" type="text/javascript" src="editor/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'content' ) ;
oFCKeditor.Height = "400";
oFCKeditor.Width = "100%" ;
oFCKeditor.BasePath = '/editor/fckeditor/' ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
eot;
$editorbody=<<<eot
<textarea name="content" id="content" rows='20' cols='100' style='font-size: 10pt;'>{content}</textarea>
<li>{$lna[743]}</li>
<li>{$lna[744]}</li></ul>
eot;
Tags:
收集 | 评论(3) | 引用(0) | 阅读(5431)
!?
2008/05/31 09:20
引用
那么查找oFCKeditor.BasePath


请问是查哪个文件??

后面一大片代码又是哪个文件呢??

谢谢!

?????!!!!!?????
西瓜田地 Homepage
2007/11/20 18:58
学习了~这个编辑器不知道有什么优点?
aaose Homepage
2007/11/20 10:40
下了,谢谢
分页: 1/1 第一页 1 最后页
发表评论
昵称

网址

电邮
打开HTML 打开UBB 表情 打开表情 隐藏 记住我 [注册]