EditorBuilder
The fluent API for configuring the Telerik UI for ASP.NET MVC Editor.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorBuilder : WidgetBuilderBase<Editor, EditorBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Editor, EditorBuilder>EditorBuilder
Implements:
Inherited Members
Constructors
Methods
Defines the configuration options for the AI tools in the Editor.
public EditorBuilder AI(Action<EditorAISettingsBuilder> configurator)
The configurator for the ai setting.
Returns:Fine-tune deserialization in the Editor component. Deserialization is the process of parsing the HTML string input from the value() method or from the viewHtml dialog into editable content.
public EditorBuilder Deserialization(Action<EditorDeserializationSettingsBuilder> configurator)
The action that configures the deserialization.
Returns: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.
public EditorBuilder Domain(string value)
The value that configures the domain.
Returns:Encodes the HTML content. By default, the submitted value is encoded.
Configures the client events.
public EditorBuilder Events(Action<EditorEventBuilder> configurator)
The action that configures the client events.
Returns:Configures the export settings.
public EditorBuilder ExportAs(Action<EditorExportAsSettingsBuilder> configurator)
The action that configures the ExportAs settings.
Returns:Configures the file browser dialog.
public EditorBuilder FileBrowser(Action<EditorFileBrowserSettingsBuilder> configurator)
The action that configures the file browser dialog.
Returns: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.
public EditorBuilder FormattingMarksRefreshDelay(bool value)
The value that configures the formattingmarksrefreshdelay.
Returns: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.
public EditorBuilder FormattingMarksRefreshDelay(double value)
The value that configures the formattingmarksrefreshdelay.
Returns:Configures the image browser dialog.
public EditorBuilder ImageBrowser(Action<EditorImageBrowserSettingsBuilder> configurator)
The action that configures the image browser dialog.
Returns:If enabled, the Editor disables the editing and command execution in elements marked with editablecontent="false" attribute.
If enabled, the Editor disables the editing and command execution in elements marked with editablecontent="false" attribute.
public EditorBuilder Immutables(Action<EditorImmutablesSettingsBuilder> configurator)
The action that configures the immutables.
Returns:If enabled, the Editor disables the editing and command execution in elements marked with editablecontent="false" attribute.
public EditorBuilder Immutables(bool enabled)
Enables or disables the immutables option.
Returns:Configures the import settings.
public EditorBuilder Import(Action<EditorImportSettingsBuilder> configurator)
The action that configures the Import settings.
Returns:This property enables you to configure height for the Editor when the component is in inline mode.
public EditorBuilder InlineHeight(double value)
The value that configures the inlineheight.
Returns:Defines the text of the labels that are shown within the editor. Used primarily for localization.
public EditorBuilder Messages(Action<EditorMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:If set to true this configuration option would enable Tab-based navigation among Editor ToolBar items. By default navigation is arrow-based.
public EditorBuilder NavigateOnTab(bool value)
The value that configures the navigateontab.
Returns: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.
public EditorBuilder Nonce(string value)
The value that configures the nonce.
Returns: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.
public EditorBuilder NonSplittableTagsOnPaste(Action<EditorNonSplittableTagsOnPasteFactory> configurator)
The action that configures the nonsplittabletagsonpaste.
Returns:Options for controlling how the pasting content is modified before it is added in the editor.
public EditorBuilder PasteCleanup(Action<EditorPasteCleanupSettingsBuilder> configurator)
The action that configures the pastecleanup.
Returns:Configures the PDF export settings.
public EditorBuilder Pdf(Action<PDFSettingsBuilder> configurator)
The action that configures the PDF settings.
Returns:The hint displayed by the Editor when it is empty. Not set by default.
public EditorBuilder Placeholder(string value)
The value that configures the placeholder.
Returns:If enabled, the Editor renders a resize handle to allow users to resize it.
If enabled, the Editor renders a resize handle to allow users to resize it.
public EditorBuilder Resizable(Action<EditorResizableSettingsBuilder> configurator)
The action that configures the resizable.
Returns:If enabled, the Editor renders a resize handle to allow users to resize it.
public EditorBuilder Resizable(bool enabled)
Enables or disables the resizable option.
Returns:Allows setting of serialization options.
public EditorBuilder Serialization(Action<EditorSerializationSettingsBuilder> configurator)
The action that configures the serialization.
Returns:Sets the CSS files that will be registered in the Editor's iframe
public EditorBuilder StyleSheets(Action<EditorStyleSheetBuilder> configurator)
The action that configures the StyleSheets settings.
Returns:Allows rendering of contentEditable elements instead of the default textarea Editor. Note: contentEditable elements are not posted to the server.
public EditorBuilder Tag(string tagName)
The tag that will be rendered as contentEditable
Returns:Configures the available tools in the toolbar.
public EditorBuilder Tools(Action<EditorToolFactory> configurator)
The action that configures the tools.
Returns:When set to false, the decoration applied by the Formatting tool dropdown will be skipped and the values will appear as plain text options.
public EditorBuilder UnsafeInline(bool value)
The value that configures the unsafeinline.
Returns:Sets the HTML content that will show initially in the Editor.
public EditorBuilder Value(Action value)
The action that renders the HTML content.
Returns:Sets the HTML content that will show initially in the Editor as a string.