This was a personal project to test how to build a gem, before a long time ago... For anyone who really concerns about using Simple-MDE, just go to their repo, download the latest minified JS, put it under app/assets/javascript then initialize editor in your view. No gem required. Thanks for your visit!
Add this line to your application's Gemfile:
gem 'simplemde-rails'And then execute:
$ bundle install
In root directory:
$ rails g simplemde:install
<link rel="stylesheet" href="assets/simplemde.min.css">
<script src="assets/simplemde.min.js"></script>You can also include them in application.js like:
//= require simplemde.min
The best solution is convert css to sass and inlcude them in application.scss:
@import "simplemde.min";After installing, load SimpleMDE on the first textarea on a page
<script>
var simplemde = new SimpleMDE();
</script>See more at the home page please.