RTE classes for Buttons not valid in Link Browser
tkowtsch opened this issue · 2 comments
tkowtsch commented
Bug Report
Prerequisites
- Can you reproduce the problem on TYPO3 v11.5 LTS
- Can you reproduce the problem on TYPO3 v12.4 LTS
- Did you perform a cursory search
to see if your bug or enhancement is already reported?
Description
Noticed while I searched for the Bootstrap Buttons
Steps to Reproduce
- Create Link in RTE
- Mark it as Block Type "Button" (no matter which)
- click the link and open the Link Browser
- Drop Down for CSS class shows that current value is not allowed
Expected behavior
All CSS classes that can be applied to links via RTE should be valid in Link browser
Actual behavior
Screenshots
Versions
bootstrap_package: [14.0.7]
DrDBanner commented
Looks like a config is missing. Add those two lines to your page.tsconfig or rte.tsconfig and clear the caches.
RTE.default.buttons.link.properties.class.allowedClasses = btn, btn btn-primary, btn btn-secondary, btn btn-success, btn btn-danger, btn btn-warning, btn btn-info, btn btn-light, btn btn-dark, btn btn-link, btn external-link, internal-link, any-other-classes, btn btn-outline-primary, btn btn-outline-secondary, btn btn-outline-success, btn btn-outline-danger, btn btn-outline-warning, btn btn-outline-info, btn btn-outline-light, btn btn-outline-dark
RTE.default.proc.allowedClasses = btn, btn btn-primary, btn btn-secondary, btn btn-success, btn btn-danger, btn btn-warning, btn btn-info, btn btn-light, btn btn-dark, btn btn-link, external-link, internal-link, any-other-classes, btn btn-outline-primary, btn btn-outline-secondary, btn btn-outline-success, btn btn-outline-danger, btn btn-outline-warning, btn btn-outline-info, btn btn-outline-light, btn btn-outline-dark
tkowtsch commented
Yepp, that works. In best case, it'd come with the extension itself, right?