Skip to Content
Menu
This question has been flagged
1 Reply
2953 Views

Hi,

I'am editing a course on e-Learning and trying to add a presentation for a course content.

I tried uploading .ppt, .odp, .pdf as presentation type content. I couldn't show the doc. I decided to show the presentation as a webpage. I uploaded to Google Slides. I published the doc. I get my embed code.



It shows the slide on editing screen but when i clicked DONE. It dissappears. 


Avatar
Discard
Best Answer

Embed code usually uses an iframe tag, but the 'frame', 'iframe', and similar tags are sanitised for slides in e-Learning module.

Try converting the presentation to a PDF file, images, or to a video.

Or

Use the embed_code field that is already in the slide.slide model eLearning module.

Avatar
Discard

How can I do this'Use the embed_code field that is already in the slide.slide model eLearning module.'?

You need to override the "def _compute_embed_code(self)..." method or make the embed_code field normally not computable.