Rumah >php教程 >php手册 >PHP教程:php调用fckeditor函数

PHP教程:php调用fckeditor函数

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBasal
2016-06-21 08:56:46938semak imbas

PHP代码

/*
* 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/fckeditor/'; 

$fck->Config['CustomConfigurationsPath'] = $fck->BasePath . 'custom_config.js'; 

$fck->ToolbarSet = $toolbarset; 

$fck->Value = $val; 

$fck->Width = $width; 

$fck->Height = $height; 

$fck->Create(''); 

echo "
";
}



Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn