mateomrqz (@mateomrqz)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • In reply to: bbPress & tinyMCE

    mateomrqz
    Participant

    @mateomrqz

    Hi!

    Thank you for the reply. I just want to edit the wp_editor that displays when I click
    “Topics” > “New Topic”.

    I want to remove a couple of buttons of that editor, but I don’t want the change to be global, as I have a lot of other editors with specific parameters. This function works:

    function my_format_TinyMCE( $in ) {
        //styles for the editor to provide better visual representation.
        $in['content_css'] = get_template_directory_uri() . "/build/styles/tiny-mce-editor.css";
        $in['block_formats'] = "Paragraph=p; Heading 1=h1; Heading 2=h2";
        $in['toolbar1'] = 'formatselect,bold,italic,underline,superscript,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker';
        $in['toolbar2'] = '';
        $in['toolbar3'] = '';
        $in['toolbar4'] = '';
        return $in;
    }
    add_filter( 'tiny_mce_before_init', 'my_format_TinyMCE' );

    BUT! It will affect and overwrite parameters to my other editors.
    The Hooks/Filters in the documentation of bbpress work, but they seem to only affect when creating a topic/forum not from the wp-admin but from the actual bbpress page.

    Any ideas? Thank you!

Viewing 1 replies (of 1 total)