Re: How can i return what the BreakElement is in JS (Javascript)

  •  07-21-2010, 9:10 PM

    Re: How can i return what the BreakElement is in JS (Javascript)

    Hi mreric,
     
    Try
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5. <html xmlns="http://www.w3.org/1999/xhtml">   
    6. <head id="Head1" runat="server">   
    7.     <title>Untitled Page</title>   
    8. </head>   
    9. <body>   
    10.     <form id="form1" runat="server">   
    11.         <CE:Editor ID="Editor1" runat="server" BreakElement="P">   
    12.         </CE:Editor>   
    13.         <input type="button" value="show break element" onclick="showBreakElement()" />   
    14.     </form>   
    15. </body>   
    16. </html>   
    17.   
    18. <script>   
    19. function showBreakElement()   
    20. {   
    21.     alert("<%= Editor1.BreakElement %>");   
    22. }   
    23. </script>  
    Regards,
     
    ken
View Complete Thread