Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTE classes for Buttons not valid in Link Browser #1490

Open
2 of 3 tasks
tkowtsch opened this issue Jun 22, 2024 · 2 comments
Open
2 of 3 tasks

RTE classes for Buttons not valid in Link Browser #1490

tkowtsch opened this issue Jun 22, 2024 · 2 comments
Labels

Comments

@tkowtsch
Copy link

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

  1. Create Link in RTE
  2. Mark it as Block Type "Button" (no matter which)
  3. click the link and open the Link Browser
  4. 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

image

image

Versions

bootstrap_package: [14.0.7]

@tkowtsch tkowtsch added the bug label Jun 22, 2024
@DrDBanner
Copy link

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
Copy link
Author

Yepp, that works. In best case, it'd come with the extension itself, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants