kindeditor 操作时同步到textarea
<script>
KindEditor.ready(function (K) {
editor1 = K.create('textarea[name="content"]', {
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']
});
});
</script>