Sha256: 368d64619e215a90d0b4dfbce7346cd55b1f40f3d896136ede03527f5ba3db90
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# 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.1 ## Install In you Gemfile ```ruby gem 'wmd-rails' ``` Then `bundle install` ## Usage In app/assets/javascripts/editor.js or other js ```javascript //= require wmd //= require showdown $(function(){ new WMDEditor({ input: "editor-input", button_bar: "editor-button-bar", preview: "editor-preview" }); }) ``` More wmd document: https://github.com/chloerei/wmd In app/assets/stylesheets/editor.css or other css ```css /* *= require 'wmd' */ ``` ## Precompile (optional) In config/application.rb ```ruby config.assets.precompile += %w(wmd-buttons.png editor.js editor.css) ``` Then `rake assets:precompile` ## LICENSE MIT-LICENSE
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wmd-rails-0.0.3 | README.md |