複製程式碼 程式碼如下:
/*
* showfck() 編輯器呼叫
函數 @name 名字(必須)
* @val value預設值
* @toolbarset fck工具列名字
* @width 寬度
* @height 高度
*/
function showfck($name, $ val= '', $toolbarset = '', $width = '100%', $height = '200'){
$classname = 'fckname';
echo "
";
require_once WEB_ROOT . './include/fckeditor/fckeditor.php';
$fck = new FCKeditor($name);
$fck->BasePath = './include/fckeditorude/fckeditor ';
$fck->Config['CustomConfigurationsPath'] = $fck->BasePath . 'custom_config.js';
$fck->ToolbarSet = $toolbarset;
$fck->Value = $ val;
$fck->Width = $width;
$fck->Height = $height;
$fck->Create('');
echo "
";
}
以上就介紹了fckeditor 配置 php fckeditor 呼叫的函數,包含了fckeditor 配置方面的內容,希望對PHP教程有興趣的朋友有所幫助。