##
# A "Youtube" content element
#
'Neos.Demo:Content.YouTube':
  superTypes:
    'Neos.Neos:Content': true
    'Neos.Demo:Constraint.Content.Column': true
    'Neos.Demo:Constraint.Content.Main': true
  ui:
    label: YouTube
    icon: youtube
    position: 50
    inspector:
      groups:
        'video':
          label: i18n
          icon: 'icon-film'
          position: 50
    help:
      message: 'Embeds a YouTube video as content defined by a video ID.'
  properties:
    'video':
      type: string
      defaultValue: ''
      ui:
        label: i18n
        showInCreationDialog: true
        reloadIfChanged: true
        inspector:
          group: 'video'
        help:
          message: |
            The video identifier is visible in the URL to a youtube video

            Eg. in the URL

            `https://youtu.be/G6D1YI-41ao`

            the video id is `G6D1YI-41ao`.
