介面: BaseSelection
lexical.BaseSelection
實作類別
屬性
_cachedNodes
• _cachedNodes: null
| LexicalNode
[]
定義於
packages/lexical/src/LexicalSelection.ts:249
dirty
• dirty: boolean
定義於
packages/lexical/src/LexicalSelection.ts:250
方法
clone
▸ clone(): BaseSelection
返回
定義於
packages/lexical/src/LexicalSelection.ts:252
extract
▸ extract(): LexicalNode
[]
返回
定義於
packages/lexical/src/LexicalSelection.ts:253
getCachedNodes
▸ getCachedNodes(): null
| LexicalNode
[]
返回
null
| LexicalNode
[]
定義於
packages/lexical/src/LexicalSelection.ts:263
getNodes
▸ getNodes(): LexicalNode
[]
返回
定義於
packages/lexical/src/LexicalSelection.ts:254
getStartEndPoints
▸ getStartEndPoints(): null
| [PointType
, PointType
]
返回
定義於
packages/lexical/src/LexicalSelection.ts:260
getTextContent
▸ getTextContent(): string
返回
string
定義於
packages/lexical/src/LexicalSelection.ts:255
insertNodes
▸ insertNodes(nodes
): void
參數
名稱 | 類型 |
---|---|
nodes | LexicalNode [] |
返回
void