var editor; |
KindEditor.ready( function (K) { |
editor = K.create( 'textarea[name="content"]' , { |
allowFileManager : true , |
afterBlur: function (){ this .sync();} //关键的地方增加了这一句当失去焦点时执行 this.sync(); |
那么这个 this .sync(); 函数是干嘛的呢?简单的说:这个函数就是同步KindEditor的值到textarea文本框。 |
}); |
}); |