Dec
04

1,下载FCKeditor2.5正式版
http://sourceforge.net/project/showfiles.php?group_id=75348

2,解压,上传到/blog/editor/fckeditor/里面

3,关键的editordef.php

<?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;

另存为editordef.php,放到

/blog/editor/fckeditor/

此时就可以使用FCKrditor编辑器发表文章了.

Tags:

No Responses

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>