Changes in Templates
 
 
 
 
<!--
This function will validate the data that is passed to the list page
-->
   
function validate () {
var fld, dateFld, timeFld, value, dateValue, timeValue, nullable, checkBox;
var isIE = document.all ? 1 : 0;
var form = document.mainForm;
if(eval('document.all("'+buffRTE+'")').htmll){

eval('document.mainForm("'+buff+'")').value=eval('document.all("'+buffRTE+'")').htmll;
            }else{ 
               for (var i = 0; i < descriptors.length; i++) {
       if (!validateTag (descriptors[i])) {
             return false;
                }
             }
return true;
}}

 <!--
This function will convert ordinary text area to rich text area and will pass any data available in ordinary text area to rich text area
-->
function changeToRichText(text,richText){
eval('document.all("'+richText+'")').text=eval('document.mainForm("'+text+'")').value;
eval('document.mainForm("'+text+'")').style.visibility="hidden";
eval('document.mainForm("'+richText+'")').style.visibility="visible";
}
<!--
This function will convert rich text area to ordinary text area and will pass any data available in rich text area to ordinary text area
-->
function changeToOrdText(text,richText){
if(eval('document.all("'+richText+'")').text != "" 
&& eval('document.all("'+richText+'")').text != eval('document.all("'+richText+'")').htmll)
{
conf=confirm("This will convert your message into plain text and all the formatting will be lost. continue!");
if(!conf) return;
}
eval('document.mainForm("'+text+'")').value=eval('document.all("'+richText+'")').text;
eval('document.all("'+richText+'")').text="";
eval('document.mainForm("'+text+'")').style.visibility="visible";
eval('document.mainForm("'+richText+'")').style.visibility="hidden";
}
<!--
This file has a text area case, which contains a div tag along with  textarea and object tag, which provides the functionality of ordinary textarea and rich text editor respectively.
By default an ordinary textarea will be available and with the click of link provided, ordinary textarea can be converted to rich text editor and vice versa -->
<div id=RTE style='position:relative;top=0px;left=0px;height:165' width=100%"> 
<textarea
name="0-1-4" style='visibility:visible;position:absolute;top:0px;left:0px'
rows=10 cols=57></textarea>
<object id="0-1-4-dynamsg" width="100%" style='visibility:hidden;position:absolute;top:0px;left:0px' height="165"
data="/zcSite/faqx/edit.htmll" viewastext type="text/x-scriptlet"></object>
                <script> 
                    var buff; 
                    var buffRTE; 
                    buff="0-1-4";
                    buffRTE="0-1-4-dynamsg";
                </script>
              </div>
<a href="javascript:changeToRichText('0-1-4','0-1-4-dynamsg')"><font size=-1>Change to Rich Text</font></a>
 
<a href="javascript:changeToOrdText('0-1-4','0-1-4-dynamsg')"><font size=-1>Change to Ordinary Text</font></a>
 
Back to Rich Text Editor