复制代码 代码如下:
/*
* 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>";
}
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!