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

Add Icons or Images to Custom Editor Tools


Product Progress® Kendo UI® Editor for jQuery
Operating System Windows 10 64bit
Visual Studio Version Visual Studio 2017
Preferred Language JavaScript


How can I add an item or an image to a custom Editor 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 the background. */

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

  /* Using a FontAwesome icon for the 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