Sha256: d6979844665d84719b4561b278f7b576188f58ebde1ee5330ae00ad57ecaba61
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
class Storytime.Dashboard.Editor init: ()-> mediaInstance = new Storytime.Dashboard.Media() mediaInstance.initPagination() mediaInstance.initInsert() $(document).on 'shown.bs.modal', ()-> mediaInstance.initUpload() $(".wysiwyg").wysihtml5 html: true color: true customTemplates: "html": (locale, options)-> size = if (options && options.size) then ' btn-'+options.size else '' 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> Raw HTML Mode</a>" + "</div>" + "</li>" "image": (locale, options)-> size = if (options && options.size) then ' btn-'+options.size else '' $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>";
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storytime-0.0.1 | app/assets/javascripts/storytime/editor.js.coffee |