Issue Bug Closed

#86852CKEditor doesn't show all configured stylesSets

Simon Würstle 11/05/18, 12:16 updated 05/17/22, 14:12

Description

Following CKEditor configuration works with current TYPO3 8.7.20, but NOT with TYPO3 9.5.1:

editor:
  config:
    stylesSet:
      - { name: 'Button', element: 'a', attributes: { class: 'button button--primary'} }
      - { name: 'Small button', element: 'a', attributes: { class: 'button button--primary button--small'} }
      - { name: 'Big button', element: 'a', attributes: { class: 'button button--primary button--big'} }

With this configuration only “Button” and “Small button” are available in the style dropdown in RTE fields. The problem seems to be that some of the declared classes are the same, i.e. “button” and “button—primary”. If I change the class declaration for “Big button” to “foobar”, it’s available again in the styles dropdown.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.