Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX OpenLab Support

Public Group active 1 year, 1 month ago

Have a question about Commons In A Box OpenLab, our new platform for open learning? Join the group and post your question here. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

HTML code rather than formatting showing in random Discussion posts

  • This topic has 3 replies, 2 voices, and was last updated 4 years, 3 months ago by Troy Welch.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 23, 2021 at 12:52 pm #8832
    Troy Welch
    Participant

    Hi all, we’re experiencing a random issue on our OpenLab instance. (I know, there is no such thing as a random issue, only one for which you have not yet discerned the pattern.)

    Participants, on occasion, in the visual tab (it’s not a text/html tab by mistake thing), are finding that html code rather than the formatting the code should provide is displaying.

    This happens with pretty basic tags: span, b, h*, etc. This and its random nature does not point to an over-zealous html filter.

    I am assured by the group that this happens with both text entered directly and text which is copy and pasted. Examples are thin (I’ve been unable to make this happen myself) because they occur on assignment material and they clean them up so they can get their work in.

    The two examples I have been provided (which are the notification emails rather than the actual discussion posts, having been cleaned up) seemed to have their origins in Google Docs and were copy and pasted. (Don’t get me started on Google Docs inline css).

    Anyway, I thought I would check in and see if anyone else had experienced this and where I might look to arrive at a solvable pattern.

    By way of thanks I attach a cartoon, which I believe captures the soul of pattern recognition.

    Troy

    Attachments:
    You must be logged in to view attached files.
    February 23, 2021 at 1:13 pm #8834
    Troy Welch
    Participant

    And then just after posting this an example came through from this forum in this thread:

    https://commonsinabox.org/groups/openlab-help-support/forum/topic/how-to-add-an-allowed-file-type/#post-8826

    Possible it is related to the attributes in the html tags.

    February 23, 2021 at 2:59 pm #8836
    Ray
    Keymaster

    Hi Troy,

    This is a bbPress issue when people copy and paste from other pieces of content into the Visual Editor.

    You’ll have to open up the restrictions bbPress places on other HTML tags like , etc. The alternative is stripping those elements during pasting.

    See:
    – https://bbpress.org/forums/topic/strip-html-tabs-from-forum/
    – https://jonathannicol.com/blog/2015/02/19/clean-pasted-text-in-wordpress/

    Another method is telling your users to use the dedicated “Paste” button in the Visual Editor. I believe that also cleans up some HTML tags, but it’s been awhile since I’ve tested myself.

    February 23, 2021 at 3:23 pm #8838
    Troy Welch
    Participant

    Thanks Ray, that points me in the (well several) right direction(s).

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX OpenLab Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 22
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register