title: How to set the background-color/image of a cktext_area in rails
body: <p>I am using Rails 3.0.9 with the ckedit gem.</p>
  
  <p>I have the following code in a view.</p>
  
  <pre><code>&lt;%= f.cktext_area :content, :toolbar =&gt; 'Reduced', :width =&gt; 550, :height =&gt; 300 %&gt;
  </code></pre>
  
  <p>How can I style the resulting editor to set the background-color of the edit area to indicate that validation has failed? For <code>&lt;%=text_area</code> I can set <code>:class=&gt;'error'</code> but I can't figure out the correct approach.</p>
  
  <p>Many thanks for your help - I've searched everywhere for a decent answer this!</p>