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>