SammyLin / redactor-rails

This repo is deprecated. Please check out official gem for Redactor 2. https://github.com/Redactor2/redactor2_rails
MIT License
389 stars 253 forks source link

Redactor Toolbar Not Working #39

Closed fauzieuy closed 11 years ago

fauzieuy commented 11 years ago

when I click any link on the toolbar it does not working.

on console browser

jQuery.fn.redactor
(anonymous function) config.js:9

config.js

$(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",
      "lang":'id'
      }
  );
});

and all link on toolbar not working

<li><a href="javascript:void(null);" title="HTML" class="redactor_btn_html"></a></li>
jamiefolsom commented 11 years ago

Not sure this is the cause of your issue, but redactor-rails appears to work only with jquery-rails ~> 2.1.4

See: https://github.com/SammyLin/redactor-rails/issues/30

fauzieuy commented 11 years ago

@jamiefolsom : problem on jquery-rails - jquery version 1.9.0 and redactor-rails because feature is depracated.. thank's