源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

php fckeditor 调用的函数

  • 时间:2021-10-14 09:04 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:php fckeditor 调用的函数
[u]复制代码[/u] 代码如下:
/* * 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>"; }
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部