Article information Article relates to RadEditor, RadEditor "Prometheus" Created by Rumen, Telerik Last modified January 29, 2008 Last modified by Georgi Popivanov, Telerik HOW-TO Restrict custom font colors and sizes within the RadEditor's 5.x - 7.x and RadEditor's "Prometheus" dropdowns
Article information
Article relates to
RadEditor, RadEditor "Prometheus"
Created by
Rumen, Telerik
Last modified
January 29, 2008
Last modified by
Georgi Popivanov, Telerik
SOLUTION /RadEditor 5.x - 7.x/ You can very easily populate the color dropdowns with your own custom colors via the editor's ToolsFile.xml, as shown in the example below: <colors> <color value="#FF00EE" /> <color value="red" /> <color value="green" /> <color value="blue" /> </colors>
You can remove some values from the Font Size dropdown by predefining again the Font Size dropdown by using the ToolsFile, i.e.
You can very easily populate the color dropdowns with your own custom colors via the editor's Colors property, as shown in the example below: <telerik:RadEditor ID="RadEditor1" runat="server"> <Colors> <telerik:EditorColor Title="red" Value="red" /> <telerik:EditorColor Title="green" Value="green" /> <telerik:EditorColor Title="blue" Value="blue" /> </Colors> </telerik> You can remove some values from the Font Size dropdown by predefining again the Font Size dropdown by using the editor's FontSizes property, i.e.
You can remove some values from the Font Size dropdown by predefining again the Font Size dropdown by using the editor's FontSizes property, i.e.
The code above will regenerate the Font Size with the following three custom sizes '1', '5', '7'. Please note that the dropdown list height is hardcoded. For example if you add more to the existing ones a scroll bar will appear, but if you leave only 1 the initial height will remain the same and the unused space will remain empty. You can find more information on how to populate programmatically the editor's dropdowns in the following examples: - RadEditor Classic Server-Side API. - RadEditor "Prometheus" Server-Side API.
Resources Buy Try