Re: Multiple Instances of Cute Editor

  •  11-04-2010, 3:50 AM

    Re: Multiple Instances of Cute Editor

    Hi HarryV,
     
    1. Is this fairly easily doable with a licensed version of CE for one domain?
     
     yes, you just need to follow http://www.cutesoft.net/developer+guide/scr/Deployment.htm to deploy CuteEditor on your site. And then follow steps 4 to put editor into any page you need.
     
    2. If so,  what is the best way to accomplish that in ASP.net? I am planning to store the entries in a sql database, so I'll obviously have to store a unique div tag id for each unique entry so I can know where to put the data. 
     
    CuteEditor contains a "Save" button in the toolbar, you can easily to capture the SAVE button click event. like the example below.
     
    So you can store the entries separately into the database and not affect each other.
    1. <%@ Page Language="C#" AutoEventWireup="true" %>  
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5.   
    6. <script runat="server">  
    7.   
    8.     protected void editor1_PostBackCommand(object sender, CommandEventArgs e)  
    9.     {  
    10.         //save into database  
    11.         label1.Text = editor1.Text;  
    12.     }  
    13. </script>  
    14.   
    15. <html xmlns="http://www.w3.org/1999/xhtml">  
    16. <head id="Head1" runat="server">  
    17.     <title></title>  
    18. </head>  
    19. <body>  
    20.     <form id="form1" runat="server">  
    21.         <asp:Label ID="label1" runat="server"></asp:Label>  
    22.         <CE:Editor ID="editor1" runat="server" OnPostBackCommand="editor1_PostBackCommand">  
    23.         </CE:Editor>  
    24.     </form>  
    25. </body>  
    26. </html>  
     Keep me posted if you have more questions or the above info is not enough.
     
    Regards,
     
    ken 
View Complete Thread