跳至主要内容

模組:@lexical/react/LexicalTabIndentationPlugin

函式

TabIndentationPlugin

TabIndentationPlugin(): null

此插件新增使用 Tab 鍵進行內容縮排的功能。通常,我們不建議使用此插件,因為它可能會對鍵盤使用者的可及性造成負面影響,使焦點被困在編輯器內。

回傳

null

定義於

packages/lexical-react/src/LexicalTabIndentationPlugin.tsx:86


registerTabIndentation

registerTabIndentation(editor): () => void

參數

名稱類型
editorLexicalEditor

回傳

fn

▸ (): void

回傳

void

定義於

packages/lexical-react/src/LexicalTabIndentationPlugin.tsx:60