[TYPO3-RTE] [Typo3-rte] Wrap rtehtmlarea iframe's content in a DIV

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Jan 27 20:02:44 CET 2006


Stanislas Rolland schrieb am 27.01.2006 16:57:

>>>> I usually have my content in a <div class="content">. And in my CSS, I
>>>> specify the formats as ".content P ...". Now if I use rtehtmlarea, I
>>>> have to create a second CSS with the exact same settings, just without
>>>> the ".content" selector.
>>>>
>>>> My wish would be to instruct rtehtmlarea to wrap the textarea-content
>>>> inside some user-specified <div> so that I can use the same .css file
>>>> for the frontend output and for the rtehtmlarea dynamicCSS styles.
>>>>
>>>> Maybe this is already possible and I haven't found it?

>>> No, this is not possible. Perhaps if you could assign a class to the
>>> body tag of the contents of the editor? Then dynamicCSS could be
>>> instructed to ignore/skip that class selector? What do you think?

>> Hi Stanislas, I think I have overlooked your answer, sorry. I think that
>> might be a viable solution. Is this possible already?

> No, it was just an idea.

Ok, so this would be indeed a good idea. Currently the body-tag of the
htmlarea IFRAME is of class "htmlarea-content-body". If we could add
other classes to this using PageTS, we could have much more flexible
.css files that can be used by RTE and by the site itself.

Another related topic: I don't seem to be able to get rid of the default
body.htmlarea-content-body CSS stuff and have rtehtmlarea just load MY
css file. So if my dynamicCSS file contains a "BODY { color: red; }",
this will never apply, since "body.htmlarea-content-body" supersedes this.


Cheers,
Ernesto



More information about the TYPO3-project-rte mailing list