Color me surprised:
- It works in Legacy mode for me in both main + v12.4 (i.e. GIT checkout)
- It does NOT work in TYPO3 v12.4 composer mode with a completely vanilla installation (no extensions at all)
Steps to reproduce:
- Create directory like "t3-vanilla"
- Have a simple composer.json [1]
- Create a ddev project ("ddev config" > pick some name, docroot "htdocs", project type "typo3"
- ddev composer install
- ddev restart
- ddev launch typo3/install.php -> perform installation
- open backend
- Create an empty dummy page
- Create a content element "Regular text"
- In the bodytext enter any random text, select the text, choose dropdown "Styles" from CKeditor instance, pick "small"
- No HTML layout will be applied
If you edit the file `./vendor/typo3/cms-rte-ckeditor/Configuration/RTE/Default.yaml` and change:
- { name: "Small", element: "small", classes: [] }
to:
- { name: "Small", element: "small", classes: [''] }
it will indeed work when reloading the browser. Removing ", classes: []" will break the dropdown.
Since "classes: ['']" works in both legacy mode and composer mode, I'd argue using that to unbreak composer mode would be fair.
[1] composer.json
{
"name": "debug/t3v12-vanilly",
"version": "1.0.0",
"require": {
"ext-mysqli": "*",
"ext-pdo": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-simplexml": "*",
"ext-openssl": "*",
"typo3/minimal": "^12.0",
"typo3/cms-fluid-styled-content": "^12.3",
"typo3/cms-info": "^12.3",
"typo3/cms-recycler": "^12.3",
"typo3/cms-reports": "^12.3",
"typo3/cms-rte-ckeditor": "^12.3",
"typo3/cms-scheduler": "^12.3",
"typo3/cms-setup": "^12.3",
"typo3/cms-tstemplate": "^12.3",
"typo3/cms-belog": "^12.3",
"typo3/cms-beuser": "^12.3",
"typo3/cms-adminpanel": "^12.3",
"typo3/cms-filemetadata": "^12.3",
"typo3/cms-impexp": "^12.3",
"typo3/cms-viewpage": "^12.3",
"typo3/cms-lowlevel": "^12.3",
"typo3/cms-redirects": "^12.3",
"typo3/cms-seo": "^12.3",
"typo3/cms-felogin": "^12.3",
"typo3/cms-form": "^12.3"
},
"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": "htdocs"
}
},
"config": {
"allow-plugins": {
"typo3/cms-composer-installers": true,
"typo3/class-alias-loader": true
}
}
}