On the web page I try to initialize TinyMCE for a specifice asp:textbox web control.
This is the javascript in the header:
tinyMCE.init({
mode: "exact",
elements: '<% = txtBody.ClientID %>',
The problem is that the txtBody control is generated inside template of DetailsView control:
<asp:TemplateField HeaderText="Body" SortExpression="Body">
<EditItemTemplate>
<asp:TextBox ID="txtBody" runat="server" Rows="10" TextMode="MultiLine" Width="100%" Height="400px"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
So txtBody.ClientID can't find it on the loading stage.