PowerPoint 加载项添加 html iFrame 到幻灯片

问题描述 投票:0回答:0

我想创建一个加载项,我可以在其中通过文本框设置 URL,然后单击应用按钮,将 iframe 添加到演示文稿末尾的新幻灯片中。我可以添加一个带有内容应用程序的 iFrame,但不幸的是它无法保存 powerpoint。

我知道如何添加幻灯片以及上面的简单文本框或形状,但如何添加 iFrame?

这是我想在幻灯片中添加 iframe 的代码片段。我试过形状但没有成功,我不知道如何继续......

异步函数 addIFrameToSlide(slideIndex) {
const iframe = getIFrame();

    await PowerPoint.run(async function(context) {
        const shapes = context.presentation.slides.getItemAt(slideIndex).shapes;
        
        
        await context.sync();
    });       


}
powerpoint office-js office-addins powerpoint-addins powerpoint-web-addins
© www.soinside.com 2019 - 2024. All rights reserved.