Title: Adding Cell CSS Class Property
Last modified: October 19, 2020

---

# Adding Cell CSS Class Property

 *  [J.Kiyama](https://wordpress.org/support/users/jkiyama/)
 * (@jkiyama)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/adding-cell-css-class-property/)
 * I want to add “class” property to table cell properties (or add “nowrap” html
   attribute).
 * I tried to set “table_class_list” to tinymce option (following code).
 *     ```
       function custom_editor_settings( $initArray ){
           $table_cell_classes = array(
               array(
                   'title' => 'none',
                   'classes' => ''
               ),
               array(
                   'title' => 'nowrap',
                   'classes'  => 'nowrap'
               )
           );
           $initArray['table_cell_class_list'] = json_encode($table_cell_classes);
           return $initArray;
       }
       add_filter( 'tiny_mce_before_init', 'custom_editor_settings');
       ```
   
 * So, Class property is displayed in cell property window. but when I set some 
   class name with select box, property not saved.
 * Is it possible to add table cell class property with this plugin?
 * I will appreciate your help.
    -  This topic was modified 5 years, 7 months ago by [J.Kiyama](https://wordpress.org/support/users/jkiyama/).
    -  This topic was modified 5 years, 7 months ago by [J.Kiyama](https://wordpress.org/support/users/jkiyama/).
    -  This topic was modified 5 years, 7 months ago by [J.Kiyama](https://wordpress.org/support/users/jkiyama/).

The topic ‘Adding Cell CSS Class Property’ is closed to new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [J.Kiyama](https://wordpress.org/support/users/jkiyama/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/adding-cell-css-class-property/)
 * Status: not resolved