WordPress.org

Ready to get started?Download WordPress

Forums

GD bbPress Tools
Clicking to the "quote" link adds html linebreaks (br) tags to the quoted post (5 posts)

  1. quan_flo
    Member
    Posted 10 months ago #

    Hi,

    I use the latest wordpress, bbpress and gd bbpress tools. the bbpress editor is the wordpress editor.

    Whenever I click at the quote link a <br> Tag is added at every line's end.

    What can I do to solve this?

    http://wordpress.org/plugins/gd-bbpress-tools/

  2. quan_flo
    Member
    Posted 10 months ago #

    I added a

    qout = qout.replace(/<br>/g, "");

    at line 33 in gd-bbpress-tools.js that solves the problem for me.

    But this is just a solution for now.. :)

  3. quan_flo
    Member
    Posted 10 months ago #

    same for the latest version.
    Is it only me who has this problem?

  4. Milan Petrovic
    Member
    Plugin Author

    Posted 10 months ago #

    Quote is taking whatever bbPress rendered for the text into quote, and if that contains line breaks, it will be in the quotes.

  5. quan_flo
    Member
    Posted 10 months ago #

    the problem is a little bit di#erent.

    1. a user posts normal text with normal linebreaks (enter key)
    2. the output of bbpress seems to include linebreak br tags for each enter-key-linebreak.
    3. quoting a text from another user will get the br tags from bbpress output into the quoted text.
    4. bbpress does not allow br tags in postings, so the br tags will not be linebreaks, the html-code is displayed i.side the quoted text..
    so br tags in quoted text should be filtered out imho.

    maybe my description was not good enough?

    thanks
    florian

    ps:its almost the same with the div wrapping quotes title and bidy. quoting a quote will show div code inside the posting. div is also not allowed in posts by bbpress

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.