Opened 9 years ago
Closed 9 years ago
#14909 closed Bug (duplicate)
Styles combo disabled when a style using multiple classes has them arranged in a non lexicographical order
| Reported by: | Tade0 | Owned by: | Tade0 |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | |
| Keywords: | Cc: |
Description
Steps to reproduce
- Open: https://jsfiddle.net/feaxsLcL/
- Click on the styles combo.
OR:
- Create a minimal ckeditor instance that includes the
stylescomboplugin and thestyleSetconfiguration option set to:
[
{ name: 'Marker', element: 'span', attributes: { 'class': 'b-test a-test' } }
]
- Click on the styles combo.
Expected result
Styles combo shows one style that's named "Marker".
Actual result
Styles combo is empty and disables itself upon clicking on it.
Other details (browser, OS, CKEditor version, installed plugins)
- With the class order switched the bug does not occur.
- The (bug-inducing) style is recognized but in this form the ACF filters it out from the styles list.
- Pasting this snippet:
<p><span class="b-test a-test">Test</span></p>
into the source and switching modes back and forth produces a sorted output like this:
<p><span class="a-test b-test">Test</span></p>
Change History (3)
comment:1 Changed 9 years ago by
| Status: | new → confirmed |
|---|
comment:2 Changed 9 years ago by
comment:3 Changed 9 years ago by
| Resolution: | → duplicate |
|---|---|
| Status: | confirmed → closed |

DUP of #13206