SCEditor

Quick Start

Include the JS & CSS:

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

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

<!-- Include the BBCode or XHTML formats -->
<script src="minified/formats/bbcode.js"></script>
<script src="minified/formats/xhtml.js"></script>

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

Initialise

BBCode

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

<script>
var textarea = ...;
sceditor.create(textarea, {
	format: 'bbcode',
	style: 'minified/themes/content/default.min.css'
});
</script>

XHTML

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

<script>
var textarea = ...;
sceditor.create(textarea, {
	format: 'xhtml',
	style: 'minified/themes/content/default.min.css'
});
</script>

Finished

That’s it! SCEditor should now be setup.