-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (58 loc) · 1.93 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SCEditor Demo</title>
<link rel="stylesheet" href="./development/themes/default.css" id="theme-style" />
<script src="./development/sceditor.js"></script>
<script src="./development/icons/monocons.js"></script>
<script src="./development/formats/bbcode.js"></script>
<link rel="shortcut icon" href="./favicon.png" />
<style>
html {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
}
form div {
padding: .5em;
}
code:before {
position: absolute;
content: 'Code:';
top: -1.35em;
left: 0;
}
code {
margin-top: 1.5em;
position: relative;
background: #eee;
border: 1px solid #aaa;
white-space: pre;
padding: .25em;
min-height: 1.25em;
}
code:before,
code {
display: block;
text-align: left;
}
</style>
</head>
<body>
<form action="" method="post">
<div>
<textarea id="example" style="height:300px;width:600px;">[center][size=3][b]BBCode SCEditor[/b][/size][/center] Give it a try! :) [color=#ff00]Red text! [/color][color=#3399ff]Blue?[/color] [ul][li]A simple list[/li][li]list item 2[/li][/ul] If you are using IE9+ or any non-IE browser just type [b]:[/b]) and it should be converted into :) as you type.</textarea>
<p>If you are using IE9+ or any other browser then it should automatically replace :) and other emoticon codes with theit emoticon images.</p>
</div>
</form>
<script>
var textarea = document.getElementById('example');
sceditor.create(textarea, {
format: 'bbcode',
icons: 'monocons',
style: './development/themes/content/default.css'
});
</script>
</body>
</html>