日期:2014-05-16 浏览次数:20415 次
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="content1"]',
{
cssPath : 'plugins/code/prettify.css',
uploadJson : 'jsp/upload_json.jsp',
fileManagerJson : '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();
});
</script>
<form name="example" method="post" action="create_note.jsp">
<label>标题:</label><input id="csss" type="text" name="title" value="" />
<textarea id="t-editor" name="content1" cols="100" rows="8"
style="width: 902px; height: 500px; ">ss</textarea>
<button type="submit" name="button" value="提交内容">(提交快捷键:
Ctrl + Enter)</button>
</form>