Project

General

Profile

Actions

Bug #102356

open

Epic #99669: CKEditor5 Collection

Classes defined for headings are not considered

Added by Chris Müller 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2023-11-09
Due date:
% Done:

0%

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

Description

Given the following RTE configuration:

editor:
  config:
    heading:
      options:
        - { model: 'paragraph', title: 'Paragraph' }
        - { model: 'heading2', view: 'h2', title: 'Heading 2', class: 'h2' }
        - { model: 'heading3', view: 'h3', title: 'Heading 3', class: 'h3' }
        - { model: 'heading4', view: 'h4', title: 'Heading 4', class: 'h4' }

I would expect that when selecting a heading (e.g. "heading2") the defined class (e.g. "h2") is attached to the HTML alement. But this is not the case (neither in RTE directly nor in frontend).

According to the CKeditor documentation this should be done like in the example above:
https://ckeditor.com/docs/ckeditor5/latest/features/headings.html#configuring-toolbar-buttons

Actions #1

Updated by Chris Müller 6 months ago

  • Parent task set to #99669
Actions

Also available in: Atom PDF