WebjxCom提示:
PHP教程:php调用fckeditor函数.
PHP代码
/*
*showfck()编辑器调用函数
*@name名字(必须)
*@valvalue默认值
*@toolbarsetfck工具栏名字
*@width宽度
*@height高度
*/
functionshowfck($name,$val='',$toolbarset='',$width='100%',$height='200'){
$classname='fckname';
echo"<divclass="$classname">";
require_onceWEB_ROOT.'./include/fckeditor/fckeditor.php';
$fck=newFCKeditor($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>";
}
希望这篇
PHP教程:php调用fckeditor函数的文章能够对您有所帮助,如果您觉得这篇网站维护教程有用的话,别忘了推荐给您的朋友哦!如果您有好的经验方法,不妨拿出来和大家一起分享:假如每个人都拿出一个经验,那么我们都将额外的获取一堆他人的经验。
请记住本站永久域名:(黑客防线网安服务器维护方案维护基地)Www.Rongsen.Com.Cn