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我不太了解,有用过的朋友吗?好用吗? 到底该用那一个呢?
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>
<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>
http://www.fckeditor.net/
这个不错,国内的
2\新浪博客编辑器PHP版这个如何调用呢?我下载的,运行里面的index.php,好像会报错:Notice: Undefined variable: content in C:\wamp\www\SinaEditor_PHP\index.php on line 19
3\FCK好像太大了,但功能很全,可是我不知道从那里能下载,我下载的也都不好用
4\kindeditor我不太了解,有用过的朋友吗?好用吗?
到底该用那一个呢?
http://www.kindsoft.net/demo.php
Damn Small Rich Text Editor v0.2.4
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>