脚 本 之 家 www.jb51.net
页面导航: 首页网络编程PHP编程php实例 → 正文内容 php fckeditor 调用

php fckeditor 调用的函数

发布:dxy 字体:[增加 减小] 类型:转载
showfck() 编辑器调用函数
复制代码 代码如下:

/*
* showfck() 编辑器调用函数
* @name 名字 (必须)
* @val value默认值
* @toolbarset fck工具栏名字
* @width 宽度
* @height 高度
*/
function showfck($name, $val= '', $toolbarset = '', $width = '100%', $height = '200'){
$classname = 'fckname';
echo "<div class=\"$classname\">";
require_once WEB_ROOT . './include/fckeditor/fckeditor.php';
$fck = new FCKeditor($name);
$fck->BasePath = './include/fckeditor/';
$fck->Config['CustomConfigurationsPath'] = $fck->BasePath . 'custom_config.js';
$fck->ToolbarSet = $toolbarset;
$fck->Value = $val;
$fck->Width = $width;
$fck->Height = $height;
$fck->Create('');
echo "</div>";
}

文章评论

共有 位脚本之家网友发表了评论我来说两句

最 近 更 新
热 点 排 行