Ticket #6170 (closed Bug: fixed)
Incorrect CSS classes applied to rich combo menu panel.
| Reported by: | JoeK | Owned by: | Saare |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.4.2 |
| Component: | UI : Toolbar | Version: | 3.4 Beta |
| Keywords: | IBM | Cc: | damo satya |
Description
A single div is used to display the style, format, font and font size menu panels.
When the menu is being dynamically created the corresponding menu's CSS class is added.
For example, when creating the Font Size menu the CSS class cke_fontSize_panel is added. When creating the Formatting Styles menu the CSS class cke_styles_panel is added.
No CSS class is ever removed.
If all four richcombo menus are used the div incorrectly contains the CSS classes cke_font_panel, cke_fontSize_panel, cke_format_panel and cke_styles_panel. This can lead to the incorrect styles being applied.
Attachments
Change History
comment:1 Changed 3 years ago by tobiasz.cudnik
- Status changed from new to confirmed
- Version changed from 3.4 Beta to 3.5 (SVN - 3.5.x)
comment:7 Changed 3 years ago by tobiasz.cudnik
- Status changed from review_passed to review_failed
"class" isn't an allowed identifier, it causes IE8 to not parse the source.
comment:9 Changed 3 years ago by garry.yao
- Status changed from review to review_failed
A much DRY approach would be trying to trigger the previous panel's hide handler directly so everything get cleaned up, not only the class name in this case.
comment:10 Changed 3 years ago by Saare
- Status changed from review_failed to review
Added the preventOnClose parameter so the solution won't trigger the onClose method unnecessarily.
comment:11 Changed 3 years ago by garry.yao
- Status changed from review to review_failed
Let's make it simpler, note that font color panels are also affected.
comment:12 Changed 3 years ago by Saare
- Status changed from review_failed to review
Garry and me agreed that we should preserve the current behaviour of the onClose event. I'm opting for a second look before expanding the patch also to the font color and bg color panels.
comment:13 Changed 3 years ago by Saare
The new patch covers all panels.
comment:15 Changed 3 years ago by Saare
- Status changed from review_passed to closed
- Resolution set to fixed
Fixed with [5909].

Key to reproduce this is to open a next combo without closing a previous one.