-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·43 lines (43 loc) · 1.27 KB
/
index.html
File metadata and controls
executable file
·43 lines (43 loc) · 1.27 KB
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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<title>M-Editor演示</title>
<style>
.editor_input {
white-space: pre-wrap;
word-wrap: break-word;
-webkit-appearance: none;
-webkit-border-radius: 3px;
width: 100%;
padding: 10px;
-webkit-box-sizing: border-box;
display: block;
font-size: 14px;
border: 1px solid #c6c6c6;
border-bottom: 1px solid #eaeaea;
font-weight: 600;
color: #999;
box-shadow: 0 0 5px #dfdfdf inset;
background: #fbfbfb
}
.editor_input p{
margin:0;
padding:0;
}
</style>
<script src="zepto.js"></script>
<script src="umeditor.config.js"></script>
<script src="editor_api.js"></script>
<script src="lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<h1>M-Editor演示</h1>
<div style="width:100%;min-height:80px;" class="editor_input" id="editor"></div>
</body>
<script>
var editor = new UM.Editor();
editor.render('editor')
</script>
</html>