Discuz教程网

PHP fckeditor 调用的函数

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

  1. /*
  2. * showfck() 编辑器调用函数
  3. * @name 名字 (必须)
  4. * @val value默认值
  5. * @toolbarset fck工具栏名字
  6. * @width 宽度
  7. * @height 高度
  8. */
  9. function showfck($name, $val= '', $toolbarset = '', $width = '100%', $height = '200'){
  10. $classname = 'fckname';
  11. echo "<div class="$classname">";
  12. require_once WEB_ROOT . './include/fckeditor/fckeditor.php';
  13. $fck = new FCKeditor($name);
  14. $fck->BasePath = './include/fckeditor/';
  15. $fck->Config['CustomConfigurationsPath'] = $fck->BasePath . 'custom_config.js';
  16. $fck->ToolbarSet = $toolbarset;
  17. $fck->Value = $val;
  18. $fck->Width = $width;
  19. $fck->Height = $height;
  20. $fck->Create('');
  21. echo "</div>";
  22. }
复制代码





上一篇:mysql 性能的检查和优化方法
下一篇:PHP discuz分页函数multi()
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 16:16

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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