-
Notifications
You must be signed in to change notification settings - Fork 21
/
demo.html
41 lines (35 loc) · 1.41 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Simditor</title>
<meta name="viewport" content="width=device-width">
<link media="all" rel="stylesheet" type="text/css" href="vendor/bower/simditor/styles/simditor.css" />
<script type="text/javascript" src="vendor/bower/jquery/dist/jquery.min.js"></script>
</head>
<body>
<div class="wrapper">
<section id="page-demo">
<textarea id="txt-content" data-autosave="editor-content" autofocus></textarea>
</section>
<script type="text/javascript" src="vendor/bower/simple-module/lib/module.js"></script>
<script type="text/javascript" src="vendor/bower/simple-hotkeys/lib/hotkeys.js"></script>
<script type="text/javascript" src="vendor/bower/simple-uploader/lib/uploader.js"></script>
<script type="text/javascript" src="vendor/bower/simditor/lib/simditor.js"></script>
<script type="text/javascript" src="lib/simditor-autosave.js"></script>
<script type="text/javascript">
$(function() {
var editor = new Simditor({
textarea: $('#txt-content'),
placeholder: '这里输入文字...',
pasteImage: true,
upload: location.search === '?upload' ? {
url: '/upload'
} : false
});
});
</script>
</div>
</body>
</html>