Opened 3 years ago

Closed 3 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

  1. Open: https://jsfiddle.net/feaxsLcL/
  2. Click on the styles combo.

OR:

  1. Create a minimal ckeditor instance that includes the stylescombo plugin and the styleSet configuration option set to:
[
  { name: 'Marker', element: 'span', attributes: { 'class': 'b-test a-test' } }
]
  1. 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 3 years ago by Tade0

Status: newconfirmed

comment:2 Changed 3 years ago by Jakub Ś

DUP of #13206

comment:3 Changed 3 years ago by Jakub Ś

Resolution: duplicate
Status: confirmedclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy