Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Redactor Toolbar Not Working #39

Closed
fauzieuy opened this Issue Jan 22, 2013 · 2 comments

Comments

Projects
None yet
2 participants

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>

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

See: #30

fauzieuy commented Feb 6, 2013

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

@fauzieuy fauzieuy closed this Feb 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment