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

update default Edit mode to HTML

1 Answer 57 Views
Editor
This is a migrated thread and some comments may be shown as answers.
mkerchenski
Top achievements
Rank 1
mkerchenski asked on 21 Nov 2012, 02:57 PM
is there a way to make default Edit mode HTML View 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Nov 2012, 04:26 PM
Hello,

You can programmatically switch to HTML mode that by firing the set_mode method:

<script type="text/javascript">
function OnClientLoad(editor, args)
{
    editor.set_mode(2);
}
</script>
<telerik:radeditor runat="server" id="RadEditor1" OnClientLoad="OnClientLoad"></telerik:radeditor>

function set_mode (value)

value: 1 integer Sets RadEditor for ASP.NET AJAX in Design mode
value: 2 integer Sets RadEditor for ASP.NET AJAX in Html mode
value: 4 integer Sets RadEditor for ASP.NET AJAX in Preview mode


All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
mkerchenski
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or