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

New editor mode

1 Answer 21 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 17 Jun 2009, 03:16 PM
Hi

By default editor has 3 modes - design, html and preview. How can i add my own mode ? Let assume i would like to create editor that allows to edit email content so i would need  "plain text" mode button somewhere between html and preview buttons. I can take care of handling additional data (plain text content) but i could not find informations how to "register" new mode (fe EditModes="Design,Plain" does not work because "Plain" mode is not defined etc)

regards,
Marcin

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Jun 2009, 03:33 PM
Hi Marcin,

RadEditor does not offers out-of-the box the ability to add another View Option but you can easily create a custom toolbar button that will open another dialog which will load the editor's content as plain text. Please, see the following help article for more information: Editor in RadWindow.

You can obtain the editor's content as plain text using the editor.get_text() client-side method.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Marcin
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or