This sample shows how to configure CKEditor to output BBCode format instead of outputting HTML, along with the appropriate editor configurations that fits for a BBCode editing environment.
A snippet of the configuration code can be seen below; check the source of this page for full definition:
CKEDITOR.replace( 'editor1',
{
extraPlugins : 'bbcode',
toolbar :
[
['Source', '-', 'Save','NewPage','-','Undo','Redo'],
['Find','Replace','-','SelectAll','RemoveFormat'],
['Link', 'Image'],
'/',
['FontSize', 'Bold', 'Italic','Underline'],
['NumberedList','BulletedList','-','Blockquote'],
['TextColor', '-', 'Smiley','SpecialChar', '-', 'Maximize']
],
...
});