PHP在线编辑器fckeditor应用

来源:互联网 发布:劲舞团做图软件 编辑:程序博客网 时间:2024/05/22 07:47

1、fckeditor配置

$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = dirname($sBasePath).'/'; 
dirname ,取得路径目录名的函数


$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath   = $sBasePath ;

2、fckeditor的应用

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

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

提交时,直接使用实例化时的名称 'FCKeditor1'

0 0