fckeditor已经更名为ckeditor, 而且已经出了最新5.0版本, 小编用的帝国cms7.2内置ckeditor前身fckeditor, 但是实在是过时了.
根据网上关于切换为百度Ueditor教程, 可以举一反三换成任何自己喜欢的编辑器;
先备份默认输入表单替换html代码
<?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","500","100%")?>
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>
关键字替换 <input name="copyimg" type="checkbox" id="copyimg" value="1">
远程保存图片(
<input name="mark" type="checkbox" id="mark" value="1">
<a href="SetEnews.php<?=$ecms_hashur[whehref]?>" target="_blank">加水印</a>)
<input name="copyflash" type="checkbox" id="copyflash" value="1">
远程保存FLASH(地址前缀:
<input name="qz_url" type="text" id="qz_url" size="">
)</td>
</tr>
<tr>
<td><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页 <input name="autopage" type="checkbox" id="autopage" value="1"> 自动分页
,每
<input name="autosize" type="text" id="autosize" value="5000" size="5">
个字节为一页 取第
<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
张上传图为标题图片(
<input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">
缩略图: 宽
<input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">
*高
<input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">
)</td>
</tr>
</table>
主要是两部分:
<
script
type
=
"text/plain"
id
=
"myEditor"
name
=
"newstext"
style
=
"width:99%;height:450px;"
>
<?=$ecmsfirstpost==1?"":stripSlashes($r[newstext])?>
</
script
>
<?=$ecmsfirstpost==1?"":stripSlashes($r[newstext])?> 代表内容源代码, 如果使用Ueditor,需要用一个自定义id名的script标签,当然其他类型如div也可以
另外就是下半部分的table, 实现分页, 远程保存等功能, 照搬即可.