下载kindeditor插件,我这里命名为editor文件夹
<?php
echo $_POST['goods_desc'];
?>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<form enctype="multipart/form-data" action="" method="post" name="theForm" >
<script charset="utf-8" src="editor/kindeditor.js"></script>
<script charset="utf-8" src="editor/lang/zh_CN.js"></script>
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('#editor_id');
});
</script>
<textarea id="editor_id" name="goods_desc" style="725px;height:300px;"></textarea>
<input type="submit" name="submit" value="提交">
</form>