I have produced the following code sample:
After clicking the button in the second tab and then clicking back to the first tab, the formatting of the Editor gets completely messed up. Is there an easy way to fix this? Note that I have to include the empty
part of my code so that my master css file doesn't overwrite the css of the editor.
Thanks in advance,
Ben
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="exampleForTelerik._Default" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> |
| <asp:UpdatePanel ID="updatePanel1" runat="server"> |
| <ContentTemplate> |
| <ajax:TabContainer runat="server" ID="tc"> |
| <ajax:TabPanel runat="server" ID="tpGeneralInformation" HeaderText="General Information"> |
| <ContentTemplate> |
| <telerik:RadEditor ID="edHeaderText" runat="server" EnableEmbeddedBaseStylesheet="true" Width="700px" ><CssFiles><telerik:EditorCssFile Value="" /></CssFiles></telerik:RadEditor> |
| </ContentTemplate> |
| </ajax:TabPanel> |
| <ajax:TabPanel runat="server" ID="tpSubmission" HeaderText="Submission"> |
| <ContentTemplate> |
| <asp:Button runat="server" Text="Press me" /> |
| </ContentTemplate> |
| </ajax:TabPanel> |
| </ajax:TabContainer> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| </form> |
| </body> |
| </html> |
After clicking the button in the second tab and then clicking back to the first tab, the formatting of the Editor gets completely messed up. Is there an easy way to fix this? Note that I have to include the empty
| <CssFiles><telerik:EditorCssFile Value="" /></CssFiles> |
Thanks in advance,
Ben
