Class RichTextEditor
Inheritance
Namespace: Syncfusion.EJ2.RichTextEditor
Assembly: Syncfusion.EJ2.dll
Syntax
public class RichTextEditor : EJTagHelper
Constructors
RichTextEditor()
Declaration
public RichTextEditor()
Properties
ActionBegin
This event triggers before executing a command via toolbar items.
Cancel this event to prevent the command from executing by setting the cancel
argument to true
.
Declaration
public string ActionBegin { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ActionComplete
This event triggers after executing a command via toolbar items.
Declaration
public string ActionComplete { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
AfterImageDelete
This event triggers when a selected image is removed from the Rich Text Editor content.
Declaration
public string AfterImageDelete { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
AfterMediaDelete
This event triggers when selected media is removed from the Rich Text Editor content.
Declaration
public string AfterMediaDelete { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
AfterPasteCleanup
This event triggers after cleaning up copied content.
Declaration
public string AfterPasteCleanup { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
AutoSaveOnIdle
Enables or disables the auto-save option, which performs the save action during idle states after content changes.
If enabled, the editor will save content in idle state based on the saveInterval
property's value.
The change event is triggered if the content has been modified since the last saved state.
Declaration
public bool AutoSaveOnIdle { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
BackgroundColor
Defines the color palette for the background color (text highlight color) toolbar command.
Declaration
public RichTextEditorBackgroundColor BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorBackgroundColor | The default value is null |
BeforeDialogClose
This event triggers before a dialog is closed.
Cancel this event to prevent the dialog from closing by setting the cancel
argument to true
.
Declaration
public string BeforeDialogClose { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeDialogOpen
This event triggers before a dialog is opened.
Cancel this event to prevent the dialog from opening by setting the cancel
argument to true
.
Declaration
public string BeforeDialogOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeFileUpload
This event triggers before the media audio/video upload process starts.
Declaration
public string BeforeFileUpload { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeImageDrop
This event triggers before an image is dropped.
Declaration
public string BeforeImageDrop { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeImageUpload
This event triggers before the image upload process starts.
Declaration
public string BeforeImageUpload { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforePasteCleanup
This event triggers before cleaning up copied content.
Declaration
public string BeforePasteCleanup { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeQuickToolbarOpen
This event triggers before the quick toolbar opens.
Declaration
public string BeforeQuickToolbarOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeforeSanitizeHtml
This event triggers before sanitizing the value. Applicable only when editorMode
is HTML
.
Declaration
public string BeforeSanitizeHtml { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Blur
This event triggers when the Rich Text Editor loses focus.
Declaration
public string Blur { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BulletFormatList
Predefines advanced list types that populate the bulletFormatList dropdown in the toolbar.
Declaration
public RichTextEditorBulletFormatList BulletFormatList { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorBulletFormatList | The default value is null |
Change
This event triggers when the Rich Text Editor loses focus and changes have been made to the content.
Declaration
public string Change { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Created
This event triggers when the Rich Text Editor is rendered.
Declaration
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CssClass
Specifies the CSS class name appended to the root element of the RichTextEditor. Multiple custom CSS classes can be added.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Destroyed
This event triggers when the Rich Text Editor is destroyed.
Declaration
public string Destroyed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
DialogClose
This event triggers after a dialog has been closed.
Declaration
public string DialogClose { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
DialogOpen
This event triggers when a dialog is opened.
Declaration
public string DialogOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
EditorMode
Defines the mode of the RichTextEditor.
Declaration
public EditorMode EditorMode { get; set; }
Property Value
Type | Description |
---|---|
EditorMode | The default value is EditorMode.HTML |
EmojiPickerSettings
Configures emoji picker options in the Rich Text Editor. Properties: iconsSet: Array representing emoji icons. showSearchBox: Enables/disables the search box.
Declaration
public RichTextEditorEmojiSettings EmojiPickerSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorEmojiSettings | The default value is null |
EnableAutoUrl
Enable enableAutoUrl
to accept the given URL (relative or absolute) without validating the URL for hyperlinks.
Otherwise, the given URL will automatically convert to an absolute path URL by prefixing it with https://
for hyperlinks.
Declaration
public bool EnableAutoUrl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Enabled
Indicates whether the component is enabled or disabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnableHtmlEncode
Determines if source code should be displayed in an encoded format.
Declaration
public bool EnableHtmlEncode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableHtmlSanitizer
Indicates whether to allow cross-site scripting (XSS) or not.
Declaration
public bool EnableHtmlSanitizer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnablePersistence
Enables or disables the persistence of the component's state between page reloads. If enabled, the value of the Rich Text Editor is retained.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableResize
Enables or disables the resizing option in the editor. When enabled, the editor can be resized by dragging the resize icon in its bottom right corner.
Declaration
public bool EnableResize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableTabKey
Allows the tab key action in the Rich Text Editor content.
Declaration
public bool EnableTabKey { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableXhtml
Indicates whether XHTML is enabled or not.
Declaration
public bool EnableXhtml { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnterKey
Specifies the tag to be inserted when the enter key is pressed.
Declaration
public EnterKey EnterKey { get; set; }
Property Value
Type | Description |
---|---|
EnterKey | The default value is EnterKey.P |
ExportPdf
Describes file export options to PDF in the Rich Text Editor, such as:
serviceurl
: URL used for exporting content to PDF format.fileName
: Specifies the default PDF file name upon export.stylesheet
: Applies a stylesheet to the exported PDF file.
Declaration
public RichTextEditorExportPdf ExportPdf { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorExportPdf | The default value is null |
ExportWord
Defines file export options for the Rich Text Editor with properties like:
serviceurl
: The URL utilized for exporting editor content to Word files.fileName
: Designates the default name for exported Word files.stylesheet
: Applies a stylesheet to the exported Word file.
Declaration
public RichTextEditorExportWord ExportWord { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorExportWord | The default value is null |
FileManagerSettings
Defines image manager options in the Rich Text Editor with the following attributes:
enable
: Boolean to enable or disable the image manager.ajaxSettings
: Configures AJAX settings for image handling.contextMenuSettings
: Manages context menu availability and options.navigationPaneSettings
: Sets up the navigation pane display and contents.toolbarSettings
: Specifies toolbar configuration and visible items.uploadSettings
: Manages upload-specific configurations.
Declaration
public RichTextEditorFileManagerSettings FileManagerSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorFileManagerSettings | The default value is null |
FileRemoving
This event triggers when selected media is removed from the insert audio/video dialog.
Declaration
public string FileRemoving { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
FileSelected
This event triggers when media is selected or dragged into the insert media audio/video dialog.
Declaration
public string FileSelected { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
FileUploadFailed
This event triggers when there is an error during media upload.
Declaration
public string FileUploadFailed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
FileUploading
This event triggers when media begins uploading in the insert media audio/video dialog.
Declaration
public string FileUploading { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
FileUploadSuccess
This event triggers when media has been successfully uploaded to the server side.
Declaration
public string FileUploadSuccess { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
FloatingToolbarOffset
Keeps the toolbar fixed at the top of the Rich Text Editor during scrolling and specifies the toolbar's offset from the document's top position.
Declaration
public double FloatingToolbarOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Focus
This event triggers when the Rich Text Editor gains focus.
Declaration
public string Focus { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
FontColor
Defines the color palette for the font color toolbar command.
Declaration
public RichTextEditorFontColor FontColor { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorFontColor | The default value is null |
FontFamily
Predefines font families that populate the font family dropdown in the toolbar.
Declaration
public RichTextEditorFontFamily FontFamily { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorFontFamily | The default value is null |
FontSize
Defines the predefined font sizes that populate the font size dropdown in the toolbar.
Declaration
public RichTextEditorFontSize FontSize { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorFontSize | The default value is null |
For
Declaration
public override ModelExpression For { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression |
Overrides
Format
Predefines a collection of paragraph styles along with quote and code styles that populate the format dropdown in the toolbar.
Declaration
public RichTextEditorFormat Format { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorFormat | The default value is null |
FormatPainterSettings
Configures the format painter options in the Rich Text Editor. Properties: allowedFormats: Tags selectors that allow format copying. deniedFormats: Tag selectors that prevent format copying.
Declaration
public RichTextEditorFormatPainterSettings FormatPainterSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorFormatPainterSettings | The default value is null |
Formatter
Customize the keyCode
to change the key value.
Declaration
public RichTextEditorFormatter Formatter { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorFormatter | The default value is null |
Height
Specifies the height of the Rich Text Editor component.
Declaration
public string Height { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "auto" |
HtmlAttributes
Allows specifying additional HTML attributes like title, name, etc. Accepts multiple attributes in a key-value pair format.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
IframeSettings
Configures iframe mode items in the Rich Text Editor. Properties: enable: Boolean to place editor content in an iframe, isolating it from the page. attributes: Custom style for displaying content inside the iframe. Applied to iframe body. resources: Adds styles and scripts to the iframe.
- styles[]: Array of CSS files for the iframe content.
- scripts[]: Array of JS script files for the iframe. metaTags[]: Array of meta tags for iframe's head, setting metadata (http-equiv, charset, etc.). sandbox: String array defining iframe sandbox attributes, controlling security restrictions. Default includes "allow-same-origin".
Declaration
public RichTextEditorIFrameSettings IframeSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorIFrameSettings | The default value is null |
ImageRemoving
This event triggers when a selected image is removed from the insert image dialog.
Declaration
public string ImageRemoving { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ImageSelected
This event triggers when an image is selected or dragged into the insert image dialog.
Declaration
public string ImageSelected { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ImageUploadFailed
This event triggers when there is an error during image upload.
Declaration
public string ImageUploadFailed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ImageUploading
This event triggers when an image upload begins in the insert image dialog. It provides access to the upload details through the event arguments.
Declaration
public string ImageUploading { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ImageUploadSuccess
This event triggers when an image has been successfully uploaded to the server side.
Declaration
public string ImageUploadSuccess { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ImportWord
Configures the options for importing Word files in the Rich Text Editor component.
The serviceUrl
property specifies the server endpoint URL where the uploaded Word file will be processed.
Declaration
public RichTextEditorImportWord ImportWord { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorImportWord | The default value is null |
InlineMode
Configures the inline edit mode for the Rich Text Editor with the following options:
enable
: A boolean value to enable or disable the inline edit mode.onSelection
: Determines how the toolbar is activated:- If set to
true
, the toolbar appears inline upon text selection. - If set to
false
, the toolbar opens when clicking on the target element.
Declaration
public RichTextEditorInlineMode InlineMode { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorInlineMode | The default value is null |
InsertAudioSettings
Defines the options for inserting audio files in the Rich Text Editor, including properties such as:
allowedTypes
: Specifies the file extensions for audio files allowed to be inserted, listed as a comma-separated string (e.g., '.wav', '.mp3').layoutOption
: Sets the default layout for audio files when inserted into the Rich Text Editor. The options are 'Inline' and 'Break'.saveFormat
: Determines the format used to store audio files in the Rich Text Editor, either 'Base64' or 'Blob'.
Choose 'Base64' for frequently inserted small audio files without the need for a specific storage location.
saveUrl
: Provides the service URL responsible for handling audio file uploads and storage on the server.path
: Specifies the storage path for audio files and the reference for displaying them.
Declaration
public RichTextEditorAudioSettings InsertAudioSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorAudioSettings | The default value is null |
InsertImageSettings
Specifies the options for inserting images in the Rich Text Editor. Includes properties such as:
allowedTypes
: Specifies the allowed image file extensions as a comma-separated list (e.g., '.jpg', '.png').display
: Sets the default display mode for an inserted image, either 'inline' or 'block'.width
: Specifies the default width for an inserted image.saveFormat
: Indicates the format for storing images in the editor (Base64 or Blob).
Select Base64 for numerous small images without a specific physical storage location.
height
: Defines the default height for an inserted image.saveUrl
: Specifies the URL for the service that handles image upload and storage on the server.path
: Determines the storage location for images and their display path.
Declaration
public RichTextEditorImageSettings InsertImageSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorImageSettings | The default value is null |
InsertVideoSettings
Specifies video insert options in the Rich Text Editor, detailing properties such as:
allowedTypes
: Allowed video file extensions as a comma-separated list (e.g., '.mp4', '.mov').layoutOption
: Determines the display mode for videos ('Inline' or 'Break').width
: Sets default width for inserted videos.saveFormat
: Format for storing video files (Base64 or Blob).
Select Base64 for numerous small video inserts without defined storage requirements.
height
: Sets default height for inserted videos.saveUrl
: URL of the service for handling video uploads and server storage.path
: Identifies the path for storing and displaying videos.
Declaration
public RichTextEditorVideoSettings InsertVideoSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorVideoSettings | The default value is null |
KeyConfig
Customizes key actions in the RichTextEditor. For example, German keyboard users can customize key actions using these shortcuts.
Declaration
public object KeyConfig { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
MaxLength
Specifies the maximum number of characters allowed in the Rich Text Editor.
Declaration
public double MaxLength { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is -1 |
NumberFormatList
Predefines advanced list types that populate the numberFormatList dropdown in the toolbar.
Declaration
public RichTextEditorNumberFormatList NumberFormatList { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorNumberFormatList | The default value is null |
PasteCleanupSettings
Configures paste options in the Rich Text Editor. Properties: prompt: Boolean to enable or disable paste prompt. deniedAttrs: Attributes to restrict during paste. allowedStyleProps: Style properties allowed when pasting. deniedTags: Tags to restrict when pasting. keepFormat: Boolean to keep or remove format when pasting. plainText: Boolean to paste as plain text.
Declaration
public RichTextEditorPasteCleanupSettings PasteCleanupSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorPasteCleanupSettings | The default value is null |
Placeholder
Specifies the placeholder text for the content area of the RichTextEditor when it is empty.
Declaration
public string Placeholder { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
QuickToolbarClose
This event triggers after the quick toolbar has been closed.
Declaration
public string QuickToolbarClose { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
QuickToolbarOpen
This event triggers when the quick toolbar is opened.
Declaration
public string QuickToolbarOpen { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
QuickToolbarSettings
Specifies the items to be rendered in the quick toolbar based on the target element. Properties: enable: Boolean to show or hide the quick toolbar. actionOnScroll: Options for quick toolbar behavior on scroll:
- hide: The quick toolbar closes when the parent element is scrolled.
- none: The quick toolbar stays open even if the parent element is scrolled. link: Specifies items in the quick toolbar for links ('Open', 'Edit', 'UnLink'). image: Specifies items in the quick toolbar for images ('Replace', 'Align', 'Caption', 'Remove', 'InsertLink', 'Display', 'AltText', 'Dimension'). text: Specifies items in the quick toolbar for text ('Cut', 'Copy', 'Paste'). audio: Specifies items for audio ('AudioReplace', 'AudioRemove', 'AudioLayoutOption'). video: Specifies items for video ('VideoReplace', 'VideoAlign', 'VideoRemove', 'VideoLayoutOption', 'VideoDimension').
Declaration
public RichTextEditorQuickToolbarSettings QuickToolbarSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorQuickToolbarSettings | The default value is null |
Readonly
Disables user interactions on the component when set to true.
Declaration
public bool Readonly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
ResizeStart
This event triggers when resizing starts for various elements including tables, images, videos, and the overall editor.
Declaration
public string ResizeStart { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ResizeStop
This event triggers when resizing stops for various elements including tables, images, videos, and the overall editor.
Declaration
public string ResizeStop { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Resizing
This event triggers when resizing elements such as tables, images, videos, and the overall Rich Text Editor.
Declaration
public string Resizing { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
SaveInterval
Specifies the save interval in milliseconds for automatically saving the content. The change event is triggered if the content changes from the last saved interval.
Declaration
public double SaveInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 10000 |
ShiftEnterKey
Specifies tags to be inserted when the Shift + Enter keys are pressed.
Declaration
public ShiftEnterKey ShiftEnterKey { get; set; }
Property Value
Type | Description |
---|---|
ShiftEnterKey | The default value is ShiftEnterKey.BR |
ShowCharCount
Enables or disables the display of the character counter.
Declaration
public bool ShowCharCount { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
ShowTooltip
Configures whether a tooltip should be displayed for the Rich Text Editor toolbar.
Declaration
public bool ShowTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
SlashMenuItemSelect
This event triggers when a slash menu item in the popup is selected by the user using mouse, tap, or keyboard navigation.
Declaration
public string SlashMenuItemSelect { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
SlashMenuSettings
Configuration options for the slash menu feature in the Editor, used to display a mention popup. Properties: enable: A boolean indicating whether the slash menu is enabled in the Editor. items: An array specifying the list of items to be displayed in the slash menu. popupWidth: Defines the width of the slash menu popup. Accepts values in pixels, numbers, or percentages. Numeric values are treated as pixels. popupHeight: Defines the height of the slash menu popup. Accepts values in pixels, numbers, or percentages. Numeric values are treated as pixels.
Declaration
public RichTextEditorSlashMenuSettings SlashMenuSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorSlashMenuSettings | The default value is null |
TableSettings
Specifies the options for inserting tables in the Rich Text Editor, featuring properties like:
styles
: Automatically appends a CSS class to tables for consistent styling.width
: Defines default table width upon insertion.minWidth
: Sets the minimum width for inserted tables.maxWidth
: Indicates the maximum permissible width for tables.resize
: Enables or disables table resizing functionality.
Declaration
public RichTextEditorTableSettings TableSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorTableSettings | The default value is null |
ToolbarClick
This event triggers when a Rich Text Editor toolbar item is clicked.
Declaration
public string ToolbarClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ToolbarSettings
Specifies the configuration for the toolbar, including the alignment and rendering type. By default, the toolbar floats at the top of the RichTextEditor. When you scroll down, the toolbar will move with the page applying the specified offset.
Declaration
public RichTextEditorToolbarSettings ToolbarSettings { get; set; }
Property Value
Type | Description |
---|---|
RichTextEditorToolbarSettings | The default value is null |
ToolbarStatusUpdate
This event is deprecated and no longer works. Use the updatedToolbarStatus
event for undo/redo status.
Declaration
public string ToolbarStatusUpdate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
UndoRedoSteps
Specifies the number of undo history steps stored in the undo/redo manager.
Declaration
public double UndoRedoSteps { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 30 |
UndoRedoTimer
Specifies the interval time in milliseconds for storing actions in the undo/redo manager. The minimum value is 300 milliseconds.
Declaration
public double UndoRedoTimer { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 300 |
UpdatedToolbarStatus
This event triggers when the toolbar items status is updated.
Declaration
public string UpdatedToolbarStatus { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Value
Specifies the initial content to be displayed in the RichTextEditor's content area. It should be a string. The editor's content can also be dynamically loaded from a database, AJAX, etc.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ValueTemplate
Accepts a template design and assigns it as the content of the Rich Text Editor. The built-in template engine provides options to compile a template string into an executable function. For example, it supports expression evaluation similar to ES6 template string literals.
Declaration
public string ValueTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Width
Specifies the width of the Rich Text Editor.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "100%" |