I want to use bootstrap table in my site without any mess up class, style. I just want to add bootstrap class. I can add these class in table properties general settings as follows:
function bootstrap_classes_tinymce($settings)
{
$styles = array(
array(
'title' => 'None',
'value' => ''
),
array(
'title' => 'Table',
'value' => 'table',
),
array(
'title' => 'Striped',
'value' => 'table table-striped table-hover',
),
array(
'title' => 'Bordered',
'value' => 'table table-bordered table-hover',
),
);
$settings['table_class_list'] = json_encode($styles);
return $settings;
}
add_filter('tiny_mce_before_init', 'bootstrap_classes_tinymce');
Now I want to remove additional style like this default value:
Any idea?