写一个class
class Editor
{
/*
*函数:show
*作用:显示图文编辑器
*输入:$FormName(表单的名称),$FieldName(图文混排的字段),$Value(图文混排的值), $Where(在哪个部分使用的编辑框?),$Fid(论坛ID), $CommID(社区ID), $ClubID(俱乐部ID), $Type(使用哪个编辑器)
*输出:返回图文编辑器
**
******************************************
*--制作--日期--
*
KuaiYigang@xingmo.com 2004-12-12 19:26
******************************************
*--修改--日期--目的--
*
*/
function show($FieldName, $Value)
{
global $INC;
require_once $INC.'/FCKeditor/fckeditor.php';
$oFCKeditor = new FCKeditor($FieldName) ;
$oFCKeditor->BasePath = '/inc/FCKeditor/';
$oFCKeditor->Value = $Value;
$oFCKeditor->Height = '500';
$str = $oFCKeditor->Create() ;
return $str;
}
}
?>
只要在你php 里调用这个class
在html直接就可以传过来就是了
[
本帖最后由 yangxiao42 于 2008-4-2 15:06 编辑 ]