/ Published in: TYPO3
Classes _need_ to be defined in your rte.css for the editor to show them.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# PageTS RTE.default { useCSS = 1 contentCSS = fileadmin/templates/css/rte.css # classesParagraph := addToList(error-box) # classesCharacter := addToList(stil-rot, stil-gruen) classesUL := addToList(checkmarks) FE.proc < RTE.default.proc FE < RTE.default showTagFreeClasses = 1 # proc.allowedClasses := addToList(checkmarks, error-box, stil-rot, stil-gruen) proc.allowedClasses := addToList(checkmarks) } RTE.classes { checkmarks { name = Haekchen-Liste value = background-color:#eee; } #error-box { # name = Fehlermeldung (Box mit rotem Rahmen) # value = background: #fff; border: 1px solid red; padding: 5px; color: red; #} #stil-rot { # name = Rote Schrift # value = color: red; #} #stil-gruen { # name = Grüne Schrift # value = color: green; #} }