The ASPxRichEdit control is shipped with the client API allowing you to manipulate with document content on the client side. The client API includes document API, selection API and client commands:
- The document API provides resources for receiving the current information about document structural elements.
- The selection API provides resources for positioning the cursor and select elements within a document.
- The client commands provide resources to modify the document content.
This example demonstrates how to insert text to the end of the document on the client side. The ASPxRichEdit includes a custom ribbon button: clicks on this item are processed using the CustomCommandExecuted client event. The event handler identifies the custom item via a command name and includes client commands and the selection API to insert text.
- The document API provides resources for receiving the current information about document structural elements.
- The selection API provides resources for positioning the cursor and select elements within a document.
- The client commands provide resources to modify the document content.
This example demonstrates how to insert text to the end of the document on the client side. The ASPxRichEdit includes a custom ribbon button: clicks on this item are processed using the CustomCommandExecuted client event. The event handler identifies the custom item via a command name and includes client commands and the selection API to insert text.