WmdOnRails ========== This plugin helps you use the Resizable 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_textarea(object, field, options = {}) Outputs WMD Editor textarea. - wmd_resizable_textarea(object, field, options ={}) Outputs Resizable WMD textarea. - 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. - wmd_editor(object, field, options ={}) Outputs resizable WMD textarea and wmd preview. Requirements ------------ It uses JQuery for textarea resizer. You can download JQuery from http://jquery.com/ Copyright (c) 2009 Maahai L.Ochirkhuyag, released under the MIT license.
ochko/wmd_on_rails
Very small Rails plugin to enable the WMD Editor (http://wmd-editor.com/).
JavaScriptMIT