KindEditor js提交獲取不到值

KindEditor.ready(function(K) { 
var editor = K.create('textarea[name="tvForm.videoIntro"]', { 
cssPath : '${ctx }/scripts/kindeditor/plugins/code/prettify.css', 
uploadJson : '${ctx }/scripts/kindeditor/jsp/upload_json.jsp', 
fileManagerJson : '${ctx }/scripts/kindeditor/jsp/file_manager_json.jsp', 
allowFileManager : true, 
afterCreate : function() { 
var self = this; 
K.ctrl(document, 13, function() { 
self.sync(); 
//document.forms['example'].submit(); 
}); 
K.ctrl(self.edit.doc, 13, function() { 
self.sync(); 
//document.forms['example'].submit(); 
}); 
}, 
afterBlur: function () { this.sync(); }     //關鍵是這句話起做用 
}); 
prettyPrint(); 
});
相關文章
相關標籤/搜索