EditorToolFactory

Properties

Editor - Editor

Defines the configuration options for the AI tools in the Editor.

Methods

CustomButton(System.Action)

Adds a custom button tool.

Parameters

configurator - System.Action<EditorToolBuilder>

The action which configures the custom button tool.

RETURNS

Returns the current EditorToolFactory instance.

Example

Razor
 
             @(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>

The action which configures the custom template tool.

RETURNS

Returns the current EditorToolFactory instance.

Example

Razor
 
             @(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 instance.

Example

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

Import()

Adds Import tool.

RETURNS

Returns the current EditorToolFactory instance.

Example

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

ExportAs()

Adds ExportAs tool.

RETURNS

Returns the current EditorToolFactory instance.

Example

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

ExportAs(System.Action)

Adds ExportAs tool.

Parameters

configurator - System.Action<EditorDropDownItemBuilder>

The action which configures the ExportAs tool.

RETURNS

Returns the current EditorToolFactory instance.

Example

Razor
 
             @(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 instance.

CleanFormatting()

Adds "CleanFormatting" tool.

RETURNS

Returns the current EditorToolFactory instance.

Adds "CreateLink" tool.

RETURNS

Returns the current EditorToolFactory instance.

Indent()

Adds "Indent" tool.

RETURNS

Returns the current EditorToolFactory instance.

InsertFile()

Adds "InsertFile" tool.

RETURNS

Returns the current EditorToolFactory instance.

InsertImage()

Adds "InsertImage" tool.

RETURNS

Returns the current EditorToolFactory instance.

InsertOrderedList()

Adds "InsertOrderedList" tool.

RETURNS

Returns the current EditorToolFactory instance.

InsertUnorderedList()

Adds "InsertUnorderedList" tool.

RETURNS

Returns the current EditorToolFactory instance.

InsertUpperRomanList()

Adds "InsertUpperRomanList" tool.

RETURNS

Returns the current EditorToolFactory instance.

InsertLowerRomanList()

Adds "InsertLowerRomanList" tool.

RETURNS

Returns the current EditorToolFactory instance.

Italic()

Adds "Italic" tool.

RETURNS

Returns the current EditorToolFactory instance.

JustifyCenter()

Adds "JustifyCenter" tool.

RETURNS

Returns the current EditorToolFactory instance.

JustifyFull()

Adds "JustifyFull" tool.

RETURNS

Returns the current EditorToolFactory instance.

JustifyLeft()

Adds "JustifyLeft" tool.

RETURNS

Returns the current EditorToolFactory instance.

JustifyRight()

Adds "JustifyRight" tool.

RETURNS

Returns the current EditorToolFactory instance.

Outdent()

Adds "Outdent" tool.

RETURNS

Returns the current EditorToolFactory instance.

Pdf()

Adds "Pdf" tool.

RETURNS

Returns the current EditorToolFactory instance.

Print()

Adds "Print" tool.

RETURNS

Returns the current EditorToolFactory instance.

Redo()

Adds "Redo" tool.

RETURNS

Returns the current EditorToolFactory instance.

Separator()

Adds "Separator" tool.

RETURNS

Returns the current EditorToolFactory instance.

Strikethrough()

Adds "Strikethrough" tool.

RETURNS

Returns the current EditorToolFactory instance.

SubScript()

Adds "SubScript" tool.

RETURNS

Returns the current EditorToolFactory instance.

SuperScript()

Adds "SuperScript" tool.

RETURNS

Returns the current EditorToolFactory instance.

Underline()

Adds "Underline" tool.

RETURNS

Returns the current EditorToolFactory instance.

Undo()

Adds "Undo" tool.

RETURNS

Returns the current EditorToolFactory instance.

Adds "Unlink" tool.

RETURNS

Returns the current EditorToolFactory instance.

ViewHtml()

Adds "ViewHtml" tool.

RETURNS

Returns the current EditorToolFactory instance.

FormattingMarks()

Adds "FormattingMarks" tool.

RETURNS

Returns the current EditorToolFactory instance.

BackColor()

Adds "BackColor" tool.

RETURNS

Returns the current EditorToolFactory instance.

BackColor(System.Action)

Adds "BackColor" tool.

Parameters

configurator - System.Action<EditorToolBuilder>

The configurator for the BackColor tool.

RETURNS

Returns the current EditorToolFactory instance.

ForeColor()

Adds "ForeColor" tool.

RETURNS

Returns the current EditorToolFactory instance.

ForeColor(System.Action)

Adds "ForeColor" tool.

Parameters

configurator - System.Action<EditorToolBuilder>

The configurator for the ForeColor tool.

RETURNS

Returns the current EditorToolFactory instance.

FontName()

Adds "FontName" tool.

RETURNS

Returns the current EditorToolFactory instance.

FontName(System.Action)

Adds "FontName" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

The configurator for the FontName tool.

RETURNS

Returns the current EditorToolFactory instance.

FontSize()

Adds "FontSize" tool.

RETURNS

Returns the current EditorToolFactory instance.

FontSize(System.Action)

Adds "FontSize" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

The configurator for the FontSize tool.

RETURNS

Returns the current EditorToolFactory instance.

Formatting()

Adds "FormattingMarks" tool.

RETURNS

Returns the current EditorToolFactory instance.

Formatting(System.Action)

Adds "Formatting" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

The configurator for the Formatting tool.

RETURNS

Returns the current EditorToolFactory instance.

Snippets()

Adds "Snippets" tool.

RETURNS

Returns the current EditorToolFactory instance.

Snippets(System.Action)

Adds "Snippets" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

The configurator for the Snippets tool.

RETURNS

Returns the current EditorToolFactory instance.

LineHeight()

Adds "LineHeight" tool.

RETURNS

Returns the current EditorToolFactory instance.

LineHeight(System.Action)

Adds "LineHeight" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

The configurator for the LineHeight tool.

RETURNS

Returns the current EditorToolFactory instance.

TableEditing()

Clear()

Remove all tools.