fckeditor编辑器在php中的配置方法(手机端的php编辑器)奔走相告

随心笔谈12个月前发布 admin
103 0

$fck=$_POST [ ” FCKeditor1 ” ] ;

if ( $fck !=”” )

{

echo htmlspecialchars ( $fck ) ;

}

?>

fck测试

include ( ” fckeditor/fckeditor.php ” ) ; //加载文件

$oFCKeditor=new FCKeditor ( ‘ FCKeditor1 ‘ ) ; //创建一个FCKeditor对象 ID为FCKeditor1

$oFCKeditor -> BasePath=” /fck/fckeditor/ ” ; //设置FCKeditor路径

$oFCKeditor -> Value=” ; //设置默认值

$oFCKeditor -> Create () ; //创建。注意:若用到模板(如smarty)则$fck=$oFCKeditor->CreateHtml();然后把$fck抛给模板

?>

© 版权声明

相关文章