• Resolved rordik87

    (@rordik87)


    When I create New subject or New reply from the dashboard section, I get a 2 row visual editor. When I create New subject or new reply from the forum itself, I only have a 1 row visual editor -with no kitchen sink icon.

    WP 6.3.2. bbPress 2.6.9. bbStyle pack 5.6.8 No other extension. Theme is NewsCard, but the same thing happens with twenty twelve.

    Thanks. I am a beginner and I have checked everywhere (I think).

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Robin W

    (@robin-w)

    The front end is intended to only have one row.

    you can display the ‘kitchen sink’ option by using

    add_filter( ‘bbp_after_get_the_content_parse_args’, ‘rew_enable_visual_editor’, 50, 1 );

    function rew_enable_visual_editor ($args) {
    $args [‘teeny’] = false ;
    return $args ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    https://en-gb.www.ads-software.com/plugins/code-snippets/

    Thread Starter rordik87

    (@rordik87)

    Hi Robin, thank you so much.

    Is there some error in the code ? I tried both methods (not sure if i did it correctly though…) and I got a critical error using both ways.
    -Pierre

    WP does things with formatting text here. CODE blocks preserve the right formatting. This is what you should be putting in your child theme functions.php file, or the Code Snippets plugin (run on frontend only):

    add_filter( 'bbp_after_get_the_content_parse_args', 'rew_enable_visual_editor', 50, 1 );
    
    function rew_enable_visual_editor( $args ) {
    		$args['teeny'] = false;
    		return $args;
    }

    And if you allow guest posting and want to enable the advanced editor for guests as well, also add this:

    add_filter( 'user_can_richedit', '__return_true' );

    For more control over what buttons are displayed in the advanced rich editor, check out the Advanced Editor Tools plugin.

    Marking this as resolved, but feel free to comment if you’re still having issues with this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Visual editor : only one row’ is closed to new replies.