html5中文学习网

您的位置: 首页 > 网络编程 > PHP编程 » 正文

PHP教程:php调用fckeditor函数_PHP教程_编程技术

[ ] 已经帮助:人解决问题
2CyHTML5中文学习网 - HTML5先行者学习网

PHP代码2CyHTML5中文学习网 - HTML5先行者学习网

/*
* 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>";
}2CyHTML5中文学习网 - HTML5先行者学习网

2CyHTML5中文学习网 - HTML5先行者学习网
2CyHTML5中文学习网 - HTML5先行者学习网
(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助