Sha256: 8a9a16d5e9447fd6556e6662803428274454f23e577292af75c934a61e17d017

Contents?: true

Size: 617 Bytes

Versions: 54

Compression:

Stored size: 617 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",
      "fileUpload":"/redactor_rails/documents?" + params,
      "fileGetJson":"/redactor_rails/documents",
      "path":"/assets/redactor-rails",
      "css":"style.css"}
  );
});

Version data entries

54 entries across 54 versions & 4 rubygems

Version Path
wrgem-0.0.32 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.31 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.30 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.29 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.28 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.27 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.26 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.25 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.24 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.23 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.22 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.21 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.20 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.19 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.18 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
redactor-rails-0.4.5 lib/generators/redactor/templates/config.js
redactor-rails-0.4.4 lib/generators/redactor/templates/config.js
th_simple_content_management-0.2.7 lib/generators/redactor/templates/config.js
th_simple_content_management-0.2.6 lib/generators/redactor/templates/config.js
th_simple_content_management-0.2.5 lib/generators/redactor/templates/config.js