FCK挺好啊。他里面带调用方法的!好长时间没做PHP了,实在没法提供代码!

解决方案 »

  1.   

    kindeditor<input type="hidden" name="content" value=""><script type="text/javascript" src="kindeditor/KindEditor.js"></script>
    <script type="text/javascript">
    var editor = new KindEditor("editor");
    editor.hiddenName = "content";
    editor.skinPath = "kindeditor/skins/default/";
    editor.iconPath = "kindeditor/icons/";
    editor.imageAttachPath = "images/";
    editor.imageUploadCgi = "<?=$documentroot?>kindeditor/upload_cgi/upload.php";
    editor.cssPath = "common.css";
    editor.editorType = "full";
    editor.editorWidth = "960px";
    editor.editorHeight = "400px";
    editor.show();
    function KindSubmit() {
    editor.data();
    }
    </script>
      

  2.   

    fck用的挺多的,不过挺反感在线编辑器生成的html代码,太乱太难管理.
      

  3.   

    FCK就挺好用的,还有sunnic什么的吧,也不错
      

  4.   

    FCK不错
    http://www.fckeditor.net/
      

  5.   

    FCK体积过于庞大,FF加载时容易加载不完整,也在寻找FCK替代编辑器
      

  6.   

    www.kindsoft.net
    这个不错,国内的
      

  7.   

    其实你去搜索一下“新浪博客编辑器PHP版”这个编辑器不错,支持图片上传,个头也很小
      

  8.   

    ewebeditor 对各个浏览器的兼容性非常差,怎么还有这么多人推荐呢?
      

  9.   

    FCK,这个主要是HTML方面的工作。
      

  10.   

    1\我也是觉得ewebeditor老出错,另外,好像ewebeditor支持不了PHP吧
    2\新浪博客编辑器PHP版这个如何调用呢?我下载的,运行里面的index.php,好像会报错:Notice: Undefined variable: content in C:\wamp\www\SinaEditor_PHP\index.php on line 19
    3\FCK好像太大了,但功能很全,可是我不知道从那里能下载,我下载的也都不好用
    4\kindeditor我不太了解,有用过的朋友吗?好用吗?
    到底该用那一个呢?
      

  11.   

    kindeditor官方有演示的,一看就会 
    http://www.kindsoft.net/demo.php
      

  12.   

    fckeditor  很正统  缺点是太大了   你搜索一下 HTML在线编辑器  几十K的东西就可以很好编辑东西。
      

  13.   

    http://avidansoft.com/dsrte/
    Damn Small Rich Text Editor v0.2.4
      

  14.   

    http://avidansoft.com/dsrte/ 
    Damn Small Rich Text Editor v0.2.4
    AJAX 很小巧
    下面是demo:
    <?php
    /**
     * Damn Small Rich Text Editor v0.2.4 for jQuery
     * by Roi Avidan <[email protected]>
     * Demo: http://www.avidansoft.com/dsrte/
     * Released under the GPL License
     *
     * Includes a minified version of AjaxFileUpload plugin for jQuery, taken from: http://www.phpletter.com/DOWNLOAD/
     * DOES NOT INCLUDE jQuery! You should download jQuery from http://jquery.com
     */// Must come before all called to plugins!
    require_once 'lib/dsrte.php';// Generate editor instance
    $dsrte = new dsRTE( 'dsrte' );/**
     * Send compressed HTML to the Browser
     */
    function sendcompressedcontent( $content )
    {
        header( "Content-Encoding: gzip" );
        return gzencode( $content, 9 );
    }// compress HTML
    ob_start( 'sendcompressedcontent' );?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <title>Damn Small Rich Text Editor v0.2.4 Demo</title>
        <link rel="stylesheet" href="lib/dsrte.css" type="text/css" />
        <script type="text/javascript" src="jquery-1[1].3.2.min.js"></script>
        <script type="text/javascript"><!--
            // keyboard shortcut keys for current language
            var ctrlb='b',ctrli='i',ctrlu='u';
            //-->
        </script>
        <?php echo $dsrte->getScripts();?>
    </head>
    <body>
    <?php
        if ( $_POST['dsrte_text'] )
        {
            echo "<h3>Generated HTML up:</h3>";
            echo "<div style=\"border:1px dotted black\">";
            echo "<pre>".htmlspecialchars( $_POST['dsrte_text'] )."</pre>";
            echo "</div>";
        }
    ?>
        <form method="post" action="?"><div>
        <?php echo $dsrte->getHTML( $_POST['dsrte_text'] ? $_POST['dsrte_text'] : "Hello World" );?>
        <br />
        <input type="submit" value="Click to submit" />
        </div></form>
    </body>
    </html>