create_html_editor()函数在includes文件夹下lib_main.php文件中:
  (更多的信息可以去我的私人博客:没有船的海贼 www.hanluner.com)

 
  
  1. /** 
  2.  * 生成编辑器 
  3.  * @param   string  input_name  输入框名称 
  4.  * @param   string  input_value 输入框值 
  5.  */ 
  6. function create_html_editor($input_name$input_value = ''
  7.     global $smarty
  8.  
  9.     $editor = new FCKeditor($input_name); 
  10.     $editor->BasePath   = '../includes/fckeditor/'
  11.     $editor->ToolbarSet = 'Normal'
  12.     $editor->Width      = '100%'
  13.     $editor->Height     = '320'
  14.     $editor->Value      = $input_value
  15.     $FCKeditor = $editor->CreateHtml(); 
  16.     $smarty->assign('FCKeditor'$FCKeditor); 

goods.php文件中范例:

 
  
  1. include_once(ROOT_PATH . 'includes/fckeditor/fckeditor.php'); // 包含 html editor 类文件 


  /* 创建 html editor */
  create_html_editor('goods_desc', $goods['goods_desc']);

目标文件中添加:
  {$FCKeditor}