Sha256: b44363fc909c076e7ebee57baa9ed4033b4c08d9f08ad682d276cafbae2d6d1f

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

# MarkDown Simple Editor



## Installation

Add this line to your application's Gemfile:

    gem "font-awesome-rails"
    gem 'md_simple_editor'

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install font-awesome-rails"
    $ gem install md_simple_editor

## Usage

In your `application.css`, include the css files:

    *= require font-awesome
    *= require md_simple_editor

In your `application.js`, include the javascript files:

    //= require md_simple_editor

### Helper

There are a helper that make your textarea works like a _text editor :D_

```rails
<%= md_simple_editor  do %>
    <%= text_area_tag "your id" %>
<% end %>
```
Also you can use inside a form
```rails
<%= form_for @user do |f|
    <%= md_simple_editor  do %>
        <%= f.text_area :description %>
    <% end %>
<% end %>
```

## How it looks?

![Imgur](http://i.imgur.com/68DXCwP.png)


## ToDo

- Improve css
- Add functions to extend the toolbar
- Add preview option


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
md_simple_editor-0.2.3.pre3 README.md
md_simple_editor-0.2.3.pre1 README.md
md_simple_editor-0.1.2 README.md
md_simple_editor-0.1.1 README.md
md_simple_editor-0.1.0 README.md