login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

Small, standards compliant, Javascript WYSIWYG HTML control
The name says it all. This Javascript file can be added ...
Key features
Small
... a class name to turn a textarea into a WYSIWYG control.

Small, standards compliant, Javascript WYSIWYG HTML control : Paul James
http://www.peej.co.uk/projects/wysiwyg.html

Categories

/Channels/techie/JavaScript

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

Small, standards compliant, Javascript WYSIWYG HTML control

The name says it all. This Javascript file can be added to any HTML page to turn textarea elements into a WYSIWYG editor.

Key features

Small
The Javascript file is only 13kb, with the addition of styles and images that whole control is only 20kb.
Standards compliant
The HTML generated is valid (X)HTML, the script uses easily re-configured regular expressions to massage the code generated by the browsers designMode into valid (X)HTML.
Configurable
The WYSIWYG toolbars and functions available are easily configurable through an array at the top of the script.
Easy installation
Just drop in the Javascript file and assign a class name to turn a textarea into a WYSIWYG control.

HTML

<h2>Small, standards compliant, Javascript WYSIWYG HTML control</h2> <p>The name says it all. This Javascript file can be added to any HTML page to turn textarea elements into a WYSIWYG editor.</p> <h3>Key features</h3> <dl> <dt>Small</dt> <dd>The Javascript file is only 13kb, with the addition of styles and images that whole control is only 20kb.</dd> <dt>Standards compliant</dt> <dd>The HTML generated is valid (X)HTML, the script uses easily re-configured regular expressions to massage the code generated by the browsers designMode into valid (X)HTML.</dd> <dt>Configurable</dt> <dd>The WYSIWYG toolbars and functions available are easily configurable through an array at the top of the script.</dd> <dt>Easy installation</dt> <dd>Just drop in the Javascript file and assign a class name to turn a textarea into a WYSIWYG control.</dd></dl>