Sha256: 4275bb578c9cc6e1afd714a32495f0c8299ba25e1c5783c193d6d358108177a6

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

$(function(){
  var post_url = '/annex/blocks';

  $(window).keydown(function(e){
    if ((e.which == '17') && (e.ctrlKey || e.metaKey))
    {
      $('.redactor').addClass('active');
    }
  });

  $('.redactor')
    .click(function(){
      if ( ! $(this).hasClass('redactor_editor') )
      {
        $(this).redactor({
          focus: true,
          plugins: ['clips', 'fullscreen', 'save'],
          toolbarFixed: false
        });
      }
    });
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
annex-cms-0.1.2 app/assets/javascripts/annex/cms.js
annex-cms-0.1.0 app/assets/javascripts/annex/cms.js