Maison  >  Article  >  développement back-end  >  francisco lachowski PHP集成FCK的函数代码

francisco lachowski PHP集成FCK的函数代码

WBOY
WBOYoriginal
2016-07-29 08:38:54982parcourir

复制代码 代码如下:


//定义一个函数用于调用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教程有兴趣的朋友有所帮助。

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn