Opened 11 years ago
Closed 11 years ago
#11568 closed Bug (fixed)
Styles Combo: Select combo list is disabled when only object styles are defined
Reported by: | mmikitka | Owned by: | Piotr Jasiun |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.3.4 |
Component: | Core : Styles | Version: | 4.3 |
Keywords: | Support | Cc: |
Description
Descriptive summary
If one only supplies object styles to config.styleSet, the Styles select combo list remains disabled, even when an object supporting at least one of the defined styles is selected.
Steps to reproduce
- Use a config.styleSet definition like the following, which only contains object styles:
CKEDITOR.config.stylesSet = [
{ name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }
];
- Reload CKEditor
- Create a bulleted list
- The Select list remains disabled
Browser and OS Tested on Chrome and Firefox on Ubuntu 12.04.03
Screenshot Not included
Sample data See config.styleSet definition above
Test case file None
Build configuration None
Attachments (1)
Change History (10)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.3.3 (GitHub - master) → 4.3 |
I was able to reproduce this problem from CKEditor 4.3 in all browsers except for IE. Yes, for change IE is the only working browser, while others are failing.
NOTE: this doesn't happen in 4.3 beta.
Changed 11 years ago by
Attachment: | replacebycodex.html added |
---|
comment:3 Changed 11 years ago by
Keywords: | Support added |
---|
comment:4 Changed 11 years ago by
Milestone: | → CKEditor 4.3.4 |
---|
comment:5 Changed 11 years ago by
Owner: | set to Piotr Jasiun |
---|---|
Status: | confirmed → assigned |
comment:7 Changed 11 years ago by
Status: | assigned → review |
---|
Working on #10848 we were sure that the state of style combo can change only when active filter changes or mode changes so I removed updateState
method from the list of selectionChange
listeners. It appears to be a mistake. I reverted that change and added tests.
Changes in t/11568 and corresponding test branch.
comment:8 Changed 11 years ago by
Status: | review → review_passed |
---|
Kudos!
I force-pushed both rebased branches + some small fixes.
comment:9 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
- git:4be02f3
- tests:28828a7
I just pushed the following proposed fix: https://github.com/mmikitka/ckeditor-dev/commit/434af7ee1959383c22973f55c90a487388da1b51