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

How to Initially load content in HTML Mode?

1 Answer 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
kensley
Top achievements
Rank 1
kensley asked on 31 Jul 2013, 02:19 PM
I have the Telerik RadEditor  editor configured as a web part within my SharePoint 2010 Enterprise environment.  When I edit a specific content section on my SharePoint page from the ribbon, and go to into the Telerik RadEditor, it automatically opens the content view in Design mode. I would it to initially open the content in HTML mode, rather than Design mode.  Is this possible? If so how?

Thanks!

1 Answer, 1 is accepted

Sort by
0
A2H
Top achievements
Rank 1
answered on 31 Jul 2013, 02:57 PM
Hello,

Please try the below implementation

1) Hook on to the ClientLoad of RadEditor
OnClientLoad="OnClientLoad"

2) Add the javascript method on client load 

function OnClientLoad(editor, args) {
         editor.set_mode(2);
     }

Please refer this link for reference

Thanks,
A2H

Tags
Editor
Asked by
kensley
Top achievements
Rank 1
Answers by
A2H
Top achievements
Rank 1
Share this question
or