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

Start the Editor in Html View

1 Answer 26 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rachael
Top achievements
Rank 1
Rachael asked on 08 May 2013, 06:52 PM
Is there a way to start the editor in Html view and not Design view?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 10 May 2013, 12:02 PM
Hello,

You can load the editor in the HTML mode on page load with this code:

<telerik:RadEditor runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad">
<Content>Sample Content</Content>
</telerik:RadEditor>
<script type="text/javascript">
function OnClientLoad(editor, args) {
  setTimeout(function()
  {
     editor.set_mode(2);
  }, 100);
}
</script>


Kind regards,
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
Rachael
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or