Source: HOW TO ADD CUSTOM COLOURS TO TINYMCE 4 IN WORDPRESS 3.9+
function my_mce4_options( $init ) { $default_colours = ' "000000", "Zwart" '; $custom_colours = ' "959c51", "Groen", "754c24", "Bruin", "e89638", "Oranje", "5796b5", "Blauw" '; $init['textcolor_map'] = '['.$default_colours.','.$custom_colours.']'; $init['textcolor_rows'] = 1; $init['textcolor_cols'] = 5; return $init; } add_filter('tiny_mce_before_init', 'my_mce4_options'); |