Youtube embed plugin

This plugin handles drop of youtube links in an article.

Plugin configuration

{
    "id": "io.infomaker.youtubeembed",
    "name": "im-youtubeembed",
    "url": "https://plugins.writer.infomaker.io/v1/infomaker/im-youtubeembed/{PLUGIN_VERSION}/index.js",
    "style": "https://plugins.writer.infomaker.io/v1/infomaker/im-youtubeembed/{PLUGIN_VERSION}/style.css",
    "enabled": true,
    "mandatory": false,
    "data": {
        "disableUseOfAnnotationTools": true,
        "alternateLinkTitle": "{author_name} posted a video - {text}",
        "region":"eu-west-1",
        "environment":"stage"
    }
}

Basic options

Property Type Required Description
alternateLinkTitle String false Alternative title. {author_name} is available as a string variable that will be replaced with the actual author name. (used as a fallback if front cannot render the youtube object type).
disableUseOfAnnotationTools Boolean false Enable/disable the use of text annotations like "bold"
region String "eu-west-1" Region name where the backend API is deployed
environment String "stage" Backend API environment

Output

In the article, the youtube link will be represented as the example below;

<object id="youtubeembed-9fd64624349e14c20438302b6e362e52" type="x-im/youtube" url="https://www.youtube.com/watch?v=YY32ZGjyb84" uri="https://www.youtube.com/watch?v=YY32ZGjyb84">
    <data>
        <start>0</start>
    </data>
    <links>
        <link rel="alternate" type="text/html" url="https://www.youtube.com/watch?v=YY32ZGjyb84" title="Jantelagen postade en video - Säl planerar julbord"/>
        <link rel="alternate" type="image/jpg" url="https://i.ytimg.com/vi/YY32ZGjyb84/hqdefault.jpg">
            <data>
                <width>480</width>
                <height>360</height>
            </data>
        </link>
    </links>
</object>