05 July 2010 ~ 2 Comments

MarkItUp: Rails plugin that turns any textarea into a markup editor

I recently published a plugin that helps you turn any textarea into a markup editor. It is based on excellent markItUp! jQuery plugin.

Example

The most simple usage with preset defaults

<html>
<head>
  <%= javascript_include_tag "path/to/jquery" %>
  <%= mark_it_up '#miu_test' %>
</head>
<body>
  <% form_tag do %>
    <%= text_area_tag "miu_test" %>
  <% end %>
</body>
</html>

You can see a lot more cool examples in action on markitup.cingel.hr.

More info

markitup.cingel.hr
github.com/cingel/mark_it_up

2 Responses to “MarkItUp: Rails plugin that turns any textarea into a markup editor”

  1. HAB100 12 August 2010 at 3:41 pm Permalink

    I could not get this to work out of the box with rails 3. Will you be updating the plugin to work with rails 3, and time soon.

    thanks

  2. vlado 12 August 2010 at 5:49 pm Permalink

    @HAB100

    I will do my best to add Rails 3 support in the near future, till then you will have to replace

    < %= mark_it_up '#miu_test' %>
    with
    < %= raw mark_it_up '#miu_test' %>

    I just did a quick fix so it should now work out of the box in Rails 3.


Leave a Reply