Back to Devexpress

BootstrapRichEdit Class

aspnetbootstrap-devexpress-dot-web-dot-bootstrap-2c1aee04.md

latest3.7 KB
Original Source

BootstrapRichEdit Class

A rich text editor control.

Namespace : DevExpress.Web.Bootstrap

Assembly : DevExpress.Web.Bootstrap.v25.2.dll

NuGet Package : DevExpress.Web.Bootstrap

Declaration

csharp
[DXClientDocumentationProviderWeb("BootstrapSpreadsheet")]
[ToolboxTabName("DX.25.2: Bootstrap Controls")]
public class BootstrapRichEdit :
    ASPxRichEdit,
    ISimpleRenderControl
vb
<ToolboxTabName("DX.25.2: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapSpreadsheet")>
Public Class BootstrapRichEdit
    Inherits ASPxRichEdit
    Implements ISimpleRenderControl

Remarks


The BootstrapRichEdit class specifies a visual Rich Text Editor control to create, load, modify, print, save and convert rich formatted text files.

To work properly, the BootstrapRichEdit requires setting the BootstrapRichEdit.WorkDirectory property to a folder that contains rich text documents in your project.

To programmatically load a document into the BootstrapRichEdit control, use the BootstrapRichEdit.Open method. To save the active document in code, use the BootstrapRichEdit.Save method.

xml
<dx:BootstrapRichEdit ID="RichEdit1" runat="server" />

<input type="submit"/>
cs
protected void Page_Load(object sender, EventArgs e) {
   if(!IsPostBack) {
        string workingDirectory = Context.Request.MapPath("~/App_Data/Documents");
        RichEdit1.WorkDirectory = workingDirectory;
        RichEdit1.Open(Path.Combine(workingDirectory, "SampleDocument.docx"));
    }
}

Note

The BootstrapRichEdit control provides you with a comprehensive client-side functionality, implemented using JavaScript code:

The control’s client-side API is enabled if the BootstrapRichEdit.EnableClientSideAPI property is set to true, or the BootstrapRichEdit.ClientInstanceName property is defined.

Inheritance

Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxDataWebControlBase ASPxDataWebControl ASPxRichEdit BootstrapRichEdit

See Also

BootstrapRichEdit Members

DevExpress.Web.Bootstrap Namespace