Repository navigation
Expand file tree
/
Copy pathtest-lang.html
More file actions
69 lines (61 loc) · 1.78 KB
/
Copy pathtest-lang.html
File metadata and controls
69 lines (61 loc) · 1.78 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>wangEditor2 test</title>
<link rel="stylesheet" type="text/css" href="../dist/css/wangEditor.min.css">
<style type="text/css">
#div1 {
width: 100%;
height: 300px;
}
.wangEditor-txt blockquote {
display: block;
border-left: 8px solid #d0e5f2;
padding: 5px 10px;
margin: 10px 0;
line-height: 1.4;
font-size: 100%;
background-color: #f1f1f1;
}
.wangEditor-txt table {
border: none;
border-collapse: collapse;
}
.wangEditor-txt table td,
.wangEditor-txt table th {
border: 1px solid #f1f1f1;
padding: 3px 5px;
min-width: 50px;
height: 20px;
}
.wangEditor-txt pre {
border: 1px solid #ccc;
background-color: #f8f8f8;
padding: 10px;
margin: 5px 0px;
font-size: 0.8em;
font-family: Menlo, Monaco, Consolas;
border-radius: 3px;
}
</style>
</head>
<body style="padding:0 20px;">
<p>wangEditor 多语言 - 英文</p>
<div class="container">
<div id="div1">
<p>请输入内容222</p>
</div>
</div>
<script type="text/javascript" src="../dist/js/lib/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../dist/js/wangEditor.js"></script>
<script type="text/javascript">
$(function () {
var editor = new wangEditor('div1');
// 设置语言
editor.config.lang = wangEditor.langs['en'];
editor.create();
});
</script>
</body>
</html>