Closed wangfuhai2013 closed 9 years ago
I have the same error, with gem version 0.4.
From what I could gather, the language files need to be updated, since apparently the way Redactor initializes the languages has changed.
I was able to work around this issue by inserting this line in config.js:
...
$.Redactor.opts.langs['pt_br'] = RELANG['pt_br'];
$('.redactor').redactor(
...
hi @wangfuhai2013 fix bug f764fb4af197ab3524c694d8a389cff4d5c2f740
you can use update version 0.4.1
and
Add to your application.js:
//= require redactor-rails/langs/zh_cn
so your can remove
$.Redactor.opts.langs['zh_cn'] = RELANG['zh_cn'];
Please update zh_cn.js
file:
header4: '四级标题',
header5: '五级标题'
bold: '粗体',
There is a comma missing at the header5 line!!
@Marslo language files are updated now. Thanks for @davidsantos-br for taking care of this
i use rails 4 + bootstrap + redactor in chrome ,the redactor 's toolbar can't displayed , must refresh browser, it displayed.
i call redactor in view to solve the above problem ,like this:
it's ok, but when i add lang setting like this:
i got a error in chrome :
my gem file version: redactor-rails 0.3.5 twitter-bootstrap-rails 2.2.7