This is a migrated thread and some comments may be shown as answers.

Preview mode by default

3 Answers 35 Views
Editor
This is a migrated thread and some comments may be shown as answers.
miksh
Top achievements
Rank 1
Iron
miksh asked on 24 Apr 2014, 08:37 PM

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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Misho
Telerik team
answered on 25 Apr 2014, 06:02 AM
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.

 
0
miksh
Top achievements
Rank 1
Iron
answered on 18 Jun 2014, 02:12 PM
If that so easy to do could you add a property to Editor to set the default view?
0
Misho
Telerik team
answered on 19 Jun 2014, 07:00 AM
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.

 
Tags
Editor
Asked by
miksh
Top achievements
Rank 1
Iron
Answers by
Misho
Telerik team
miksh
Top achievements
Rank 1
Iron
Share this question
or