Sha256: 81d6783b66718c3b2afa172360b35f78ad7e9bfe2c96779931e1339915674773

Contents?: true

Size: 1.88 KB

Versions: 10

Compression:

Stored size: 1.88 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"storytime/editor.js;FI"
pathname;TI"c/Users/ben/Documents/benroesch.com/storytime/app/assets/javascripts/storytime/editor.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+½ÃSI"length;Ti¥I"digest;TI"%e0ad9a15df8d2996f03efe120b0bb514;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();
      $(document).on('shown.bs.modal', function() {
        return mediaInstance.initUpload();
      });
      return $(".wysiwyg").wysihtml5({
        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"%cb177173e5665d32b4c0a33c719ff1c2;FI"
_version;TI"%361c512b9086418778df946c0d278f91;F

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
storytime-1.0.2 spec/dummy/tmp/cache/assets/development/sprockets/afdd926e8851ac9d4717467025b739f9
storytime-1.0.2 spec/dummy/tmp/cache/assets/development/sprockets/27920a8a8c20cc6648ac23ae208eb1b3
storytime-1.0.1 spec/dummy/tmp/cache/assets/development/sprockets/27920a8a8c20cc6648ac23ae208eb1b3
storytime-1.0.1 spec/dummy/tmp/cache/assets/development/sprockets/afdd926e8851ac9d4717467025b739f9
storytime-1.0.0 spec/dummy/tmp/cache/assets/development/sprockets/afdd926e8851ac9d4717467025b739f9
storytime-1.0.0 spec/dummy/tmp/cache/assets/development/sprockets/27920a8a8c20cc6648ac23ae208eb1b3
storytime-0.0.4 spec/dummy/tmp/cache/assets/development/sprockets/afdd926e8851ac9d4717467025b739f9
storytime-0.0.4 spec/dummy/tmp/cache/assets/development/sprockets/27920a8a8c20cc6648ac23ae208eb1b3
storytime-0.0.2 spec/dummy/tmp/cache/assets/development/sprockets/27920a8a8c20cc6648ac23ae208eb1b3
storytime-0.0.2 spec/dummy/tmp/cache/assets/development/sprockets/afdd926e8851ac9d4717467025b739f9