Skip to main content

Ligado a el archivo functions.php (require_once) se debe agregar el siguiente código:

function my_mce4_options($init) {
    $custom_colors = '
    "ffffff", "Blanco",
    "000000", "Negro",
    "008341", "Verde",
    "E8AC35", "Amarillo",
    "931919", "Rojo",
    "366DAF", "Azul"
    // build color grid default+custom colors
    $init['textcolor_map'] = '['.$custom_colors.']';
    // change the number of rows in the grid if the number of colors changes
    // 8 swatches per row
    $init['textcolor_rows'] = 1;

add_filter('tiny_mce_before_init', 'my_mce4_options');

Author jesus.murillo

More posts by jesus.murillo

Leave a Reply