Quick Start

Include the JS & CSS:

<!-- Include jQuery, this can be omitted if it's already included -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

<!-- Include the default theme -->
<link rel="stylesheet" href="minified/themes/default.min.css" media="all" />

<!-- Include the editors JS -->
<script src="minified/jquery.sceditor.bbcode.min.js"></script>

The file jquery.sceditor.bbcode.min.js has the BBCode plugin bundled with it and the file jquery.sceditor.xhtml.min.js has the XHTML plugin bundled with it.

For a complete list of files, see the Files documentation page.

Initialise

BBCode

To enable the BBCode plugin just add bbcode to the plugins option. e.g.

<script>
$(function() {
	$("textarea").sceditor({
		plugins: "bbcode",
		style: "minified/jquery.sceditor.default.min.css"
	});
});
</script>

XHTML

To enable the XHTML plugin just add xhtml to the plugins option. e.g.

<script>
$(function() {
	$("textarea").sceditor({
		plugins: "xhtml",
		style: "minified/jquery.sceditor.default.min.css"
	});
});
</script>

Finished

That’s it! SCEditor should now be setup.