forked from samclarke/sceditor.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (70 loc) · 2.17 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
72
73
74
75
76
77
78
79
80
---
layout: default
title: SCEditor - A lightweight WYSIWYG HTML and BBCode editor
menuTitle: Home
navtitle: Home
---
{% if paginator.page != 1 %}
{% include posts.html %}
{% else %}
<link rel="stylesheet" href="minified/themes/default.min.css" />
<script src="minified/jquery.sceditor.bbcode.min.js"></script>
<script>$(function() {
$("textarea").sceditor({
plugins: 'bbcode',
width: '100%',
style: "minified/jquery.sceditor.default.min.css"
});
});</script>
<p><textarea style="width:600px; height:300px">[center][size=3][b]SCEditor[/b][/size][/center]
Give it a try! :)
[color=#ff00]Red text and [/color][color=#3399ff]blue text![/color]
[ul][li]A simple list[/li][li]With two items[/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>
<div class="row-fluid">
<div class="span12">
<h3>Quick Start</h3>
<h4>
Include the
<abbr title="JavaScript">JS</abbr>
&
<abbr title="Cascading Style Sheet">CSS</abbr>:
</h4>
<pre class="prettyprint linenums">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link rel="stylesheet" href="minified/themes/default.min.css" />
<script src="minified/jquery.sceditor.bbcode.min.js"></script></pre>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<h4>BBCode</h4>
<pre class="prettyprint linenums scrollable"><script>
$(function() {
// Replace all textarea tags with SCEditor
$('textarea').sceditor({
plugins: 'bbcode',
style: 'minified/jquery.sceditor.default.min.css'
});
});
</script></pre>
</div>
<div class="span6">
<h4>XHTML</h4>
<pre class="prettyprint linenums"><script>
$(function() {
// Replace all textarea tags with SCEditor
$('textarea').sceditor({
plugins: 'xhtml',
style: 'minified/jquery.sceditor.default.min.css'
});
});
</script></pre>
</div>
</div>
<h4>Finished!</h4>
<p>
<a class="btn btn-primary btn-large" href="{{ site.sceditor.download }}">Download</a>
or <a class="btn btn-large" href="/documentation/">Read the docs</a>
</p>
{% endif %}