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

ASP.NET Core Editor Custom Tools

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
custom_tools.cshtml
Custom_ToolsController.cs
Custom_Tools_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

This example shows how to customize some of the native Telerik UI for ASP.NET Core Editor tools, such as font size, font name, and block format, by modifying the item collections of the tool, as well as how to create completely custom tools, such as a 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 has to be the name of a JavaScript function that will be fired when the custom button is clicked.

To create a custom drop-down with a label next to it, set the Tools CustomTemplate and specify the HTML markup that will be rendered on the toolbar.

Additional Apps

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

Support & Learning Resources

Additional Resources