Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save zaemiel/40f7a8dfe1e54e7217c4 to your computer and use it in GitHub Desktop.
Save zaemiel/40f7a8dfe1e54e7217c4 to your computer and use it in GitHub Desktop.
CKEditor installation and integration with Active Admin
1. Gemfile
gem 'ckeditor', github: 'galetahub/ckeditor'
2. bundle install
3. app/assets/javascripts/application.js
//= require ckeditor/init
4. config/initializers/active_admin.rb
config.register_javascript 'ckeditor/init.js'
5. Usage with Active Admin:
app/admin/model.rb
form do |f|
f.input :description, as: :ckeditor
end
Links:
https://github.com/galetahub/ckeditor
https://github.com/activeadmin/activeadmin/wiki/Ckeditor-integration
@gajendra123-apple
Copy link

editor is not colourful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment