Cast Iron Coding, Inc

TYPO3 Admin's Corner

Click here to return to the TYPO3 Admin's Corner

Stay Connected

Complete the form below to sign up for the CIC newsletter. We send out about one message each month and we do our best to make sure it's full of useful information about TYPO3. We'll never share your email address with a third-party and should you ever change your mind, unsubscribing is a breeze.
Configuring TYPO3

Recommended Configuration for htmlArea

By: Lucas Thurston

When specifying a stylesheet for the RTE, it is probably best to include the main typography stylesheet rather than a separate stylesheet only for htmlArea. Sometimes doing so however, has interesting consequences, and you may want to move the RTE-specific to their own file. In the second line of the RTE config above, we choose the file we want to include:

RTE.default.contentCSS = fileadmin/templates/htmlarea.css

Right after that we must choose the classes that will be included in the drop-down character class selector. It’s defined by “classesCharacter” because you can wrap individual, in-line, segments (aka characters) of a paragraph or header. To set styles on paragraphs, use the “classesParagraph” property.

RTE.default.classesCharacter = fancy,neato,ugly

And, we must define those styles in our stylesheet:

.fancy {
    ...
}
.neato {
    ...
}
.ugly {
    ...
}

Make sure to include “textstylelabel” in your showButtons list, or the RTE user won’t even have the drop-down box to select a style from!

Posted on Wednesday, May 10, 2006 at 11:54 AM.