update default Edit mode to HTML

2 posts, 0 answers
  1. mkerchenski
    mkerchenski avatar
    8 posts
    Member since:
    Jun 2012

    Posted 21 Nov 2012 Link to this post

    is there a way to make default Edit mode HTML View 
  2. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 21 Nov 2012 Link to this post

    Hello,

    You can programmatically switch to HTML mode that by firing the set_mode method:

    <script type="text/javascript">
    function OnClientLoad(editor, args)
    {
        editor.set_mode(2);
    }
    </script>
    <telerik:radeditor runat="server" id="RadEditor1" OnClientLoad="OnClientLoad"></telerik:radeditor>

    function set_mode (value)

    value: 1 integer Sets RadEditor for ASP.NET AJAX in Design mode
    value: 2 integer Sets RadEditor for ASP.NET AJAX in Html mode
    value: 4 integer Sets RadEditor for ASP.NET AJAX in Preview mode


    All the best,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top