New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core Editor Custom Tools
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
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.