This is a wysiyg html editor for the Active Admin interface using wysihtml5.
# Gemfile
gem 'activeadmin-wysihtml5'Now install the migrations:
$ rake active_admin_editor:install:migrations
$ rake db:migrateThis gem provides you with a custom formtastic input called :wysihtml5 to build out an html editor.
All you have to do is specify the :as option for your inputs.
Example
ActiveAdmin.register Page do
form do |f|
f.inputs do
f.input :title
f.input :content, as: :wysihtml5, input_html: { commands: [ :link ], blocks: [ :h3, :p] }
end
f.buttons
end
end