RichEditExtension Class
Represents an extension object implementing the RichEdit functionality.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Related API Members
The following members return RichEditExtension objects:
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
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
Inheritance
Object
ExtensionBase
RichEditExtension
See Also