PHP集成FCK的函数代码
AI摘要
由 AI 生成 · 仅供参考
PHP集成FCK的函数代码,定义一个函数用于调用FCKeditor,用php写成一个函数,方便调用CODE://定义一个函数用于调用FCKeditorfunctioncall_fck$input_name,$input_value,$w='780',$h='580'{include_once'fckeditor/fckeditor.php';$fcked=newFCKeditor$input_name;$fcked-gt;BasePath='fckedito..
定义一个函数用于调用FCKeditor ,用php写成一个函数,方便调用
CODE:
//定义一个函数用于调用FCKeditor
function call_fck($input_name,$input_value,$w='780',$h='580')
{
include_once 'fckeditor/fckeditor.php';
$fcked = new FCKeditor($input_name) ;
$fcked->BasePath = 'fckeditor/';
$fcked->ToolbarSet = 'Simple' ; //工具栏设置
$fcked->InstanceName = $input_name ;
$fcked->Width = $w;
$fcked->Height = $h;
$fcked->Value = $input_value;
$fck_area = $fcked->CreateHtml();
$this->smarty->assign('fck_area',$fck_area);
unset($fck_area) ;
unset($fcked) ;
}
版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系
editor@qudong.com。
本文价值
★★★★★
—
成为第一个评分的人
登录后为本文打分
评论加载中…