var editorMini = KindEditor.create('.editor-mini', {
width: '98%',
height: '450px',
resizeType: 1,
items: [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'link'],
afterBlur: function() {
this.sync();
}
});
在 KindEditor.create中增加
afterBlur: function() {
this.sync();
}
this.sync()说明:这个函数就是同步KindEditor的值到textarea文本框。
官方解释:
sync()
将编辑器的内容设置到原来的textarea控件里。