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

Add Icons or Images to a Custom Tool

When you create a custom tool, it depends on the further CSS stylization whether to render an image or an icon in its appearance.

To add such visual elements, use the automatically generated class name taken from the tool and follow the k-i-[ToolName] pattern.

The following example demonstrates how to decorate your own custom tool with a background image or a FontAwesome icon.

<link href="//" rel="stylesheet">
  /* Using plain image for background */

  .k-editor .k-i-my-tool
      background: 50% 50% no-repeat url(;

  /* Using FontAwesome icon for background */

  .k-editor .k-i-my-second-tool:before
      font-family: FontAwesome;
      content: "\f09e";

<textarea id="editor" rows="10" cols="30" style="width:100%;height:400px">

        tools: [ "bold", "italic", "underline",
                    name: "myTool",
                    tooltip: "My tool",
                    exec: function(e) {
                        // My code.
                    name: "mySecondTool",
                    tooltip: "My second tool",
                    exec: function(e) {
                        // My code.

See Also

In this article
Not finding the help you need? Improve this article