Embedding image in a problem

Hello,

I’m fairly new to open-edx. I wanted to create problems with custom images embedded in it. What is a good day to accomplish that?

Hello @samit ,
In the common problem types, you can add an image via an HTML snippet. So, say you upload cat.jpg to your Files and Uploads, you’d add a line like this:
<img src="/static/cat.jpg" alt="a brown cat" style="width: 300px; height: auto;"/>

Note that in the upcoming Studio MFEs, this is built into the the problem-builder UI, so you’ll be able to upload images via a normal image button in your toolbar. But until that arrives for you, you can use the HTML snippet method.

1 Like

Thanks @john_curricume !