樱花公主

导航

kindeditor的使用方法

下载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="width:725px;height:300px;"></textarea>
<input type="submit" name="submit" value="提交">
</form>

posted on 2012-07-09 11:08  修炼1987  阅读(324)  评论(0编辑  收藏  举报