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

Editor

Class

Kendo UI Editor component

Definition

Constructors

Initializes a new instance of the Editor class.

C#
public Editor(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

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

C#
public EditorAISettings AI { get; set; }

Fine-tune deserialization in the Editor widget. Deserialization is the process of parsing the HTML string input from the value() method or from the viewHtml dialog into editable content.

C#
public EditorDeserializationSettings Deserialization { get; }

Relaxes the same-origin policy when using the iframe-based editor. This is done automatically for all cases except when the policy is relaxed by document.domain = document.domain. In that case, this property must be used to allow the editor to function properly across browsers. This property has been introduced in internal builds after 2014.1.319.

C#
public string Domain { get; set; }

Indicates whether the Editor should submit encoded HTML tags. By default, the submitted value is encoded.

C#
public bool? Encoded { get; set; }

ExportAsSettings member.

C#
public EditorExportAsSettings ExportAsSettings { get; set; }

Configuration for file browser dialog.

C#
public EditorFileBrowserSettings FileBrowser { get; }

The delay in milliseconds before the formatting marks are refreshed. This feature is useful for performance optimization as the formatting marks are re-rendered any time the user presses a key. If the user is typing very fast or holding down a key, the delay will prevent the re-rendering from being executed multiple times.The visual effect from this configuration is that the marks will briefly disappear while the user is typing. You can set the value to false to fully turn off this behavior.

C#
public double? FormattingMarksRefreshDelay { get; set; }

Disables the rerendering of the formatting marks.

C#
public bool? FormattingMarksRefreshDelayEnabled { get; set; }

Configuration for image browser dialog.

C#
public EditorImageBrowserSettings ImageBrowser { get; }

If enabled, the editor disables the editing and command execution in elements marked with editablecontent="false" attribute.

C#
public EditorImmutablesSettings Immutables { get; }

ImportSettings member.

C#
public EditorImportSettings ImportSettings { get; set; }

This property enables you to configure height for the Editor when the component is in inline mode.

C#
public double? InlineHeight { get; set; }

Defines the text of the labels that are shown within the editor. Used primarily for localization.

C#
public EditorMessagesSettings Messages { get; }

If set to true this configuration option would enable Tab-based navigation among Editor ToolBar items. By default navigation is arrow-based.

C#
public bool? NavigateOnTab { get; set; }

When strict CSP is enabled a nonce can be provided for the inline styles. The passed value would be used as the nonce attribute for the inline styles in the content area iframe, the placeholder inline style and the link tags loading external stylesheets in the content area.

C#
public string Nonce { get; set; }

When pasting a block element inside an element such as a list ul, the list gets split in half and the block element is inserted between the two ul elements.This configuration enables you to specify elements for which the above behavior will be ignored.

C#
public List<EditorNonSplittableTagsOnPaste> NonSplittableTagsOnPaste { get; set; }

Options for controlling how the pasting content is modified before it is added in the editor.

C#
public EditorPasteCleanupSettings PasteCleanup { get; }

Configures the Kendo UI Editor PDF export settings.

C#
public EditorPdfSettings Pdf { get; }

The hint displayed by the widget when it is empty. Not set by default.

C#
public string Placeholder { get; set; }

If enabled, the editor renders a resize handle to allow users to resize it.

C#
public EditorResizableSettings Resizable { get; }

Allows setting of serialization options.

C#
public EditorSerializationSettings Serialization { get; }

StyleSheets member.

C#
public List<string> StyleSheets { get; set; }

The tag that will be rendered. Defaults to "textarea". Triggers the inline edit mode if different.

C#
public string Tag { get; set; }

A collection of tools that are used to interact with the Editor. Tools may be switched on by specifying their name. Custom tools and tools that require configuration are defined as objects. The tools property can be a matrix - array of arrays. When defined in this manner, the tools in each internal array are grouped together.The available editor commands are: Basic text formatting - bold, italic, underline, strikethrough, subscript, superscript; Font and color - fontName, fontSize, foreColor, backColor; Alignment - justifyLeft, justifyCenter, justifyRight, justifyFull; Spacing - lineHeight; Lists - insertUnorderedList, insertOrderedList, indent, outdent; Links, images and files - createLink, unlink, insertImage, insertFile; Table editing - tableWizard, createTable, addColumnLeft, addColumnRight, addRowAbove, addRowBelow, deleteRow, deleteColumn; Structural markup and styles - formatting, cleanFormatting; Snippets - insertHtml; HTML code view - viewHtml; Print edited page - print; Export to PDF - pdf; Format painter - copyFormat, applyFormat or Formatting marks - formattingMarks.

C#
public List<EditorTool> Tools { get; set; }

When set to false, the decoration applied by the Formatting tool dropdown will be skipped and the values will appear as plain text options.

C#
public bool? UnsafeInline { get; set; }

The content of the editor.

C#
public string Value { get; set; }

ValueAction member.

C#
public Action ValueAction { get; set; }

ValueHandler member.

C#
public Func<object, object> ValueHandler { get; set; }

Methods

GenerateTag method.

C#
protected TagBuilder GenerateTag(TextWriter writer)
Parameters:writerTextWriterReturns:

TagBuilder

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)