Skip to content
Mitsuhiro Shibuya edited this page Jul 23, 2013 · 3 revisions

Add

gem 'codemirror-rails'

to your Gemfile.

RailsAdmin.config do |config|
  config.model Team do
    edit do
      # For RailsAdmin >= 0.5.0
      field :description, :code_mirror
      # For RailsAdmin < 0.5.0
      # field :description do
      #   codemirror true
      # end
    end
  end
end

More here

Clone this wiki locally