file="aa.html";<?php
include("../fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '../fckeditor/';
$oFCKeditor->Value =require($file).innerHTML;
$oFCKeditor->Width ='100%'; 
$oFCKeditor->Height = '500' ; 
$oFCKeditor->Create();
?>这么把html的内容放进fck的初始值中?.  我上面的写法不行.

解决方案 »

  1.   

    你先确定你的fck可以在页面完全显示出来?你之后:$oFCKeditor->Value =require($file).innerHTML;
    这段代码你自己分析下。
      

  2.   

    $oFCKeditor->Value =require($file).innerHTML;不是显示在编辑框内
      

  3.   

    $oFCKeditor->Value = htmlentities( file_get_contents($file) );
      

  4.   

    require($file).innerHTML 这个php错. 
      

  5.   

    $oFCKeditor->Value = htmlentities( file_get_contents($file) );读入的是代码  不显示网页
      

  6.   

    $oFCKeditor->Value = file_get_contents($file);没用过 FCKeditor