php调用fckeditor函数
PHP代码
/*
* 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>";
}
下一页: PhpSecInfo列出PHP环境设定中存在的安全问题
上一页: PHP常用正则表达式大全
本文关键词:php调用函数,fckeditor函数
本文《php调用fckeditor函数》是由合肥德曼电脑培训中心原创或来源网络信息整理!
本文网页路径:http://www.dmseo.com/php/313.html