【问题标题】:How can i use the apostrophe-oembed to embed data using an iframe?如何使用撇号-oembed 使用 iframe 嵌入数据?
【发布时间】:2020-08-20 06:14:50
【问题描述】:

如何使用撇号-oembed 通过 iframe 嵌入来自另一个网站的数据?我已经浏览了文档,但没有什么帮助。

【问题讨论】:

    标签: javascript apostrophe-cms


    【解决方案1】:

    apostrophe-video-fields 可能是如何使用apostrophe-oembed 的最佳示例。那里有一些复杂性,但我需要先看看你在代码中的位置,然后再说出你可能需要更改的内容。

    请记住,这只适用于endpoints that Oembed supports。如果您尝试在 iframe 中显示一些随机网站,您应该查看apostrophe-html 并在其中添加一个 iframe。或者,更好的是,创建一个具有 url 字段的自定义小部件,确保它是安全的,然后将其放入小部件模板中的 iframe 中(或适当的自定义片段/页面架构字段)。

    【讨论】:

      猜你喜欢
      • 2011-10-30
      • 1970-01-01
      • 2013-04-25
      • 1970-01-01
      • 1970-01-01
      • 2011-07-26
      • 2015-05-15
      • 1970-01-01
      • 2018-07-13
      相关资源
      最近更新 更多