Preview mode by default

4 posts, 1 answers
  1. miksh
    miksh avatar
    275 posts
    Member since:
    Nov 2006

    Posted 24 Apr 2014 Link to this post

    Correct me if I'm wrong but there is no way to configure radEditor to open in Preview mode. I found a workaround a few years ago

    function OnClientLoad(editor, args) {
        setTimeout(function () {
            editor.set_mode(4);
        }, 10);
    }

     
    but that code set focus to editor control in IE9/10, i.e. if you have a long page with an editor at the bottom then when you open the page IE scrolls it to the bottom. I wonder is there better way doing it?

  2. Answer
    Misho
    Admin
    Misho avatar
    129 posts

    Posted 25 Apr 2014 Link to this post

    Hi,

    The way you could set the default editor mode to Preview is described in this help article and it looks very similar to what you have used. I've tested it and it's working as expected if no timeout is set. In this way the page doesn't seem to be scrolled to the bottom.

    I hope you will find this information  helpful.

    Best Regards,
    Misho
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. miksh
    miksh avatar
    275 posts
    Member since:
    Nov 2006

    Posted 18 Jun 2014 in reply to Misho Link to this post

    If that so easy to do could you add a property to Editor to set the default view?
  5. Misho
    Admin
    Misho avatar
    129 posts

    Posted 19 Jun 2014 Link to this post

    Hello,

    Thank you for the feedback. I've logged this feature request for future implementation in our Public Feedback portal where you could observe its status, comment and vote to raise its priority.

    Best Regards,
    Misho
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top