也即是我的文章已经发表了,希望从数据库读取出来在fckeditor编辑器里面进行编辑,应该怎么做。如:$show['content']是需要读出的数据,应该放在那里,或者具体应该怎么做?求求大侠指教,最好可以具体点。我在网上找了一晚的资料了,还没解决~~~555555555

解决方案 »

  1.   

    看 _samples\php\sample01.php 里的例子啊
    <?php 
    include("../../fckeditor.php") ;$sBasePath = $_SERVER['PHP_SELF'] ;
    $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;$oFCKeditor = new FCKeditor('FCKeditor1') ;
    $oFCKeditor->BasePath = $sBasePath ;
    $oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
    $oFCKeditor->Create() ;
    ?>
    把 $oFCKeditor->Value 的值改为
    $oFCKeditor->Value = $show['content'];
    不就行啦