-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.html
113 lines (93 loc) · 5.29 KB
/
editor.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head>
<title></title>
<style>
li{float:left;padding:40px}
.edit_drag{width:300px;height:200px;border: 1px solid black;}
.drag_btn {position:relative; bottom:-100%; right:0; width:25px;height:14px;cursor: se-resize;float:right;}
</style>
</head>
<script src="jceditor2/common/js/require.js"></script>
<script src="jceditor2/module/jceditor.js"></script>
<!-- <script src="common/js/sizzle.js"></script>
<script src="module/core/jceditor_selector.js"></script> -->
<body>
<<<<<<< HEAD
<div style="background-color:none;width:3000px;height:400px;" align="left">
<h1>
=======
<div style="background-color:none;width:3000px;height:500px;" align="left">
<h1>장쿨에디터 v2.0이 될 때까지 테스트..</li>
>>>>>>> fe450dfa2be1acf3740cdddd377cf254674c63cd
</h1>
<ul style="height:22px;float: left;">
<li>
<textarea id="edit1">
왜 또 갑자기 글 쓸때 느려지지??...
</textarea>
<br />
<input type="button" value="내용가져오기" onclick="getContent()">
<input type="button" value="글자 길이" onclick="getContentLength()">
</li>
<li>
<<<<<<< HEAD
</li>
<li>
=======
>>>>>>> fe450dfa2be1acf3740cdddd377cf254674c63cd
<textarea id="edit2">
<span style="font-family: 돋움; font-size: 10pt;"><table style="border-collapse: collapse;" cellSpacing="0" cellPadding="0" width="100%"><tbody><tr><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td></tr><tr><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td></tr><tr><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td></tr><tr><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td></tr><tr><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td><td style="border: 1px solid rgb(204, 204, 204); height: 20px;"></td></tr></tbody></table></span>
</textarea>
<br />
<input type="button" value="내용가져오기" onclick="">
<input type="button" value="글자 길이" onclick="">
</li>
<<<<<<< HEAD
<li>
</li>
</ul>
</div>
<div id="edit1-jceditor-content-div" class="edit_drag"><iframe id="edit1-jceditor-edit-iframe" src="about:blank" frameborder="0" style="position:relative" class="jceditor-content-iframe"></iframe>
<div id="edit1-jceditor-resizable-div" class="drag_btn">Drag</div></div><br />
<div id="edit2-jceditor-content-div" class="edit_drag"><iframe id="edit2-jceditor-edit-iframe" src="about:blank" frameborder="0" style="position:relative" class="jceditor-content-iframe"></iframe>
<div id="edit2-jceditor-resizable-div" class="drag_btn">Drag</div></div><br />
=======
</ul>
</div>
<iframe id="edit1-jceditor-edit-iframe" src="about:blank" frameborder="0" class="jceditor-content-iframe"></iframe>
<iframe id="edit2-jceditor-edit-iframe" src="about:blank" frameborder="0" class="jceditor-content-iframe"></iframe>
>>>>>>> fe450dfa2be1acf3740cdddd377cf254674c63cd
<div class="bbb">111
<input id="aaa" type="button" value="클릭" onclick="getConfig()" />
<input id="abc" type="button" value="클릭2" onclick="getConfig2()" />
<input id="abc" type="button" value="클릭" onclick="getBrwoserType()" />
</div>
<script type="text/javascript">
// $(".bbb").prependTo($(".cccc"));
// _j(".bbb").prependTo(_j(".cccc"));
JCEditor.create("edit1","","",{show:true,charset : "base"},function(e){
editor = e;
});
JCEditor.create("edit2","","",{show:true},function(e){
editor2= e;
});
function getConfig () {
// body...
console.log(editor.getConfig());
}
function getConfig2 () {
// body...
console.log(editor2.getConfig());
}
<<<<<<< HEAD
=======
>>>>>>> fe450dfa2be1acf3740cdddd377cf254674c63cd
function getBrwoserType () {
// body...
console.log(editor2.getBrwoserType());
}
</script>
</body>
</html>