thanks for the credentials.
I checked your site and, for some reason, the WebService isn't returning the images in the HTML of the lesson page. Also, I saw that your images are in base64. Why is that? How did you add the images?
IMO adding the images using the Atto editor (the image button) could solve the problem, but I'm not 100% sure since I don't know why are they being filtered. In any case, using base64 images isn't recommended because:
- The images are larger.
- Images aren't cached in the browser.
- The WebServices don't know that there is an image in there.
I give you some technical data so you can debug the problem if you have a development team.
The WebService mod_lesson_get_page_data (function get_page_data in mod/lesson/classes/external.php) returns two fields with the page HTML: pagecontents, that does have the image, and page->contents, that doesn't include it.
pagecontents has the whole page HTML, including header and buttons, it's the same HTML that is rendered in Moodle web.
page->contents only has the content of the page itself, it doesn't include other data like the buttons or the header.
The app uses page->contents because we don't want to include the buttons created by Moodle, we create them ourselves, and that's why the image isn't shown: for some reason the WebService isn't returning the image in this field.
In pagecontents we receive:
<p style="text-align: center;"><img src="data:image/png;base64..." alt="" style="display: block; margin-left: auto; margin-right: auto;" /></p>
However, in page->contents we receive:
<p style="text-align: center;"></p>
Like I said, I don't know why the image is being filtered. I'm sorry for not being able to help you more.