1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Recent Comments from GALLERY BB Code in posts getting parsed as post content

Discussion in 'Media Gallery Resolved Bugs' started by batpool52!, Aug 6, 2015.

  1. batpool52!

    batpool52! Well-Known Member

  2. Chris D

    Chris D XenForo Developer Staff Member

    We've actually made a change here in XF 1.5 to fix this in MG 1.1.

    This is something that could be generally useful for developers.

    We've added some code in discussion.js which does two things:

    1) If an element has a class of 'NoSelectToQuote' and the select to quote has begun and ended within that element, select to quote can't be triggered (this specifically solves the specific example in your test post).
    2) If the quoted HTML contains an element with the 'NoSelectToQuote' class, that is stripped completely from the output.

    Specifically in terms of the Gallery, we've added the 'NoSelectToQuote' class to the GALLERY bb code container.
    batpool52! likes this.

Share This Page