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

Design and Preview Options

1 Answer 51 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 12 Nov 2008, 09:05 PM
Is it possible to remove the design and preview options at the bottom because I don't want my users to change it. I would like to change those options on the fly based on the permission that I gave my users.
So if my user has read permission, they'll only see preview otherwise just the design option.

I want this done in javascript so my control is being set on the fly.

I used set_mode but the problem is that if I only specify design option during initialization, I can't change it anymore to preview mode. So I have to include design and preview during initialization.

Thanks for your reply before.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 17 Nov 2008, 08:45 AM
Hi Jason,

RadEditor offers only server-side API (EditModes enum property) for displaying and hiding the Design, Html and Preview mode buttons. Please, see the following live example for more information: Edit Modes.

If you would like to hide these buttons on the client, you should get a reference to the $get(editor.get_id() + "_ModesWrapper") DIV element and using the DOM to hide the respected LI element representing the mode button.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Jason
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or