今天在整合SpringMVC+
var editor;
KindEditor.ready(function(K) {
editor = K.create('textarea[name="content"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
afterBlur: function () { this.sync(); },
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
});
多了一行同步数据项:
afterBlur: function () { this.sync(); },
如果您觉得本文的内容对您的学习有所帮助:
关键字:KindEditor Ajax表单提交