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

Same class aliases in Apply CSS dropdown

1 Answer 52 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Vitaliy
Top achievements
Rank 1
Vitaliy asked on 01 Nov 2012, 02:29 PM
Hi,

When I add classes with the same value attribute to the <classes> element of the "ToolsFile.xml" file, then only last one is displayed in the Apply CSS dropdown list. For example:

<classes>
        <class name="Name 1" value=".class1" />
        <class name="Name 2" value=".class1" />
</classes>

In this case there is only "Name 2" class in the list.

Is this expected behavior? And if it is, is this documented somewhere? Is there any configuration to allow displaying all classes with the same value?

Thank you in advance.

Best regards,
Vitaliy

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 02 Nov 2012, 04:21 PM
Hi,

This is by design. If you would like you can implement a custom dropdown with the desired items in it. You can fire them using the editor.fire("ApplyClass", { value: ".class1" }); method.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Vitaliy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or