KindEditor.ready(function(K) {
editor1 = K.create('textarea[name="sponsor"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : true,
uploadJson : 'upload.php',
afterCreate : function() { this.sync(); }, //关键是这两个
afterBlur: function(){this.sync();},//关键是这两个
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'link']
});
});