PageTS: RTE config


/ Published in: TYPO3
Save to your folder(s)

Classes _need_ to be defined in your rte.css for the editor to show them.


Copy this code and paste it in your HTML
  1. # PageTS
  2. RTE.default {
  3. useCSS = 1
  4. contentCSS = fileadmin/templates/css/rte.css
  5. # classesParagraph := addToList(error-box)
  6. # classesCharacter := addToList(stil-rot, stil-gruen)
  7. classesUL := addToList(checkmarks)
  8.  
  9. FE.proc < RTE.default.proc
  10. FE < RTE.default
  11.  
  12. showTagFreeClasses = 1
  13. # proc.allowedClasses := addToList(checkmarks, error-box, stil-rot, stil-gruen)
  14. proc.allowedClasses := addToList(checkmarks)
  15. }
  16.  
  17. RTE.classes {
  18. checkmarks {
  19. name = Haekchen-Liste
  20. value = background-color:#eee;
  21. }
  22. #error-box {
  23. # name = Fehlermeldung (Box mit rotem Rahmen)
  24. # value = background: #fff; border: 1px solid red; padding: 5px; color: red;
  25. #}
  26. #stil-rot {
  27. # name = Rote Schrift
  28. # value = color: red;
  29. #}
  30. #stil-gruen {
  31. # name = Grüne Schrift
  32. # value = color: green;
  33. #}
  34. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.