BuddyBoss Home – Web Support Forums General BuddyPress (general issues) TinyMCE editor buddypress and bbpress.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #48903
    @niel96

    Is there a way i can enable TinyMCE editor for buddypress and bbpress? The standard editor is not good enough.

    Answers

    #48905
    @niel96

    function bbp_enable_visual_editor( $args = array() ) {
    $args[‘tinymce'] = true;
    $args[‘teeny'] = false;
    return $args;
    }
    add_filter( ‘bbp_after_get_the_content_parse_args', ‘bbp_enable_visual_editor' );

    They say i have to put this into a plugin. Is this right?

    btw:

    Please note that if you disable the teeny mode in the visual editor and allow other media buttons through the TinyMCE Advanced plugin, you will probably need to add on to this function and put it into your child theme functions.php file to allow your users to use some of the buttons like the table button.

    In some cases, text pasted into the visual editor will bring along unwanted styles and HTML markup. You can use another function to force pasted text to be cleaned up. This will remove things like stray HTML but leave in basics like bold and italics.

    function bbp_tinymce_paste_plain_text( $plugins = array() ) {
    $plugins[] = ‘paste';
    return $plugins;
    }
    add_filter( ‘bbp_get_tiny_mce_plugins', ‘bbp_tinymce_paste_plain_text' );

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘TinyMCE editor buddypress and bbpress.’ is closed to new replies.