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