Sha256: 3232fd5d41ae3d958306698ee61632307ab8af5344d2ffb64b7921ce4f42f35b

Contents?: true

Size: 941 Bytes

Versions: 6

Compression:

Stored size: 941 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.input('background_image_id', pageflow.FileInputView, {collection: pageflow.imageFiles});
      this.input('thumbnail_image_id', pageflow.FileInputView, {
        collection: pageflow.imageFiles,
        imagePositioning: false
      });
    });

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pageflow-embedded-video-0.3.1 app/assets/javascript/pageflow/embedded_video/editor/views/configuration_editor.js
pageflow-embedded-video-0.3.0 app/assets/javascript/pageflow/embedded_video/editor/views/configuration_editor.js
pageflow-embedded-video-0.2.1 app/assets/javascript/pageflow/embedded_video/editor/views/configuration_editor.js
pageflow-embedded-video-0.2.0 app/assets/javascript/pageflow/embedded_video/editor/views/configuration_editor.js
pageflow-embedded-video-0.1.1 app/assets/javascript/pageflow/embedded_video/editor/views/configuration_editor.js
pageflow-embedded-video-0.1.0 app/assets/javascript/pageflow/embedded_video/editor/views/configuration_editor.js