All Components
Change Theme

SASS Themes (beta)

    LESS Themes

      SASS Theme Builder

      Create new or customize SASS themes
      Launch Theme Builder

      Editor / Custom tools

      Information

      The following demo shows 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.

      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.

      HTML5/JavaScript source

      Also available for:

      API Reference
      • custom-tools.html
      • Widget configuration

      Support & learning resources

      Editor for other technologies