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

Custom Drop Down Menus

1 Answer 84 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Greg Duffield
Top achievements
Rank 1
Greg Duffield asked on 23 Nov 2007, 04:43 PM
Can you please advise if it is possible to add Custom Dropdown menu's to the editor toolbar(s). I appreciate that you can add a Custom Links tool etc but what I would like to do is add a new dropdown called "Placeholders" and in this i want to be able to display a field name (such as Full Name) and if this item is selected I want to insert [[FullName]] into the content at the point the cursor it.

The snippets option is the closest i can find, but I cannot see how to change the mnu name from Snippets (or Custom Links) to something more end user friendly.

You help/advise would be appreciated.

Many Thanks

Greg

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Nov 2007, 09:47 AM
Hi Greg,

You can localize the insert Custom Link dropdown by using the Localization property of RadEditor:

        RadEditor1.Localization.Tools.InsertCustomLink = "Placeholders";

However, it is not possible currently to change the localization string of the Insert Snippet dropdown. This is in our ToDo list for the upcoming hotfixes of RadEditor "Prometheus".

For your convenience I have made and attached an example with a custom dropdown. You can use the solution to implement your dropdown scenario.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Greg Duffield
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or