Sha256: 6e820956cfb214377727f92e30804d9ff5d0bc0cd4cbc1dd7421c6e2ed348216
Contents?: true
Size: 733 Bytes
Versions: 3
Compression:
Stored size: 733 Bytes
Contents
import Spotlight from 'spotlight' (function ($){ Spotlight.Block = SirTrevor.Block.extend({ scribeOptions: { allowBlockElements: true, tags: { p: true } }, formable: true, editorHTML: function() { return ''; }, beforeBlockRender: function() { this.availableMixins.forEach(function(mixin) { if (this[mixin] && SirTrevor.BlockMixins[this.capitalize(mixin)].preload) { this.withMixin(SirTrevor.BlockMixins[this.capitalize(mixin)]); } }, this); }, $instance: function() { return $('#' + this.instanceID); }, capitalize: function(string) { return string.charAt(0).toUpperCase() + string.substring(1).toLowerCase(); } }) })(jQuery);
Version data entries
3 entries across 3 versions & 1 rubygems