[TYPO3-rte] Custom Id-Attribute for Body-Tag?

Tyler Kraft tyler.kraft at netefficiency.co.uk
Fri Oct 23 19:22:22 CEST 2009


Hi,

Doesn't it already add a class to the body tag it uses?

body.htmlarea-content-body

I use that all the time and it seems to work for me. Now I *do* use two 
different css files but in theory you don't have to. I could just as 
easily maintain both the FE and RTE in the same file.

Personally I do think though that using a separate css file for the rte 
is a better way to do it. And with the introduction of the ability to 
use conditions in page TSconfig in 4.3 I suspect I very well might end 
up with even more than one RTE css file. I realise that some might find 
that too trouble some, but I have some clients that will suddenly love 
the fact that the RTE in the right hand column now actually displays the 
text the way it is on the FE :-)

Tyler

Ernesto Baschny [cron IT] wrote:
> Stanislas Rolland schrieb:
> 
>>> is there no solution for this?
>>> How do you solve this? Do you use 2 css files for RTE and frontend?
>>>
>> Unfortunately, I think this is the case. It is not currently possible to
>> add attributes to the body tag of the editing area. You can only change
>> the stylesheet of the editing area (part of the RTE skin). In order to
>> have only one stylesheet, you would need to use a class rather than an
>> id selector.
> 
> Maybe RTEhtmlarea could have an option to wrap some "div" around its
> main area, so that the same CSS file could be used. I also have the same
> situation and had already suggested that some years ago (thread "Wrap
> rtehtmlarea iframe's content in a DIV" from 16.12.2005).
> 
> You suggested a class in the body-tag. Is this possible yet or still
> just an idea?
> 
> Cheers,
> Ernesto


More information about the TYPO3-project-rte mailing list