How to setup custom colours within wordpress tnymce. Helps save time and you’ll always have the colours within the tinymce colour pallet.
Source:
http://digitalmyway.co.uk/2013/05/custom-colour-palettes-in-tinymce-with-wordpress/
Updated for WordPress 3.9
Add bolded text below after the [endif;] at very bottom of functions file. See example screenshot below.
function dmw_custom_palette( $init ) {
$custom_colours = ' "111111", "Dark Grey", "555555", "Mid Grey", "CCCCCC", "Light Grey", "3366FF", "Blue" ';
$init['textcolor_map'] = '['.$custom_colours.']';
return $init;
}
add_filter('tiny_mce_before_init', 'dmw_custom_palette');
add_filter('tiny_mce_before_init', 'dmw_custom_palette');

And here’s what we get:





