Last active
July 14, 2023 14:39
-
-
Save zaemiel/40f7a8dfe1e54e7217c4 to your computer and use it in GitHub Desktop.
CKEditor installation and integration with Active Admin
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
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 | |
Uncaught ReferenceError: CKEDITOR is not defined
solved by adding
config.register_javascript "//cdn.ckeditor.com/4.5.6/full/ckeditor.js"
in config/initializers/active_admin.rb
editor is not colourful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@csillaandras
//= require ckeditor/config
and
config.register_javascript 'ckeditor/config.js'
solve issue but an other error occur
Uncaught ReferenceError: CKEDITOR is not defined