php fckeditor 调用的函数

前端之家收集整理的这篇文章主要介绍了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 "
";
}

原文链接:https://www.f2er.com/php/29159.html

猜你在找的PHP相关文章