[CKEditor Dev] #7151: StylesCombo doesn't honor the bodyId configuration option

0 views
Skip to first unread message

CKEditor

unread,
Feb 10, 2011, 5:31:34 AM2/10/11
to ckeditor...@googlegroups.com
#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

CKEditor

unread,
May 19, 2011, 3:44:29 AM5/19/11
to ckeditor...@googlegroups.com
#7151: StylesCombo doesn't honor the bodyId configuration option
------------------------+--------------------
Reporter: alexk | Owner:
Type: Bug | Status: closed
Priority: Normal | Milestone:
Component: General | Version: 3.5.1
Resolution: duplicate | Keywords:
------------------------+--------------------
Changes (by Saare):

* status: new => closed
* resolution: => duplicate


Comment:

Closing this one as a dup of #7452, because it contains some more info.

--
Ticket URL: <http://dev.ckeditor.com/ticket/7151#comment:1>
CKEditor <http://ckeditor.com/>
The text editor for the Internet

Reply all
Reply to author
Forward
0 new messages