1、将百度编辑器源码下载到本地
2、将下载文件放到网站根目录下,路径一定要引用正确
3、在后台文档添加页面引用必须的三个文件,具体参考百度编辑器文档
4、在input.class.php实例化一下编辑器。具体方法为
public function editor($f_name,$f_value='',$f_width,$f_height,$f_option){
//echo $f_name;
$str="<script>var ue = UE.getEditor('{$f_name}');</script><textarea name=\"fields[{$f_name}]\" id=\"{$f_name}\" style=\"width:700px;height:300px;\">".html_decode($f_value)."</textarea>";
return $str;
}