@Krupski: I want to toggle between "read only" and "editable"
@stefanw: Thank you for your help, but I still did not succeed in fixing this.
My textarea html is like the following:
<asp:TextBox ID="elm1" Width="100%" Rows="60" runat="server" TextMode="MultiLine"></asp:TextBox>
I created the following two javascript functions
function Hide() {
tinymce.get('elm1').hide();
}
function Show() {
tinymce.get('elm1').show();
}
and created two anchors
<a href="#" onclick="Hide();">Hide</a>
<a href="#" onclick="Show();">Show</a>
when I use the mcRemoveControl and mceAddControl functions in the functions, nothing happens but when I use the show and hide, it gives me an error that it cannot convert 'tinymce.get('elm1')' to object.
any help please?
thank you