Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mots 44 posts 75 karma points
    Feb 01, 2011 @ 13:37
    mots
    0

    Editing table row properties

    Hi,


    I have a richtext editor in one of my document types, and wish to insert a table in here. However I would also like to set a specific css class on some of the table rows.

    I see this can be possible by right-clicking on a row in the table, and selecting 'Row > Table row properties'. And then in the properties dialog there is a dropdown list field called 'Class' which lets you select a class.

    My question is, how do I populate this 'Class' dropdown list with my own custom css classes?

    Any help much appreciated.

    Thanks.

  • mots 44 posts 75 karma points
    Feb 04, 2011 @ 12:33
    mots
    0

    I figured this out myself. If you go to the file called 'row.htm' in the folder '/umbraco_client/tinymce3/plugins/table/', and find the following piece of code:

    <tr id="styleSelectRow">
     <td><label for="class">{#class_name}</label></td>
     <td class="col2">
      <select id="class" name="class" class="mceEditableSelect">
       <option value="" selected="selected">{#not_set}</option>
       <option value="myCustomValue">MY CUSTOM CLASS</option>
      </select>
     </td>
    </tr>

    You can add in your custom options in the drop down list control. The same can also be done for adding custom options within other drop down lists in the cell.htm, and table.htm files that exist within that same folder.

     

Please Sign in or register to post replies

Write your reply to:

Draft