Class: EditorState
lexical.EditorState
構造函式
constructor
• new EditorState(nodeMap
, selection?
): EditorState
參數
名稱 | 類型 |
---|---|
nodeMap | NodeMap |
selection? | null | BaseSelection |
回傳值
定義於
packages/lexical/src/LexicalEditorState.ts:104
屬性
_flushSync
• _flushSync: boolean
定義於
packages/lexical/src/LexicalEditorState.ts:101
_nodeMap
• _nodeMap: NodeMap
定義於
packages/lexical/src/LexicalEditorState.ts:99
_readOnly
• _readOnly: boolean
定義於
packages/lexical/src/LexicalEditorState.ts:102
_selection
• _selection: null
| BaseSelection
定義於
packages/lexical/src/LexicalEditorState.ts:100
函式
clone
▸ clone(selection?
): EditorState