# EditorToolFactory

## Properties

### Editor - [Editor](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/editor)

StyleSheets member.

## Methods

### CustomButton(System.Action)

Adds a custom button tool.

#### Parameters

##### configurator - System.Action<[EditorToolBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolbuilder)>

The action which configures the custom button tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

#### Example

```
 
             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .CustomButton(x => x
                       .Name("custom")
                       .ToolTip("Insert a horizontal rule")
                       .Exec(@<text>
                           function(e) {
                               var editor = $(this).data("kendoEditor");
                               editor.exec("inserthtml", { value: "<hr />" });
                           }
                       </text>)
                    )
               )
             )
             
```

### CustomTemplate(System.Action)

Adds a custom template tool.

#### Parameters

##### configurator - System.Action<[EditorToolBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolbuilder)>

The action which configures the custom template tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

#### Example

```
 
             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .CustomTemplate(x => x.Template("<button class='k-button'>Save draft</button>"))
               )
             )
             
```

### FormatPainter()

Adds FormatPainter tools (Copy and Apply format).

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

#### Example

```
 
             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .FormatPainter()
               )
             )
             
```

### Import()

Adds Import tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

#### Example

```
 
             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .Import()
               )
             )
             
```

### ExportAs()

Adds ExportAs tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

#### Example

```
 
             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .ExportAs()
               )
             )
             
```

### ExportAs(System.Action)

Adds ExportAs tool.

#### Parameters

##### configurator - System.Action<[EditorDropDownItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editordropdownitembuilder)>

The action which configures the ExportAs tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

#### Example

```
 
             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .ExportAs(exportAs => {
                        exportAs.Add("PDF", "1");
                        exportAs.Add("HTML", "2");
                    })
               )
             )
             
```

### Bold()

Adds "Bold" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### CleanFormatting()

Adds "CleanFormatting" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### CreateLink()

Adds "CreateLink" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Indent()

Adds "Indent" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### InsertFile()

Adds "InsertFile" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### InsertImage()

Adds "InsertImage" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### InsertOrderedList()

Adds "InsertOrderedList" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### InsertUnorderedList()

Adds "InsertUnorderedList" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### InsertUpperRomanList()

Adds "InsertUpperRomanList" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### InsertLowerRomanList()

Adds "InsertLowerRomanList" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Italic()

Adds "Italic" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### JustifyCenter()

Adds "JustifyCenter" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### JustifyFull()

Adds "JustifyFull" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### JustifyLeft()

Adds "JustifyLeft" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### JustifyRight()

Adds "JustifyRight" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Outdent()

Adds "Outdent" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Pdf()

Adds "Pdf" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Print()

Adds "Print" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Redo()

Adds "Redo" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Separator()

Adds "Separator" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Strikethrough()

Adds "Strikethrough" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### SubScript()

Adds "SubScript" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### SuperScript()

Adds "SuperScript" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Underline()

Adds "Underline" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Undo()

Adds "Undo" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Unlink()

Adds "Unlink" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### ViewHtml()

Adds "ViewHtml" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### FormattingMarks()

Adds "FormattingMarks" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### BackColor()

Adds "BackColor" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### BackColor(System.Action)

Adds "BackColor" tool.

#### Parameters

##### configurator - System.Action<[EditorToolBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolbuilder)>

The configurator for the BackColor tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### ForeColor()

Adds "ForeColor" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### ForeColor(System.Action)

Adds "ForeColor" tool.

#### Parameters

##### configurator - System.Action<[EditorToolBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolbuilder)>

The configurator for the ForeColor tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### FontName()

Adds "FontName" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### FontName(System.Action)

Adds "FontName" tool.

#### Parameters

##### configurator - System.Action<[EditorToolItemFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolitemfactory)>

The configurator for the FontName tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### FontSize()

Adds "FontSize" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### FontSize(System.Action)

Adds "FontSize" tool.

#### Parameters

##### configurator - System.Action<[EditorToolItemFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolitemfactory)>

The configurator for the FontSize tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Formatting()

Adds "FormattingMarks" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Formatting(System.Action)

Adds "Formatting" tool.

#### Parameters

##### configurator - System.Action<[EditorToolItemFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolitemfactory)>

The configurator for the Formatting tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Snippets()

Adds "Snippets" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Snippets(System.Action)

Adds "Snippets" tool.

#### Parameters

##### configurator - System.Action<[EditorToolItemFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolitemfactory)>

The configurator for the Snippets tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### LineHeight()

Adds "LineHeight" tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### LineHeight(System.Action)

Adds "LineHeight" tool.

#### Parameters

##### configurator - System.Action<[EditorToolItemFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolitemfactory)>

The configurator for the LineHeight tool.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### TableEditing()

Adds "Table editing" tools.

#### RETURNS

Returns the current [EditorToolFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolfactory) instance.

### Clear()

Remove all tools.
