Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members pasting text and HTML codes showing

  • @bws-online

    Participant

    When members on my site are pasting text into a post, it’s showing up as a bunch of code with HTML tags. If I paste the same text as an admin, it shows up fine. I’d like it to either work for them like it works for me, or to at least strip out the tags and show plain text. Help? Thanks.

    For example, they paste text that shows up like this:

    <div class=”section-block” style=”margin: 0px 0px 30px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background: #fbfbfb; color: #222222; font-family: ‘Open Sans’, sans-serif;”>
    <h2 style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; font-size: 20px; vertical-align: middle; background: transparent; color: #000000;”>Getting Started</h2>
    <p style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background: transparent;”>New to BuddyPress? Not sure where to begin? <i style=”margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background: transparent;”>Getting Started</i> is here to help! Everything you need to know about setting up your new BuddyPress powered site is here from installing and activating to setting up Extended Profile fields.</p>
    
    </div>
    <div class=”section-block” style=”margin: 0px 0px 30px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background: #fbfbfb; color: #222222; font-family: ‘Open Sans’, sans-serif;”>
    <h2 style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; font-size: 20px; vertical-align: middle; background: transparent; color: #000000;”>BuddyPress Features</h2>
    </div>

    And I paste it and it shows up as normal text (with proper styling/formatting):

    Getting Started
    New to BuddyPress? Not sure where to begin? Getting Started is here to help! Everything you need to know about setting up your new BuddyPress powered site is here from installing and activating to setting up Extended Profile fields.

    BuddyPress Features

Viewing 4 replies - 1 through 4 (of 4 total)
  • @bws-online

    Participant

    I’ve tried the troubleshooting recommendations (all other plugins off, default theme), as well things like enabling the visual editor and bbp_tinymce_paste_plain_text — still no good.

    Anyone? Any direction on what’s causing this/how to fix it? Please and thanks.

    @bws-online

    Participant

    I figured it out. But this forum won’t let me paste my message.

    @bws-online

    Participant

    I tried adding User Role Editor and granting unfiltered html rights — no help.

    I tried adding a filter to allow HTML tags (like mentioned in a few different posts, like here: https://bbpress.org/forums/topic/allow-html-from-users/) — didn’t work (but that could’ve been my customizations).

    AH!! Finally! Got it to work with the solution as referenced in the first post here https://bbpress.org/forums/topic/allow-html-tags-in-post-for-all-users/).

    @robin-w

    Moderator

    great – glad you are fixed, and thanks for posting the solution

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar