daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function bootstrap_classes_tinymce($settings)
  2. {
  3.     $styles = array(
  4.         array(
  5.             'title' => 'None',
  6.             'value' => ''
  7.         ),
  8.         array(
  9.             'title' => 'Table',
  10.             'value' => 'table',
  11.         ),
  12.         array(
  13.             'title' => 'Striped',
  14.             'value' => 'table table-striped table-hover',
  15.         ),
  16.         array(
  17.             'title' => 'Bordered',
  18.             'value' => 'table table-bordered table-hover',
  19.         ),
  20.     );
  21.  
  22.     $settings['table_class_list'] = json_encode($styles);
  23.  
  24.     return $settings;
  25. }
  26.  
  27. add_filter('tiny_mce_before_init', 'bootstrap_classes_tinymce');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top