# EditTextToolApi.selectedBlockId

```ts
get selectedBlockId(): string | null
```

The selected block, or `null`.

- Kind: getter
- Since: 1.0.0

Returns `string | null`

Throws:

- `INVALID_STATE` while the tool is not active — without `edit-text` it cannot be activated.

Part of [EditTextToolApi](https://kernstra.com/docs/web-sdk/api/viewer-tools-edittext) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/viewer-tools-edittext/selectedblockid
