benjaminkott / bootstrap_package

Bootstrap Package delivers a full configured theme for TYPO3, based on the Bootstrap CSS Framework.
https://www.bootstrap-package.com/
MIT License
338 stars 205 forks source link

RTE classes for Buttons not valid in Link Browser #1490

Open tkowtsch opened 5 months ago

tkowtsch commented 5 months ago

Bug Report

Prerequisites

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]

DrDBanner commented 5 months ago

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 5 months ago

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