Interface: SplitAtPointCaretNextOptions
lexical.SplitAtPointCaretNextOptions
Properties
$copyElementNode
• $copyElementNode: (node
: ElementNode
) => ElementNode
The function to create the right side of a split ElementNode
Type declaration
▸ (node
): ElementNode
Parameters
Name | Type |
---|---|
node | ElementNode |
Returns
Defined in
packages/lexical/src/caret/LexicalCaretUtils.ts:645
allowEmptyLeftSplit
• Optional
allowEmptyLeftSplit: boolean
If true (default false), the parent may be split before its first child when parent.canBeEmpty() is true
Defined in
packages/lexical/src/caret/LexicalCaretUtils.ts:649
allowEmptyRightSplit
• Optional
allowEmptyRightSplit: boolean
If true (default false), the parent may be split after its last child when parent.canBeEmpty() is true
Defined in
packages/lexical/src/caret/LexicalCaretUtils.ts:651
rootMode
• Optional
rootMode: RootMode
If the parent matches rootMode a split will not occur, default is 'shadowRoot'