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.
The content to be embedded into the module. Typically an iframe HTML tag.
Example Discord Embed:
Message
string
The body of the Post Message received
Message
string
The body of the Post Message to send
Fires when a is received from the embedded site.
When triggered, sends a to the embedded site.