New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Telerik UI for ASP.NET MVC Editor Custom Tools

Loading Demo...

Also available for:



This example shows how to customize some of the native Editor tools (font size, font name and block format) by modifying the tools' item collections, as well as how to create completely custom tools (Content Area Background Color and Insert a Horizontal Ruler).

You can use the Add method of the FontName, FontSize and Formatting settings to modify the default font size, font name and formatblock options set.

To add a new custom button on the toolbar: set the Tools -> CustomButton:

.CustomButton(cb => cb.Name("custom").ToolTip("horizontal rule").Exec("execFunction"))

Where the Exec param should be the name of a JavaScript function that will be fired when the custom button is clicked.

If you want to create a custom dropdown with a label next to it, you can set the Tools -> CustomTemplate and specify the HTML markup that will be rendered on the toolbar.

This Editor example is part of unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC components and their features in action. View the source code of the demos from the library or directly adapt andedit their theme appearance in their theme appearance in the ThemeBuilder.

Support & Learning Resources

Additional Resources