<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Cross-Browser Rich Text Editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="JavaScript" type="text/javascript" src="lang/en.js"></script>
<script language="JavaScript" type="text/javascript" src="richtext_compressed.js"></script>
<script language="JavaScript" type="text/javascript" src="xhtml.js"></script>
</head><body>
<form name="RTEDemo" action="demo.htm" method="post" onsubmit="return submitForm();">
<script language="JavaScript" type="text/javascript">
<!--
function submitForm() {
    //make sure hidden and iframe values are in sync before submitting form
    updateRTEs();
    alert("rte1 = "+document.RTEDemo.rte1.value+"\n\nrte2 = "+document.RTEDemo.rte2.value+"\n\nrte3 = "+document.RTEDemo.rte3.value+"\n\nrte4 = "+document.RTEDemo.rte4.value);
    //change the following line to true to submit form
    return false;
}

//Usage: initRTE(imagesPath, includesPath, cssFile, genXHTML)
initRTE("images/", "", "", true);

// Optional javascript rteSafe function
// var SAFE_CONTENT = rteSafe(YOUR_CONTENT);
// writeRichText('rte1', SAFE_CONTENT, '', 500, 150, true, false, false);

//-->
</script>
<font face=tahoma size=2>RTE 1: Example of a rte with a width over 1270px<br>
<script language="JavaScript" type="text/javascript">
<!--
//Usage: writeRichText(fieldname, html, css_override, width, height, buttons, readOnly, fullscreen)
writeRichText('rte1', 'here&#39;s the "<em>preloaded</em> <b>content</b>"', '', 1270, 200, true, false, false);
//-->
</script>
<br>RTE 2: Example of regular rte at a normal width (which invokes the icon auto-wrap)<br>
<script language="JavaScript" type="text/javascript">
writeRichText('rte2', 'here&#39;s the "<em>preloaded</em> <b>content</b>"', '', 100, 400, true, false, false);
</script>
<br>RTE 3: Example of a rte without button support<br>
<script language="JavaScript" type="text/javascript">
writeRichText('rte3', 'here&#39;s the "<em>preloaded</em> <b>content</b>"', '', 600, 400, false, false, false);
</script>
<br>RTE 4: Example of a read-only rte<br></font>
<script language="JavaScript" type="text/javascript">
writeRichText('rte4', 'here&#39;s the "<em>preloaded</em> <b>content</b>"', '', 600, 400, false, true, false);
</script>
<p><input type="submit" name="submit" value="Submit"></p>
</form></body></html>
