Skip to main content
A newer version of this page is available. .

RichEditExtension Class

Represents an extension object implementing the RichEdit functionality.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public class RichEditExtension :
    ExtensionBase

Remarks

To declare the RichEdit in a View, invoke the ExtensionsFactory.RichEdit helper method. This method returns the RichEdit extension that is implemented by the RichEditExtension class.

To configure the RichEdit extension, pass the RichEditSettings object to the ExtensionsFactory.RichEdit helper method as a parameter. The RichEditSettings object contains all the RichEdit extension settings.

Concepts

RichEdit Overview

Example

@Html.DevExpress().RichEdit(settings => {
    settings.Name = "RichEdit";
    settings.CallbackRouteValues = new { Controller = "EditingFeatures", Action = "CharacterFormattingPartial" };

    settings.Width = Unit.Percentage(100);
    settings.Height = Unit.Pixel(700);

    settings.ShowConfirmOnLosingChanges = false;
    settings.ActiveTabIndex = 0;

    settings.PreRender = (s, e) => {
        MVCxRichEdit richEdit = (MVCxRichEdit)s;
        RichEditDemoUtils.HideFileTab(richEdit);
        richEdit.Focus();
    };
}).Open(Path.Combine(DirectoryManagmentUtils.CurrentDataDirectory, "CharacterFormatting.rtf")).GetHtml()

Online Demos

Rich Text Editor Demos

Inheritance

Object
ExtensionBase
RichEditExtension
See Also