Embed
Include 3rd party sites and widgets inside Flux sites.
Last updated
Was this helpful?
Include 3rd party sites and widgets inside Flux sites.
Last updated
Was this helpful?
Allows for the embedding of iframes into a Flux site. Useful for embedding other websites or widgets such as Youtube videos, Discord channels, or other 3rd party sites.
The target origin is a security feature to ensure Flux only sends messages to <iframe>
content with known origins and only broadcasts onReceivedPostMessage
for messages received from known origins.
Example Discord Target Origin:
Checkbox to allow Embed Content to contain <script>
tags that will be processed and injected into the page. This is disabled by default but may be enabled by content or template authors. Allowing script tags is explicitly opt-in because external scripts can be dangerous for security and can impact page load times in ways Flux can not control. Only ever use scripts from a trusted source.
Script tags are only allowed in the Embed Content property field if the "Allow Script Tags" property is checked.
The content to be embedded into the module. Typically an iframe HTML tag.
Example Discord Embed:
Fires when a Post Message is received from the embedded site.
Message
string
The body of the Post Message received
When triggered, sends a Post Message to the embedded site.
Message
string
The body of the Post Message to send