KindEditor PHP
 KindEditor.ready(function(K) {
 var editor1 = K.create('textarea[name="content1"]', {
 cssPath : './editor/plugins/code/prettify.css',
 uploadJson : './editor/php/upload_json.php',
 fileManagerJson : './editor/php/file_manager_json.php',
 allowFileManager : true,
 afterCreate : function() {
 var self = this;
 K.ctrl(document, 13, function() {
 self.sync();
 K('form[name=example]')[0].submit();
 });
 K.ctrl(self.edit.doc, 13, function() {
 self.sync();
 K('form[name=example]')[0].submit();
 });
 }
 });
 prettyPrint();
 });
 
$htmlData = '';
 if (!empty($_POST['content1'])) {
 if (get_magic_quotes_gpc()) {
 $htmlData = stripslashes($_POST['content1']);
 } else {
 $htmlData = $_POST['content1'];
 }
 }
include_once("function.php");
include_once("conn/conn.php"); 
echo "$htmlData";
mysql_query("insert into tb_talk ('img') values ('".$htmlData."')",$conn);
echo 成功;
?>