php fckeditor 调用的函数

<div class="codetitle"><a style="CURSOR: pointer" data="81414" class="copybut" id="copybut81414" onclick="doCopy('code81414')"> 代码如下:

<div class="codebody" id="code81414">
/
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 "
";
}

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...