Hi jlclavijo,
By default, the "save" button will not save file to anywhere.
You can handle the save logic in method "PostBackCommand". This method will be triggered after you click on the "Save" button.
Below is an example to show you how to save the content as a file.
- <%@ Page Language="C#" Debug="true" %>
-
- <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
- <!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 id="Head1" runat="server">
- <title>Untitled Page</title>
-
- <script runat="server">
- protected void Editor1_PostBackCommand(object sender, CommandEventArgs e)
- {
- Editor1.SaveFile("~/myFile.txt");
- }
- </script>
-
- </head>
- <body>
- <form id="form1" runat="server">
- <CE:Editor ID="Editor1" runat="server" OnPostBackCommand="Editor1_PostBackCommand">
- </CE:Editor>
- </form>
- </body>
- </html>
Regards,
Ken