FCKeditor を呼び出す関数を定義し、CODE の呼び出しを容易にするために PHP の関数として記述します
。
//FCKeditorを呼び出す関数を定義する
関数 call_fck($input_name,$input_value,$w='780',$h='580')
{
include_once 'fckeditor/fckeditor.php';
$fcked = 新しい FCKeditor($input_name);
$fcked->BasePath = 'fckeditor/';
$fcked->ToolbarSet = 'Simple' // ツールバーの設定
$fcked->インスタンス名 = $input_name;
$fcked->幅 = $w;
$fcked->高さ = $h;
$fcked->値 = $input_value;
$fck_area = $fcked->CreateHtml();
$this->smarty->assign('fck_area',$fck_area);
unset($fck_area) ;
unset($fcked) ;
}