fettig.netProjects → Rich Text Input

Rich Text Input

Rich Text Input is a Javascript-enhanced input box with support for rich text formatting. It makes it possible for text inputs to provide unobtrusive, instant feedback about how the user's input will be interpreted.

Current release: 0.2 (dev snapshot, works pretty well in WebKit, Gecko, and IE).

Demo

tags:

Sample code (used for above demo)

var input = document.getElementById('tags');
var rt = new richtext.UpgradedInput(input);
rt.formatter = new richtext.RegExpFormatter();
rt.formatter.addMatcher(/("[^"]+["$]|\S+)/, '', 'tag');
rt.format();

Get the code: http://github.com/abram/richtextinput