$tempfile我打错了应该为abb.html
function ReturnFCKeditor($instanceName, $width, $height)
{ //$grstr = htmlentities( $this->Value ) ;
//$grstr = htmlspecialchars( $this->Value ) ;
         $grstr=$this->Value;
我改为这样还是不行。
大家帮忙看看啊,我已经看了一天了。快被折磨死了

解决方案 »

  1.   

    你去修改那个类干吗?你不看看他给出的例子吗?
    _test/test.php
    <?php
    /*
     * FCKeditor - The text editor for internet
     * Copyright (C) 2003 Frederico Caldeira Knabben
     *
     * Licensed under the terms of the GNU Lesser General Public License
     * (http://www.opensource.org/licenses/lgpl-license.php)
     *
     * For further information go to http://www.fredck.com/FCKeditor/ 
     * or contact [email protected].
     *
     * test.php: PHP page to test the editor PHP integration.
     *
     * Authors:
     *   Frederico Caldeira Knabben ([email protected])
     */
    include("../fckeditor.php") ;
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    <HEAD>
    <TITLE>FCKeditor - PHP Test Page</TITLE>
    </HEAD>
    <BODY>
    <form action="testsubmit.php" target="_blank" method="post" language="javascript">
    Normal Text Field<BR>
    <INPUT type="text" name="NormalInput" value="My 'normal' &quot;field&quot; value"><BR>
    <BR>
    Normal Textarea<BR>
    <TEXTAREA name="NormalTextArea" rows="2" cols="20"></TEXTAREA>
    <BR>
    <BR>
    FCKeditor - Default Toolbar Set<BR>
    <?php
    $oFCKeditor = new FCKeditor ;
    $oFCKeditor->Value = 'This is same <B>sample text</B>.' ;
    $oFCKeditor->CreateFCKeditor( 'EditorDefault', '100%', 150 ) ;
    ?>
    <BR>
    FCKeditor - Accessibility Toolbar Set<BR>
    <?php
    $oFCKeditor = new FCKeditor ;
    $oFCKeditor->ToolbarSet = 'Accessibility' ;
    $oFCKeditor->Value = 'This is another test. <BR><B>The &quot;Second&quot; row.</B>' ;
    $oFCKeditor->CanUpload = false ; // Overrides fck_config.js default configuration
    $oFCKeditor->CanBrowse = false ; // Overrides fck_config.js default configuration
    $oFCKeditor->CreateFCKeditor( 'EditorAccessibility', '80%', 120 ) ;
    ?>
    <BR>
    <BR>
    FCKeditor - Basic Toolbar Set<BR>
    <?php
    $oFCKeditor = new FCKeditor ;
    $oFCKeditor->ToolbarSet = 'Basic' ;
    $oFCKeditor->Value = '<P align="center">Another test.</P>' ;
    $oFCKeditor->CreateFCKeditor( 'EditorBasic', 300, 80 ) ;
    ?>
    <BR>
    <BR>
    <INPUT type="submit" value="Submit Data">
    <BR>
    </form>
    </BODY>
    </HTML>
      

  2.   

    不是这个意思呀,老大,我是说像MX这样把带有<html><body></body></html>
    这样标记的文件也能编辑,如果带有这标记FCK会自动去掉这些标记,连这些标记中的
    内容也去掉,而且fck会把一些html标记转义了。所以我想输入什么内容,FCK就显示什么
    内容,不需要转义。
    我想直接在线编辑模板文件,这样不用传来传去了。
      

  3.   

    在线编辑器有两种工作模式:1、所见所得 2、html代码
    你可在两者间切换既然是在线编辑模板文件,那么还是以“所见所得”为主,对于标记的属性部分可用“html代码”
      

  4.   

    我用另一个编辑器了,是在村子里下载的。网友lwww的
    我先用htmlspecialchars()输出到文本区
    再传值给它,这样不会有这种现象了。