复制代码 代码如下:
/*
* showfck() 编辑器调用函数
* @name 名字 (必须)
* @val value默认值
* @toolbarset fck工具栏名字
* @width 宽度
* @height 高度
*/
function showfck($name, $val= '', $toolbarset = '', $width = '100%', $height = '200'){
$classname = 'fckname';
echo
;
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
;
}
以上就介绍了fckeditor 配置 php fckeditor 调用的函数,包括了fckeditor 配置方面的内容,希望对php教程有兴趣的朋友有所帮助。