Sha256: 4ece90f3a14b7476888da9b4b3872d25cd6cf74270eb74e28da8f785b06c2267

Contents?: true

Size: 510 Bytes

Versions: 15

Compression:

Stored size: 510 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"}
  );
});

Version data entries

15 entries across 12 versions & 2 rubygems

Version Path
redactor-rails-0.4.1 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-0.3.7 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-0.3.6 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-0.4 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-paperclip-0.4.3 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-paperclip-0.4.2.1 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-paperclip-0.4.1 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-0.3.5 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-0.3.3 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-0.3.2 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-0.3.2 lib/generators/redactor/templates/config.js
redactor-rails-0.3.1 vendor/assets/javascripts/redactor-rails/config.js
redactor-rails-0.3.1 lib/generators/redactor/templates/config.js
redactor-rails-0.3 lib/generators/redactor/templates/config.js
redactor-rails-0.3 vendor/assets/javascripts/redactor-rails/config.js