Get Started
Plugins
Macros
More information

YouTube

Description

Connects youtube iframe_api for embedding YouTube videos into documents as OLE-objects and managing them by adjusting their size, rotating and changing position.

Plugin type: visual, OLE-object, non-system.

Supported editors: documents, spreadsheets, presentations.

Youtube

Installation

Available by default in the cloud, on-premises and desktop versions of ONLYOFFICE editors.

You can remove it following the desktop, on-premises, or cloud installation instructions.

The plugin guid: {38E022EA-AD92-45FC-B22B-49DF39746DB4}.

Usage
  1. Find the plugin on the Plugins tab.
  2. Insert the YouTube video URL you want to embed into the form and click the OK button.
  3. The video preview in the form of an image will appear in your document. Click it to play the video.
Plugin structure

Repository on GitHub: https://github.com/ONLYOFFICE/plugin-youtube.

  1. config.json, index.html and code.js
  2. Icons
  3. The translations folder contains translations into Russian, German, Spanish and French.
  4. Third-party service:
Config
{
    "name": "YouTube",
    "guid": "asc.{38E022EA-AD92-45FC-B22B-49DF39746DB4}",

    "variations": [
        {
            "description": "YouTube",
            "url": "index.html",

            "icons": [ "icon.png", "icon@2x.png", "icon2.png", "icon2@2x.png" ],
            "isViewer": true,
            "isDisplayedInViewer": false,
            "EditorsSupport": [ "word", "cell", "slide" ],

            "isVisual": true,
            "isModal": true,
            "isInsideMode": false,

            "initDataType": "ole",
            "initData": "",

            "isUpdateOleOnResize": false,

            "buttons": [
                {
                    "text": "Ok",
                    "primary": true
                },
                {
                    "text": "Cancel",
                    "primary": false,
                    "isViewer": false,
                    "textLocale": {
                        "ru": "Отмена",
                        "fr": "Annuler",
                        "es": "Cancelar",
                        "de": "Abbrechen"
                    }
                }
            ],

            "size": [ 350, 90 ]
        }
    ]
}
Methods and events

The main plugin code is located here.

Supports

If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.