Start the Editor in Html View

2 posts, 0 answers
  1. Rachael
    Rachael avatar
    27 posts
    Member since:
    Jul 2010

    Posted 08 May 2013 Link to this post

    Is there a way to start the editor in Html view and not Design view?
  2. Rumen
    Admin
    Rumen avatar
    13849 posts

    Posted 10 May 2013 Link to this post

    Hello,

    You can load the editor in the HTML mode on page load with this code:

    <telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad">
    <Content>Sample Content</Content>
    </telerik:RadEditor>
    <script type="text/javascript">
    function OnClientLoad(editor, args) {
      setTimeout(function()
      {
         editor.set_mode(2);
      }, 100);
    }
    </script>


    Kind regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top