<?php
/**
 *
 * @author BtoB Design
 *
 */

function my_mce4_options( $init ) {
$default_colours = '
    "000000", "Noir",
    "FFFFFF", "Blanc",
    "dcdcdc", "Gris 1",
    "beb9b2", "Gris 2",
    "6b6a69", "Gris 3"
    ';
$custom_colours = '
    "6a2875", "Violet 1",
    "5b2264", "Violet 2",
    "efbf59", "Orange 1",
    "f9a11b", "Orange 2",
    "e99500", "Orange 3"
    ';
$init['textcolor_map'] = '['.$default_colours.','.$custom_colours.']';
$init['textcolor_rows'] = 6; // expand colour grid to 6 rows
$init['textcolor_cols'] = 12;
return $init;
}
add_filter('tiny_mce_before_init', 'my_mce4_options');
