加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php fckeditor 调用的函数

发布时间:2020-12-13 05:33:11 所属栏目:PHP教程 来源:网络整理
导读: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默认值 @too

<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 "";
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读