Discuz教程网

PHP集成FCK的函数代码

[复制链接]
authicon dly 发表于 2011-9-12 14:53:55 | 显示全部楼层 |阅读模式
代码如下:

  1. //定义一个函数用于调用FCKeditor
  2. function call_fck($input_name,$input_value,$w='780',$h='580')
  3. {
  4. include_once 'fckeditor/fckeditor.php';
  5. $fcked = new FCKeditor($input_name) ;
  6. $fcked->BasePath = 'fckeditor/';
  7. $fcked->ToolbarSet = 'Simple' ; //工具栏设置
  8. $fcked->InstanceName = $input_name ;
  9. $fcked->Width = $w;
  10. $fcked->Height = $h;
  11. $fcked->Value = $input_value;

  12. $fck_area = $fcked->CreateHtml();
  13. $this->smarty->assign('fck_area',$fck_area);
  14. unset($fck_area) ;
  15. unset($fcked) ;
  16. }
复制代码




上一篇:PHP 三维饼图的实现代码
下一篇:FleaPHP的安全设置方法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 05:04

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表