0.0
No commit activity in last 3 years
No release in over 3 years
rails3_markitup is a Rails 3.1 engine that allows you to integrate the MarkItUp text editor into the asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.0
~> 3.1
 Project Readme

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
  • MarkItUp sets for Hmtl, 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 rails3_markitup gem to your Gemfile. In Gemfile:

gem "rails3_markitup"

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 :only => [:new, :edit]
include_markitup :except => [:index, :show, :destroy, :create]

Assign your textarea with class name markitup_html

:classs => "markitup_html"