---
metadata:
  - name: generator
    content: Diplodoc Platform v5.47.3
alternate:
  - https://yandex.com.tr/support/tracker/en/wysiwyg/embed-content.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/tracker/en/llms.txt

[//]: # (Исходники yfmeditor/ хранятся в документации Yandex Wiki)

# Embedded object (iframe)

<!-- source: en/yfmeditor/embed-content.md -->
<!--
Учитывать при внесении изменений: текст из файла также собирается в документации Yandex Tracker.
-->

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".

{% cut "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 **Share** → **Embed** under the video and copy the `src` parameter value.

{% endcut %}

{% note info "" %}

Only objects from the [allowed domains](#video-domain) can be embedded on Wiki pages.


{% endnote %}

## Embedding an object {#irfame}

{% list tabs group=editor %}

- Visual editor

   1. On the toolbar, click <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linejoin="round" stroke-opacity=".85" stroke-width="1.5" d="M5.263 3.738 1 8l4.263 4.262m5.475-8.524L15 8l-4.262 4.262"/></svg></svg> **iframe**.

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

   1. Set the block size in pixels.

   1. Click **Save**.

   1. To edit the iframe block, switch to the page editing mode, hover over the block, and click <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M14 6.125a1.874 1.874 0 1 1 .001 3.749A1.874 1.874 0 0 1 14 6.125zm-5.906 0a1.874 1.874 0 1 1 0 3.749 1.874 1.874 0 0 1 0-3.749zM2 6.125a1.874 1.874 0 1 1 .001 3.749A1.874 1.874 0 0 1 2 6.125z"/></svg></svg> → **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.

- Markdown markup

   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.

{% endlist %}


## Allowed domains {#video-domain}


The **iFrame** element can contain only addresses that belong to the supported domains. The Wiki administrator can extend the list: you can learn how to do this below.

{% cut "List of supported domains" %}


- `yandex.ru`

   `yandex.ru` subdomains:

   - `mc.yandex.ru`

   - `disk.yandex.ru`

   - `cloud.yandex.ru`

   - `docviewer.yandex.ru`

   - `docviewer.dst.yandex.ru`

   - `forms.yandex.ru`

   - `connect.yandex.ru`

- `yandex.ua`

- `yandex.kz`

- `yandex.by`

- `yandex.net` subdomains:

   - `storage.yandex.net`

   - `mds.yandex.net`

   - `mdst.yandex.net`

- `datalens.yandex`

- `yastat.net`

- `youtube.com`

- `youtube-nocookie.com`

- `rutube.ru`

- `vimeo.com`

- `player.vimeo.com`

- `player.vimple.ru`

- `vkontakte.ru`

- `vk.com`

- `coub.com`


{% endcut %}
<!-- endsource: en/yfmeditor/embed-content.md -->
