github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

pelargir / textile_toolbar

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 37
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (0)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (1)
    • v0.5.1
Sending Request…
Click here to lend your support to: textile_toolbar and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Adds a handy toolbar to any Textile-enabled text area. — Read more

  cancel

http://terralien.com/projects/textile-toolbar/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

updated CHANGELOG and TODO 
Matthew (author)
Mon Dec 14 13:43:48 -0800 2009
commit  5c033e368fa0df738f54c29e816682d5c9b19a51
tree    18cf6fb6d1fb14bc9c9742063fd7990177ec13eb
parent  03613170f6f0657af50cdbb6e15b05f128c905c7
textile_toolbar /
name age
history
message
file .gitignore Mon Dec 14 12:51:24 -0800 2009 fixed gem support [Matthew]
file CHANGELOG Loading commit data...
file MIT-LICENSE
file README Mon Dec 14 12:51:24 -0800 2009 fixed gem support [Matthew]
file Rakefile
file TODO
file VERSION Mon Dec 14 12:51:24 -0800 2009 fixed gem support [Matthew]
directory files/
file init.rb Mon Dec 14 12:51:24 -0800 2009 fixed gem support [Matthew]
directory lib/ Mon Dec 14 12:51:24 -0800 2009 fixed gem support [Matthew]
directory tasks/
directory test/ Sat Nov 08 06:45:59 -0800 2008 began adding tests [Matthew Bass]
file textile_toolbar.gemspec Mon Dec 14 12:51:49 -0800 2009 Regenerated gemspec for version 0.5.1 [Matthew]
README
= textile_toolbar

Adds a handy Textile toolbar to any text area. The toolbar currently offers
the following functions:

  - Bold: select some text and click this button to make it bold.
  - Italic: select some text and click this button to make it italic.
  - Insert Hyperlink: select some text, click, enter URL, and link is inserted.
  - Insert Image: click, enter image URL, and image is inserted at cursor.

A link to a Textile reference page is also shown beside the toolbar.

== Installation

Install the gem directly:

  sudo gem install textile_toolbar
  
Or install the gem in your Rails project as a plugin:
  
  script/plugin install git://github.com/pelargir/textile_toolbar.git

Then copy the required image and JS files into your Rails project

  rake textile_toolbar:install

== Usage

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

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

Form blocks are supported, letting you do this also:

  <% form_for :article do |f| -%>
    <%= f.textile_area :body %>
  <% end -%>

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 %>

== Resources

Repository: http://github.com/pelargir/textile_toolbar/
Blog: http://matthewbass.com
Author: Matthew Bass

Extraction work sponsored by Terralien
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server