# fromWithinEditorRead

**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#L17)

Fetches a value from the Lexical editor read cycle.

## Signature

```ts
function fromWithinEditorRead(editor: LexicalEditor, fn: () => T): T
```

## Parameters

| Name | Type |
|---|---|
| `editor` | `LexicalEditor` |
| `fn` | `() => T` |

**Returns:** `T`
