<?php
 $htmlData = ”;
 if (!empty($_POST['content1'])) {
  if (get_magic_quotes_gpc()) {
   $htmlData = stripslashes($_POST['content1']);
  } else {
   $htmlData = $_POST['content1'];
  }
 }
?>
<!doctype html>
<html>
<head>
 <meta charset=”utf-8″ />
 <title>KindEditor PHP</title>
 <script charset=”utf-8″ src=”kindeditor.js”></script>
 <script>
  KE.show({
   id : ‘content1′,
  imageUploadJson : ‘php/upload_json.php’,
   fileManagerJson : ‘php/file_manager_json.php’, allowFileManager : true,
   afterCreate : function(id) {
    KE.event.ctrl(document, 13, function() {
     KE.util.setData(id);
     document.forms['example'].submit();
    });
    KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
     KE.util.setData(id);
     document.forms['example'].submit();
    });
   }
  });
 </script>
</head>
<body>
 <?php echo $htmlData; ?>
 <form name=”example” method=”post” action=”">
  <textarea id=”content1″ name=”content1″ cols=”100″ rows=”8″ style=”width:700px;height:200px;visibility:hidden;”><?php echo htmlspecialchars($htmlData); ?></textarea>
  <br />
  <input type=”submit” name=”button” value=”提交内容” /> (提交快捷键: Ctrl + Enter)
 </form>
</body>
</html>
http://sand.6te.net/example/php/kindeditor/php/index.php