您的位置:首页 > 编程语言 > PHP开发

PHP在线编辑器fckeditor应用

2015-04-12 14:31 351 查看
1、fckeditor配置

$sBasePath = $_SERVER['PHP_SELF'] ;

$sBasePath = dirname($sBasePath).'/';

dirname ,取得路径目录名的函数

$oFCKeditor = new FCKeditor('FCKeditor1') ;

$oFCKeditor->BasePath = $sBasePath ;

2、fckeditor的应用

$oFCKeditor->Create(); 创建一个窗口出来

$oFCKeditor->Value='初始值';

提交时,直接使用实例化时的名称 'FCKeditor1'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: