API
- 2 minutes to read
The Rich Text Editor provides a comprehensive API, allowing you to manipulate the document programmatically.
Server-Side API
On the server side, the Rich Text Editor control is represented by the BootstrapRichEdit class.
To load the document using server-side API, specify the working directory path using the WorkDirectory property and then call the Open method to load the document into the control.
Note
The BootstrapRichEdit control internally uses a comprehensive server-side API (a set of interfaces, methods, events, and commands) implemented by the RichEdit Core Library to access the document from code. This API is not publicly exposed at the BootstrapRichEdit control level.
If you want to get familiarized with the RichEdit document’s internal implementation, however, you can refer to the Document Server’s Fundamentals - Document topic, which lists the most important entities of the RichEdit API.
Client-Side API
The Rich Text Editor’s client API is available through the BootstrapClientRichEdit class. It provides information about the current settings of the main document model elements and allows you to modify selected element settings.
ASPxClientRichEdit.document Provides access to structures allowing you to obtain the current information about certain document structural elements.
ASPxClientRichEdit.selection Provides access to a set of methods and properties allowing you to position the cursor within a document and to select document content elements.
ASPxClientRichEdit.commands Provides access to client commands allowing you to programmatically accomplish virtually any task within a document.