blasterspike (@blasterspike)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @blasterspike

    Participant

    Hi Robin,
    thank you for your reply.
    I have tried with

    function tinymce_remove_root_block_tag( $init ) {
        $init['forced_root_block'] = false; 
        return $init;
    }
    add_filter( 'tiny_mce_before_init', 'tinymce_remove_root_block_tag' );
    
    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['quicktags'] = false;
        return $args;
    }
    add_filter( 'bbp_before_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    or with

    function tinymce_remove_root_block_tag( $init ) {
        $init['forced_root_block'] = false; 
        return $init;
    }
    add_filter( 'tiny_mce_before_init', 'tinymce_remove_root_block_tag' );
    
    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['quicktags'] = false;
        $args['forced_root_block'] = false;
        return $args;
    }
    add_filter( 'bbp_before_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    but I’m still getting a new paragraph for each new line.

Viewing 1 replies (of 1 total)