New to Kendo UI for jQuery? Download free 30-day trial

Custom tools

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • custom-tools.html

Also available for:

API REFERENCE

Description

This example illustrates 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 .concat() method for JavaScript arrays to modify the fontName, fontSize and Formatting settings.

To add a new custom action item to the toolbar set the template option of the editor tool item.

To execute a custom command when it is pressed, set the exec attribute to point to a JavaScript function that will be fired when the custom button is clicked.

Support & Learning Resources