title: TYPO3: how to add an element to the RTE, which allows the user to use a defined CSS class
body: <p>I want that the user should be able to select an textstyle in RTE like Detail, Important, Name of person and so on. So I would like to define a CSS and this option should be shown in RTE. The CSS style should be a <code>span</code> and only setting a color.</p>
  
  <p>Currently I have the following code:</p>
  
  <pre><code>RTE.classes{
    highlight{
        name = test
        value = color:#0A8AD2;
    } 
  }
  
  RTE.default{
    ignoreMainStyleOverride = 1 
    useCSS = 1
    contentCSS = fileadmin/templates/css/rte_formats.css
    classesCharacter := addToList(highlight)
    classesParagraph := addToList(highlight)
    proc.allowedClasses := addToList(highlight)
  }
  </code></pre>
  
  <p>The content of the CSS file is</p>
  
  <pre><code>span.highlight, p.highlight {
      color:#0A8AD2;
  }
  </code></pre>
  
  <p>But the new added style isn't shown in the drop down (textstyle). I also enabled "additonal inline elements" in th rtehtmlarea configuration. I also tried to set <code>showTagFreeClasses</code> and so on without success. Then I read about caching problems. I deleted the RTE cache as well as the browser cache. Still no result. What can be wrong?</p>