Sha256: a69cdfb6113110d197700323770f9c2087c88972d4c46770473c7641f84a3dbf

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

Markitup! For Rails3
--------------------

Markitup_rails is a Rails 3.1 engine that allows you to integrate the {MarkItUp}[http://markitup.jaysalvat.com/home/] text editor into the asset pipeline.

This uses the 1.1.12 release of Markitup, by {Jay Salvat}[http://jaysalvat.com]

This engine allows you to add in the CSS and Javascript as written in the MarkItUp plugin. I would strongly recommend that you read the documentation tha comes with MarkItUp.

This engine includes the following MarkItUp elements:

* MarkItUp images and stylesheets
* MarkItUp javascript
* a MarkItUp set for Markdown 

MarkItUp support a variety of markup parsers, however, this plugin only includes support for Markdown and HTML.
Pull requests are welcome!

= Usage

Add the markitup_rails gem to your Gemfile.  In Gemfile:

    gem "markitup_rails"
    
Basically include <%= include_markitup_if_needed %> under the <head> element of your in your layout file:

    <%= include_markitup_if_needed %>

In your controller, use include_markitup method to load markitup javascripts and stylesheets:

    include_markitup

Assign your textarea with id

    :classs => "markitup_html"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails3_markitup-0.0.1 README.md