Skip to main content
Version: next

Adding Embed Fields

Embed fields allows you to add a valid oEmbed URL, like YouTube, Vimeo, or Spotify, to generate embedded HTML content, or add your own custom embed content. This guide explains how the default implementation work and how to customize it.

In Front-Commerce we expose the embed fields in two ways;

In this section we will cover how to implement both of these methods, and how to implement your own custom embed fields.

note

You can read more about the oEmbed format and view a list of supported providers on the oEmbed website.

Standalone Embed Fields

You can learn how to configure an embed field in the prismic documentation.

For this example let's say we want to create an album cover from an embed field.

Wysiwyg Embed Fields

Custom HTML and Raw Embed Fields

To add Custom HTML or Raw Embed Fields you would need to make some customization to the PrismicWysiwyg component.