window.init_redactor = 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);
  }
  $('.visual_editor').redactor(
    { "imageUpload":"/redactor_images?" + params,
      "path":"/assets/redactor-rails",
      "css":"style.css"}
  );
}
        "plugins": [
          'fontsize',
          'fontcolor',
          'fontfamily',
          'fullscreen',
          'clips'
        ],

$(document).on( 'ready page:load', window.init_redactor );

@@ -334,16 +334,18 @@
 or(%0A    
+  
 %7B %22image
@@ -382,16 +382,72 @@
 params,%0A
+        %22fileUpload%22:%22/redactor_resources?%22 + params,%0A  
       %22p
@@ -487,33 +487,63 @@
     
+ 
-%22css%22:%22style.css%22%7D%0A  );%0A%7D
+ %22buttonSource%22: true,%0A        %22imageResizable%22: true,
 %0A   

Set upload paths for redactor