网络编程 
首页 > 网络编程 > 浏览文章

php fckeditor 调用的函数

(编辑:jimmy 日期: 2024/9/25 浏览:3 次 )
复制代码 代码如下:
/*
* 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>";
}
上一篇:mysql 性能的检查和优化方法
下一篇:学习discuz php 引入文件的方法DISCUZ_ROOT
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 SiteMap