Sha256: 71d658a5891a9b947b52b37fe3891caf57265010d5ec7ba8e1642d3f4561739c

Contents?: true

Size: 2 KB

Versions: 4

Compression:

Stored size: 2 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"storytime/editor.js;FI"
pathname;TI"\/Users/ben/flyover/projects/storytime/app/assets/javascripts/storytime/editor.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+–?éSI"length;Ti&I"digest;TI"%333e952576d7d3476772bf250010623e;FI"source;TI"&(function() {
  Storytime.Dashboard.Editor = (function() {
    function Editor() {}

    Editor.prototype.init = function() {
      var mediaInstance;
      mediaInstance = new Storytime.Dashboard.Media();
      mediaInstance.initPagination();
      mediaInstance.initInsert();
      mediaInstance.initFeaturedImageSelector();
      $(document).on('shown.bs.modal', function() {
        return mediaInstance.initUpload();
      });
      return $(".wysiwyg").wysihtml5("deepExtend", {
        parserRules: {
          allowAllClasses: true
        },
        html: true,
        color: true,
        customTemplates: {
          "html": function(locale, options) {
            var size;
            size = options && options.size ? ' btn-' + options.size : '';
            return "<li>" + "<div class='btn-group'>" + "<a class='btn" + size + " btn-default' data-wysihtml5-action='change_view' title='" + locale.html.edit + "' tabindex='-1'><i class='glyphicon glyphicon-pencil'></i>&nbsp;&nbsp;Raw HTML Mode</a>" + "</div>" + "</li>";
          },
          "image": function(locale, options) {
            var $modal, size;
            size = options && options.size ? ' btn-' + options.size : '';
            $modal = $("#insertMediaModal").remove();
            return "<li>" + $modal[0].outerHTML + "<a class='btn" + size + " btn-default' data-wysihtml5-command='insertImage' title='" + locale.image.insert + "' tabindex='-1'><i class='glyphicon glyphicon-picture'></i></a>" + "</li>";
          }
        }
      });
    };

    return Editor;

  })();

}).call(this);
;TI"required_assets_digest;TI"%630b3743be82984a8a0cc17bdacac276;FI"
_version;TI"%2b66aa67c90052d553e0328c249bc9b0;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
storytime-0.0.4 spec/dummy/tmp/cache/assets/test/sprockets/17b43201373f45cbe6297536bde2bc27
storytime-0.0.4 spec/dummy/tmp/cache/assets/test/sprockets/d5fdd43b56870d436d7c2bcc3bd0e269
storytime-0.0.2 spec/dummy/tmp/cache/assets/test/sprockets/17b43201373f45cbe6297536bde2bc27
storytime-0.0.2 spec/dummy/tmp/cache/assets/test/sprockets/d5fdd43b56870d436d7c2bcc3bd0e269