(function ($){ SirTrevor.BlockMixins.Plustextable = { mixinName: "Textable", preload: true, initializeTextable: function() { if (_.isUndefined(this['formId'])) { this.withMixin(SirTrevor.BlockMixins.Formable); } if (_.isUndefined(this['show_heading'])) { this.show_heading = true; } }, align_key:"text-align", text_key:"item-text", heading_key: "title", text_area: function() { return _.template([ '
', '
', '
', this.heading(), '
', '', '
', '
', '
', '
', '
', '
', '

<%= i18n.t("blocks:textable:align:title") %>

', '" value="left" checked="true">', '', '" value="right">', '', '
', '
', '
'].join("\n"))(this); }, heading: function() { if(this.show_heading) { return ['
', '', '', '
'].join("\n"); } else { return ""; } }, }; SirTrevor.Block.prototype.availableMixins.push("plustextable"); })(jQuery);