Users would like to add custom classes to links in RTE link wizard. I don't see any documentation about this feature.
Asked
Active
Viewed 227 times
1 Answers
2
On TYPO3 7 you have to add the followint Page TSConfig:
RTE.classesAnchor.myown-link {
class = myown-link
type = page
titleText = My Own Link
altText = My Own Link
}
RTE.default.buttons.link.properties.class.allowedClasses := addToList(myown-link)
RTE.default.proc.allowedClasses := addToList(myown-link)
See the documentation here and this answer, too

Riccardo De Contardi
- 2,128
- 7
- 17
-
I don't want a dropdown with my class but a text input where the user can put his own class. – SteveLeg Jun 18 '19 at 13:33