-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (61 loc) · 2.25 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
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<title>Redactor is awesome!</title>
<meta charset="utf-8">
<link rel="stylesheet" href="http://imperavi.com/js/redactor/redactor.css" />
<link rel="stylesheet" href="styles.css" />
<style type="text/css">
.redactor_dropdown .redactor_format_boldred { color:red;font-weight:bold; }
.redactor_dropdown .redactor_format_greenaside { color:green; }
.redactor_dropdown .redactor_format_greenfaint { color:green;opacity:0.5; }
.mygreen { color:green;opacity:0.5; }
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="http://imperavi.com/js/redactor/redactor.js"></script>
<script>
var redStylesJSON = [
{btnName:'Bold Red',className:'redactor_format_boldred',style:'font-weight:bold;color:red'},
{btnName:'Green Faint',className:'redactor_format_greenfaint',spanClass:'mygreen'},
{btnName:'Green Aside',className:'redactor_format_greenaside',wrap: 'aside',style:'color:green'}
];
</script>
<!-- Redactor's plugin -->
<script src="styles.js"></script>
<!-- Call Redactor -->
<script type="text/javascript">
$(document).ready(
function()
{
$('#redactor').redactor({
focus: true,
plugins: ['styles'],
stylesJson: redStylesJSON
});
}
);
</script>
<!-- Site styles -->
<style type="text/css">
html, body {
margin: 0;
padding: 0;
}
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 14px;
}
#page {
width: 940px;
margin: 50px auto;
}
</style>
</head>
<body>
<div id="page">
<textarea id="redactor" name="content" style="width: 99%; height: 400px;">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</textarea>
</div>
</body>
</html>