This sample shows how to configure CKEditor instances to use the
Stylesheet Parser (stylesheetparser
) plugin that fills
the Styles drop-down list based on the CSS rules available in the document stylesheet.
To add a CKEditor instance using the stylesheetparser
plugin, insert
the following JavaScript call into your code:
CKEDITOR.replace( 'textarea_id', { extraPlugins : 'stylesheetparser' });
Note that textarea_id
in the code above is the id
attribute of
the <textarea>
element to be replaced with CKEditor.