$nodesOfType
functionReturns all nodes of the given type in the active editor state. Consider LexicalEditor.registerMutationListener with `skipInitialization: false` instead if you need to track these nodes over time rather than read them once.
Returns all nodes of the given type in the active editor state. Consider LexicalEditor.registerMutationListener with `skipInitialization: false` instead if you need to track these nodes over time rather than read them once.