My text editor in Theme Options doesn’t have font color option. How can I add that? I’ve searched around the web, but no luck. On regular pages and posts I can see the font color option.
I’m using Options framework. Here’s the code snippet:
$options[] = array(
'name' => __('Main text block', 'options_check'),
'id' => 'main_text_editor',
'type' => 'editor',
'settings' => $wp_editor_settings );
2 Answers
In theme options, I had to define wp_editor_settings. So, just in options.php, I used:
//WP_editor settigs
$wp_editor_settings = array(
'wpautop' => true, // Default
'textarea_rows' => 15,
'tinymce' => array(
'plugins' => 'fullscreen,wordpress,wplink, textcolor'
));
Basically, I’m adding tinymce plugin.