Categories:
Author:
About It:
Get it:
Rate it:
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.
Initially released:
2 November 04
Posted here:
22 Feb 2005