Sha256: 0678b9820e923bf25b26003c395230740197113715d0844be330c59bd4bf0be2
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
ready = -> post_url = "/annex/blocks" # cmd+s saves the editor contents $(window).keydown (e) -> $(".redactor").addClass "active" if (e.which is "17") and (e.ctrlKey or e.metaKey) return # on click of .redactor, fire up a redactor instance $("body").on "click", ".redactor", -> unless $(this).hasClass("redactor_editor") $(this).redactor focus: true plugins: [ "clips" "fullscreen" "save" ] toolbarFixed: false deniedTags: ['html', 'head', 'body', 'applet'] return # on page load, look for texarea.redactor because those will always be CMS mode $("textarea.redactor").redactor focus: true plugins: [ "clips" "fullscreen" "save" ] toolbarFixed: false return $(document).ready(ready) $(document).on('page:load', ready)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
annex-cms-0.1.8 | app/assets/javascripts/annex/cms.js.coffee |
annex-cms-0.1.7 | app/assets/javascripts/annex/cms.js.coffee |