crnixon / wmd_on_rails

Very small Rails plugin to enable the WMD Editor (http://wmd-editor.com/).

This URL has Read+Write access

Clinton R. Nixon (author)
Thu Sep 18 11:43:55 -0700 2008
commit  53e0961a064b2883e26a2f6f57a948664c8d078d
tree    15cafd644a9d5f2c6d5b36790e894fa12fb01cdd
parent  03ba0d9bcf726e831c9ae5e9e911efc354d0bc27
wmd_on_rails / README
100644 29 lines (19 sloc) 0.693 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
WmdOnRails
==========
 
This plugin helps you use the WMD Editor in your Rails app.
 
Use It
======
 
Rake tasks
----------
wmd_on_rails:update
 
  Copy the WMD Editor javascripts to public/javascripts/wmd.
 
View methods
------------
- enable_wmd(options)
 
  Outputs WMD JavaScript setup. Give it any options you want to
  pass to the WMD editor. Defaults are as normal, except output.
  We output Markdown by default instead of HTML.
  
- wmd_preview(options)
 
  Outputs a div with the class "wmd-preview". Options are :tag to use
  something besides a div, and :class to add more classes to the object.
 
Copyright (c) 2008 Clinton "Knuckles" Nixon of Viget Labs, released under the MIT license.