-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (38 loc) · 1.47 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
<!DOCTYPE html>
<!-- 120% based on Bootstrap-WYSIWYG, this is so easy to make. -->
<html lang="en">
<head>
<meta charset="utf-8" />
<title>NoDistractions - Editor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="external/google-code-prettify/prettify.css" rel="stylesheet" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="external/jquery.hotkeys.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="external/google-code-prettify/prettify.js"></script>
<link href="css/style.css" rel="stylesheet" />
<script src="src/bootstrap-wysiwyg.js"></script>
</head>
<body>
<div class="container">
<div id="editor" class="lead" placeholder="NoDistractions"></div>
<div id="editorPreview"></div>
<p style="text-align: center;">
<script type='text/javascript'>
$('#editor').wysiwyg({
hotKeys: {
'ctrl+b meta+b': 'bold',
'ctrl+i meta+i': 'italic',
'ctrl+u meta+u': 'underline',
'ctrl+z meta+z': 'undo',
'ctrl+y meta+y meta+shift+z': 'redo'
}
});
</script>
</p>
</div>
<script type='text/javascript'>$('#editor').wysiwyg();</script>
</body>
</html>