Skip to content

Rich not being displayed in Rails Admin #83

@BartlomiejSkwira

Description

@BartlomiejSkwira

I use Rails Admin and I wanted to setup Rich with it. After bundle install I've run:

rails generate rich:install
rake db:migrate

I use Devise with model name Admin, so I modified /config/initializers/rich.rb:

config.authentication_method = :authenticate_admin!

Here is my model config in config/initializers/rails_admin.rb:

config.model Article do |a|

    edit do

      field :trailer_text, :rich_editor do
        config({
          :insert_many => true
        })
      end

      field :news_text, :rich_editor do
        config({
          :insert_many => true
        })
      end
    end
  end

Here is how it all looks like:
untitled

  • There are no javascript errors, just a message about fontawesome: "Resource interpreted as Font but transferred with MIME type application/font-woff: "http://localhost:3000/assets/fontawesome-webfont.woff". "
  • CKEditor and Rick Javascript is loaded
  • I've tried latest gem code, disabled all Chrome plugins and cleared cache

Any ideas how to debug this would be great!

[edit]: now it started to display something, link names without styling, but still no editor:
untitled2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions