KindEditor编辑器高度数值随着内容的增多而变大!
var editor;
KindEditor.ready(function(K) {
//progress
editor = K.create('textarea[name="earnings"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link'],
resizeMode : 0
});
var autoheight=editor.edit.doc.body.scrollHeight;
editor.edit.setHeight(autoheight);
});