Skip to content

Instantly share code, notes, and snippets.

@antillas21
Created July 6, 2012 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antillas21/3058715 to your computer and use it in GitHub Desktop.
Save antillas21/3058715 to your computer and use it in GitHub Desktop.
CKEditor dependencies
source 'https://rubygems.org'
# long list of gems
gem 'rails_admin' # to handle auth and adding content
gem "ckeditor", "3.7.1"
# ckeditor gem is the one responsible for making the WYSIWYG editor available
# even more gems
# config/initializers/rails_admin.rb
config.model BlogPost do
label "Article"
label_plural "Articles"
edit do
field :title
field :body, :text do
ckeditor true
# the above line is important as it loads the WYSIWYG editor in the body text area.
end
field :publish
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment