This piece of code creates a Rich Text Editor (“RTE”) from an IFRAME element. Yes, I know, there are tens of such scripts, and most of them are probably more sophisticated than mine, but my script’s purpose is to provide enough basic functionality while having the smallest footprint possible.
- Small (~18k) footprint! (Packed/Minified JS, Plugins & CSS sum to 12k w/o GZIP, HTML can be reduced to ~3k using GZIP, Images (w/o emoticons) are less than 3k)
- Cross-browser
- All basic Rich Text functionality
- Plugin-enabled
- Image Upload via AJAX (using the AjaxFileUpload plugin).
- Resizing of text area.
- Valid XHTML 1.0 Transitional markup (Note: this refers to the editor’s markup and not to it’s generated content which may or may not be valid!).
- HTML Cleanup

