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