# getSelectionRectangle

**Kind:** Function

**Source:** [`atloria-monorepo/packages/editor/src/utils/lexicalHelpers.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/editor/src/utils/lexicalHelpers.ts#L54)

Gets the coordinates of the selection in the Lexical editor.

## Signature

```ts
function getSelectionRectangle(editor: LexicalEditor)
```

## Parameters

| Name | Type |
|---|---|
| `editor` | `LexicalEditor` |
