luni, 12 iulie 2010

Typo3 Add Custom CSS Classes to the TYPO3 RTE

I unsuccessfully tried for a whole day to add new classes with the rte style sheet. It seems that the rte classes don't work anymore with Typo3 4.

So, this won't work

RTE {
default {
# link to site css stylesheet
contentCSS = fileadmin/templates/css/screen/content.css

# clear typical styling
classesAnchor >
classesLinks =
# set classes available to these properties. Paragraph is another name
# for block
classesCharacter := addToList(coding, note, important, warning)
classesParagraph := addToList(coding, note, important, warning, float_left, center, float_right)
classesTD := addToList(sub)
classesTable := addToList(full, fixed)

# list all available classes here, otherwise they're removed on RTE save
proc.allowedClasses := addToList(coding, note, important, warning, float_left, center, float_right, sub, full, fixed)
}
}


Luckily for me I speak German and found the solution on a German forum. It's easy, just change from rtehtmlarea to tinymce_rte. It has lots of other cool features, so, I highly recommend it.

Careful, don't take tinyrte. It's not being maintained anymore.

Un comentariu:

Alex spunea...

":=" imi aminteste de Turbo Pascal :p