text: import {editor} from 'pageflow-scrolled/editor';
  import {CheckBoxInputView, SelectInputView, TextInputView, UrlInputView} from 'pageflow/ui';
  
  editor.contentElementTypes.register('videoEmbed', {
    configurationEditor() {
      this.tab('general', function() {
        this.input('videoSource', UrlInputView, {
          supportedHosts: [
            'http://youtu.be',
            'https://youtu.be',
            'http://www.youtube.com',
            'https://www.youtube.com',
            'http://vimeo.com',
            'https://vimeo.com',
            'http://www.facebook.com',
            'https://www.facebook.com'
          ],
          displayPropertyName: 'videoSource',
          required: true,
          permitHttps: true
        });
        this.input('hideInfo', CheckBoxInputView);
        this.input('hideControls', CheckBoxInputView);
        this.input('aspectRatio', SelectInputView, {
          values: ['wide', 'narrow', 'square', 'portrait']
        });
        this.group('ContentElementCaption');
        this.group('ContentElementPosition');
      });
    }
  });
  