Sha256: 22eb9e364f89e072a6723a2d5af5891c9fff478a94fa5177e4eac7ee3249a2e6
Contents?: true
Size: 728 Bytes
Versions: 21
Compression:
Stored size: 728 Bytes
Contents
import Core from 'spotlight/core' (function ($){ Core.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
21 entries across 21 versions & 1 rubygems