• Resolved maringorama

    (@maringorama)


    hello.

    i would like to know if there is a possibility to change the color palette for the WYSWIG editor via the functions.php.

    i do not want to edit the core files like here.

    and this could be a start, but i dont know how to change this for the palette.. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter maringorama

    (@maringorama)

    found alot of help at MOXIECODE systems.

    here is the function i added to the functions.php:

    // change buttons in WYSWIG post editor, edit color palette
    function change_mce_options( $init ) {
    $init['theme_advanced_blockformats'] = 'p,address,pre,code';
    $init['theme_advanced_disable'] = 'numlist,blockquote,justifyright,justifycenter,pasteword,pastetext';
    $init['theme_advanced_text_colors'] = 'FF00FF,FFFF00,000000';
    $init['theme_advanced_more_colors'] = false;
    return $init;
    }
    
    add_filter('tiny_mce_before_init', 'change_mce_options');

    Hello,

    Well, I am trying to implement the snippet you have posted, but without success. Which functions.php should I edit? I am using WP v2.9.

    I add it in wp-includes/functions.php, but I get an error message.

    Thanks!

    @chill3d – you need to put it into the functions.php file in your current theme’s directory.

    Hello!
    i want to add the table function – how can i do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘edit TinyMCE foreground color palette via functions.php’ is closed to new replies.