JS之kindeditor的用法简介
## 解压Kindeditor的压缩包
## 前段页面(内嵌name为content的标签即可)
<p class="messageipt"><textarea id="comment_data" name="content" class="textarea" rows="7"></textarea></p>
## js代码
var editor;
KindEditor.ready(function(K) {editor = K.create('textarea[name="content"]', {newlineTag : "br", resizeType : 2,allowPreviewEmoticons : true,allowImageUpload : true,minHeight:"100px",autoHeightMode : false,afterCreate : function() {this.loadPlugin('autoheight');},items : ['fullscreen', 'source' , 'table','insertfile', 'link' , 'image' , 'emoticons' , '|' , 'forecolor', 'hilitecolor', 'bold' ,'underline', 'removeformat', '|' ,'justifyleft', 'justifycenter', 'justifyright', 'preview']});
});
var data = editor.html();
data = encodeURIComponent(data);