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.
The topic ‘Adding Cell CSS Class Property’ is closed to new replies.