当前位置:首页 > PHP教程 > PHP常见问题

PHP集成FCK的函数代码

复制代码 代码如下:

//定义一个函数用于调用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) ;
}


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!