How to wrap only content fields that use RTE in TYPO3? [closed]
-
01-06-2021 - |
Frage
I would like to wrap all fields (or only bodytext) that use RTE in backend, any ideas how I could achieve this via TypoScript? I've tried:
tt_content.text.default {
20 = TEXT
20.field = bodytext
20.wrap = <div class="rte">|</div>
}
But no luck.
Lösung
You will need a user function. Because whether the RTE is used or not is not know in frontend rendering. Or you need to do this for all fields directly instead for default.
Andere Tipps
Following script will help you to wrap RTE
tt_content.text.20.wrap = <div class="wrapRTE">|</div>
For more information you may visit https://jainishsenjaliya.wordpress.com/2015/09/02/how-to-wrap-the-content-in-rte-typo3/
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow