手机
当前位置:查字典教程网 >编程开发 >php教程 >PHP集成FCK的函数代码
PHP集成FCK的函数代码
摘要:复制代码代码如下://定义一个函数用于调用FCKeditorfunctioncall_fck($input_name,$input_valu...

复制代码 代码如下:

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

}

【PHP集成FCK的函数代码】相关文章:

我的论坛源代码(四)

PHP中的一些常用函数收集

支持中文的PHP按字符串长度分割成数组代码

PHP时间和日期函数详解

PHP的变量

PHP开启opcache提升代码性能

在PHP的图形函数中显示汉字

用PHP生成自己的LOG文件

PHP树的代码,可以嵌套任意层

PHP中生成UUID自定义函数分享

精品推荐
分类导航