Open this page in the API Guide
SelectionAdorner.getSelectedDesignObjectsOrGroupId Method
Retrieves the currently selected design object, or the selected group's groupId.
Return Value
Type: Array
ElementType: HTMLElement or string
Selected Group IDs and/or design objects.