日期:2014-05-17 浏览次数:20925 次
<script>
var editor1,editor2,editor3,editor4,editor5;
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="project.content"]', {
cssPath : '../kindeditor/plugins/code/prettify.css',
uploadJson : '../kindeditor/jsp/upload_json.jsp',
fileManagerJson : '../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();
});
}
});
prettyPrint();
});
KindEditor.ready(function(K) {
var editor2 = K.create('textarea[name="project.conOne"]', {
cssPath : '../kindeditor/plugins/code/prettify.css',
uploadJson : '../kindeditor/jsp/upload_json.jsp',
fileManagerJson : '../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();
});
}
});
prettyPrint();
});
KindEditor.ready(function(K) {