Pre-render and cache embed.ly card instead

Created on 18 June 2015, almost 10 years ago
Updated 26 November 2024, 4 months ago

Would it be possible to have an option that renders an embed.ly card similar to what is output in the preview of this page:

http://embed.ly/code?url=https%3A%2F%2Fvimeo.com%2F126755949

Which takes:

<a class="embedly-card" href="https://vimeo.com/126755949">BOS->LAX</a>
<script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script>

and converts it to a fully rendered iframe?

The benefits are

  • Really nice theme/design
  • Responsive sizing
  • Contextual information around media
  • Share feature in upper right

The benefit to this filter as it was designed was that the returned HTML can be cached, and the regex works very well. Most importantly, WYSIWYG_filter never allows script or iframe elements from being saved, so the embed code from the example above (with the script tag) gets stripped out.

So maybe this is better off in a custom filter module, but wanted to see what others thought.

✨ Feature request
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States amaisano Boston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024