From 907449f107aee13e0c9e49eb2b6a510f345483b2 Mon Sep 17 00:00:00 2001
From: Guido Schmechel <guido.schmechel@brandung.de>
Date: Thu, 4 Jul 2024 18:14:26 +0200
Subject: [PATCH] [DOCS] Add example for multiple RTE CSS classes

An example for the addition of multiple CSS classes to
editor.config.style will be added to the existing RST files.

Resolves: #104310
Releases: main, 12.4
Change-Id: I8a77aae8c402608857b3b7ea690da23f4f8134c6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85107
Tested-by: Torben Hansen <derhansen@gmail.com>
Reviewed-by: Torben Hansen <derhansen@gmail.com>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Garvin Hicking <gh@faktor-e.de>
Reviewed-by: Garvin Hicking <gh@faktor-e.de>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
---
 .../Documentation/Changelog/12.0/Feature-96874-CKEditor5.rst     | 1 +
 .../rte_ckeditor/Documentation/Configuration/Reference.rst       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Feature-96874-CKEditor5.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Feature-96874-CKEditor5.rst
index 98e49d1d0c70..e6aa9282f57d 100644
--- a/typo3/sysext/core/Documentation/Changelog/12.0/Feature-96874-CKEditor5.rst
+++ b/typo3/sysext/core/Documentation/Changelog/12.0/Feature-96874-CKEditor5.rst
@@ -113,6 +113,7 @@ from `editor.config.wordcount` to `editor.config.wordCount`:
           definitions:
             # block level styles
             - { name: "Lead", element: "p", classes: ['lead'] }
+            - { name: "Multiple", element: "p", classes: ['first', 'second'] }
             - { name: "Small", element: "small", classes: [] }
             # Inline styles
             - { name: "Muted", element: "span", classes: ['text-muted'] }
diff --git a/typo3/sysext/rte_ckeditor/Documentation/Configuration/Reference.rst b/typo3/sysext/rte_ckeditor/Documentation/Configuration/Reference.rst
index b4d4ff5f93f2..82f41b95325f 100644
--- a/typo3/sysext/rte_ckeditor/Documentation/Configuration/Reference.rst
+++ b/typo3/sysext/rte_ckeditor/Documentation/Configuration/Reference.rst
@@ -109,6 +109,7 @@ editor.config
       style:
         definitions:
           - { name: "Lead", element: "p", classes: ['lead'] }
+          - { name: "Multiple", element: "p", classes: ['first', 'second'] }
 
 .. option:: editor.config.importModules
 
-- 
GitLab