内容 |
帝国下载系统除了自带的编辑器外还可以添加其他编辑器,本文教你如何把FCKeditor编辑器添加到帝国下载系统中。方法如下: 1、下载FCKeditor放在网站根目录; 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、完成。 |