KE.show({
id: ‘txtMessage‘,
imageUploadJson: ‘/ajax/Manager/keupload.ashx?ptype=news‘,
fileManagerJson: ‘/ajax/Manager/kefilemanager.ashx?ptype=news‘,
allowFileManager: true,
resizeMode: 0,
newlineTag: ‘br‘,
shadowMode: false,
autoSetDataMode: false,
syncType: ‘‘, //auto: 每次修改时都会同步; form:提交form时同步; 空:不会自动同步;
allowPreviewEmoticons: false,
//kindEditor创建后
afterCreate: function (id) {
//当表单提交时,将kindEditor值同步到指定控件中
KE.event.add(KE.$(‘fmManager‘), ‘submit‘, function () {
KE.sync(id);
});
},
//光标离开后,将kindEditor值同步到指定控件中
afterBlur: function (id) {
KE.sync(id);
}
});
jquery获取kindEditor值:
$("#txtMessage").val();