NodeSelection
classImport
import { NodeSelection } from '@modular/sdk/editor';Members21
- _cachedNodes
LexicalNode[] | null- _nodes
Set<NodeKey>- dirty
boolean- add()
(key: NodeKey) => void- clear()
() => void- clone()
() => NodeSelection- delete()
(key: NodeKey) => void- deleteNodes()
() => voidRemove all nodes in the NodeSelection. If there were any nodes, replace the selection with a new RangeSelection at the previous location of the first node.
- extract()
() => LexicalNode[]- getCachedNodes()
() => LexicalNode[] | null- getNodes()
() => LexicalNode[]- getStartEndPoints()
() => null- getTextContent()
() => string- has()
(key: NodeKey) => boolean- insertNodes()
(nodes: LexicalNode[]) => void- insertRawText()
(text: string) => void- insertText()
() => void- is()
(selection: null | BaseSelection) => boolean- isBackward()
() => boolean- isCollapsed()
() => boolean- setCachedNodes()
(nodes: LexicalNode[] | null) => void