帝國(guó)下載系統(tǒng)集成FCKeditor編輯器方法

字號(hào):


    帝國(guó)下載系統(tǒng)除了自帶的編輯器外還可以添加其他編輯器,本文教你如何把FCKeditor編輯器添加到帝國(guó)下載系統(tǒng)中。方法如下:
    1、下載FCKeditor放在網(wǎng)站根目錄;
    2、找到admin/AddSoft.php第80行,將
    $softsay=htmlspecialchars($r[softsay]);
    改成
    $softsay=$r[softsay];
    3、找到data/form/1.php第224行,將
    <textarea name="softsay" cols="67" rows="12"><?=$softsay?></textarea>
    改成
    <?=$oFCKeditor->Create();?>
    4、在頂部?>前增加
    include("../FCKeditor/fckeditor.php") ; //FCKeditor 包含文件
    $oFCKeditor = new FCKeditor('softsay') ;
    $oFCKeditor->BasePath = "../FCKeditor/" ;
    $oFCKeditor->Value = "$softsay";
    5、完成。