wysiwyg - How to install 'Ckeditor' for 'Active Admin' with 'Rails 3.1' -
i looking how install ckeditor active_admin
i installed ckeditor , have put line in 'initializers/active_admin.rb' file.
# load javascript file:
config.register_javascript 'ckeditor/config.js'
and line
config.autoload_paths += %w(#{config.root}/app/models/ckeditor)
in 'config/application.rb'
in begining 'config.js' file wasn't loaded because when install ckeditor gem creates folder named ckeditor in public/javascripts rails 3.1, had move folder assets/javascripts...
that's i've done.
now file "config.js' loaded.
but don't know have next
rails 3.2
activeadmin-0.4.3
in 'initializers/active_admin.rb' file.
config.register_javascript 'ckeditor/ckeditor.js' config.register_javascript 'ckeditor/init.js'
in form
= f.cktext_area :text
Comments
Post a Comment