Function: getNodeRectangle()

getNodeRectangle(editor, nodeKey): null | object

Gets the coordinates of the DOM element that renders the node with the given key.

Parameters

ParameterType
editorLexicalEditor
nodeKeystring

Returns

null | object