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

How to change to Preview mode by default for red editorr

2 Answers 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sandy
Top achievements
Rank 1
Sandy asked on 23 Aug 2012, 06:31 AM
Hi,

I want to change the mode to preview mode instead of design mode in the run time.

How can i do this. What is the property to change this mode.


Thanks,
Sandy

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 23 Aug 2012, 09:40 AM
Hi Sandy,

You can set the mode of RadEditor as follows.

Javascript:
<script type="text/javascript">
 function OnClientLoad(editor, args)
 {
  editor.set_mode(4); // set editor in preview mode
 }
</script>

Hope this helps.

Thanks,
Shinu.
0
Sandy
Top achievements
Rank 1
answered on 23 Aug 2012, 09:48 AM
Thanks Shinu...
Tags
Editor
Asked by
Sandy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Sandy
Top achievements
Rank 1
Share this question
or