# Editor Custom Tools

The [Blazor Editor](https://www.telerik.com/blazor-ui/editor) component lets you add custom tools to its [toolbar](https://www.telerik.com/blazor-ui/documentation/components/editor/toolbar). In those tools, you can use both the [built-in tools and commands](https://www.telerik.com/blazor-ui/documentation/components/editor/built-in-tools) the editor provides, and also your own custom logic.

In this article:

* [Basics](https://www.telerik.com/blazor-ui/documentation/components/editor/custom-tools#basics)
* [Examples](https://www.telerik.com/blazor-ui/documentation/components/editor/custom-tools#examples)
  * [Change the Value](https://www.telerik.com/blazor-ui/documentation/components/editor/custom-tools#change-the-value)
  * [Use Editor Commands](https://www.telerik.com/blazor-ui/documentation/components/editor/custom-tools#use-editor-commands)
  * [Save Command](https://www.telerik.com/blazor-ui/documentation/components/editor/custom-tools#save-command)

## Basics

To create a custom tool:

1. Make sure your Editor has the `<EditorCustomTools>` tag.

2. Under it, add an `<EditorCustomTool>` tag and set its `Name` parameter to something you can use to distinguish this tool. You can add more than one custom tool in the Editor.

3. Inside that tag, add your custom content (e.g., buttons, dropdowns, etc.) with their desired rendering, data, logic, event handlers.

4. [Add the custom tool to the Editor toolbar via the `Tools` collection](https://www.telerik.com/blazor-ui/documentation/components/editor/toolbar#choose-toolbar-items). You can add the custom tools in the desired order and position, regardless of their order in the markup. Custom tools can be added as standalone tools only, not inside an `EditorButtonGroup`.

5. Manipulate the editor content as desired from the custom content events (like clicks) - either through the [editor commands](https://www.telerik.com/blazor-ui/documentation/components/editor/built-in-tools), or with your own code that manipulates its `Value` field contents.

For a custom hyperlink dialog, see [Replace the CreateLink Tool](https://www.telerik.com/blazor-ui/documentation/knowledge-base/editor-custom-create-link-tool). The browser owns the current text selection, so preserve the selection before opening the custom dialog if the command has to apply to selected text. For more information, see [getting the selected content from the Editor](https://www.telerik.com/blazor-ui/documentation/knowledge-base/editor-get-selection).

## Examples

When [choosing which Editor tools to render](https://www.telerik.com/blazor-ui/documentation/components/editor/toolbar#choose-toolbar-items), it is possible to [create a tools collection from scratch](https://www.telerik.com/blazor-ui/documentation/components/editor/toolbar#create-a-toolbar-from-scratch) or [append additional tools to a preset collection](https://www.telerik.com/blazor-ui/documentation/components/editor/toolbar#add-remove-tools-from-existing-toolbar).

In this section you can find the following examples:

* [Change the Value](https://www.telerik.com/blazor-ui/documentation/components/editor/custom-tools#change-the-value)
* [Use Editor Commands](https://www.telerik.com/blazor-ui/documentation/components/editor/custom-tools#use-editor-commands)
* [Save Command](https://www.telerik.com/blazor-ui/documentation/components/editor/custom-tools#save-command)

### Change the Value

> caption Custom tool that manipulates the Value to add a signature at the end

<demo metaUrl="client/editor/custom-tools/change-value/" height="400"></demo>

### Use Editor Commands

> caption Custom Tool that uses the editor commands to alter the selected content

<demo metaUrl="client/editor/custom-tools/use-editor-commands/" height="400"></demo>

### Save Command

You can call application code from the editor tools to, for example, save the current content.

<demo metaUrl="client/editor/custom-tools/save-command/" height="400"></demo>



## See Also

* [Editor Overview](https://www.telerik.com/blazor-ui/documentation/components/editor/overview)
* [Built-in Tools](https://www.telerik.com/blazor-ui/documentation/components/editor/built-in-tools)
* [Toolbar](https://www.telerik.com/blazor-ui/documentation/components/editor/toolbar)
