Which rendering mode should you use?
Sandboxed iframe: for third-party widgets or code that needs scripts. It runs in an isolated document and has three settings of its own:
- Fit the height to the embed: when on, the frame grows and shrinks with its content, on phones too, so the embed does not scroll inside its own box. It is on for new blocks and off for blocks created earlier. While it is on, the number you enter is the height before the embed loads. Turn it off for an embed meant to fill a fixed box or the whole screen: one sized to the screen keeps growing. When it is off, you can set the frame height from 80 to 2000 px.
- Name for screen readers: what the embed is, for example “Appointment calendar”. It is read out to visitors who use a screen reader, and you can write it separately for each language.
- Loads an external service: turn it on for another company's widget (booking, chat, newsletter, player). If the site asks visitors about external content, the block waits for their consent like a map or a video.
Inline sanitized HTML: for simple static HTML. Demona removes scripts, iframes and unsafe event handlers before rendering it. This mode is as tall as its content.
In both modes, you can also adjust alignment and content width.