整理自:http://qmmv.cn/post/437/
下载文件 (已下载 756 次)


下载这个编辑器,解压,把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:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]