Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chloerei/wmd-rails
WMDEditor for rails 3.1
https://github.com/chloerei/wmd-rails
Last synced: about 2 months ago
JSON representation
WMDEditor for rails 3.1
- Host: GitHub
- URL: https://github.com/chloerei/wmd-rails
- Owner: chloerei
- License: mit
- Created: 2011-09-23T15:43:20.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-11T06:22:35.000Z (over 12 years ago)
- Last Synced: 2024-07-07T17:44:31.052Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 184 KB
- Stars: 28
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# WMD Editor for rails
Using assets pipeline, base on https://github.com/chloerei/wmd version, witch fork from https://github.com/ChiperSoft/wmd .
## History
Original WMD and Showdwon code copyright (c) 2007 John Fraser
Modifications and bugfixes (c) 2009-2010 Chris Jester-Young, Dana Robinson, Anand Chitipothu
Further modifications (c) 2010-2011 Jarvis Badgley, Wenqiang Wang, Helder Ribeiro, Chad Burggraf## Dependency
Rails 3.1 or higher
## Install
In you Gemfile
```ruby
gem 'wmd-rails'
```Then `bundle install`
## Usage
In app/assets/javascripts/editor.js or other js
```javascript
//= require wmd/wmd
//= require wmd/showdown$(function(){
new WMDEditor({
input: "editor-input",
button_bar: "editor-button-bar",
preview: "editor-preview",
helpLink: "http://daringfireball.net/projects/markdown/syntax"
});
})
```More wmd document: https://github.com/chloerei/wmd
In app/assets/stylesheets/editor.css or other css
```css
/*
*= require 'wmd/wmd'
*/
```## Precompile (optional)
In config/application.rb
```ruby
config.assets.precompile += %w(editor.js editor.css)
```Then `rake assets:precompile`
## LICENSE
MIT-LICENSE