KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="contentx"]', {
cssPath : '../hw369_editor/plugins/code/prettify.css',
uploadJson : '../hw369_editor/upload_json.asp',
fileManagerJson : '../hw369_editor/file_manager_json.asp',
allowFileManager : true,
/* afterCreate : function() {
var self = this;
K.ctrl(document, 13, function() {
self.sync();
K('form[name=info_ck_from]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function() {
self.sync();
K('form[name=info_ck_from]')[0].submit();
});
}*/
afterBlur : function() {
this.sync();
K.ctrl(document, 13, function() {
K('form[name=info_ck_from]')[0].submit();
});
K.ctrl(this.edit.doc, 13, function() {
K('form[name=info_ck_from]')[0].submit();
});
}
});
prettyPrint();
});
我的页面是GB2312编码的
现在在非IE浏览器下 就是获取不到值 怎么办 有用过的高手么 求解~~
------解决方案--------------------
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="contentx"]', {
cssPath : '../hw369_editor/plugins/code/prettify.css',
uploadJson : '../hw369_editor/upload_json.asp',
fileManagerJson : '../hw369_editor/file_manager_json.asp',
allowFileManager : true,
afterBlur : function() {
this.sync();
K.ctrl(document, 13, function() {
K('form[name=info_ck_from]')[0].submit();
});
K.ctrl(this.edit.doc, 13, function() {
K('form[name=info_ck_from]')[0].submit();
});
}
});
//prettyPrint();
});