forked from kindsoft/kindeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtotal.html
58 lines (56 loc) · 1.82 KB
/
total.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
55
56
57
58
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>KindEditor Test</title>
</head>
<body>
<h1 id="type">KindEditor Test</h1>
<form method="post" action="../php/demo.php">
<textarea name="editor1" cols="100" rows="20" style="width:800px;height:200px;"></textarea>
<br />
<textarea name="editor2" cols="100" rows="20" style="width:700px;height:100px;"></textarea>
<br />
<textarea name="editor3" cols="100" rows="20" style="width:700px;height:100px;"></textarea>
<br />
<textarea name="editor4" cols="100" rows="20" style="width:700px;height:100px;"></textarea>
<br />
<textarea name="editor5" cols="100" rows="20" style="width:700px;height:100px;"></textarea>
<br />
<input type="button" id="create1" value="Create #1" />
<input type="button" id="create2" value="Create #2" />
<input type="button" id="remove1" value="Remove #1" />
<input type="button" id="remove2" value="Remove #2" />
<input type="button" id="removeAll" value="Remove all" />
<input type="reset" name="button" value="Reset" />
<!-- <iframe src="http://www.kindsoft.net/"></iframe> -->
<script src="../kindeditor-all.js"></script>
<script>
//document.domain = 'domain.com';
KindEditor.ready(function(K) {
window.editor = K.create('textarea', {
allowFileManager : true,
langType : 'zh-CN',
autoHeightMode : true
});
K('#removeAll').click(function(e) {
K.remove('textarea');
});
K('#create1').click(function(e) {
K.instances[0].create();
});
K('#remove1').click(function(e) {
K.instances[0].remove();
});
K('#create2').click(function(e) {
K.instances[1].create();
});
K('#remove2').click(function(e) {
K.instances[1].remove();
});
});
</script>
</form>
</body>
</html>