Hi Kai2,
Please try the example below, it will save the editor content every 5 seconds. Change 5000 to 60000 is 1 minute.
- <%@ Page Language="C#" %>
-
- <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
- <html>
- <head>
- <title>example </title>
- </head>
-
- <script runat="server">
-
- protected void btn_save_Click(object sender, EventArgs e)
- {
-
- tbContent.Text = Editor1.Text;
- }
- </script>
-
- <body>
- <form id="Form1" runat="server">
- <CE:Editor ID="Editor1" runat="server" EnableStripScriptTags="false">
- </CE:Editor>
- <asp:Button ID="btn_save" runat="server" Style="visibility: hidden" OnClick="btn_save_Click" /><br />
- <asp:TextBox ID="tbContent" runat="server" TextMode="multiLine" Rows="10" Width="600px"></asp:TextBox>
- </form>
- </body>
- </html>
-
- <script>
-
-
- setTimeout(saveContent,5000);
- function saveContent()
- {
- var btn_save=document.getElementById("<%= btn_save.ClientID %>");
- btn_save.click();
- }
- </script>
Regards,
Ken