getSelectedNode(selection): TextNode | ElementNode | null
selection
TextNode
ElementNode
null
Gets the selected node from the Lexical editor.
RangeSelection
TextNode | ElementNode | null