forked from summernote/summernote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (74 loc) · 3.03 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>summernote</title>
<!-- include jquery -->
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<!-- include libraries BS3 -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css" />
<script type="text/javascript" src="//netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" />
<!-- include summernote -->
<link rel="stylesheet/less" type="text/css" href="summernote.less" />
<script type="text/javascript" src="summernote.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.summernote').summernote({
height: 300,
focus: true,
tabsize: 2
});
});
</script>
</head>
<body>
<div class="container">
<h4>Lately library
<span class="label label-info">Bootstrap v3.0.1</span>
<span class="label label-success">font-awesome v4.0.3</span>
</h4>
<div class="summernote"></div>
<h4>CodeMirror as Codeview
<span class="label label-info">Bootstrap v3.0.1</span>
<span class="label label-success">font-awesome v4.0.3</span>
<span class="label label-danger">CodeMirror v3.20.0
</h4>
<iframe src="examples/codemirror.html" width="100%" height="350px" frameBorder="0"></iframe>
<h4>With Textarea
<span class="label label-info">Bootstrap v3.0.1</span>
<span class="label label-success">font-awesome v4.0.3</span>
<span class="label label-info">Textarea</span>
</h4>
<iframe src="examples/textarea.html" width="100%" height="350px" frameBorder="0"></iframe>
<h4>Old library
<span class="label label-info">Bootstrap v2.3.1</span>
<span class="label label-success">font-awesome v3.1.1</span>
</h4>
<iframe src="examples/bs2.html" width="100%" height="350px" frameBorder="0"></iframe>
<h4>Old library 2
<span class="label label-info">Bootstrap v2.3.1</span>
<span class="label label-success">font-awesome v4.0.3</span>
</h4>
<iframe src="examples/bs2fa4.html" width="100%" height="350px" frameBorder="0"></iframe>
</div>
<script type="text/javascript">
less = {
env: "development", // or "production"
async: false, // load imports async
fileAsync: false, // load imports async when in a page under
// a file protocol
poll: 1000, // when in watch mode, time in ms between polls
functions: {}, // user functions, keyed by name
dumpLineNumbers: "comments", // or "mediaQuery" or "all"
relativeUrls: false,// whether to adjust url's to be relative
// if false, url's are already relative to the
// entry less file
rootpath: ":/a.com/"// a path to add on to the start of every url
//resource
};
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/1.3.3/less.min.js" type="text/javascript"></script>
</body>
</html>