bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Paragraph tag after TinyMCE

(4 posts)
  • Started 2 months ago by harryworld
  • Latest reply from harryworld
  • This topic is resolved
  1. I have successfully integrated TinyMCE to my editor in bbpress, which I found that is so easy.

    However, when doing the submit, TinyMCE submits the HTML code on behind to bbpress. I found that each line TinyMCE created a <p>...</p> tags, but bbpress is not allowing this. Finally, <p></p> comes to the screen when viewing the post.

    Is there any workaround for this?

    Posted 2 months ago #
  2. I found that it is as simple as to add the <p> tag to the allowed tags

    Posted 2 months ago #
  3. how you did this?

    Posted 2 months ago #
  4. I made use of a plugin to add tags

    function allow_more_tags( $tags ) {
    $tags['p'] = array('style' => array());
    $tags['span'] = array('style' => array());
    return $tags;
    }

    add_filter( 'bb_allowed_tags', 'allow_more_tags' );

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.