2、fckeditor配置
$sBasePath = $_SERVER['PHP_SELF'];$sBasePath = dirname($sBasePath).'/'; 
 
 
$oFCKeditor = new FCKeditor('FCKeditor1');$oFCKeditor->BasePath  = $sBasePath ;
 
dirname ,取得路径目录命的函数
 
3、fckeditor的应用
 
$oFCKeditor->Create();  创建一个窗口出来
 
$oFCKeditor->Value='初始值';
 
提交时,直接使用实例化时的名称 'FCKeditor1'
 
 
require "./FCKeditor/fckeditor.php";
 
$myFCKeditor = new FCKeditor("content");  // 创建FCKeditor实例,可创建多个实例
$myFCKeditor->BasePath = './FCKeditor/';
 
 
echo $_POST['content'];

相关文章:

  • 2022-01-17
  • 2022-01-17
  • 2021-11-18
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-02-14
猜你喜欢
  • 2021-09-10
  • 2021-12-20
  • 2021-11-11
  • 2021-12-29
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案