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.

È stato utile?

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
scroll top