问题描述
我想将YouTube视频显示为在Google文档上弹出显示.因此,如果我在我的Google文档中保留一个YouTube链接,然后单击该链接,则YouTube视频应显示/播放为弹出窗口.
I want to show YouTube video as pop over on Google Doc.So, if I keep a YouTube link within my Google Doc and then click on the link then the YouTube video should show / play as pop up.
推荐答案
尽管您可以使用Apps脚本创建一个包含YouTube视频的自定义对话框,但是您无法从Google文档中的链接启动Apps脚本.您必须在文档中添加一个菜单项,该菜单项将在文档中查找所有YouTube链接,并使用户能够选择要播放的YouTube链接.
Although you could use Apps Script to create a custom dialog with the YouTube video in it, you can't initiate Apps Script from a link in a Google Doc. You'd have to add a menu item to the doc which would look for all the YouTube links in the doc and give the user the ability to select which one to play.
这篇关于在Google文档中显示YouTube视频的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!