Created
July 6, 2012 07:38
-
-
Save antillas21/3058715 to your computer and use it in GitHub Desktop.
CKEditor dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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