forked from ChiperSoft/wmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wmd-test.html
executable file
·42 lines (37 loc) · 1.01 KB
/
wmd-test.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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>WMD Example</title>
<link rel="stylesheet" type="text/css" href="wmd.css"/>
<script src="wmd.js"></script>
<script src="showdown.js"></script>
<style type="text/css" media="screen">
textarea {width:100%;margin:0;}
textarea, #notes-preview {border:1px solid gray;height:100px;}
#notes-preview {overflow-x:hidden;overflow-y:scroll;}
</style>
</head>
<body>
<h1>WMD Example</h1>
<div>
<div id="notes-button-bar"></div>
<textarea id="notes"></textarea>
Preview:
<div id="notes-preview"></div>
Output:
<textarea type="text" name="copy_html" value="" id="copy_html"></textarea>
</div>
<script type="text/javascript">
new WMDEditor({
input: "notes",
button_bar: "notes-button-bar",
preview: "notes-preview",
output: "copy_html",
buttons: "bold italic link ol ul heading",
modifierKeys: false,
autoFormatting: false
});
</script>
</body>
</html>