H5P embed export

Mitt94's picture

Hi everyone . My question is can we modify the embed button and create something like when we click on that button it will automatically grab the embed code and create a new html and paste that into an html file automatically and gets uploaded to desired destination automatically is something like this possibel with php and javascipt.

otacke's picture

Hi Mitt!

You could add a script which puts a click-event-listener onto the button that triggers whatever you want on the server by adding some AJAX call and a receiving endpoint on the server.