Open BartlomiejSkwira opened 11 years ago
Are both: Rich CSS and JavaScript files loaded?
Strange, sometimes JavaScript is not loaded at all, and sometimes it loads assets/rich/base.js?body=1
with body:
// Wire up Rich
;
I've inspected the inline JavaScript
var instance = CKEDITOR.instances['article_trailer_text'];
if(instance) { CKEDITOR.remove(instance); }
CKEDITOR.replace('article_trailer_text',....)
and run the code in console and this is what I got:
$ var a = CKEDITOR.instances['article_trailer_text']; => undefined
$ a = CKEDITOR.instances['article_trailer_text']; => a.editor {_: Object, elementMode: 1, element: d.element, name: "article_trailer_text", id: "cke_1"…}
var
is somehow resposible? o.O
I met the same problem in Rails 4 with rails_admin And here is what happened
Was there any fix to this issue? I am getting exactly the same error in active admin too
I've merged this PR locally, and it helped for me.
I use Rails Admin and I wanted to setup Rich with it. After bundle install I've run:
I use Devise with model name Admin, so I modified
/config/initializers/rich.rb
:Here is my model config in
config/initializers/rails_admin.rb
:Here is how it all looks like:
Any ideas how to debug this would be great!
[edit]: now it started to display something, link names without styling, but still no editor: