Lumieducation / Lumi

Lumi is a Desktop App that offers a collection of tools to create, edit and share digital content with your class.
http://Lumi.education
GNU Affero General Public License v3.0
119 stars 23 forks source link

Completed status to parent window #2178

Open obuylov opened 2 years ago

obuylov commented 2 years ago

Hello, I use the integration between H5P and another popular product - Adapt Learning: https://www.adaptlearning.org. Adapt has components to insert H5P iframe: https://github.com/cgkineo/adapt-iframe Is it possible to add an option to Lumi so that when it ends, a JS is sent to the parent window? window.parent.postMessage('complete', '*');

sr258 commented 2 years ago

I think this would require custom JS injection in exported HTML files. It's possible. The next version will include a custom CSS injector, so it would be easy to add one for JS. If you have the time, I would welcome a PR.