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

changing editor mode to preview mode

1 Answer 39 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sigma
Top achievements
Rank 1
Sigma asked on 22 Oct 2012, 11:35 AM
hii,
how can i change the editor mode to preview mode in the client
side?

thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Oct 2012, 12:24 PM
Hi Sigma,

Try the following code snippet to change the RadEditor mode.

ASPX:
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" OnClientClick="OnClientClick()" />

JS:
<script type="text/javascript">
    function OnClientClick() {
        var editor = $find("<%= RadEditor1.ClientID %>");
        editor.set_mode(4);
    }
</script>

Hope this helps.

Regards,
Shinu.
Tags
Editor
Asked by
Sigma
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or