浙江雁荡山 发表于 2017-3-30 12:59:58

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文件
页: [1]
查看完整版本: PHP在线编辑器fckeditor应用