@lexical/react/LexicalNodeEventPlugin
Functions
NodeEventPlugin()
NodeEventPlugin(
__namedParameters):null
Defined in: packages/lexical-react/src/LexicalNodeEventPlugin.ts:26
Attaches a DOM event listener to the editor's root element and invokes
eventListener whenever an event of eventType targets a node that is (or
is contained by) an instance of nodeType. The listener receives the DOM
event, the editor, and the matching node's NodeKey.
Parameters
__namedParameters
eventListener
(event, editor, nodeKey) => void
eventType
string
nodeType
KlassConstructor<typeof LexicalNode>
Returns
null
null, this plugin renders no DOM of its own.