Skip to main content

@lexical/extension/SelectBlockExtension

Interfaces​

SelectBlockConfig​

Defined in: packages/lexical-extension/src/SelectBlockExtension.ts:39

Properties​

cascadeSelection​

cascadeSelection: boolean

Defined in: packages/lexical-extension/src/SelectBlockExtension.ts:43

true to trigger selectAll if all content is selected in the nested editor

disabled​

disabled: boolean

Defined in: packages/lexical-extension/src/SelectBlockExtension.ts:41

true to disable this extension

Variables​

SelectBlockExtension​

const SelectBlockExtension: LexicalExtension<SelectBlockConfig, "@lexical/extension/SelectBlock", NamedSignalsOutput<SelectBlockConfig>, unknown>

Defined in: packages/lexical-extension/src/SelectBlockExtension.ts:52

This extension includes block selection. If you press Ctrl + A, the nearest block element, for example paragraph, is selected first. Pressing Ctrl + A again selects all content in the document. A selection that already spans multiple blocks expands directly to the whole document.