How to wrap only content fields that use RTE in TYPO3? [closed]
-
01-06-2021 - |
Domanda
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.
Soluzione
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.
Altri suggerimenti
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/
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow