I am using TinyMCE Editor Extender and trying to show the text on clicking on datalist(its in other updatepanel1, updatemode=Conditional) Item Template button click, I am using textbox and extender inside updatepanel2 when I am selecting an item, text is getting lost when page is loading its working fine I am able to see the text as I am selecting the item text is getting disable. I am using mode:exact, I can't change it into textarea.
I tried with http://www.tinymce.com/forum/viewtopic.php?id=6034 but its working only for textarea.
how to make it working with exact mode. Someone please give some solution.
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="txb1" runat="server"></asp:TextBox><br />
<ext:TinyMceExtender runat="server" ID="TinyMceExtender1" TargetControlID="txb1"Theme="FullWithImage"></ext:TinyMceExtender>
</ContentTemplate>
</asp:UpdatePanel>
when i'm using only..
ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "init", "tinyMCE.execCommand('mceAddControl', false, '" + txb1.ClientID + "');", true);
then text is not getting lost but next item text is not showing, and when i am adding updatepanel2.update(); with it then again onload(for the first time), text is showing but as I am clicking on datalist item text is lost.
Plz someone help me..
hurera1111
Member
175 Points
104 Posts
TinyMCE Editor text is not showing while using it in Update Panel
Mar 15, 2012 11:03 AM|LINK
I am using TinyMCE Editor Extender and trying to show the text on clicking on datalist(its in other updatepanel1, updatemode=Conditional) Item Template button click, I am using textbox and extender inside updatepanel2 when I am selecting an item, text is getting lost when page is loading its working fine I am able to see the text as I am selecting the item text is getting disable. I am using mode:exact, I can't change it into textarea. I tried with http://www.tinymce.com/forum/viewtopic.php?id=6034 but its working only for textarea. how to make it working with exact mode. Someone please give some solution. <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:TextBox ID="txb1" runat="server"></asp:TextBox><br /> <ext:TinyMceExtender runat="server" ID="TinyMceExtender1" TargetControlID="txb1"Theme="FullWithImage"></ext:TinyMceExtender> </ContentTemplate> </asp:UpdatePanel> when i'm using only.. ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "init", "tinyMCE.execCommand('mceAddControl', false, '" + txb1.ClientID + "');", true); then text is not getting lost but next item text is not showing, and when i am adding updatepanel2.update(); with it then again onload(for the first time), text is showing but as I am clicking on datalist item text is lost. Plz someone help me..