Content last modified Tuesday 24 August 2021
hop to #bottom
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 1 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!

Live Textile-Formatted Comment Preview

In TextPattern when you click on an article and are presented with the ability to comment, the set of input boxes, text areas, and other items are generated by a simple form called comment_form. The idea is that we can latch onto the text area that the user types into and have it call a javascript function when its content changes. This javascript function can then read in the current content of the text area, format it using a trimmed down version of textile, and then set the content of a DIV with the resulting HTML. The end result of all this is live comment preview, with textile formatting.

Article Request Count:
Initially released:
2 November 04
Posted here:
22 Feb 2005

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