Module: @lexical/react/LexicalTabIndentationPlugin
Functions
TabIndentationPlugin
▸ TabIndentationPlugin(«destructured»
): null
This plugin adds the ability to indent content using the tab key. Generally, we don't recommend using this plugin as it could negatively affect acessibility for keyboard users, causing focus to become trapped within the editor.
Parameters
Name | Type |
---|---|
«destructured» | Object |
› maxIndent? | number |
Returns
null
Defined in
packages/lexical-react/src/LexicalTabIndentationPlugin.tsx:118
registerTabIndentation
▸ registerTabIndentation(editor
, maxIndent?
): () => void
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
maxIndent? | number |
Returns
fn
▸ (): void
Returns
void
Defined in
packages/lexical-react/src/LexicalTabIndentationPlugin.tsx:65