Sha256: 3e6a273153b049d792ec27d3b06206e5513c62a8051de35503c55908a57e24c3
Contents?: true
Size: 506 Bytes
Versions: 6
Compression:
Stored size: 506 Bytes
Contents
$(function(){ $('.redactor').redactor(getRedactorOptions()); }); function getRedactorOptions() { 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); }; return { imageUpload:"/redactor_rails/pictures?" + params, imageGetJson: "/redactor_rails/pictures", path:"/assets/redactor-rails" }; }
Version data entries
6 entries across 6 versions & 1 rubygems