Forums

[resolved] [Plugin: Front-end Editor] Turn off font-family / font-color in rich editor? (6 posts)

  1. mindshare
    Member
    Posted 2 years ago #

    Is there anyway to remove the font-family and font-color buttons from rich editor? I really don't want these enabled! Any suggestions?

    http://wordpress.org/extend/plugins/front-end-editor/

  2. scribu
    Member
    Posted 2 years ago #

    In the latest development version (1.7b), you can do this:

    function configure_fee_nicedit($config) {
    	$config['buttonList'] = array(
    		'bold', 'italic', 'strikethrough',
    		'left','center', 'right',
    		...
    	);
    	return $config;
    }
    add_filter('front_end_editor_nicedit', 'configure_fee_nicedit');

    See the available Configuration Options.

  3. mindshare
    Member
    Posted 2 years ago #

    Thanks - but this doesn't seem to be working for me. I've put the function into functions.php but the editor is still showing your default buttons. Here's exactly what I have but it is not working:

    function configure_fee_nicedit($config) {
    	$config['buttonList'] = array('bold','italic','left','center','right');
    	return $config;
    }
    add_filter('front_end_editor_nicedit', 'configure_fee_nicedit');
  4. mindshare
    Member
    Posted 2 years ago #

    BTW I am using Version: 1.7b

  5. scribu
    Member
    Posted 2 years ago #

    Sorry, I meant to say 1.7b2. It should be available in 15 minutes, still as "Development Version".

  6. mindshare
    Member
    Posted 2 years ago #

    Got it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic