ASPxClientHtmlEditorSelection.GetElements Method
Returns an array of the currently selected elements.
Declaration
GetElements(): any[]
Returns
Type | Description |
---|---|
any[] | An array of objects that are currently selected. |
Remarks
The ASPxHtmlEditor allows you to access and modify the currently selected content on the client side. To access the selection, use the editor’s ASPxClientHtmlEditor.GetSelection client function, which returns an ASPxClientHtmlEditorSelection class instance.
Use the GetElements property to access the selection’s HTML elements (XML DOM nodes).
Note
The selection API is available only in the Design View.
Online Demo
See Also