CKEditor Sample — BBCode plugin playground

This sample shows how to configure CKEditor to output BBCode format instead of HTML. Please note that the editor configuration was modified to reflect what is needed in a BBCode editing environment. Smiley images, for example, were stripped to the emoticons that are commonly used in some BBCode dialects.

Please note that currently there is no standard for the BBCode markup language, so its implementation for different platforms (message boards, blogs etc.) can vary. This means that before using CKEditor to output BBCode you may need to adjust the implementation to your own environment.

A snippet of the configuration code can be seen below; check the source of this page for a full definition:

CKEDITOR.inline( 'editor1', {
	extraPlugins : 'bbcode',
	(below configurations details omitted:)
	toolbar : ...,
	fontSize_sizes : ...,
	smiley_images : ...,
	smiley_descriptions : ...
});

BBCode Output: