danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0:
danielebarchiesi@0:danielebarchiesi@0: This sample shows how to configure CKEditor to output BBCode format instead of HTML. danielebarchiesi@0: Please note that the editor configuration was modified to reflect what is needed in a BBCode editing environment. danielebarchiesi@0: Smiley images, for example, were stripped to the emoticons that are commonly used in some BBCode dialects. danielebarchiesi@0:
danielebarchiesi@0:danielebarchiesi@0: Please note that currently there is no standard for the BBCode markup language, so its implementation danielebarchiesi@0: for different platforms (message boards, blogs etc.) can vary. This means that before using CKEditor to danielebarchiesi@0: output BBCode you may need to adjust the implementation to your own environment. danielebarchiesi@0:
danielebarchiesi@0:danielebarchiesi@0: A snippet of the configuration code can be seen below; check the source of this page for danielebarchiesi@0: a full definition: danielebarchiesi@0:
danielebarchiesi@0:danielebarchiesi@0: CKEDITOR.replace( 'editor1', danielebarchiesi@0: { danielebarchiesi@0: extraPlugins : 'bbcode', danielebarchiesi@0: toolbar : danielebarchiesi@0: [ danielebarchiesi@0: ['Source', '-', 'Save','NewPage','-','Undo','Redo'], danielebarchiesi@0: ['Find','Replace','-','SelectAll','RemoveFormat'], danielebarchiesi@0: ['Link', 'Unlink', 'Image'], danielebarchiesi@0: '/', danielebarchiesi@0: ['FontSize', 'Bold', 'Italic','Underline'], danielebarchiesi@0: ['NumberedList','BulletedList','-','Blockquote'], danielebarchiesi@0: ['TextColor', '-', 'Smiley','SpecialChar', '-', 'Maximize'] danielebarchiesi@0: ], danielebarchiesi@0: ... some other configurations omitted here danielebarchiesi@0: });danielebarchiesi@0: