This repository contains a Formtastic input component to render a SimpleMDE editor field.
-
Add
gem 'active_admin-markdown_editor'
to your Gemfile and executebundle
. -
Append
//= require active_admin/markdown_editor
to youractive_admin.js
file. -
Append
@import "active_admin/markdown_editor";
to youractive_admin.scss
file.
You can transform any input
to a markdown editor by using the as
parameter:
f.input 'About', as: :markdown_editor