How to change to Preview mode by default for red editorr

3 posts, 1 answers
  1. Sandy
    Sandy avatar
    7 posts
    Member since:
    Aug 2012

    Posted 23 Aug 2012 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Aug 2012 Link to this post

    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.
  3. Sandy
    Sandy avatar
    7 posts
    Member since:
    Aug 2012

    Posted 23 Aug 2012 Link to this post

    Thanks Shinu...
Back to Top