php調用fckeditor函數
PHP代碼
/*
* 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>";
}
下一頁: PhpSecInfo列出PHP環境設定中存在的安全問題
上一頁: PHP常用正則表達式大全
本文關鍵詞:php調用函數,fckeditor函數
本文《php調用fckeditor函數》是由合肥德曼電腦培訓中心原創或來源網絡信息整理!
本文網頁路徑:http://www.ledelektronik.com/php/313.html