Sha256: 4887a64872e1867261ea1b89e6ef9a8b15aa5dceeaaae79cae8be24d161607e4

Contents?: true

Size: 767 Bytes

Versions: 24

Compression:

Stored size: 767 Bytes

Contents

/*
  Sir Trevor ItemText Block.
  This block takes an ID,
  fetches the record from solr,
  displays the image, title, 
  and any provided text
  and displays them.
*/

SirTrevor.Blocks.Iframe = (function(){

  return SirTrevor.Block.extend({
    type: "Iframe",
    formable: true,
    
    title: function() { return i18n.t('blocks:iframe:title'); },
    description: function() { return i18n.t('blocks:iframe:description'); },

    icon_name: "iframe",
    
    editorHTML: function() {
      return `<div class="clearfix">
        <div class="widget-header">
          ${this.description()}
        </div>
        <textarea name="code" class="form-control" rows="5" placeholder="${i18n.t("blocks:iframe:placeholder")}"></textarea>
      </div>`;
    }
  });
})();

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-spotlight-3.6.0.beta5 app/javascript/spotlight/admin/blocks/iframe_block.js
blacklight-spotlight-3.6.0.beta4 app/javascript/spotlight/admin/blocks/iframe_block.js
blacklight-spotlight-3.6.0.beta3 app/javascript/spotlight/admin/blocks/iframe_block.js
blacklight-spotlight-3.6.0.beta1 app/javascript/spotlight/admin/blocks/iframe_block.js