The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Hi,
This is NOT about publishing/unpublishing, nor about simply hiding content. That is all easy.
I am wanting to hide and show HTML content on a page so that I reveal the answer when a student clicks a button or whatever.
Problem is the editor is configured to 'cleanup' pretty much everything except the most basic HTML. The result is if I add a <input> or <button> or suchlike, the HTML is immediately destroyed by the editor.
How can we do this? It is a very 'normal' feature in an online lesson
Many thanks
Pete...
One thing that does work is the details disclosure element.
For example, you could do something like this from the HTML editor screen.
<p>Use the order of operations to evaluate: 9 + 2 ( 3 - 6 )</p>
<details>
<summary>Click to show answer</summary>
<p>9 + 2 ( -3 ) = 9 + ( -6 ) = 3</p>
</details>
The Canvas HTML Editor Allowlist, which shows which items are allowed, might spark other ideas.
Thanks James. I will try this
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in