Skip to content
You're reading the dev preview docs. Some features here aren't in the released app yet. Released docs

Learning Studio / features

Embed self-contained HTML in a sandboxed frame

Use an embed block with custom HTML, CSS, and JS instead of a URL, with an optional fixed frame height.

Use an embed block to show external content on a page — for example a YouTube video, a map, or a form. You can either paste an https:// URL or supply your own self-contained HTML, CSS, and JavaScript.

  1. Select a page in the outline, then choose Insert block and add an Embed block.
  2. In the inspector, choose how you want the embed to work:
    • Embed address — paste an https:// link to the content you want to show, such as a YouTube or Vimeo embed link.
    • Embed code — paste self-contained HTML, CSS, or JS. The code runs inside an isolated frame with no access to the rest of the app.
  3. Give the embed a Frame title so screen readers can describe it to learners.
  4. For a URL embed, choose a Frame shape (widescreen, classic, or square). For custom HTML, set a fixed Height (px) between 40 and 4000 if you want to override the default shape.

Open Preview to confirm the embed displays the way learners will see it.

  • URL embeds must start with https://. Addresses that don’t won’t save.
  • Custom HTML embeds are capped at 120,000 characters.
  • An embed block uses either an address or custom code, not both.
  • When you set a fixed height, it replaces the aspect-ratio shape.
  • Embeds never block learner progress. If you mark an embed as Required for learners, Review checks that it has an address or code.
In learner preview, an embed block renders a live sandboxed iframe; the editor shows only a placeholder card. Full-resolution PNG
Select an embed block to configure its URL or HTML code, height, aspect ratio, and title in the inspector. Full-resolution PNG
On a phone, open the inspector drawer to access the embed address, frame title, and frame shape. Full-resolution PNG
The Embed code editor contains self-contained HTML and CSS, rendered in an isolated frame. Full-resolution PNG
Set an optional **Frame height** (40–4000 px) to replace the aspect-ratio shape with a fixed height for your HTML content. Full-resolution PNG
Open **Preview** to see how the custom HTML renders in the sandboxed frame that learners will see. Full-resolution PNG

If you need more control over a custom HTML embed, choose Enable managed component in the block’s properties. This upgrades the block with an Apply source button so you can edit and save code separately, an option to fit the frame height to your content automatically, and an Interact mode on the canvas for testing scripts. Use a managed HTML component explains the controls and limits.

The managed component supports inline CSS and classic scripts only. External stylesheets, script modules, forms, and nested frames are not supported. Ordinary embeds remain available without conversion.

Managed component properties provide explicit source Apply, automatic height, and course color-token controls. Full-resolution PNG

Last updated · Kite v0.25.6

Same update, your timezone

Pacific · Nov 6
Central · Nov 6
Eastern · Nov 6

Made with love by the team at EdStratum Labs AI