I need to reset (clear) the text area of Rad Editor (contained in a MOSS template) from Javascript.
<radE:RadHtmlField ID="RadEditorText2E" FieldName="AMCText2XHTML" runat="server" AllowFonts="False" AllowHtmlSourceEditing="True" DisplayHeight="400px" DisplayWidth="430px" DisableCustomStyles="True"/>
I have found this info in a thread:
<rade:radEditor id= "RadEditor1" runat= "server"></rade:radEditor>
var editor = <%=RadEditor1.ClientID %>; //get a reference
editor.SetHtml("");
But this does not work with MOSS - how could it -
<%=RadEditorText2E.ClientID %> returns a string. How can I get the necessary reference. And what kind of object does the reference point to. I can get a reference to the text area HTML element: <textarea style='display:none' id='RadEContentHiddenTextareactl00_PlaceHolderMain_TextPanel2E_RadEditorText2E_ctl00' .....
But clearing the value of this text area does not work.
Thank you in advance for help.
Regards,
Hugo
<radE:RadHtmlField ID="RadEditorText2E" FieldName="AMCText2XHTML" runat="server" AllowFonts="False" AllowHtmlSourceEditing="True" DisplayHeight="400px" DisplayWidth="430px" DisableCustomStyles="True"/>
I have found this info in a thread:
<rade:radEditor id= "RadEditor1" runat= "server"></rade:radEditor>
var editor = <%=RadEditor1.ClientID %>; //get a reference
editor.SetHtml("");
But this does not work with MOSS - how could it -
<%=RadEditorText2E.ClientID %> returns a string. How can I get the necessary reference. And what kind of object does the reference point to. I can get a reference to the text area HTML element: <textarea style='display:none' id='RadEContentHiddenTextareactl00_PlaceHolderMain_TextPanel2E_RadEditorText2E_ctl00' .....
But clearing the value of this text area does not work.
Thank you in advance for help.
Regards,
Hugo