EditorToolFactory

Properties

Editor - Editor

Disables the rerendering of the formatting marks.

Methods

CustomButton(System.Action)

Adds a custom button tool.

Parameters

configurator - System.Action<EditorToolBuilder>

The action which configures the custom button tool.

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.

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).

Example

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

Import()

Adds Import tool.

Example

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

ExportAs()

Adds ExportAs tool.

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.

Example

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

Bold()

Adds "Bold" tool.

CleanFormatting()

Adds "CleanFormatting" tool.

Adds "CreateLink" tool.

Indent()

Adds "Indent" tool.

InsertFile()

Adds "InsertFile" tool.

InsertImage()

Adds "InsertImage" tool.

InsertOrderedList()

Adds "InsertOrderedList" tool.

InsertUnorderedList()

Adds "InsertUnorderedList" tool.

InsertUpperRomanList()

Adds "InsertUpperRomanList" tool.

InsertLowerRomanList()

Adds "InsertLowerRomanList" tool.

Italic()

Adds "Italic" tool.

JustifyCenter()

Adds "JustifyCenter" tool.

JustifyFull()

Adds "JustifyFull" tool.

JustifyLeft()

Adds "JustifyLeft" tool.

JustifyRight()

Adds "JustifyRight" tool.

Outdent()

Adds "Outdent" tool.

Pdf()

Adds "Pdf" tool.

Print()

Adds "Print" tool.

Redo()

Adds "Redo" tool.

Separator()

Adds "Separator" tool.

Strikethrough()

Adds "Strikethrough" tool.

SubScript()

Adds "SubScript" tool.

SuperScript()

Adds "SuperScript" tool.

Underline()

Adds "Underline" tool.

Undo()

Adds "Undo" tool.

Adds "Unlink" tool.

ViewHtml()

Adds "ViewHtml" tool.

FormattingMarks()

Adds "FormattingMarks" tool.

BackColor()

Adds "BackColor" tool.

BackColor(System.Action)

Parameters

configurator - System.Action<EditorToolBuilder>

ForeColor()

Adds "ForeColor" tool.

ForeColor(System.Action)

Parameters

configurator - System.Action<EditorToolBuilder>

FontName()

Adds "FontName" tool.

FontName(System.Action)

Adds "FontName" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

FontSize()

Adds "FontSize" tool.

FontSize(System.Action)

Adds "FontSize" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

Formatting()

Adds "FormattingMarks" tool.

Formatting(System.Action)

Adds "Formatting" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

Snippets()

Adds "Snippets" tool.

Snippets(System.Action)

Adds "Snippets" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

LineHeight()

Adds "LineHeight" tool.

LineHeight(System.Action)

Adds "LineHeight" tool.

Parameters

configurator - System.Action<EditorToolItemFactory>

TableEditing()

Clear()

Remove all tools.