Sha256: 9fe4c000ad7e2506ff181b20cbd09c915f040a72267aa13bd6dbf73cb59388b9

Contents?: true

Size: 873 Bytes

Versions: 2

Compression:

Stored size: 873 Bytes

Contents

pageflow.ConfigurationEditorView.register('embedded_video', {
  configure: function() {
    var supportedHosts = this.options.pageType.supportedHosts;

    this.tab('general', function() {
      this.group('general');
    });

    this.tab('topic', function() {
      this.input('embedded_video_id', pageflow.UrlInputView, {
        supportedHosts: supportedHosts,
        displayPropertyName: 'display_embedded_video_url',
        required: true,
        permitHttps: true
      });
      this.input('video_caption', pageflow.TextInputView);
      this.input('full_width', pageflow.CheckBoxInputView);
      this.group('background');
      this.input('thumbnail_image_id', pageflow.FileInputView, {
        collection: pageflow.imageFiles,
        imagePositioning: false
      });
    });

    this.tab('options', function() {
      this.group('options');
    });
  }
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-embedded-video-1.1.0 app/assets/javascript/pageflow/embedded_video/editor/views/configuration_editor.js
pageflow-embedded-video-1.0.0 app/assets/javascript/pageflow/embedded_video/editor/views/configuration_editor.js