Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

hak_textile_tags

Finaly got the chance to finish this. This plugin was designed to make using textile in comment forms simpler. Basically it provides the user leaving the comment with simple buttons to insert the textile formating code in for them.

Overview

hak_textile_tags will generate a formatting bar similar to the quicktags found in wordpress except instead of html it will insert textile tags.

Usage

<txp:hak_textile_tag />

will generate a div that will hold all the controls. By default it will insert the tags in a textarea named “message" since that is the default texpattern comment form textarea.

<txp:hak_textile_tag textarea="canvas" />

allows you to specify what textarea to use as the canvas. It will look for textareas by name and by id so you can use either one.

Style Information

The Textile bar has a few default classes to allow you to style it however you want (buttons can’t be styled in Safari unfortunately).

The div that holds the buttons has an id of edtoolbar .

All buttons have two default classes: ed_button and ed_button_pressed, this allows you to create a selected look for the buttons.

Each button also has an extra class using its its tag to allow you to target them indovidually. For example ed_strong, ed_emphasis, ed_link, ed_image. This should allow for some image replacement techiniques, or simply having the strong button be bold.

Article Request Count:
Initially released:
2005-04-05
Posted here:
05 Apr 2005

You know you want to visit the Archives.
Published with Textpattern