Embed

Include 3rd party sites and widgets inside Flux sites.

Embed Module in Editor

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.

Properties

Target Origin

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:

https://discordapp.com

Allow Script Tags

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.

Embed Content

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:

<iframe class="discord" src="https://discordapp.com/widget?id=201798443583143936&theme=dark"/>

Nodes

Broadcasters

Embed:onReceivedPostMessage

Fires when a Post Message is received from the embedded site.

Field
Type
Description

Message

string

The body of the Post Message received

Listeners

Embed:SendPostMessage

When triggered, sends a Post Message to the embedded site.

Field
Type
Description

Message

string

The body of the Post Message to send

Last updated

Was this helpful?