Extracted from a Terralien project, this plugin adds a handy toolbar to Textile-enabled form fields. The buttons on the toolbar generate the appropriate Textile markup for your users. This lets you retain the benefits of Textile while at the same time offering your users a friendly interface for generating markup.

Installation


script/plugin install git://github.com/pelargir/textile_toolbar.git

Usage

Use the textile_area helper where you would normally use the text_area
helper. Yes, it’s that simple!


<%= text_area :article, :body %>      # plain old text area
<%= textile_area :article, :body %>   # text area with Textile toolbar

Any options that can be passed to text_area can also be passed to textile_area.
For example, to set the width and height:


<%= textile_area :article, :body, :rows => 5, :cols => 10 %>

Example

Make selection bold Make selection italic Make hyperlink Insert image  Textile enabled

Feedback

Feedback is welcome – just drop us an email. Hope it helps you!

Contact us today at (919) 521-4240 or info@terralien.com

Ruby Rails Terralien specializes in Ruby and Ruby on Rails development.

Olark Livehelp