ShowPreviewToolbar not work

Last post 01-21-2013, 9:27 PM by kjell.ek. 2 replies.
Sort Posts: Previous Next
  •  01-20-2013, 5:00 PM 76699

    ShowPreviewToolbar not work

    I set in code behind:

    Editor1.ShowPreviewToolbar = false

    Editor1.ShowCodeToolbar = False

     

    But they are still there.....

  •  01-21-2013, 12:19 PM 76703 in reply to 76699

    Re: ShowPreviewToolbar not work

    Hi kjell.ek,

     

    Please try the example below. Does it work for you?

     

    1. <%@ Page Language="c#" %>  
    2.   
    3. <%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>  
    4.   
    5. <script runat="server">  
    6.      protected void Page_Load(object sender, EventArgs e)  
    7.     {  
    8.         editor1.ShowPreviewMode = false;  
    9.         editor1.ShowPreviewToolbar = false;  
    10.         editor1.ShowCodeMode = false;  
    11.         editor1.ShowCodeToolbar = false;  
    12.     }  
    13. </script>  
    14.   
    15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    16. <html xmlns="http://www.w3.org/1999/xhtml">  
    17. <head>  
    18.     <title>example</title>  
    19. </head>  
    20. <body>  
    21.     <form id="Form1" method="post" runat="server">  
    22.         <RTE:Editor ID="editor1" runat="server" />  
    23.     </form>  
    24. </body>  
    25. </html>  
     

    Regards,

     

    Ken 

  •  01-21-2013, 9:27 PM 76711 in reply to 76703

    Re: ShowPreviewToolbar not work

    Yes that works, i did not read the manual well :-)

    Sorry.....

View as RSS news feed in XML