-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_simditor.html
53 lines (52 loc) · 1.61 KB
/
test_simditor.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="styles/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="styles/simditor.css" />
<script type="text/javascript" src="scripts/js/jquery.min.js"></script>
<script type="text/javascript" src="scripts/js/module.js"></script>
<script type="text/javascript" src="scripts/js/uploader.js"></script>
<script type="text/javascript" src="scripts/js/simditor.js"></script>
<script>
$(function(){
var editor = new Simditor({
textarea: $('#editor'),
// textarea: null
placeholder: '',
defaultImage: 'images/image.png',
params: {},
upload: false,
tabIndent: true,
toolbar: [
'title',
'bold' ,
'italic' ,
'underline' ,
'strikethrough' ,
'color' ,
'ol' ,
'ul' ,
'blockquote' ,
'code' ,
'table' ,
'link' ,
'image' ,
'hr' ,
'indent' ,
'outdent'
],
toolbarFloat: true,
toolbarHidden: false,
pasteImage: false
});
});
</script>
</head>
<body>
<div style="width:958px;height:403px">
<textarea id="editor" placeholder="这里输入内容" autofocus></textarea>
</div>
</body>
</html>