CraigM1970 (@craigm1970)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • CraigM1970
    Participant

    @craigm1970

    Okay, I managed to work this out for myself eventually. It was quite simple once I realised I was dealing with the Teeny version. Doh!

    For anyone else who wants to add the Visual editor and also have it only paste plain text from Word etc. here’s how.

    /*  Enable visual editor on tinymce in bbPress  */
    
    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
    
    /* Enable TinyMCE paste plugin */
    
    function bbp_add_paste_plugin($args) {
      array_push($args,'paste');
      return $args;
    }
    add_filter( 'teeny_mce_plugins', 'bbp_add_paste_plugin');
    
    /* Enable paste_sticky as default */
    
    function bbp_myformatTinyMCE($in) {
    	$in['paste_text_sticky'] = true;
    	$in['paste_text_sticky_default'] = true;
       return $in;
    }
    add_filter('teeny_mce_before_init', 'bbp_myformatTinyMCE');
    

    CraigM1970
    Participant

    @craigm1970

    After doing a bit of digging it seems that the reply information is created by bbp_reply_create, which uses bbp_get_reply_url to create the link. However, I can’t see anything there that would cause the issue. Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)