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.55 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.54 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.53 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.52 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.51 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.50 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.49 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.48 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.47 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.46 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.45 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.44 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.43 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.42 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.41 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.40 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.39 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.38 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.37 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js
wrgem-0.0.35 lib/generators/wradmin/template/assets/javascripts/redactor-rails/config.js