I want to create an Add-In where I can set an URL via textbox and by clicking the apply button the iframe gets added to a new slide at the end of the presentation. I could add an iFrame with content app but unfortunatelly it is not working with saving the powerpoint.
I know how to add the slide and also simple text boxes or shapes on it but how can I add an iFrame?
Here's the code snippet where I would like to add an iframe to the slide. I've tried it with shapes without success and I have no idea how to continue...
async function addIFrameToSlide(slideIndex) {
const iframe = getIFrame();
await PowerPoint.run(async function(context) {
const shapes = context.presentation.slides.getItemAt(slideIndex).shapes;
await context.sync();
});
}