Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gem for simplemde Markdown editor. Please see README for notice.

License

Notifications You must be signed in to change notification settings

jiaolyulu/simplemde-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Version

Simplemde-Rails

Simplemde markdown editor.

Notice

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!

Install

Add this line to your application's Gemfile:

gem 'simplemde-rails'

And then execute:

$ bundle install

In root directory:

$ rails g simplemde:install

Usage

<link rel="stylesheet" href="assets/simplemde.min.css">
<script src="assets/simplemde.min.js"></script>

Scripts

You can also include them in application.js like:

//= require simplemde.min

SASS/SCSS

The best solution is convert css to sass and inlcude them in application.scss:

@import "simplemde.min";

Quick start

After installing, load SimpleMDE on the first textarea on a page

<script>
var simplemde = new SimpleMDE();
</script>

See more at the home page please.

About

Gem for simplemde Markdown editor. Please see README for notice.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%