PHP在线编辑器fckeditor应用

阅读更多

1:fckeditor 配置

 

  

$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = dirname($sBasePath).'/'; 

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

 

 dirname:取得路劲目录命令的函数

 

2:fckeditor的应用

 

  

$oFCKeditor->Create();  创建一个窗口出来
$oFCKeditor->Value='初始值';

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

 

具体可以参考fekeditor的demo文件

你可能感兴趣的:(fckeditor,PHP)