Kind: Function
Source: atloria-monorepo/packages/editor/src/utils/lexicalHelpers.ts
Gets the selected node from the Lexical editor.
Signature
tsfunction getSelectedNode(selection: RangeSelection): TextNode | ElementNode | null
Parameters
| Name | Type |
|---|---|
selection | RangeSelection |
Returns: TextNode | ElementNode | null
Was this page helpful?