Sha256: 14940427b97274f3e1638069256b8096fe8d6ff36e39c37b82859a396d3fda5a

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

$(document).ready(
  function(){
  var csrf_token = $('meta[name=csrf-token]').attr('content');
  var csrf_param = $('meta[name=csrf-param]').attr('content');
  var params;
  if (csrf_param !== undefined && csrf_token !== undefined) {
    params = csrf_param + "=" + encodeURIComponent(csrf_token);
  }
  $('.redactor').redactor(
    { "imageUpload":"/redactor_rails/pictures?" + params,
      "imageGetJson":"/redactor_rails/pictures",
      "path":"/assets/redactor-rails",
      "css":"style.css",
      "lang":"ru"}
  );
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vision-0.0.1.alpha1 app/assets/javascripts/redactor-rails/config.js