Cross-Browser Rich Text Editor

PscContestWinner

The cross-browser rich-text editor (RTE) is based on the designMode() functionality introduced in Internet Explorer 5, and implemented in Mozilla 1.3+ using the Mozilla Rich Text Editing API. The cross-browser rich-text editor now includes table support (as of 2/10/2005) as well as an option to generate xhtml-compliant code (as of 2/24/2005).

Requires: IE5+/Mozilla 1.3+/Mozilla Firebird/Firefox 0.6.1+/Netscape 7.1+, or any other browser that fully supports designMode() for all rich-text features to function properly. All other browsers will display a standard textarea box instead. For frequently asked questions and support, please visit http://www.kevinroth.com/forums/index.php?c=2

Source: rte.zip, rte.tar.gz
Included in the zip are HTML, ASP, and PHP demos. Also, here is an html demo showing multiple RTEs on one page.

This code is public domain. Redistribution and use of this code, with or without modification, is permitted.

Change Log: changelog.txt

If you feel that the work I've done has value to you, I would greatly appreciate a paypal donation (click button below). Another way you can help me out is to sign up for a free flat screen, to help me get mine. Again, I am very grateful for any and all contributions.

" method="post" onsubmit="return submitForm();">

Click submit to post the form and reload with your rte content.

<% function RTESafe(strText) 'returns safe code for preloading in the RTE dim tmpString tmpString = trim(strText) 'convert all types of single quotes tmpString = replace(tmpString, chr(145), chr(39)) tmpString = replace(tmpString, chr(146), chr(39)) tmpString = replace(tmpString, "'", "'") 'convert all types of double quotes tmpString = replace(tmpString, chr(147), chr(34)) tmpString = replace(tmpString, chr(148), chr(34)) ' tmpString = replace(tmpString, """", "\""") 'replace carriage returns & line feeds tmpString = replace(tmpString, chr(10), " ") tmpString = replace(tmpString, chr(13), " ") RTESafe = tmpString end function %>