-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathindex.html
49 lines (46 loc) · 1.62 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>TEditor</title>
<link rel="stylesheet" type="text/css" href="css/teditor.css">
<style type="text/css">
#container{
border: 1px solid blue;
width: 600px;
height: 400px;
}
</style>
</head>
<body>
<button onclick="editor.setStyle('font-weight','bold')">bold</button>
<button onclick="editor.setStyle('font-weight','normal')">unbold</button>
<button onclick="editor.setStyle('font-style','italic')">italic</button>
<button onclick="editor.setStyle('font-style','normal')">unitalic</button>
<button onclick="editor.setStyle('color','red')">red</button>
<button onclick="editor.setStyle('color','blue')">blue</button>
<button onclick="editor.setStyle('font-size','13pt')">13pt</button>
<button onclick="editor.setStyle('font-size','16pt')">16pt</button>
<button onclick="editor.setStyle('font-size','20pt')">20pt</button>
<div id="container">
</div>
<script src="js/jx/jx.core.js"></script>
<script src="js/jx/jx.base.js"></script>
<script src="js/jx/jx.browser.js"></script>
<script src="js/jx/jx.dom.js"></script>
<script src="js/jx/jx.event.js"></script>
<script src="js/jx/jx.event.eventparser.js"></script>
<script src="js/jx/jx.event.eventproxy.js"></script>
<script src="js/teditor.js"></script>
<script src="js/teditor.util.js"></script>
<script src="js/teditor.ui.js"></script>
<script >
;Jx().$package(function(J){
J.event.on(window, 'load', function(){
var container = document.getElementById('container');
editor = TE.create({
container: container
});
});
});
</script>