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

[Solved] RadEditor Custom DropDown

3 Answers 178 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tik
Top achievements
Rank 1
Tik asked on 26 May 2008, 11:53 AM
Hi forum members!!!

I want to know. How can I set EditorDropDown item value.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 May 2008, 03:41 PM
Hi Tik,

Here is an example demonstrating how to change the dropdown header text of the FormatBlock dropdown with yours:

<telerik:radeditor runat="server" OnClientLoad="ChangeText" ID="RadEditor1"></telerik:radeditor>

<script type="text/javascript">
function ChangeText(editor, args)
{
    var dropdown = editor.getToolByName("FormatBlock"); //put here the name of the dropdown which you want to customize
    var headerText = dropdown.get_element();
    headerText.firstChild.title  = "test";
    headerText.firstChild.innerHTML  = "test";
}
</script>


Greetings,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tik
Top achievements
Rank 1
answered on 27 May 2008, 07:31 AM
Hi.

And now I have problem with this one.
If it isn't make any difficulty for you can you tell me, how can I put any
custom controls on my EditorToolbar(for example checkbox),
as I understand it isn't possible to do it besides dropdown and button.

Thank you for help.
0
Tervel
Telerik team
answered on 27 May 2008, 12:56 PM
Hello Tik,

It is not possible to add arbitrary controls on the editor toolbar. What you should do is perhaps add those just on top of the editor, so they are near it, but not a part of it.

Greetings,
Tervel
the Telerik team

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