Skip to content
Snippets Groups Projects
Commit ef74a105 authored by Benjamin Kott's avatar Benjamin Kott Committed by Georg Ringer
Browse files

[BUGFIX] Correct editor content CSS preprocessing

The CSS preprocessing makes it easier to provide custom
content CSS for the CKEditor5. The integrator does not need
to take care of prefixing or scoping the custom CSS to avoid
collisions with the existing backend CSS.

To achieve this we are remapping body, html and :root
definitions to the individual CKEditor5 instances.

We are adjusting the processing of body and html element
selectors to avoid accidental replacements hyphenated
strings and allow combined attribute selectors.

In addition, we are now replacing multi-selectors correctly.

Example for an hyphenated string (ignored):
- font-family: var(--bs-body-font-family);

Example for an combined attribute selector (replaced):
- html[dir="rtl"]

Example for an multi selector (replaced):
- html[dir="rtl"], body

Resolves: #99445
Releases: main
Change-Id: I330859b52390d02f1aa0140e9bc6e8d3123389d7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77243


Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarFrank Nägler <frank.naegler@typo3.com>
parent babe2d1e
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment