Project

General

Profile

Actions

Bug #86852

closed

CKEditor doesn't show all configured stylesSets

Added by Simon Würstle over 5 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2018-11-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Files

rte_86852_1.0.0_201811060707.zip (2.88 KB) rte_86852_1.0.0_201811060707.zip Test Extension to reproduce the problem and showing a possible workaround Josef Glatz, 2018-11-06 07:40

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #88566: Problems with rte_ckeditor and yaml fileClosed2019-06-14

Actions
Actions

Also available in: Atom PDF