Answers.Body: <p>This doesn’t appear to be possible without a plugin. The <a href="http://imperavi.com/redactor/docs/settings/formatting/#setting-formattingAdd" rel="nofollow">formattingAdd</a> will add additional options to the Formatting menu, but will not alter the behavior of any of the other buttons, and you can only set the <code>tag</code> properties to <code>p</code>, <code>pre</code>, <code>blockquote</code>, and <code>h[1-6]</code>.</p>
  
  <p>Another option might be to use a Matrix field with two block types: Text and List. Text blocks would have a Rich Text field, and List blocks would have a Table field with one column, plus a Dropdown field that specifies what the class should be. From your templates you would do this:</p>
  
  <pre><code>{% for block in entry.myMatrixField %}
      {% if block.type == 'text' %}
          {{ block.text }}
      {% elseif block.type == 'list' %}
          &lt;ul class="{{ block.myDropdownField }}"&gt;
              {% for row in block.myTableField %}
                  &lt;li&gt;{{ row.myColumnHandle }}&lt;/li&gt;
              {% endfor %}
          &lt;/ul&gt;
      {% endif %}
  {% endfor %}
  </code></pre>
  
  <p>If you really want to keep all this within Redactor and go the plugin route, you can use our <a href="https://github.com/pixelandtonic/RedactorClips" rel="nofollow">Redactor Clips</a> plugin as a starting point.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-06T10:34:18.770Z
Answers.LastActivityDate: 2015-01-06T10:34:18.770Z
Answers.UserDisplayName: Brandon Kelly
Body: <p>I realise this is very much a Redactor question, but was wondering if anyone has figured out how to apply custom classes to UL's and OL's in Craft using the formattingAdd options?</p>
  
  <p>I've tried the following but it just won't apply to any unordered lists I create:</p>
  
  <p>{
    tag: 'ul',
    title: 'Large list',
    class: 'large'
  }</p>
  
Tags: <control-panel><redactor>
Title: Styling unordered lists in Craft
ThreadText: # Styling unordered lists in Craft
  
  (Asked by: username_0 on 2015-01-01)
  
  I realise this is very much a Redactor question, but was wondering if anyone has figured out how to apply custom classes to UL's and OL's in Craft using the formattingAdd options?
  
  I've tried the following but it just won't apply to any unordered lists I create:
  
  {
  tag: 'ul',
  title: 'Large list',
  class: 'large'
  }
  
  **Tags:** control-panel, redactor
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-01-06. Score: 2
  
  This doesn’t appear to be possible without a plugin. The [formattingAdd](http://imperavi.com/redactor/docs/settings/formatting/#setting-formattingAdd) will add additional options to the Formatting menu, but will not alter the behavior of any of the other buttons, and you can only set the `tag` properties to `p`, `pre`, `blockquote`, and `h[1-6]`.
  
  Another option might be to use a Matrix field with two block types: Text and List. Text blocks would have a Rich Text field, and List blocks would have a Table field with one column, plus a Dropdown field that specifies what the class should be. From your templates you would do this:
  
  ```
  {% for block in entry.myMatrixField %}
      {% if block.type == 'text' %}
          {{ block.text }}
      {% elseif block.type == 'list' %}
          <ul class="{{ block.myDropdownField }}">
              {% for row in block.myTableField %}
                  <li>{{ row.myColumnHandle }}</li>
              {% endfor %}
          </ul>
      {% endif %}
  {% endfor %}
  
  ```
  
  If you really want to keep all this within Redactor and go the plugin route, you can use our [Redactor Clips](https://github.com/pixelandtonic/RedactorClips) plugin as a starting point.
  
  
  ---
  
  