ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RichTextEditorBuilder

    Show / Hide Table of Contents

    Class RichTextEditorBuilder

    Inheritance
    System.Object
    ControlBuilder
    RichTextEditorBuilder
    Inherited Members
    ControlBuilder.Context
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.EJ2.RichTextEditor
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class RichTextEditorBuilder : ControlBuilder

    Constructors

    RichTextEditorBuilder()

    Declaration
    public RichTextEditorBuilder()

    RichTextEditorBuilder(RichTextEditor)

    Declaration
    public RichTextEditorBuilder(RichTextEditor model)
    Parameters
    Type Name Description
    RichTextEditor model

    Fields

    model

    Declaration
    public RichTextEditor model
    Field Value
    Type Description
    RichTextEditor

    Properties

    HtmlAttr

    Declaration
    public IDictionary<string, object> HtmlAttr { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>

    ID

    Declaration
    public string ID { get; set; }
    Property Value
    Type Description
    System.String

    Output

    Declaration
    public override TextWriter Output { get; set; }
    Property Value
    Type Description
    System.IO.TextWriter
    Overrides
    ControlBuilder.Output

    Methods

    ActionBegin(String)

    Triggers before command execution using toolbar items or executeCommand method. If you cancel this event, the command cannot be executed. Set the cancel argument to true to cancel the command execution.

    Declaration
    public RichTextEditorBuilder ActionBegin(string actionBegin)
    Parameters
    Type Name Description
    System.String actionBegin
    Returns
    Type Description
    RichTextEditorBuilder

    ActionComplete(String)

    Triggers after command execution using toolbar items or executeCommand method.

    Declaration
    public RichTextEditorBuilder ActionComplete(string actionComplete)
    Parameters
    Type Name Description
    System.String actionComplete
    Returns
    Type Description
    RichTextEditorBuilder

    AfterImageDelete(String)

    Event triggers when the selected image is cleared from the Rich Text Editor Content.

    Declaration
    public RichTextEditorBuilder AfterImageDelete(string afterImageDelete)
    Parameters
    Type Name Description
    System.String afterImageDelete
    Returns
    Type Description
    RichTextEditorBuilder

    AfterMediaDelete(String)

    Event triggers when the selected media is cleared from the Rich Text Editor Content.

    Declaration
    public RichTextEditorBuilder AfterMediaDelete(string afterMediaDelete)
    Parameters
    Type Name Description
    System.String afterMediaDelete
    Returns
    Type Description
    RichTextEditorBuilder

    AfterPasteCleanup(String)

    Triggers after cleanup the copied content.

    Declaration
    public RichTextEditorBuilder AfterPasteCleanup(string afterPasteCleanup)
    Parameters
    Type Name Description
    System.String afterPasteCleanup
    Returns
    Type Description
    RichTextEditorBuilder

    AutoSaveOnIdle(Boolean)

    Enables or disables the auto-save option which performs the save action while in the idle state after typed content. If enabled, the Rich Text Editor will save the content on idle state with saveInterval property's value. The change event will be triggered if the content has changed from the last saved state.

    Declaration
    public RichTextEditorBuilder AutoSaveOnIdle(bool autoSaveOnIdle = true)
    Parameters
    Type Name Description
    System.Boolean autoSaveOnIdle
    Returns
    Type Description
    RichTextEditorBuilder

    BackgroundColor(RichTextEditorBackgroundColor)

    Predefine the color palette that can be rendered for background color (text highlighted color) toolbar command.

    Declaration
    public RichTextEditorBuilder BackgroundColor(RichTextEditorBackgroundColor backgroundColor)
    Parameters
    Type Name Description
    RichTextEditorBackgroundColor backgroundColor
    Returns
    Type Description
    RichTextEditorBuilder

    BackgroundColor(Action<RichTextEditorBackgroundColorBuilder>)

    Declaration
    public RichTextEditorBuilder BackgroundColor(Action<RichTextEditorBackgroundColorBuilder> backgroundColor)
    Parameters
    Type Name Description
    System.Action<RichTextEditorBackgroundColorBuilder> backgroundColor
    Returns
    Type Description
    RichTextEditorBuilder

    BeforeDialogClose(String)

    Event triggers when the dialog is being closed. If you cancel this event, the dialog remains opened. Set the cancel argument to true to prevent closing a dialog.

    Declaration
    public RichTextEditorBuilder BeforeDialogClose(string beforeDialogClose)
    Parameters
    Type Name Description
    System.String beforeDialogClose
    Returns
    Type Description
    RichTextEditorBuilder

    BeforeDialogOpen(String)

    Event triggers when the dialog is being opened. If you cancel this event, the dialog remains closed. Set the cancel argument to true to cancel the open of a dialog.

    Declaration
    public RichTextEditorBuilder BeforeDialogOpen(string beforeDialogOpen)
    Parameters
    Type Name Description
    System.String beforeDialogOpen
    Returns
    Type Description
    RichTextEditorBuilder

    BeforeFileUpload(String)

    Event triggers before the media audio/video upload process.

    Declaration
    public RichTextEditorBuilder BeforeFileUpload(string beforeFileUpload)
    Parameters
    Type Name Description
    System.String beforeFileUpload
    Returns
    Type Description
    RichTextEditorBuilder

    BeforeImageDrop(String)

    Triggers before drop the image.

    Declaration
    public RichTextEditorBuilder BeforeImageDrop(string beforeImageDrop)
    Parameters
    Type Name Description
    System.String beforeImageDrop
    Returns
    Type Description
    RichTextEditorBuilder

    BeforeImageUpload(String)

    Event triggers before the image upload process.

    Declaration
    public RichTextEditorBuilder BeforeImageUpload(string beforeImageUpload)
    Parameters
    Type Name Description
    System.String beforeImageUpload
    Returns
    Type Description
    RichTextEditorBuilder

    BeforePasteCleanup(String)

    Triggers before cleanup the copied content.

    Declaration
    public RichTextEditorBuilder BeforePasteCleanup(string beforePasteCleanup)
    Parameters
    Type Name Description
    System.String beforePasteCleanup
    Returns
    Type Description
    RichTextEditorBuilder

    BeforeQuickToolbarOpen(String)

    Event triggers when the quick toolbar is being opened.

    Declaration
    public RichTextEditorBuilder BeforeQuickToolbarOpen(string beforeQuickToolbarOpen)
    Parameters
    Type Name Description
    System.String beforeQuickToolbarOpen
    Returns
    Type Description
    RichTextEditorBuilder

    BeforeSanitizeHtml(String)

    Event triggers before sanitize the value. It's only applicable to editorMode as HTML.

    Declaration
    public RichTextEditorBuilder BeforeSanitizeHtml(string beforeSanitizeHtml)
    Parameters
    Type Name Description
    System.String beforeSanitizeHtml
    Returns
    Type Description
    RichTextEditorBuilder

    Blur(String)

    Triggers when Rich Text Editor is focused out.

    Declaration
    public RichTextEditorBuilder Blur(string blur)
    Parameters
    Type Name Description
    System.String blur
    Returns
    Type Description
    RichTextEditorBuilder

    BulletFormatList(RichTextEditorBulletFormatList)

    Predefine the advanced list types that populate in the bulletFormatList dropdown list from the toolbar.

    Declaration
    public RichTextEditorBuilder BulletFormatList(RichTextEditorBulletFormatList bulletFormatList)
    Parameters
    Type Name Description
    RichTextEditorBulletFormatList bulletFormatList
    Returns
    Type Description
    RichTextEditorBuilder

    BulletFormatList(Action<RichTextEditorBulletFormatListBuilder>)

    Declaration
    public RichTextEditorBuilder BulletFormatList(Action<RichTextEditorBulletFormatListBuilder> bulletFormatList)
    Parameters
    Type Name Description
    System.Action<RichTextEditorBulletFormatListBuilder> bulletFormatList
    Returns
    Type Description
    RichTextEditorBuilder

    Change(String)

    Triggers only when Rich Text Editor is blurred and changes are done to the content.

    Declaration
    public RichTextEditorBuilder Change(string change)
    Parameters
    Type Name Description
    System.String change
    Returns
    Type Description
    RichTextEditorBuilder

    ContentTemplate(Action<Object>)

    Declaration
    public RichTextEditorBuilder ContentTemplate(Action<object> template)
    Parameters
    Type Name Description
    System.Action<System.Object> template
    Returns
    Type Description
    RichTextEditorBuilder

    ContentTemplate(Func<Object, Object>)

    Declaration
    public RichTextEditorBuilder ContentTemplate(Func<object, object> template)
    Parameters
    Type Name Description
    System.Func<System.Object, System.Object> template
    Returns
    Type Description
    RichTextEditorBuilder

    Created(String)

    Triggers when the Rich Text Editor is rendered.

    Declaration
    public RichTextEditorBuilder Created(string created)
    Parameters
    Type Name Description
    System.String created
    Returns
    Type Description
    RichTextEditorBuilder

    CssClass(String)

    Specifies the CSS class name appended with the root element of the RichTextEditor. One or more custom CSS classes can be added to a RichTextEditor.

    Declaration
    public RichTextEditorBuilder CssClass(string cssClass)
    Parameters
    Type Name Description
    System.String cssClass
    Returns
    Type Description
    RichTextEditorBuilder

    Destroyed(String)

    Triggers when the Rich Text Editor is destroyed.

    Declaration
    public RichTextEditorBuilder Destroyed(string destroyed)
    Parameters
    Type Name Description
    System.String destroyed
    Returns
    Type Description
    RichTextEditorBuilder

    DialogClose(String)

    Event triggers after the dialog has been closed.

    Declaration
    public RichTextEditorBuilder DialogClose(string dialogClose)
    Parameters
    Type Name Description
    System.String dialogClose
    Returns
    Type Description
    RichTextEditorBuilder

    DialogOpen(String)

    Event triggers when a dialog is opened.

    Declaration
    public RichTextEditorBuilder DialogOpen(string dialogOpen)
    Parameters
    Type Name Description
    System.String dialogOpen
    Returns
    Type Description
    RichTextEditorBuilder

    EditorMode(EditorMode)

    Specifies the editing mode of the RichTextEditor.

    Declaration
    public RichTextEditorBuilder EditorMode(EditorMode editorMode)
    Parameters
    Type Name Description
    EditorMode editorMode
    Returns
    Type Description
    RichTextEditorBuilder

    EnableAutoUrl(Boolean)

    Enable enableAutoUrl to accept the given URL (relative or absolute) without validating the URL for hyperlinks, otherwise the given URL will automatically convert to absolute path URL by prefixing https:// for hyperlinks.

    Declaration
    public RichTextEditorBuilder EnableAutoUrl(bool enableAutoUrl = true)
    Parameters
    Type Name Description
    System.Boolean enableAutoUrl
    Returns
    Type Description
    RichTextEditorBuilder

    Enabled(Boolean)

    Specifies a value that indicates whether the component is enabled or not.

    Declaration
    public RichTextEditorBuilder Enabled(bool enabled = true)
    Parameters
    Type Name Description
    System.Boolean enabled
    Returns
    Type Description
    RichTextEditorBuilder

    EnableHtmlEncode(Boolean)

    specifies the value whether the source code is displayed with encoded format.

    Declaration
    public RichTextEditorBuilder EnableHtmlEncode(bool enableHtmlEncode = true)
    Parameters
    Type Name Description
    System.Boolean enableHtmlEncode
    Returns
    Type Description
    RichTextEditorBuilder

    EnableHtmlSanitizer(Boolean)

    Defines whether to allow the cross-scripting site or not.

    Declaration
    public RichTextEditorBuilder EnableHtmlSanitizer(bool enableHtmlSanitizer = true)
    Parameters
    Type Name Description
    System.Boolean enableHtmlSanitizer
    Returns
    Type Description
    RichTextEditorBuilder

    EnablePersistence(Boolean)

    Enables or disables the persisting component's state between page reloads. If enabled, the value of Rich Text Editor is persisted

    Declaration
    public RichTextEditorBuilder EnablePersistence(bool enablePersistence = true)
    Parameters
    Type Name Description
    System.Boolean enablePersistence
    Returns
    Type Description
    RichTextEditorBuilder

    EnableResize(Boolean)

    Enables or disables the resizing option in the editor. If enabled, the Rich Text Editor can be resized by dragging the resize icon in the bottom right corner.

    Declaration
    public RichTextEditorBuilder EnableResize(bool enableResize = true)
    Parameters
    Type Name Description
    System.Boolean enableResize
    Returns
    Type Description
    RichTextEditorBuilder

    EnableRtl(Boolean)

    Enable or disable rendering component in right to left direction.

    Declaration
    public RichTextEditorBuilder EnableRtl(bool enableRtl = true)
    Parameters
    Type Name Description
    System.Boolean enableRtl
    Returns
    Type Description
    RichTextEditorBuilder

    EnableTabKey(Boolean)

    Allows the tab key action in the Rich Text Editor content.

    Declaration
    public RichTextEditorBuilder EnableTabKey(bool enableTabKey = true)
    Parameters
    Type Name Description
    System.Boolean enableTabKey
    Returns
    Type Description
    RichTextEditorBuilder

    EnableXhtml(Boolean)

    Specifies a value that indicates whether the xhtml is enabled or not.

    Declaration
    public RichTextEditorBuilder EnableXhtml(bool enableXhtml = true)
    Parameters
    Type Name Description
    System.Boolean enableXhtml
    Returns
    Type Description
    RichTextEditorBuilder

    EnterKey(EnterKey)

    Specifies tag to be inserted when enter key is pressed.

    Declaration
    public RichTextEditorBuilder EnterKey(EnterKey enterKey)
    Parameters
    Type Name Description
    EnterKey enterKey
    Returns
    Type Description
    RichTextEditorBuilder

    FileManagerSettings(RichTextEditorFileManagerSettings)

    Specifies the image manager options in Rich Text Editor component and control with the following properties. enable - set boolean value to enable or disable the image manager. ajaxSettings - Specifies the AJAX settings of the image manager. contextMenuSettings - Specifies the context menu settings of the image manager. navigationPaneSettings - Specifies the navigation pane settings of the image manager. toolbarSettings - Specifies the group of items aligned horizontally in the toolbar. uploadSettings - Specifies the upload settings for the image manager.

    Declaration
    public RichTextEditorBuilder FileManagerSettings(RichTextEditorFileManagerSettings fileManagerSettings)
    Parameters
    Type Name Description
    RichTextEditorFileManagerSettings fileManagerSettings
    Returns
    Type Description
    RichTextEditorBuilder

    FileManagerSettings(Action<RichTextEditorFileManagerSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder FileManagerSettings(Action<RichTextEditorFileManagerSettingsBuilder> fileManagerSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorFileManagerSettingsBuilder> fileManagerSettings
    Returns
    Type Description
    RichTextEditorBuilder

    FileRemoving(String)

    Event triggers when the selected media is cleared from the insert audio/video dialog.

    Declaration
    public RichTextEditorBuilder FileRemoving(string fileRemoving)
    Parameters
    Type Name Description
    System.String fileRemoving
    Returns
    Type Description
    RichTextEditorBuilder

    FileSelected(String)

    Event triggers when the media is selected or dragged into the insert media audio/video dialog.

    Declaration
    public RichTextEditorBuilder FileSelected(string fileSelected)
    Parameters
    Type Name Description
    System.String fileSelected
    Returns
    Type Description
    RichTextEditorBuilder

    FileUploadFailed(String)

    Event triggers when there is an error in the media upload.

    Declaration
    public RichTextEditorBuilder FileUploadFailed(string fileUploadFailed)
    Parameters
    Type Name Description
    System.String fileUploadFailed
    Returns
    Type Description
    RichTextEditorBuilder

    FileUploading(String)

    Event triggers when the selected media begins to upload in the insert media audio/video dialog.

    Declaration
    public RichTextEditorBuilder FileUploading(string fileUploading)
    Parameters
    Type Name Description
    System.String fileUploading
    Returns
    Type Description
    RichTextEditorBuilder

    FileUploadSuccess(String)

    Event triggers when the media is successfully uploaded to the server side.

    Declaration
    public RichTextEditorBuilder FileUploadSuccess(string fileUploadSuccess)
    Parameters
    Type Name Description
    System.String fileUploadSuccess
    Returns
    Type Description
    RichTextEditorBuilder

    FloatingToolbarOffset(Double)

    Preserves the toolbar at the top of the Rich Text Editor on scrolling and specifies the offset of the floating toolbar from documents top position

    Declaration
    public RichTextEditorBuilder FloatingToolbarOffset(double floatingToolbarOffset)
    Parameters
    Type Name Description
    System.Double floatingToolbarOffset
    Returns
    Type Description
    RichTextEditorBuilder

    Focus(String)

    Triggers when Rich Text Editor is focused in

    Declaration
    public RichTextEditorBuilder Focus(string focus)
    Parameters
    Type Name Description
    System.String focus
    Returns
    Type Description
    RichTextEditorBuilder

    FontColor(RichTextEditorFontColor)

    Predefine the color palette that can be rendered for font color toolbar command .

    Declaration
    public RichTextEditorBuilder FontColor(RichTextEditorFontColor fontColor)
    Parameters
    Type Name Description
    RichTextEditorFontColor fontColor
    Returns
    Type Description
    RichTextEditorBuilder

    FontColor(Action<RichTextEditorFontColorBuilder>)

    Declaration
    public RichTextEditorBuilder FontColor(Action<RichTextEditorFontColorBuilder> fontColor)
    Parameters
    Type Name Description
    System.Action<RichTextEditorFontColorBuilder> fontColor
    Returns
    Type Description
    RichTextEditorBuilder

    FontFamily(RichTextEditorFontFamily)

    Predefine the font families that populate in font family dropdown list from the toolbar.

    Declaration
    public RichTextEditorBuilder FontFamily(RichTextEditorFontFamily fontFamily)
    Parameters
    Type Name Description
    RichTextEditorFontFamily fontFamily
    Returns
    Type Description
    RichTextEditorBuilder

    FontFamily(Action<RichTextEditorFontFamilyBuilder>)

    Declaration
    public RichTextEditorBuilder FontFamily(Action<RichTextEditorFontFamilyBuilder> fontFamily)
    Parameters
    Type Name Description
    System.Action<RichTextEditorFontFamilyBuilder> fontFamily
    Returns
    Type Description
    RichTextEditorBuilder

    FontSize(RichTextEditorFontSize)

    Predefine the font sizes that populate in font size dropdown list from the toolbar.

    Declaration
    public RichTextEditorBuilder FontSize(RichTextEditorFontSize fontSize)
    Parameters
    Type Name Description
    RichTextEditorFontSize fontSize
    Returns
    Type Description
    RichTextEditorBuilder

    FontSize(Action<RichTextEditorFontSizeBuilder>)

    Declaration
    public RichTextEditorBuilder FontSize(Action<RichTextEditorFontSizeBuilder> fontSize)
    Parameters
    Type Name Description
    System.Action<RichTextEditorFontSizeBuilder> fontSize
    Returns
    Type Description
    RichTextEditorBuilder

    Format(RichTextEditorFormat)

    Predefine the collection of paragraph styles along with quote and code style that populate in format dropdown from the toolbar.

    Declaration
    public RichTextEditorBuilder Format(RichTextEditorFormat format)
    Parameters
    Type Name Description
    RichTextEditorFormat format
    Returns
    Type Description
    RichTextEditorBuilder

    Format(Action<RichTextEditorFormatBuilder>)

    Declaration
    public RichTextEditorBuilder Format(Action<RichTextEditorFormatBuilder> format)
    Parameters
    Type Name Description
    System.Action<RichTextEditorFormatBuilder> format
    Returns
    Type Description
    RichTextEditorBuilder

    Formatter(RichTextEditorFormatter)

    Customize keyCode to change the key value.

    Declaration
    public RichTextEditorBuilder Formatter(RichTextEditorFormatter formatter)
    Parameters
    Type Name Description
    RichTextEditorFormatter formatter
    Returns
    Type Description
    RichTextEditorBuilder

    Formatter(Action<RichTextEditorFormatterBuilder>)

    Declaration
    public RichTextEditorBuilder Formatter(Action<RichTextEditorFormatterBuilder> formatter)
    Parameters
    Type Name Description
    System.Action<RichTextEditorFormatterBuilder> formatter
    Returns
    Type Description
    RichTextEditorBuilder

    Height(Double)

    Specifies the height of the Rich Text Editor component.

    Declaration
    public RichTextEditorBuilder Height(double height)
    Parameters
    Type Name Description
    System.Double height
    Returns
    Type Description
    RichTextEditorBuilder

    Height(String)

    Specifies the height of the Rich Text Editor component.

    Declaration
    public RichTextEditorBuilder Height(string height)
    Parameters
    Type Name Description
    System.String height
    Returns
    Type Description
    RichTextEditorBuilder

    HtmlAttributes(Object)

    Allows additional HTML attributes such as title, name, etc., and It will be accepts n number of attributes in a key-value pair format.

    Declaration
    public RichTextEditorBuilder HtmlAttributes(object htmlAttributes)
    Parameters
    Type Name Description
    System.Object htmlAttributes
    Returns
    Type Description
    RichTextEditorBuilder

    IframeSettings(RichTextEditorIFrameSettings)

    Specifies the items to be rendered in an iframe mode, and it has the following properties. enable - Set Boolean value to enable, the editors content is placed in an iframe and isolated from the rest of the page. attributes - Custom style to be used inside the iframe to display content. This style is added to the iframe body. resources - we can add both styles and scripts to the iframe.

    1. styles[] - An array of CSS style files to inject inside the iframe to display content
    2. scripts[] - An array of JS script files to inject inside the iframe
    Declaration
    public RichTextEditorBuilder IframeSettings(RichTextEditorIFrameSettings iframeSettings)
    Parameters
    Type Name Description
    RichTextEditorIFrameSettings iframeSettings
    Returns
    Type Description
    RichTextEditorBuilder

    IframeSettings(Action<RichTextEditorIFrameSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder IframeSettings(Action<RichTextEditorIFrameSettingsBuilder> iframeSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorIFrameSettingsBuilder> iframeSettings
    Returns
    Type Description
    RichTextEditorBuilder

    ImageRemoving(String)

    Event triggers when the selected image is cleared from the insert image dialog.

    Declaration
    public RichTextEditorBuilder ImageRemoving(string imageRemoving)
    Parameters
    Type Name Description
    System.String imageRemoving
    Returns
    Type Description
    RichTextEditorBuilder

    ImageSelected(String)

    Event triggers when the image is selected or dragged into the insert image dialog.

    Declaration
    public RichTextEditorBuilder ImageSelected(string imageSelected)
    Parameters
    Type Name Description
    System.String imageSelected
    Returns
    Type Description
    RichTextEditorBuilder

    ImageUploadFailed(String)

    Event triggers when there is an error in the image upload.

    Declaration
    public RichTextEditorBuilder ImageUploadFailed(string imageUploadFailed)
    Parameters
    Type Name Description
    System.String imageUploadFailed
    Returns
    Type Description
    RichTextEditorBuilder

    ImageUploading(String)

    Event triggers when the selected image begins to upload in the insert image dialog.

    Declaration
    public RichTextEditorBuilder ImageUploading(string imageUploading)
    Parameters
    Type Name Description
    System.String imageUploading
    Returns
    Type Description
    RichTextEditorBuilder

    ImageUploadSuccess(String)

    Event triggers when the image is successfully uploaded to the server side.

    Declaration
    public RichTextEditorBuilder ImageUploadSuccess(string imageUploadSuccess)
    Parameters
    Type Name Description
    System.String imageUploadSuccess
    Returns
    Type Description
    RichTextEditorBuilder

    InlineMode(RichTextEditorInlineMode)

    Enable or disable the inline edit mode. enable - set boolean value to enable or disable the inline edit mode. onSelection - If its set to true, upon selecting the text, the toolbar is opened in inline. If its set to false, upon clicking to the target element, the toolbar is opened.

    Declaration
    public RichTextEditorBuilder InlineMode(RichTextEditorInlineMode inlineMode)
    Parameters
    Type Name Description
    RichTextEditorInlineMode inlineMode
    Returns
    Type Description
    RichTextEditorBuilder

    InlineMode(Action<RichTextEditorInlineModeBuilder>)

    Declaration
    public RichTextEditorBuilder InlineMode(Action<RichTextEditorInlineModeBuilder> inlineMode)
    Parameters
    Type Name Description
    System.Action<RichTextEditorInlineModeBuilder> inlineMode
    Returns
    Type Description
    RichTextEditorBuilder

    InsertAudioSettings(RichTextEditorAudioSettings)

    Specifies the audio insert options in Rich Text Editor component and control with the following properties. allowedTypes - Specifies the extensions of the audio types allowed to insert on bowering and passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png. layoutOption - Sets the default display for an audio when it is inserted in to the RichTextEditor. Possible options are: 'Inline' and 'Break'. saveFormat - Specifies the format to store the audio in the Rich Text Editor (Base64 or Blob).

    If you want to insert a lot of tiny audios in the editor and don't want a specific physical location for saving audios, you can opt to save format as Base64. saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server. path - Specifies the path of the location to store the audios and refer it to display the audios.

    Declaration
    public RichTextEditorBuilder InsertAudioSettings(RichTextEditorAudioSettings insertAudioSettings)
    Parameters
    Type Name Description
    RichTextEditorAudioSettings insertAudioSettings
    Returns
    Type Description
    RichTextEditorBuilder

    InsertAudioSettings(Action<RichTextEditorAudioSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder InsertAudioSettings(Action<RichTextEditorAudioSettingsBuilder> insertAudioSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorAudioSettingsBuilder> insertAudioSettings
    Returns
    Type Description
    RichTextEditorBuilder

    InsertImageSettings(RichTextEditorImageSettings)

    Specifies the image insert options in Rich Text Editor component and control with the following properties. allowedTypes - Specifies the extensions of the image types allowed to insert on bowering and passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png. display - Sets the default display for an image when it is inserted in to the RichTextEditor. Possible options are: 'inline' and 'block'. width - Sets the default width of the image when it is inserted in the RichTextEditor. saveFormat - Specifies the format to store the image in the Rich Text Editor (Base64 or Blob).

    If you want to insert a lot of tiny images in the editor and don't want a specific physical location for saving images, you can opt to save format as Base64. height - Sets the default height of the image when it is inserted in the RichTextEditor. saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server. path - Specifies the path of the location to store the images and refer it to display the images.

    Declaration
    public RichTextEditorBuilder InsertImageSettings(RichTextEditorImageSettings insertImageSettings)
    Parameters
    Type Name Description
    RichTextEditorImageSettings insertImageSettings
    Returns
    Type Description
    RichTextEditorBuilder

    InsertImageSettings(Action<RichTextEditorImageSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder InsertImageSettings(Action<RichTextEditorImageSettingsBuilder> insertImageSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorImageSettingsBuilder> insertImageSettings
    Returns
    Type Description
    RichTextEditorBuilder

    InsertVideoSettings(RichTextEditorVideoSettings)

    Specifies the video insert options in Rich Text Editor component and control with the following properties. allowedTypes - Specifies the extensions of the video types allowed to insert on bowering and passing the extensions with comma separators. For example, pass allowedTypes as .jpg and .png. layoutOption - Sets the default display for an video when it is inserted in to the RichTextEditor. Possible options are: 'Inline' and 'Break'. width - Sets the default width of the video when it is inserted in the RichTextEditor. saveFormat - Specifies the format to store the video in the Rich Text Editor (Base64 or Blob).

    If you want to insert a lot of tiny videos in the editor and don't want a specific physical location for saving videos, you can opt to save format as Base64. height - Sets the default height of the video when it is inserted in the RichTextEditor. saveUrl - Specifies the service URL of save action that will receive the uploaded files and save them in the server. path - Specifies the path of the location to store the videos and refer it to display the videos.

    Declaration
    public RichTextEditorBuilder InsertVideoSettings(RichTextEditorVideoSettings insertVideoSettings)
    Parameters
    Type Name Description
    RichTextEditorVideoSettings insertVideoSettings
    Returns
    Type Description
    RichTextEditorBuilder

    InsertVideoSettings(Action<RichTextEditorVideoSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder InsertVideoSettings(Action<RichTextEditorVideoSettingsBuilder> insertVideoSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorVideoSettingsBuilder> insertVideoSettings
    Returns
    Type Description
    RichTextEditorBuilder

    KeyConfig(Object)

    Customizes the key actions in RichTextEditor. For example, when using German keyboard, the key actions can be customized using these shortcuts.

    Declaration
    public RichTextEditorBuilder KeyConfig(object keyConfig)
    Parameters
    Type Name Description
    System.Object keyConfig
    Returns
    Type Description
    RichTextEditorBuilder

    Locale(String)

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    public RichTextEditorBuilder Locale(string locale)
    Parameters
    Type Name Description
    System.String locale
    Returns
    Type Description
    RichTextEditorBuilder

    MaxLength(Double)

    Specifies the maximum number of characters allowed in the Rich Text Editor component.

    Declaration
    public RichTextEditorBuilder MaxLength(double maxLength)
    Parameters
    Type Name Description
    System.Double maxLength
    Returns
    Type Description
    RichTextEditorBuilder

    NumberFormatList(RichTextEditorNumberFormatList)

    Predefine the advanced list types that populate in the numberFormatList dropdown list from the toolbar.

    Declaration
    public RichTextEditorBuilder NumberFormatList(RichTextEditorNumberFormatList numberFormatList)
    Parameters
    Type Name Description
    RichTextEditorNumberFormatList numberFormatList
    Returns
    Type Description
    RichTextEditorBuilder

    NumberFormatList(Action<RichTextEditorNumberFormatListBuilder>)

    Declaration
    public RichTextEditorBuilder NumberFormatList(Action<RichTextEditorNumberFormatListBuilder> numberFormatList)
    Parameters
    Type Name Description
    System.Action<RichTextEditorNumberFormatListBuilder> numberFormatList
    Returns
    Type Description
    RichTextEditorBuilder

    PasteCleanupSettings(RichTextEditorPasteCleanupSettings)

    Specifies the pasting options in Rich Text Editor component and control with the following properties. prompt - Set boolean value to enable or disable the prompt when pasting. deniedAttrs - Specifies the attributes to restrict when pasting in RTE. allowedStyleProps - Specifies the allowed style properties when pasting in RTE. deniedTags - Specifies the tags to restrict when pasting in RTE. keepFormat - Set boolean value to keep or remove the from when pasting. plainText - Set boolean value to paste as plain text or not.

    Declaration
    public RichTextEditorBuilder PasteCleanupSettings(RichTextEditorPasteCleanupSettings pasteCleanupSettings)
    Parameters
    Type Name Description
    RichTextEditorPasteCleanupSettings pasteCleanupSettings
    Returns
    Type Description
    RichTextEditorBuilder

    PasteCleanupSettings(Action<RichTextEditorPasteCleanupSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder PasteCleanupSettings(Action<RichTextEditorPasteCleanupSettingsBuilder> pasteCleanupSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorPasteCleanupSettingsBuilder> pasteCleanupSettings
    Returns
    Type Description
    RichTextEditorBuilder

    Placeholder(String)

    Specifies the placeholder for the RichTextEditor’s content used when the Rich Text Editor body is empty.

    Declaration
    public RichTextEditorBuilder Placeholder(string placeholder)
    Parameters
    Type Name Description
    System.String placeholder
    Returns
    Type Description
    RichTextEditorBuilder

    QuickToolbarClose(String)

    Event triggers after the quick toolbar has been closed.

    Declaration
    public RichTextEditorBuilder QuickToolbarClose(string quickToolbarClose)
    Parameters
    Type Name Description
    System.String quickToolbarClose
    Returns
    Type Description
    RichTextEditorBuilder

    QuickToolbarOpen(String)

    Event triggers when a quick toolbar is opened.

    Declaration
    public RichTextEditorBuilder QuickToolbarOpen(string quickToolbarOpen)
    Parameters
    Type Name Description
    System.String quickToolbarOpen
    Returns
    Type Description
    RichTextEditorBuilder

    QuickToolbarSettings(RichTextEditorQuickToolbarSettings)

    Specifies the items to be rendered in quick toolbar based on the target element. It has following fields: enable - set boolean value to show or hide the quick toolbar actionOnScroll - it has two possible options

    1. hide: The quickToolbar is closed when the parent element is scrolled.
    2. none: The quickToolbar cannot be closed even the parent element is scrolled. link - Specifies the items to be rendered in quick toolbar based on link element such as Open, Edit, and UnLink. image - Specifies the items to be rendered in quick toolbar based on image element such as 'Replace', 'Align', 'Caption', 'Remove', 'InsertLink', 'Display', 'AltText', 'Dimension'. text - Specifies the items to be rendered in quick toolbar based on text element such as 'Cut', 'Copy', 'Paste'.
    Declaration
    public RichTextEditorBuilder QuickToolbarSettings(RichTextEditorQuickToolbarSettings quickToolbarSettings)
    Parameters
    Type Name Description
    RichTextEditorQuickToolbarSettings quickToolbarSettings
    Returns
    Type Description
    RichTextEditorBuilder

    QuickToolbarSettings(Action<RichTextEditorQuickToolbarSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder QuickToolbarSettings(Action<RichTextEditorQuickToolbarSettingsBuilder> quickToolbarSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorQuickToolbarSettingsBuilder> quickToolbarSettings
    Returns
    Type Description
    RichTextEditorBuilder

    Readonly(Boolean)

    Declaration
    public RichTextEditorBuilder Readonly(bool readOnly = true)
    Parameters
    Type Name Description
    System.Boolean readOnly
    Returns
    Type Description
    RichTextEditorBuilder

    Render()

    Declaration
    public HtmlString Render()
    Returns
    Type Description
    System.Web.HtmlString

    ResizeStart(String)

    Triggers only when start resize the image.

    Declaration
    public RichTextEditorBuilder ResizeStart(string resizeStart)
    Parameters
    Type Name Description
    System.String resizeStart
    Returns
    Type Description
    RichTextEditorBuilder

    ResizeStop(String)

    Triggers only when stop resize the image.

    Declaration
    public RichTextEditorBuilder ResizeStop(string resizeStop)
    Parameters
    Type Name Description
    System.String resizeStop
    Returns
    Type Description
    RichTextEditorBuilder

    Resizing(String)

    Triggers only when resizing the image.

    Declaration
    public RichTextEditorBuilder Resizing(string resizing)
    Parameters
    Type Name Description
    System.String resizing
    Returns
    Type Description
    RichTextEditorBuilder

    SaveInterval(Double)

    Specifies the saveInterval in milliseconds for autosave the value. The change event will be triggered if the content was changed from the last saved interval.

    Declaration
    public RichTextEditorBuilder SaveInterval(double saveInterval)
    Parameters
    Type Name Description
    System.Double saveInterval
    Returns
    Type Description
    RichTextEditorBuilder

    ShiftEnterKey(ShiftEnterKey)

    Specifies tags to be inserted when shift+enter key is pressed.

    Declaration
    public RichTextEditorBuilder ShiftEnterKey(ShiftEnterKey shiftEnterKey)
    Parameters
    Type Name Description
    ShiftEnterKey shiftEnterKey
    Returns
    Type Description
    RichTextEditorBuilder

    ShowCharCount(Boolean)

    Sets Boolean value to enable or disable the display of the character counter.

    Declaration
    public RichTextEditorBuilder ShowCharCount(bool showCharCount = true)
    Parameters
    Type Name Description
    System.Boolean showCharCount
    Returns
    Type Description
    RichTextEditorBuilder

    ShowTooltip(Boolean)

    Specify the value whether tooltip will be displayed for the Rich Text Editor toolbar.

    Declaration
    public RichTextEditorBuilder ShowTooltip(bool showTooltip = true)
    Parameters
    Type Name Description
    System.Boolean showTooltip
    Returns
    Type Description
    RichTextEditorBuilder

    TableSettings(RichTextEditorTableSettings)

    Specifies the table insert options in Rich Text Editor component and control with the following properties. styles - Class name should be appended by default in table element. It helps to design the table in specific CSS styles always when inserting in editor. width - Sets the default width of the table when it is inserted in the RichTextEditor. minWidth - Sets the default minWidth of the table when it is inserted in the RichTextEditor. maxWidth - Sets the default maxWidth of the table when it is inserted in the RichTextEditor. resize - To enable resize the table.

    Declaration
    public RichTextEditorBuilder TableSettings(RichTextEditorTableSettings tableSettings)
    Parameters
    Type Name Description
    RichTextEditorTableSettings tableSettings
    Returns
    Type Description
    RichTextEditorBuilder

    TableSettings(Action<RichTextEditorTableSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder TableSettings(Action<RichTextEditorTableSettingsBuilder> tableSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorTableSettingsBuilder> tableSettings
    Returns
    Type Description
    RichTextEditorBuilder

    ToolbarClick(String)

    Triggers when Rich Text Editor Toolbar items is clicked.

    Declaration
    public RichTextEditorBuilder ToolbarClick(string toolbarClick)
    Parameters
    Type Name Description
    System.String toolbarClick
    Returns
    Type Description
    RichTextEditorBuilder

    ToolbarSettings(RichTextEditorToolbarSettings)

    Specifies the group of items aligned horizontally in the toolbar as well as defined the toolbar rendering type. By default, toolbar is float at the top of the RichTextEditor. When you scroll down, the toolbar will scroll along with the page on Rich Text Editor with the specified offset value. enable: set boolean value to show or hide the toolbar. enableFloating: Set Boolean value to enable or disable the floating toolbar. Preserves the toolbar at top of the Rich Text Editor on scrolling. type: it has two possible options

    1. Expand: Hide the overflowing toolbar items in the next row. Click the expand arrow to view overflowing toolbar items
    2. MultiRow: The toolbar overflowing items wrapped in the next row. items: Specifies the array of items aligned horizontally in the toolbar.

    | and - can insert a vertical and horizontal separator lines in the toolbar. itemConfigs: Modify the default toolbar item configuration like icon class.

    Declaration
    public RichTextEditorBuilder ToolbarSettings(RichTextEditorToolbarSettings toolbarSettings)
    Parameters
    Type Name Description
    RichTextEditorToolbarSettings toolbarSettings
    Returns
    Type Description
    RichTextEditorBuilder

    ToolbarSettings(Action<RichTextEditorToolbarSettingsBuilder>)

    Declaration
    public RichTextEditorBuilder ToolbarSettings(Action<RichTextEditorToolbarSettingsBuilder> toolbarSettings)
    Parameters
    Type Name Description
    System.Action<RichTextEditorToolbarSettingsBuilder> toolbarSettings
    Returns
    Type Description
    RichTextEditorBuilder

    ToolbarStatusUpdate(String)

    This event is deprecated and no longer works. Use updatedToolbarStatus event to get the undo and redo status.

    Declaration
    public RichTextEditorBuilder ToolbarStatusUpdate(string toolbarStatusUpdate)
    Parameters
    Type Name Description
    System.String toolbarStatusUpdate
    Returns
    Type Description
    RichTextEditorBuilder

    UndoRedoSteps(Double)

    Specifies the count of undo history which is stored in undoRedoManager.

    Declaration
    public RichTextEditorBuilder UndoRedoSteps(double undoRedoSteps)
    Parameters
    Type Name Description
    System.Double undoRedoSteps
    Returns
    Type Description
    RichTextEditorBuilder

    UndoRedoTimer(Double)

    Specifies the interval value in milliseconds that store actions in undoRedoManager. The minimum value is 300 milliseconds.

    Declaration
    public RichTextEditorBuilder UndoRedoTimer(double undoRedoTimer)
    Parameters
    Type Name Description
    System.Double undoRedoTimer
    Returns
    Type Description
    RichTextEditorBuilder

    UpdatedToolbarStatus(String)

    Triggers when the toolbar items status is updated.

    Declaration
    public RichTextEditorBuilder UpdatedToolbarStatus(string updatedToolbarStatus)
    Parameters
    Type Name Description
    System.String updatedToolbarStatus
    Returns
    Type Description
    RichTextEditorBuilder

    Value(String)

    Specifies the value displayed in the RichTextEditor's content area and it should be string. The content of Rich Text Editor can be loaded with dynamic data such as database, AJAX content, and more.

    Declaration
    public RichTextEditorBuilder Value(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    RichTextEditorBuilder

    ValueTemplate(String)

    Accepts the template design and assigns it as RichTextEditor’s content. The built-in template engine which provides options to compile template string into a executable function. For EX: We have expression evolution as like ES6 expression string literals

    Declaration
    public RichTextEditorBuilder ValueTemplate(string valueTemplate)
    Parameters
    Type Name Description
    System.String valueTemplate
    Returns
    Type Description
    RichTextEditorBuilder

    Width(Double)

    Specifies the width of the RichTextEditor.

    Declaration
    public RichTextEditorBuilder Width(double width)
    Parameters
    Type Name Description
    System.Double width
    Returns
    Type Description
    RichTextEditorBuilder

    Width(String)

    Specifies the width of the RichTextEditor.

    Declaration
    public RichTextEditorBuilder Width(string width)
    Parameters
    Type Name Description
    System.String width
    Returns
    Type Description
    RichTextEditorBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved