Hi Bloodcarver,
Please create the page with the code below and send me the page url. So I can test it directly. and please test it with your IE 8 browser too. Try click on the "save" button, does it get the content correct? Does it remove the doctype section?
- <%@ Page Language="C#" ValidateRequest="false" %>
-
- <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
- <!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>example</title>
- </head>
-
- <script runat="server">
- protected override void OnLoad(EventArgs e)
- {
- editor1.DOCTYPE = @"<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">";
- base.OnLoad(e);
- }
-
- protected void btnSave_Click(object sender, EventArgs e)
- {
- TextBxo1.Text = editor1.Text;
- }
- </script>
-
- <body>
- <form id="form1" runat="server">
- <CE:Editor ID="editor1" runat="server" EditCompleteDocument="true">
- </CE:Editor>
- <asp:Button ID="btnSave" runat="server" Text="save" OnClick="btnSave_Click" />
- <br />
- <asp:TextBox ID="TextBxo1" runat="server" TextMode="multiline" Rows="15" Width="800"></asp:TextBox>
- </form>
- </body>
- </html>
Regards,
Ken