Skip to main content

BaseSelection

interface
interface BaseSelection

Import

import { BaseSelection } from '@modular/sdk/editor';

Members15

_cachedNodes
LexicalNode[] | null
dirty
boolean
clone()
() => BaseSelection
extract()
() => LexicalNode[]
getCachedNodes()
() => LexicalNode[] | null
getNodes()
() => LexicalNode[]
getStartEndPoints()
() => null | [PointType, PointType]
getTextContent()
() => string
insertNodes()
(nodes: LexicalNode[]) => void
insertRawText()
(text: string) => void
insertText()
(text: string) => void
is()
(selection: null | BaseSelection) => boolean
isBackward()
() => boolean
isCollapsed()
() => boolean
setCachedNodes()
(nodes: LexicalNode[] | null) => void