PHP集成FCK的函数代码
2008-09-27 00:00
489 查看
//定义一个函数用于调用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的经典代码 -- vb2005xu自己动手
- [PHP]代码重用与函数
- 按年月日创建目录(PHP代码函数)
- 发送邮件 Monxin专用(PHP代码函数)
- 返回单个匹配结果 正则(PHP代码函数)
- 翻页(PHP代码函数)
- php xml分析函数代码第1/2页
- php替换超长文本中的特殊字符的函数代码
- 获取图片绝对路径 采集图片用到(PHP代码函数)
- 获取monxin_table.css路径 Monxin专用(PHP代码函数)
- 获取当前URL(PHP代码函数)
- php计算十二星座的函数代码
- 获取选项值 Monxin专用(PHP代码函数)
- 获取用户组选项option Monxin专用(PHP代码函数)
- php中生成随机密码的自定义函数代码
- 调用发送邮件 Monxin专用(PHP代码函数)
- 检测模板的使用权限 Monxin专用(PHP代码函数)
- 浏览器直接查看数组 (PHP代码函数)