#7151: StylesCombo doesn't honor the bodyId configuration option
---------------------+------------------------------------------------------
Reporter: alexk | Type: Bug
Status: new | Priority: Normal
Component: General | Version: 3.5.1
Keywords: |
---------------------+------------------------------------------------------
The CKEDITOR.config.bodyId isn't applyed to the StylesCombo dialog. For
that some styles are not applyed in the dropdown-selectors.
Steps to reproduce:
1) create a stylesheet that contains a style like:
#somebodyid h1.red {
color: red;
}
2) in the configuration specify:
bodyId: 'somebodyid',
contentsCss: '
http://link.to/your/stylesheet'
3) add a stylesset to the editor:
CKEDITOR.stylesSet.add( 'my_style', [ {
name : 'h1.red',
element : 'h1',
attributes : { 'class' : 'red'} } } ]);
With this setup a element like <h1 class="red">hello</h1> will be rendered
correctly in the editing area. But if you open then Sylescombo dropdown,
the "preview" of the style won't be red as it should be.
--
Ticket URL: <http://dev.ckeditor.com/ticket/7151>
CKEditor <http://ckeditor.com/>
The text editor for Internet