Repository navigation
Expand file tree
/
Copy pathaddReadNote2.html
More file actions
91 lines (84 loc) · 2.68 KB
/
Copy pathaddReadNote2.html
File metadata and controls
91 lines (84 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>添加笔记</title>
<style>
form {
margin: 0;
}
textarea {
display: block;
}
</style>
<link rel="stylesheet" href="css/bootstrap.css" />
<script charset="utf-8" src="js/kindeditor-min.js"></script>
<script charset="utf-8" src="lang/zh_CN.js"></script>
</head>
<body>
<div class="form-group"></div>
<div class="form-group col-sm-11">
<label for="noteName" class="col-sm-2 control-label">书名:</label>
<div class="col-sm-2">
<input type="text" class=" form-control" name="noteName" placeholder="">
</div>
<label for="chapterNo" class="col-sm-2 control-label">章节号:</label>
<div class="col-sm-2">
<input type="text" class=" form-control" name="chapterNo" placeholder="">
</div>
<label for="teacherName" class="col-sm-2 control-label">讲师:</label>
<div class="col-sm-2">
<input type="text" class=" form-control" name="teacherName" placeholder="">
</div>
</div>
<div class="form-group col-sm-11">
<label for="noteSummary" class="col-sm-2 control-label">内容摘要: </label>
<div class="col-sm-10">
<textarea name="noteSummary" class="form-control" row="2"></textarea>
</div>
</div>
<div class="form-group col-sm-11">
<label for="content" class="col-sm-2 control-label">笔记内容: </label>
<div class="col-sm-10">
<textarea name="content" style="width:100%;height:400px;visibility:hidden;" ></textarea>
</div>
</div>
<div class="col-sm-12">
<div class="text-center">
<button class="btn btn-success btn-round" type="submit" id="" style="margin-top:20px;">
<i class="icon-check bigger-110"></i>
保存
</button>
</div>
</div>
<script>
function kedit(kedit){
var editor = KindEditor.create(kedit,{
resizeMode: 0,
allowPreviewEmoticons: false,
afterCreate : function() {
this.sync();
},
afterBlur:function(){
this.sync();
},
items: [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
}
kedit('textarea[name="content"]');
/*$('#ff').iForm({
url:'',
onSubmit: function(){
// do some check
// return false to prevent submit;
},
success:function(data){
alert(data)
}
});*/
</script>
</body>
</html>