New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Creates series for the Editor.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EditorToolFactory

Inheritance: objectEditorToolFactory

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the EditorToolFactory class.

C#
public EditorToolFactory(EditorToolGroup group)
Parameters:groupEditorToolGroup

The group.

Methods

Adds BackColor tool.

C#
public EditorToolFactory BackColor()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools => tools.BackColor())
)

Adds BackColor tool.

C#
public EditorToolFactory BackColor(Action<EditorColorPickerToolBuilder> configurator)
Parameters:configuratorAction<EditorColorPickerToolBuilder>

The action that configures the BackColor tool settings.

Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.BackColor(items =&gt; items
.Palette(new string[] { "#ffffff", "#ffff00", "#db9791" })
)
)
)

Adds Bold tool.

C#
public EditorToolFactory Bold()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Bold())
)

Adds CleanFormatting tool.

C#
public EditorToolFactory CleanFormatting()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.CleanFormatting())
)

Clears all tools. If you remove the Clear() option, the default toolbar will be shown along with the buttons specified by you.

C#
public EditorToolFactory Clear()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Clear())
)

Adds CreateLink tool.

C#
public EditorToolFactory CreateLink()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.CreateLink())
)

Adds a custom button tool.

C#
public EditorToolFactory CustomButton(Action<EditorCustomButtonToolBuilder> configurator)
Parameters:configuratorAction<EditorCustomButtonToolBuilder>

The action which configures the custom button tool.

Returns:

EditorToolFactory

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

Adds a custom template tool.

C#
public EditorToolFactory CustomTemplate(Action<EditorCustomTemplateToolBuilder> configurator)
Parameters:configuratorAction<EditorCustomTemplateToolBuilder>

The action which configures the custom template tool.

Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.CustomTemplate(x =&gt; x.Template("&lt;button class='k-button'&gt;Save draft&lt;/button&gt;"))
)
)

Adds ExportAs tool.

C#
public EditorToolFactory ExportAs()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.ExportAs())
)

Adds ExportAs tool.

C#
public EditorToolFactory ExportAs(Action<EditorDropDownItemBuilder> configurator)
Parameters:configuratorAction<EditorDropDownItemBuilder>

The action that configures the ExportAs tool settings.

Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.ExportAs(exportAs =&gt; exportAs.Add("PDF","pdf"))
)
)

Adds FontColor tool.

C#
public EditorToolFactory FontColor()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.FontColor())
)

Adds FontColor tool.

C#
public EditorToolFactory FontColor(Action<EditorColorPickerToolBuilder> configurator)
Parameters:configuratorAction<EditorColorPickerToolBuilder>

The action that configures the FontColor tool settings.

Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.FontColor(items =&gt; items
.Palette(new string[] { "#ffffff", "#ffff00", "#db9791" })
)
)
)

Adds FontName tool.

C#
public EditorToolFactory FontName()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.FontName())
)

Adds FontName tool.

C#
public EditorToolFactory FontName(Action<EditorDropDownItemBuilder> configurator)
Parameters:configuratorAction<EditorDropDownItemBuilder>

The action that configures the FontName tool settings.

Returns:

EditorToolFactory

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.FontName(items =&gt; items
.Add("Verdana", "Verdana,Geneva,sans-serif")
.Add("Garamond", "Garamond, serif")
)
)
)

Adds FontSize tool.

C#
public EditorToolFactory FontSize()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.FontSize())
)

Adds FontSize tool.

C#
public EditorToolFactory FontSize(Action<EditorDropDownItemBuilder> configurator)
Parameters:configuratorAction<EditorDropDownItemBuilder>

The action that configures the FontSize tool settings.

Returns:

EditorToolFactory

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.FontSize(items =&gt; items
.Add("1 (8pt)","1")
.Add("2 (10pt)","2")
)
)
)

Adds FormatPainter tool buttons.

C#
public EditorToolFactory FormatPainter()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.FormatPainter())
)

Adds Formatting tool.

C#
public EditorToolFactory Formatting()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Formatting())
)

Adds Formatting tool.

C#
public EditorToolFactory Formatting(Action<EditorDropDownItemBuilder> configurator)
Parameters:configuratorAction<EditorDropDownItemBuilder>

The action that configures the Formatting tool settings.

Returns:

EditorToolFactory

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.Formatting(items =&gt; items
.Add("Paragraph","1")
.Add("Quotation","2")
)
)
)

Adds FormattingMarks tool.

C#
public EditorToolFactory FormattingMarks()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.FormattingMarks())
)

Adds Import tool.

C#
public EditorToolFactory Import()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Import())
)

Adds Indent tool.

C#
public EditorToolFactory Indent()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Indent())
)

Adds InsertFile tool.

C#
public EditorToolFactory InsertFile()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.InsertFile())
)

Adds InsertImage tool.

C#
public EditorToolFactory InsertImage()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.InsertImage())
)

Adds InsertUpperRomanList tool.

C#
public EditorToolFactory InsertLowerRomanList()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.InsertLowerRomanList())
)

Adds InsertOrderedList tool.

C#
public EditorToolFactory InsertOrderedList()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.InsertOrderedList())
)

Adds InsertUnorderedList tool.

C#
public EditorToolFactory InsertUnorderedList()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.InsertUnorderedList())
)

Adds InsertUpperRomanList tool.

C#
public EditorToolFactory InsertUpperRomanList()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.InsertUpperRomanList())
)

Adds Italic tool.

C#
public EditorToolFactory Italic()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Italic())
)

Adds JustifyCenter tool.

C#
public EditorToolFactory JustifyCenter()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.JustifyCenter())
)

Adds JustifyFull tool.

C#
public EditorToolFactory JustifyFull()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.JustifyFull())
)

Adds JustifyLeft tool.

C#
public EditorToolFactory JustifyLeft()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.JustifyLeft())
)

Adds JustifyRight tool.

C#
public EditorToolFactory JustifyRight()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.JustifyRight())
)

Adds LineHeight tool.

C#
public EditorToolFactory LineHeight()
Returns:

EditorToolFactory

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.LineHeight()
)
)

Adds LineHeight tool.

C#
public EditorToolFactory LineHeight(Action<EditorDropDownItemBuilder> configurator)
Parameters:configuratorAction<EditorDropDownItemBuilder>

The action that configures the LineHeight tool settings.

Returns:

EditorToolFactory

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.LineHeight(items =&gt; items
.Add("1", "10pt")
.Add("2", "20pt")
.Add("3", "30pt")
)
)
)

Adds Outdent tool.

C#
public EditorToolFactory Outdent()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Outdent())
)

Adds Pdf tool.

C#
public EditorToolFactory Pdf()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Pdf())
)

Adds Print tool.

C#
public EditorToolFactory Print()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Print())
)

Adds Redo tool.

C#
public EditorToolFactory Redo()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Redo())
)

Adds a separator.

C#
public EditorToolFactory Separator()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Separator())
)

Adds Snippets tool.

C#
public EditorToolFactory Snippets(Action<EditorSnippetBuilder> configurator)
Parameters:configuratorAction<EditorSnippetBuilder>

The action that configures the Snippets tool settings.

Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.Snippets(snippets =&gt; snippets
.Add("Signature", "&lt;p&gt;Regards,&lt;br /&gt; John Doe,&lt;br &lt;a
href='mailto:john.doe@example.com'&gt;john.doe@example.com&lt;/a&gt;&lt;/p&gt;")
)
)
)

Adds Strikethrough tool.

C#
public EditorToolFactory Strikethrough()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Strikethrough())
)

Adds SubScript tool.

C#
public EditorToolFactory SubScript()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.SubScript())
)

Adds SuperScript tool.

C#
public EditorToolFactory SuperScript()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.SuperScript())
)

Adds TableEditing tools.

C#
public EditorToolFactory TableEditing()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.TableEditing())
)

Adds Underline tool.

C#
public EditorToolFactory Underline()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Underline())
)

Adds Undo tool.

C#
public EditorToolFactory Undo()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Undo())
)

Adds Unlink tool.

C#
public EditorToolFactory Unlink()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.Unlink())
)

Adds ViewHtml tool.

C#
public EditorToolFactory ViewHtml()
Returns:

EditorToolFactory

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools.ViewHtml())
)