php专区

 首页 > php专区 > PHP应用 > CMS建站 > ECSHOP修改简单描述文本框为FCKeditor编辑器 - ecsh

ECSHOP修改简单描述文本框为FCKeditor编辑器 - ecsh

分享到:
【字体:
导读:
          1:修改 admin/includes/lib_main.php 文件function create_html_editor($input_name, $input_value = )修改为:function create_html_editor($input_name, $input_value = ,$fckid=0)继续......

ECSHOP修改简单描述文本框为FCKeditor编辑器

1:修改 admin/includes/lib_main.php 文件

function create_html_editor($input_name, $input_value = ”)

修改为:

function create_html_editor($input_name, $input_value = ”,$fckid=0)

继续向下找到:$smarty->assign(‘FCKeditor’, $FCKeditor);将它修改为:

  1. if ($fckid
  2. $smarty->assign(‘FCKeditor’.$fckid$FCKeditor); 
  3. else 
  4. $smarty->assign(‘FCKeditor’, $FCKeditor); 
  5. //开源软件:phpfensi.com 

2:修改 /admin/goods.php 文件,找到:

create_html_editor(‘goods_desc’,$goods['goods_desc']);

在它下面另起一行,添加:

create_html_editor(‘goods_brief’, $goods['goods_brief'],2);

最后一步,修改一下对应的模板文件 /admin/templates/goods_info.htm,找到下面这行代码: