Embedded object (iframe)

To embed a video, music track, or any other interactive object hosted on a third-party resource, use the iframe block.

The iframe block requires a link for embedding media on external resources. These links are usually referred to as the "Embed code" or "HTML code".

Example

To embed a YouTube video, use a link that looks like this:

https://www.youtube.com/embed/oCRQj_zyPjk

To obtain a link, select ShareEmbed under the video and copy the src parameter value.

Note

You can only post a video from allowed domains.

Embedding an object

  1. On the toolbar, click iframe.

  2. In the Link field, paste the URL of an external object.

  3. Set the block size in pixels.

  4. Click Save.

  5. To edit the iframe block, switch to the page editing mode, hover over the block, and click Edit.

    Parameters of the iframe block:

    • URL to embed the external object.
    • Block size in pixels.
    • Display of scrollbars (enabled if set to yes; disabled if set to no; if set to auto, enabled automatically depending on the size of the object inside the block).
    • Permission settings for embedded content, such as access to location data or media playback. All permissions are granted by default.
    • Block border.

To add an iframe block with an embedded object, insert code into your text formatted as follows:

/iframe/(src="https://example.com" width="300" height="100" frameborder="0" scrolling="yes" allow="geo")

Parameters of the iframe block:

  • src: URL to embed the external object.
  • width: Block width in pixels.
  • height: Block height in pixels.
  • frameborder: Block border (no border if set to 0 and with a border if set to 1).
  • scrolling: Display of scrollbars (enabled if set to yes; disabled if set to no; if set to auto, enabled automatically depending on the size of the object inside the block).
  • allow: Permission settings for embedded content, such as access to location data or media playback. All permissions are granted by default.

Allowed domains

The iFrame element can contain addresses that belong to the domains listed below:

  • vimeo.com

  • yandex.ru

  • yandex.ua

  • yandex.kz

  • yandex.by

  • youtube.com

  • youtube-nocookie.com

  • rutube.ru

  • player.vimeo.com

  • player.vimple.ru

  • vkontakte.ru

  • vk.com

  • coub.com

Note

Some resources might prohibit inserting their pages using an iframe. For example, the yandex.ru homepage.

Previous
Next