複製程式碼 程式碼如下:
//定義一個函數用來呼叫FCKeditor
function call_fck($input_name,$input_value $w='780',$h='580')
{
include_once 'fckeditor/fckeditor.php';
$fcked = new FCKeditor($input_name) ;
$fcked-> BasePath = 'fckeditor/';
$fcked->ToolbarSet = 'Simple' ; //工具列設定
$fcked->InstanceName = $input_name ;
$fcked->Width = $w;
$fcked->Height = $h;
$fcked->Value = $input_value;
$fck_area = $fcked->CreateHtml();
$this->smarty->assign(' fck_area',$fck_area);
unset($fck_area) ;
unset($fcked) ;
}
以上就介紹了francisco lachowski PHP整合FCK的函數程式碼,包括了francisco lachowski方面的內容,希望對PHP教程有興趣的朋友有所幫助。