-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (47 loc) · 1.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/editor.css" />
<title>Editor</title>
<style type="text/css">
body {
padding: 0;
margin: 0;
background-color: #eee;
}
.editor-wrapper {
max-width: 680px;
margin: 60px auto;
background-color: white;
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
border-radius: 2px;
}
</style>
</head>
<body>
<div class="editor-wrapper">
<input class="title" type="text" placeholder="Title" />
<textarea id="editor" placeholder="Content here ....">
## This is the editor for markdown
Support the following feature:
* Syntax highlight
* Upload image on Paste.
</textarea>
</div>
<script src="js/zepto.min.js"></script>
<script src="js/marked.js"></script>
<script src="js/editor.js"></script>
<script src="js/inline-attach.js"></script>
<script src="js/codemirror.inline-attach.js"></script>
<script type="text/javascript">
(function($) {
editor = new Editor();
editor.render();
inlineAttach.attachToCodeMirror(editor.codemirror, {
uploadUrl: 'upload_attachment.php'
});
})(Zepto);
</script>
</body>
</html>