php fckeditor 调用的函数
代码如下:
/*
* 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>";
} 相关推荐
wangzhaotongalex 2020-09-22
古叶峰 2020-11-16
xiaoxiaokeke 2020-07-28
好好学习天天 2020-07-21
83417807 2020-07-19
小方哥哥 2020-07-09
wbczyh 2020-07-05
pwc 2020-06-26
flowerCSDN 2020-06-16
Wonder的学习 2020-06-13
周小董 2020-06-10
luvhl 2020-06-08
nurvnurv 2020-06-05
Andrewjdw 2020-05-27
米虚 2020-05-19
专注前端开发 2020-03-01