php fckeditor 调用的函数

Malak ·
更新时间:2024-09-21
· 609 次阅读

代码如下:
/*
* 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>";
}
您可能感兴趣的文章:PHP中CKEditor和CKFinder配置问题小结针对PHP环境下Fckeditor编辑器上传图片配置详细教程探讨fckeditor在Php中的配置详解fckeditor编辑器在php中的配置方法php下安装配置fckeditor编辑器的方法php下FCKeditor2.6.5网页编辑器的使用方法php ckeditor上传图片文件名乱码解决方法fckeditor在php中的用法(添加于修改写成了函数)将FCKeditor导入PHP+SMARTY的实现方法jQuery+PHP发布的内容进行无刷新分页(Fckeditor)php版本CKEditor 4和CKFinder安装及配置方法图文教程



调用 函数 fckeditor PHP

需要 登录 后方可回复, 如果你还没有账号请 注册新账号