Hi,
I tested your code and yes it works.
But my snippet doesn't work:
- <%@ Page Language="C#" AutoEventWireup="true" Inherits="V3.testCE" ValidateRequest="false" %>
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
- <html>
- <head>
- <title>ASP and ASP.NET WYSIWYG Editor - Edit Static Html Example </title>
- </head>
- <body>
- <form id="Form1" runat="server">
- <table>
- <tr>
- <td valign="top" width="750">
- <CE:Editor ID="Editor1" runat="server" Width="771px" Height="188px" AutoConfigure="Minimal"
- BreakElement="Br" UseHTMLEntities="False"
- AutoParseClasses="false" EditorWysiwygModeCss="example.css" EditorBodyClass="ceBackground" >
- </CE:Editor>
- <br />
- <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button><br />
- <asp:TextBox id="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="730px" Font-Name="Arial"></asp:TextBox>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
-
- <script runat="server">
- void Page_Load(object sender, System.EventArgs e)
- {
- if (IsPostBack)
- {
- Editor1.SaveFile("document.htm");
- textbox1.Text = Editor1.Text;
- }
- else
- {
- Editor1.LoadHtml("document.htm");
- }
- }
- public void Submit(object sender, System.EventArgs e)
- {
- Editor1.SaveFile("document.htm");
- textbox1.Text = Editor1.Text;
- }
- </script>
On IE9, if you click on submit, the text is not saved. But if you change the thumbnail to HTML or Preview before clicking to Submit, it will works.
Second issue, if you set the "ceBackground" class in example.css with the property "background:#ff0000;" for example, you will see that IE9 doesn't apply the style BUT IE7 do it...
Could you please check the problem?
Laurent